![]() |
TrinityCore
|
#include <ByteBuffer.h>
Public Member Functions | |
| ByteBuffer () | |
| ByteBuffer (size_t reserve) | |
| ByteBuffer (ByteBuffer &&buf) | |
| ByteBuffer (ByteBuffer const &right) | |
| ByteBuffer (MessageBuffer &&buffer) | |
| std::vector< uint8 > && | Move () |
| ByteBuffer & | operator= (ByteBuffer const &right) |
| ByteBuffer & | operator= (ByteBuffer &&right) |
| virtual | ~ByteBuffer () |
| void | clear () |
| template<typename T > | |
| void | append (T value) |
| void | FlushBits () |
| void | ResetBitPos () |
| bool | WriteBit (uint32 bit) |
| bool | ReadBit () |
| template<typename T > | |
| void | WriteBits (T value, int32 bits) |
| uint32 | ReadBits (int32 bits) |
| void | ReadByteSeq (uint8 &b) |
| void | WriteByteSeq (uint8 b) |
| template<typename T > | |
| void | put (size_t pos, T value) |
| template<> | |
| void | read_skip () |
| template<> | |
| void | read_skip () |
Static Public Attributes | |
| static size_t const | DEFAULT_SIZE = 0x1000 |
| static uint8 const | InitialBitPos = 8 |
PutBits | |
Places specified amount of bits of value at specified position in packet. To ensure all bits are correctly written, only call this method after bit flush has been performed | |
| size_t | _rpos |
| size_t | _wpos |
| size_t | _bitpos |
| uint8 | _curbitval |
| std::vector< uint8 > | _storage |
| template<typename T > | |
| void | PutBits (size_t pos, T value, uint32 bitCount) |
| ByteBuffer & | operator<< (uint8 value) |
| ByteBuffer & | operator<< (uint16 value) |
| ByteBuffer & | operator<< (uint32 value) |
| ByteBuffer & | operator<< (uint64 value) |
| ByteBuffer & | operator<< (int8 value) |
| ByteBuffer & | operator<< (int16 value) |
| ByteBuffer & | operator<< (int32 value) |
| ByteBuffer & | operator<< (int64 value) |
| ByteBuffer & | operator<< (float value) |
| ByteBuffer & | operator<< (double value) |
| ByteBuffer & | operator<< (const std::string &value) |
| ByteBuffer & | operator<< (const char *str) |
| ByteBuffer & | operator>> (bool &value) |
| ByteBuffer & | operator>> (uint8 &value) |
| ByteBuffer & | operator>> (uint16 &value) |
| ByteBuffer & | operator>> (uint32 &value) |
| ByteBuffer & | operator>> (uint64 &value) |
| ByteBuffer & | operator>> (int8 &value) |
| ByteBuffer & | operator>> (int16 &value) |
| ByteBuffer & | operator>> (int32 &value) |
| ByteBuffer & | operator>> (int64 &value) |
| ByteBuffer & | operator>> (float &value) |
| ByteBuffer & | operator>> (double &value) |
| ByteBuffer & | operator>> (std::string &value) |
| uint8 & | operator[] (size_t const pos) |
| uint8 const & | operator[] (size_t const pos) const |
| size_t | rpos () const |
| size_t | rpos (size_t rpos_) |
| void | rfinish () |
| size_t | wpos () const |
| size_t | wpos (size_t wpos_) |
| size_t | bitwpos () const |
| Returns position of last written bit. More... | |
| size_t | bitwpos (size_t newPos) |
| template<typename T > | |
| void | read_skip () |
| void | read_skip (size_t skip) |
| template<typename T > | |
| T | read () |
| template<typename T > | |
| T | read (size_t pos) const |
| void | read (uint8 *dest, size_t len) |
| void | ReadPackedUInt64 (uint64 &guid) |
| void | ReadPackedUInt64 (uint8 mask, uint64 &value) |
| std::string | ReadString (uint32 length) |
| void | WriteString (std::string const &str) |
| void | WriteString (char const *str, size_t len) |
| uint32 | ReadPackedTime () |
| ByteBuffer & | ReadPackedTime (uint32 &time) |
| uint8 * | contents () |
| uint8 const * | contents () const |
| size_t | size () const |
| bool | empty () const |
| void | resize (size_t newsize) |
| void | reserve (size_t ressize) |
| void | append (const char *src, size_t cnt) |
| template<class T > | |
| void | append (const T *src, size_t cnt) |
| void | append (const uint8 *src, size_t cnt) |
| void | append (const ByteBuffer &buffer) |
| void | appendPackXYZ (float x, float y, float z) |
| void | AppendPackedUInt64 (uint64 guid) |
| void | AppendPackedTime (time_t time) |
| void | put (size_t pos, const uint8 *src, size_t cnt) |
| void | print_storage () const |
| void | textlike () const |
| void | hexlike () const |
| static size_t | PackUInt64 (uint64 value, uint8 *mask, uint8 *result) |
|
inline |
|
inline |
|
inline |
|
inline |
| ByteBuffer::ByteBuffer | ( | MessageBuffer && | buffer | ) |
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Returns position of last written bit.
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:| void ByteBuffer::hexlike | ( | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:| void ByteBuffer::print_storage | ( | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Here is the caller graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
Here is the caller graph for this function:| void ByteBuffer::textlike | ( | ) | const |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
Method for writing strings that have their length sent separately in packet without null-terminating the string
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
1.8.8