AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PackedGuid Class Reference

#include "ObjectGuid.h"

Public Member Functions

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

Private Attributes

ByteBuffer _packedGuid
 

Friends

ByteBufferoperator<< (ByteBuffer &buf, PackedGuid const &guid)
 

Detailed Description

Constructor & Destructor Documentation

◆ PackedGuid() [1/3]

PackedGuid::PackedGuid ( )
inlineexplicit
#define PACKED_GUID_MIN_BUFFER_SIZE
Definition: ObjectGuid.h:260
ByteBuffer _packedGuid
Definition: ObjectGuid.h:277
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:503

References _packedGuid, and ByteBuffer::appendPackGUID().

◆ PackedGuid() [2/3]

PackedGuid::PackedGuid ( uint64  guid)
inlineexplicit

◆ PackedGuid() [3/3]

PackedGuid::PackedGuid ( ObjectGuid  guid)
inlineexplicit

Member Function Documentation

◆ Set() [1/2]

void PackedGuid::Set ( ObjectGuid  guid)
inline
std::size_t wpos() const
Definition: ByteBuffer.h:330

References _packedGuid, ByteBuffer::appendPackGUID(), ObjectGuid::GetRawValue(), and ByteBuffer::wpos().

◆ Set() [2/2]

void PackedGuid::Set ( uint64  guid)
inline

◆ size()

std::size_t PackedGuid::size ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ _packedGuid

ByteBuffer PackedGuid::_packedGuid
private

Referenced by PackedGuid(), Set(), and size().