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

#include <UpdateMask.h>

Public Types

enum  UpdateMaskCount { CLIENT_UPDATE_MASK_BITS = sizeof(ClientUpdateMaskType) * 8 }
 
using ClientUpdateMaskType = uint32
 Type representing how client reads update mask.
 

Public Member Functions

 UpdateMaskPacketBuilder (uint32 valuesCount)
 
void SetBit (uint32 bit)
 
void AppendToPacket (ByteBuffer *data)
 

Static Private Member Functions

static constexpr uint8 CalculateBlockCount (uint32 fieldCount)
 
static constexpr std::size_t GetBlockIndex (uint32 bit)
 
static constexpr uint32 GetBlockFlag (uint32 bit)
 

Private Attributes

std::unique_ptr< ClientUpdateMaskType[]> _mask
 
uint32 _lastSetBit
 

Detailed Description

Definition at line 63 of file UpdateMask.h.

Member Typedef Documentation

◆ ClientUpdateMaskType

Type representing how client reads update mask.

Definition at line 67 of file UpdateMask.h.

Member Enumeration Documentation

◆ UpdateMaskCount

Enumerator
CLIENT_UPDATE_MASK_BITS 

Definition at line 69 of file UpdateMask.h.

Constructor & Destructor Documentation

◆ UpdateMaskPacketBuilder()

UpdateMaskPacketBuilder::UpdateMaskPacketBuilder ( uint32  valuesCount)
inlineexplicit

Definition at line 74 of file UpdateMask.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ AppendToPacket()

void UpdateMaskPacketBuilder::AppendToPacket ( ByteBuffer data)
inline

Definition at line 87 of file UpdateMask.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateBlockCount()

static constexpr uint8 UpdateMaskPacketBuilder::CalculateBlockCount ( uint32  fieldCount)
inlinestaticconstexprprivate

Definition at line 96 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ GetBlockFlag()

static constexpr uint32 UpdateMaskPacketBuilder::GetBlockFlag ( uint32  bit)
inlinestaticconstexprprivate

Definition at line 106 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ GetBlockIndex()

static constexpr std::size_t UpdateMaskPacketBuilder::GetBlockIndex ( uint32  bit)
inlinestaticconstexprprivate

Definition at line 101 of file UpdateMask.h.

+ Here is the caller graph for this function:

◆ SetBit()

void UpdateMaskPacketBuilder::SetBit ( uint32  bit)
inline

Definition at line 81 of file UpdateMask.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _lastSetBit

uint32 UpdateMaskPacketBuilder::_lastSetBit
private

Definition at line 112 of file UpdateMask.h.

◆ _mask

std::unique_ptr<ClientUpdateMaskType[]> UpdateMaskPacketBuilder::_mask
private

Definition at line 111 of file UpdateMask.h.


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