Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ObjectGuid Struct Reference

#include <ByteBuffer.h>

Public Member Functions

 ObjectGuid ()
 ObjectGuid (ObjectGuid const &other)
 ObjectGuid (uint64 guid)
 operator uint64 ()
ObjectGuidoperator= (ObjectGuid const &other)
ObjectGuidoperator= (uint64 guid)
uint8operator[] (uint32 index)
uint8 const & operator[] (uint32 index) const

Private Attributes

union { 
   uint8   byte [8] 
   uint64   u64 
_data

Detailed Description

Structure to ease conversions from single 64 bit integer guid into individual bytes, for packet sending purposes Nuke this out when porting ObjectGuid from MaNGOS, but preserve the per-byte storage

Definition at line 65 of file ByteBuffer.h.

Constructor & Destructor Documentation

◆ ObjectGuid() [1/3]

ObjectGuid::ObjectGuid ( )
inline

Definition at line 68 of file ByteBuffer.h.

References _data, and UI64LIT.

Referenced by ObjectGuid(), operator=(), and operator=().

◆ ObjectGuid() [2/3]

ObjectGuid::ObjectGuid ( uint64 guid)
inline

Definition at line 69 of file ByteBuffer.h.

References _data.

◆ ObjectGuid() [3/3]

ObjectGuid::ObjectGuid ( ObjectGuid const & other)
inline

Definition at line 70 of file ByteBuffer.h.

References _data, ObjectGuid(), and u64.

Member Function Documentation

◆ operator uint64()

ObjectGuid::operator uint64 ( )
inline

Definition at line 94 of file ByteBuffer.h.

References _data.

◆ operator=() [1/2]

ObjectGuid & ObjectGuid::operator= ( ObjectGuid const & other)
inline

Definition at line 105 of file ByteBuffer.h.

References _data, ObjectGuid(), and u64.

◆ operator=() [2/2]

ObjectGuid & ObjectGuid::operator= ( uint64 guid)
inline

Definition at line 99 of file ByteBuffer.h.

References _data, and ObjectGuid().

◆ operator[]() [1/2]

uint8 & ObjectGuid::operator[] ( uint32 index)
inline

Definition at line 72 of file ByteBuffer.h.

References _data, and ASSERT.

◆ operator[]() [2/2]

uint8 const & ObjectGuid::operator[] ( uint32 index) const
inline

Definition at line 83 of file ByteBuffer.h.

References _data, and ASSERT.

Member Data Documentation

◆ [union]

union { ... } ObjectGuid::_data

◆ byte

uint8 ObjectGuid::byte[8]

Definition at line 115 of file ByteBuffer.h.

◆ u64

uint64 ObjectGuid::u64

Definition at line 114 of file ByteBuffer.h.

Referenced by ObjectGuid(), and operator=().


The documentation for this struct was generated from the following file: