TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PackedGuid Class Reference

#include <ObjectGuid.h>

Public Member Functions

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

Private Attributes

ByteBuffer _packedGuid
 

Friends

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

Constructor & Destructor Documentation

PackedGuid::PackedGuid ( )
inlineexplicit
ByteBuffer _packedGuid
Definition: ObjectGuid.h:354
uint16_t uint16
Definition: g3dmath.h:166
#define PACKED_GUID_MIN_BUFFER_SIZE
Definition: ObjectGuid.h:339
PackedGuid::PackedGuid ( ObjectGuid const guid)
inlineexplicit
ByteBuffer _packedGuid
Definition: ObjectGuid.h:354
void Set(ObjectGuid const &guid)
Definition: ObjectGuid.cpp:140
#define PACKED_GUID_MIN_BUFFER_SIZE
Definition: ObjectGuid.h:339

Member Function Documentation

void PackedGuid::Set ( ObjectGuid const guid)
141 {
142  _packedGuid.clear();
143  _packedGuid << guid;
144 }
ByteBuffer _packedGuid
Definition: ObjectGuid.h:354
void clear()
Definition: ByteBuffer.h:134

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t PackedGuid::size ( ) const
inline
351 { return _packedGuid.size(); }
ByteBuffer _packedGuid
Definition: ObjectGuid.h:354
size_t size() const
Definition: ByteBuffer.h:587

Friends And Related Function Documentation

TC_GAME_API ByteBuffer& operator<< ( ByteBuffer buf,
PackedGuid const guid 
)
friend
177 {
178  buf.append(guid._packedGuid);
179  return buf;
180 }
void append(T value)
Definition: ByteBuffer.h:143

Member Data Documentation

ByteBuffer PackedGuid::_packedGuid
private

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