#include "ObjectGuid.h"
#include "ByteBuffer.h"
#include "Errors.h"
#include "Hash.h"
#include "Log.h"
#include "Realm.h"
#include "Util.h"
#include "World.h"
Go to the source code of this file.
◆ SET_GUID_INFO
#define SET_GUID_INFO |
( |
|
type, |
|
|
|
format, |
|
|
|
parse |
|
) |
| |
Value:
ClientFormatFunction[
AsUnderlyingType(HighGuid::type)] = &ObjectGuidInfo::format;\
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
◆ GetRealmIdForObjectGuid()
Definition at line 590 of file ObjectGuid.cpp.
591{
592 if (realmId)
593 return realmId;
594
596}
Battlenet::RealmHandle Id
◆ operator<<()
Definition at line 758 of file ObjectGuid.cpp.
759{
763 std::size_t pos = buf.
wpos();
764 buf <<
uint8(lowMask);
765 buf <<
uint8(highMask);
766
769 buf.
append(packed, packedSize);
771 buf.
append(packed, packedSize);
772
773 buf.
put(pos, lowMask);
774 buf.
put(pos + 1, highMask);
775
776 return buf;
777}
static size_t PackUInt64(uint64 value, uint8 *mask, uint8 *result)
void put(std::size_t pos, T value)
◆ operator>>()
Definition at line 779 of file ObjectGuid.cpp.
780{
781 uint8 lowMask, highMask;
782 buf >> lowMask >> highMask;
785 return buf;
786}
void ReadPackedUInt64(uint64 &guid)
std::array< uint64, 2 > _data