TrinityCore
Loading...
Searching...
No Matches
PackedGuid Class Reference

#include <ObjectGuid.h>

Public Member Functions

 PackedGuid ()
 
 PackedGuid (ObjectGuid guid)
 
void Set (ObjectGuid const &guid)
 
std::size_t size () const
 

Private Attributes

uint8 _packedSize
 
std::array< uint8, PACKED_GUID_MIN_BUFFER_SIZE > _packedGuid
 

Friends

TC_GAME_API ByteBuffer & operator<< (ByteBuffer &buf, PackedGuid const &guid)
 

Detailed Description

Definition at line 268 of file ObjectGuid.h.

Constructor & Destructor Documentation

◆ PackedGuid() [1/2]

PackedGuid::PackedGuid ( )
inlineexplicit

Definition at line 273 of file ObjectGuid.h.

◆ PackedGuid() [2/2]

PackedGuid::PackedGuid ( ObjectGuid  guid)
inlineexplicit

Definition at line 274 of file ObjectGuid.h.

Member Function Documentation

◆ Set()

void PackedGuid::Set ( ObjectGuid const &  guid)

Definition at line 120 of file ObjectGuid.cpp.

References _packedGuid, _packedSize, and ObjectGuid::GetRawValue().

Referenced by Object::_Create().

◆ size()

Friends And Related Symbol Documentation

◆ operator<<

TC_GAME_API ByteBuffer & operator<< ( ByteBuffer &  buf,
PackedGuid const &  guid 
)
friend

Definition at line 148 of file ObjectGuid.cpp.

Member Data Documentation

◆ _packedGuid

std::array<uint8, PACKED_GUID_MIN_BUFFER_SIZE> PackedGuid::_packedGuid
private

Definition at line 282 of file ObjectGuid.h.

Referenced by Set().

◆ _packedSize

uint8 PackedGuid::_packedSize
private

Definition at line 281 of file ObjectGuid.h.

Referenced by Set().


The documentation for this class was generated from the following files: