AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ObjectGuid.cpp File Reference
#include "ObjectGuid.h"
#include "Log.h"
#include "World.h"
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Macros

#define GUID_TRAIT_INSTANTIATE_GUID(HIGH_GUID)    template class ObjectGuidGenerator< HIGH_GUID >;
 

Functions

ByteBufferoperator<< (ByteBuffer &buf, ObjectGuid const &guid)
 
ByteBufferoperator>> (ByteBuffer &buf, ObjectGuid &guid)
 
ByteBufferoperator<< (ByteBuffer &buf, PackedGuid const &guid)
 
ByteBufferoperator>> (ByteBuffer &buf, PackedGuidReader const &guid)
 

Macro Definition Documentation

◆ GUID_TRAIT_INSTANTIATE_GUID

#define GUID_TRAIT_INSTANTIATE_GUID (   HIGH_GUID)     template class ObjectGuidGenerator< HIGH_GUID >;

Function Documentation

◆ operator<<() [1/2]

ByteBuffer & operator<< ( ByteBuffer buf,
ObjectGuid const &  guid 
)
70{
71 buf << uint64(guid.GetRawValue());
72 return buf;
73}
std::uint64_t uint64
Definition: Define.h:106

References ObjectGuid::GetRawValue().

Referenced by ByteBuffer::operator<<().

◆ operator<<() [2/2]

ByteBuffer & operator<< ( ByteBuffer buf,
PackedGuid const &  guid 
)
82{
83 buf.append(guid._packedGuid);
84 return buf;
85}
void append(T value)
Definition: ByteBuffer.h:129

◆ operator>>() [1/2]

ByteBuffer & operator>> ( ByteBuffer buf,
ObjectGuid guid 
)
76{
77 guid.Set(buf.read<uint64>());
78 return buf;
79}
void Set(uint64 guid)
Definition: ObjectGuid.h:137
T read()
Definition: ByteBuffer.h:351

References ByteBuffer::read(), and ObjectGuid::Set().

◆ operator>>() [2/2]

ByteBuffer & operator>> ( ByteBuffer buf,
PackedGuidReader const &  guid 
)
88{
89 buf.readPackGUID(reinterpret_cast<uint64&>(guid.Guid));
90 return buf;
91}
void readPackGUID(uint64 &guid)
Definition: ByteBuffer.h:387

References PackedGuidReader::Guid, and ByteBuffer::readPackGUID().