Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for ByteBuffer:

Public Member Functions

template<typename T>
void append (T value)
 ByteBuffer ()
 ByteBuffer (const ByteBuffer &buf)
 ByteBuffer (size_t reserve)
void clear ()
void FlushBits ()
template<typename T>
void put (size_t pos, T value)
template<>
void read_skip ()
template<>
void read_skip ()
bool ReadBit ()
uint32 ReadBits (size_t bits)
void ReadByteSeq (uint8 &b)
void ReadBytesSeq (ObjectGuid &guid, uint8 order[8])
template<typename... Offsets>
void ReadGuidBytes (ObjectGuid &guid, Offsets... offsets)
template<typename... Offsets>
void ReadGuidMask (ObjectGuid &guid, Offsets... offsets)
bool WriteBit (uint32 bit)
template<typename T>
void WriteBits (T value, size_t bits)
void WriteByteSeq (uint8 b)
void WriteBytesSeq (ObjectGuid guid, uint8 order[8])
template<typename... Offsets>
void WriteGuidBytes (const ObjectGuid &guid, Offsets... offsets)
template<typename... Offsets>
void WriteGuidMask (const ObjectGuid &guid, Offsets... offsets)
virtual ~ByteBuffer ()

Static Public Attributes

static const size_t DEFAULT_SIZE = 0x1000

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

Parameters
posPosition to place the value at, in bits. The entire value must fit in the packet It is advised to obtain the position using bitwpos() function.
valueData to write.
bitCountNumber of bits to store the value on.
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)
ByteBufferoperator<< (uint8 value)
ByteBufferoperator<< (uint16 value)
ByteBufferoperator<< (uint32 value)
ByteBufferoperator<< (uint64 value)
ByteBufferoperator<< (int8 value)
ByteBufferoperator<< (int16 value)
ByteBufferoperator<< (int32 value)
ByteBufferoperator<< (int64 value)
ByteBufferoperator<< (float value)
ByteBufferoperator<< (double value)
ByteBufferoperator<< (const std::string &value)
ByteBufferoperator>> (bool &value)
ByteBufferoperator>> (uint8 &value)
ByteBufferoperator>> (uint16 &value)
ByteBufferoperator>> (uint32 &value)
ByteBufferoperator>> (uint64 &value)
ByteBufferoperator>> (int8 &value)
ByteBufferoperator>> (int16 &value)
ByteBufferoperator>> (int32 &value)
ByteBufferoperator>> (int64 &value)
ByteBufferoperator>> (float &value)
ByteBufferoperator>> (double &value)
ByteBufferoperator>> (std::string &value)
uint8operator[] (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.
size_t bitwpos (size_t newPos)
template<typename T>
void read_skip ()
void read_skip (size_t skip)
template<typename T>
read ()
template<typename T>
read (size_t pos) const
void read (uint8 *dest, size_t len)
template<size_t Size>
void read (std::array< uint8, Size > &arr)
void readPackGUID (uint64 &guid)
std::string ReadString (size_t length)
void WriteString (std::string const &str)
uint32 ReadPackedTime ()
ByteBufferReadPackedTime (uint32 &time)
uint8contents ()
const uint8contents () 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 AppendBits (const ByteBuffer &buffer)
template<size_t Size>
void append (std::array< uint8, Size > const &arr)
void appendPackXYZ (float x, float y, float z)
void appendPackGUID (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

Detailed Description

Definition at line 119 of file ByteBuffer.h.

Constructor & Destructor Documentation

◆ ByteBuffer() [1/3]

◆ ByteBuffer() [2/3]

ByteBuffer::ByteBuffer ( size_t reserve)
inline

Definition at line 130 of file ByteBuffer.h.

References _bitpos, _curbitval, _rpos, _storage, _wpos, and reserve().

◆ ByteBuffer() [3/3]

ByteBuffer::ByteBuffer ( const ByteBuffer & buf)
inline

Definition at line 136 of file ByteBuffer.h.

References _bitpos, _curbitval, _rpos, _storage, _wpos, and ByteBuffer().

◆ ~ByteBuffer()

virtual ByteBuffer::~ByteBuffer ( )
inlinevirtual

Definition at line 140 of file ByteBuffer.h.

Member Function Documentation

◆ append() [1/6]

void ByteBuffer::append ( const ByteBuffer & buffer)
inline

Definition at line 651 of file ByteBuffer.h.

References append(), ByteBuffer(), contents(), and wpos().

◆ append() [2/6]

void ByteBuffer::append ( const char * src,
size_t cnt )
inline

Definition at line 625 of file ByteBuffer.h.

References append().

◆ append() [3/6]

template<class T>
void ByteBuffer::append ( const T * src,
size_t cnt )
inline

Definition at line 630 of file ByteBuffer.h.

References append().

◆ append() [4/6]

void ByteBuffer::append ( const uint8 * src,
size_t cnt )
inline

Definition at line 635 of file ByteBuffer.h.

References _storage, _wpos, ASSERT, and size().

◆ append() [5/6]

template<size_t Size>
void ByteBuffer::append ( std::array< uint8, Size > const & arr)
inline

Definition at line 666 of file ByteBuffer.h.

References append().

◆ append() [6/6]

template<typename T>
void ByteBuffer::append ( T value)
inline

Definition at line 147 of file ByteBuffer.h.

References append(), EndianConvert(), and FlushBits().

Referenced by AuthSocket::_HandleLogonChallenge(), AuthSocket::_HandleRealmList(), AuthSocket::_HandleReconnectChallenge(), Guild::_SendBankContentUpdate(), append(), append(), append(), append(), append(), AppendPackedTime(), appendPackGUID(), AddonHandler::BuildAddonPacket(), Object::BuildCreateUpdateBlockForPlayer(), Player::BuildEnumData(), Object::BuildMovementUpdate(), UpdateData::BuildPacket(), WorldSession::BuildPartyMemberStatsChangedPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), GameObject::BuildValuesUpdate(), Object::BuildValuesUpdate(), Unit::BuildValuesUpdate(), Object::BuildValuesUpdateBlockForPlayer(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseFly(), Spell::EffectStealBeneficialBuff(), FlushBits(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCharEnum(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleGetMailList(), WorldSession::HandleGuildFinderGetRecruits(), modify_commandscript::HandleModifyMountCommand(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQueryNextMailTime(), WorldSession::HandleQuestPOIQuery(), WorldSession::HandleRequestAccountData(), WorldSession::HandleRequestHotfix(), Guild::HandleRoster(), WorldSocket::HandleSendAuthSession(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleWhoOpcode(), WardenWin::InitializeModule(), Skyfire::PacketLogServer::LogBinaryPacket(), Guild::MassInviteToEvent(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::RemoveGravityLapse(), WardenMac::RequestData(), WardenWin::RequestData(), WardenMac::RequestHash(), WardenWin::RequestHash(), Warden::RequestModule(), AchievementMgr< Guild >::SendAchievementInfo(), AchievementMgr< T >::SendAllAchievementData(), Unit::SendAttackStateUpdate(), WorldSession::SendAttackStop(), Guild::SendBankList(), BattlePetMgr::SendBattlePetJournal(), WorldSession::SendBroadcastText(), CalendarMgr::SendCalendarEvent(), Player::SendComboPoints(), Player::SendCurrencies(), InstanceScript::SendEncounterUnit(), Player::SendEquipmentSetList(), ReputationMgr::SendInitialReputations(), Player::SendInspectResult(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendListInventory(), WorldSession::SendLoadCUFProfiles(), Warden::SendModuleToClient(), WorldSession::SendNotification(), WorldSession::SendNotification(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), WorldSession::SendQuestgiverStatusMultiple(), PlayerMenu::SendQuestQueryResponse(), Player::SendRaidInfo(), Group::SendUpdateToPlayer(), WorldSession::SendUpdateTrade(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), SpellCastTargets::Write(), WriteBit(), WriteByteSeq(), LootView::WriteData(), Guild::LogHolder::WritePacket(), and WriteString().

◆ AppendBits()

void ByteBuffer::AppendBits ( const ByteBuffer & buffer)
inline

Definition at line 657 of file ByteBuffer.h.

References _bitpos, _curbitval, ByteBuffer(), contents(), wpos(), and WriteBits().

◆ AppendPackedTime()

◆ appendPackGUID()

void ByteBuffer::appendPackGUID ( uint64 guid)
inline

◆ appendPackXYZ()

void ByteBuffer::appendPackXYZ ( float x,
float y,
float z )
inline

Definition at line 672 of file ByteBuffer.h.

Referenced by Movement::WriteLinearPath().

◆ bitwpos() [1/2]

◆ bitwpos() [2/2]

size_t ByteBuffer::bitwpos ( size_t newPos)
inline

Definition at line 494 of file ByteBuffer.h.

References _bitpos, and _wpos.

◆ clear()

void ByteBuffer::clear ( )
inline

◆ contents() [1/2]

◆ contents() [2/2]

const uint8 * ByteBuffer::contents ( ) const
inline

Definition at line 607 of file ByteBuffer.h.

References _storage.

◆ empty()

bool ByteBuffer::empty ( ) const
inline

◆ FlushBits()

void ByteBuffer::FlushBits ( )
inline

Definition at line 154 of file ByteBuffer.h.

References _bitpos, _curbitval, and append().

Referenced by Pet::_LoadSpellCooldowns(), Guild::_SendBankContentUpdate(), CharacterBooster::_SendCharBoostPacket(), Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), InstanceMap::AddPlayerToMap(), append(), Player::BindToInstance(), BattlegroundMgr::BuildBattlegroundListPacket(), BattlegroundMgr::BuildBattlegroundStatusPacket(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), ChatHandler::BuildChatPacket(), Skyfire::BattlePetPackets::BuildFirstRoundPacket(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), Object::BuildMovementUpdate(), WorldStateBuilder::BuildPacket(), BuildPartyLockDungeonBlock(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuildPlayerTalentsInfoData(), Skyfire::BattlePetPackets::BuildPvpChallengePacket(), BattlegroundMgr::BuildPvpLogDataPacket(), Skyfire::BattlePetPackets::BuildQueueStatusPacket(), Skyfire::BattlePetPackets::BuildRequestFailedPacket(), Skyfire::BattlePetPackets::BuildRoundResultPacket(), Skyfire::SpellBook::BuildSupercededSpellPacket(), Group::ChangeLeader(), Player::CharmSpellInitialize(), AuraApplication::ClientUpdate(), Unit::DealMeleeDamage(), Player::DuelComplete(), Spell::EffectDispel(), boss_ossirian::boss_ossirianAI::EnterCombat(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleBuyItemOpcode(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleChallengeModeRequestLeaders(), WorldSession::HandleChallengeModeRequestMapStats(), WorldSession::HandleCharEnum(), WorldSession::HandleCreatureQueryOpcode(), WorldSession::HandleGetChallengeModeRewards(), WorldSession::HandleGetMailList(), WorldSession::HandleGMResponseResolve(), WorldSession::HandleGMTicketCaseStatusOpcode(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGroupEveryoneIsAssistantOpcode(), WorldSession::HandleGuildBankTabNote(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), WorldSession::HandleGuildRewardsQueryOpcode(), Guild::HandleInviteMember(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), message_commandscript::HandleNotifyCommand(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePageTextQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), Guild::HandleQuery(), WorldSession::HandleQueryNextMailTime(), WorldSession::HandleQuestNPCQuery(), WorldSession::HandleQuestPOIQuery(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRandomizeCharNameOpcode(), WorldSession::HandleRequestCategoryCooldowns(), WorldSession::HandleRequestPvpOptions(), Guild::HandleRoster(), Guild::HandleSetBankTabInfo(), Guild::HandleSetMemberNote(), WorldSession::HandleSetPartyAssignmentOpcode(), WorldSession::HandleSetPlayerDeclinedNames(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidSwapItem(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), Channel::JoinNotify(), Channel::LeaveNotify(), Guild::MassInviteToEvent(), Player::ModifyCurrency(), Group::OfflineReadyCheck(), InstanceMap::PermBindAllPlayers(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), Pet::ProhibitSpellSchool(), Player::ProhibitSpellSchool(), Player::RemovePet(), WorldSession::SendAccountDataTimes(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementInfo(), WorldSession::SendActivateTaxiReply(), WorldSession::SendAddonsInfo(), AchievementMgr< T >::SendAllAchievementData(), Unit::SendAttackStateUpdate(), Player::SendAttackSwingError(), WorldSession::SendAuctionCommandResult(), WorldSession::SendAuctionHello(), WorldSession::SendAuctionOwnerNotification(), Player::SendAurasForTarget(), WorldSession::SendAuthResponse(), WorldSession::SendAuthWaitQue(), World::SendAutoBroadcast(), Guild::SendBankList(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetJournal(), BattlePetMgr::SendBattlePetSlotUpdate(), BattlePetMgr::SendBattlePetUpdate(), WorldSession::SendBfEntered(), WorldSession::SendBfInvitePlayerToQueue(), WorldSession::SendBfQueueInviteResponse(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemove(), CalendarMgr::SendCalendarEventModeratorStatus(), CalendarMgr::SendCalendarEventRemovedAlert(), CalendarMgr::SendCalendarEventStatus(), CalendarMgr::SendCalendarEventUpdateAlert(), WorldSession::SendCalendarRaidLockout(), Player::SendCanTakeQuestResponse(), Spell::SendCastResult(), Player::SendClearAllCooldowns(), Player::SendClearCooldown(), Player::SendComboPoints(), Guild::SendCommandResult(), AchievementMgr< Guild >::SendCriteriaUpdate(), Player::SendCurrencies(), GameObject::SendCustomAnim(), Player::SendDeclineGuildInvitation(), Object::SendDestroyObject(), Unit::SendEnergizeSpellLog(), WorldSession::SendFeatureSystemStatusGlueScreen(), WeatherMgr::SendFineWeatherUpdateToPlayer(), ReputationMgr::SendForceReactions(), TicketMgr::SendGmResponsee(), TicketMgr::SendGmTicket(), PlayerMenu::SendGossipMenu(), WorldSession::SendGroupInviteNotification(), Guild::SendGuildRankInfo(), Guild::SendGuildRanksUpdate(), Unit::SendHealSpellLog(), Player::SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), Player::SendInitialSpells(), Player::SendInspectResult(), Player::SendInstanceResetWarning(), WorldSession::SendItemEnchantTimeUpdate(), Player::SendItemRefundResult(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgJoinResult(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), WorldSession::SendLfgRoleChosen(), WorldSession::SendLfgTeleportError(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendLfgUpdateStatus(), WorldSession::SendLoadCUFProfiles(), Spell::SendLogExecute(), Group::SendLooter(), Unit::SendMeleeAttackStop(), Player::SendMirrorTimer(), WorldSession::SendNameQueryOpcode(), Player::SendNewCurrency(), Player::SendNewItem(), Guild::SendNewsUpdate(), WorldSession::SendNotification(), WorldSession::SendNotification(), Unit::SendPeriodicAuraLog(), Guild::SendPermissions(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetitionSignResults(), WorldSession::SendPetNameInvalid(), WorldSession::SendPetNameQuery(), WorldSession::SendPlayerAmbiguousNotice(), WorldSession::SendPlayerNotFoundNotice(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestGiverStatus(), WorldSession::SendQuestgiverStatusMultiple(), PlayerMenu::SendQuestQueryResponse(), Player::SendQuestReward(), Player::SendRaidInfo(), WorldSession::SendRealmNameQueryOpcode(), WorldSession::SendReforgeResult(), Player::SendRefundInfo(), Player::SendRemoveControlBar(), Player::SendResearchHistory(), Player::SendResetInstanceFailed(), Player::SendSpellCooldown(), Player::SendSpellCooldowns(), Unit::SendSpellDamageImmune(), Spell::SendSpellGo(), Unit::SendSpellMiss(), Unit::SendSpellNonMeleeDamageLog(), Spell::SendSpellStart(), ReputationMgr::SendState(), Player::SendSurveyCastInfo(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), Guild::BankTab::SendText(), Unit::SendThreatListUpdate(), WorldSession::SendTimezoneInformation(), WorldSession::SendTradeStatus(), WorldSession::SendTrainerList(), Player::SendTransferAborted(), Group::SendUpdateToPlayer(), WorldSession::SendUpdateTrade(), boss_earthrager_ptah::boss_earthrager_ptahAI::SendWeather(), boss_the_lich_king::boss_the_lich_kingAI::SendWeather(), Weather::SendWeatherUpdateToPlayer(), Player::SetBindPoint(), Guild::SetName(), Unit::SetPower(), Weather::UpdateWeather(), Player::VehicleSpellInitialize(), LootView::WriteData(), Movement::PacketBuilder::WriteMonsterMove(), Unit::WriteMovementInfo(), Guild::LogHolder::WritePacket(), Guild::NewsLogEntry::WritePacket(), and Movement::PacketBuilder::WriteStopMovement().

◆ hexlike()

◆ operator<<() [1/11]

ByteBuffer & ByteBuffer::operator<< ( const std::string & value)
inline

Definition at line 364 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [2/11]

ByteBuffer & ByteBuffer::operator<< ( double value)
inline

Definition at line 358 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [3/11]

ByteBuffer & ByteBuffer::operator<< ( float value)
inline

Definition at line 352 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [4/11]

ByteBuffer & ByteBuffer::operator<< ( int16 value)
inline

Definition at line 333 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [5/11]

ByteBuffer & ByteBuffer::operator<< ( int32 value)
inline

Definition at line 339 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [6/11]

ByteBuffer & ByteBuffer::operator<< ( int64 value)
inline

Definition at line 345 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [7/11]

ByteBuffer & ByteBuffer::operator<< ( int8 value)
inline

Definition at line 327 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [8/11]

ByteBuffer & ByteBuffer::operator<< ( uint16 value)
inline

Definition at line 308 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [9/11]

ByteBuffer & ByteBuffer::operator<< ( uint32 value)
inline

Definition at line 314 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [10/11]

ByteBuffer & ByteBuffer::operator<< ( uint64 value)
inline

Definition at line 320 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator<<() [11/11]

ByteBuffer & ByteBuffer::operator<< ( uint8 value)
inline

Definition at line 302 of file ByteBuffer.h.

References append(), and ByteBuffer().

◆ operator>>() [1/12]

ByteBuffer & ByteBuffer::operator>> ( bool & value)
inline

Definition at line 372 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [2/12]

ByteBuffer & ByteBuffer::operator>> ( double & value)
inline

Definition at line 435 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [3/12]

ByteBuffer & ByteBuffer::operator>> ( float & value)
inline

Definition at line 427 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [4/12]

ByteBuffer & ByteBuffer::operator>> ( int16 & value)
inline

Definition at line 409 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [5/12]

ByteBuffer & ByteBuffer::operator>> ( int32 & value)
inline

Definition at line 415 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [6/12]

ByteBuffer & ByteBuffer::operator>> ( int64 & value)
inline

Definition at line 421 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [7/12]

ByteBuffer & ByteBuffer::operator>> ( int8 & value)
inline

Definition at line 403 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [8/12]

ByteBuffer & ByteBuffer::operator>> ( std::string & value)
inline

Definition at line 443 of file ByteBuffer.h.

References ByteBuffer(), clear(), read(), rpos(), and size().

◆ operator>>() [9/12]

ByteBuffer & ByteBuffer::operator>> ( uint16 & value)
inline

Definition at line 384 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [10/12]

ByteBuffer & ByteBuffer::operator>> ( uint32 & value)
inline

Definition at line 390 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [11/12]

ByteBuffer & ByteBuffer::operator>> ( uint64 & value)
inline

Definition at line 396 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator>>() [12/12]

ByteBuffer & ByteBuffer::operator>> ( uint8 & value)
inline

Definition at line 378 of file ByteBuffer.h.

References ByteBuffer(), and read().

◆ operator[]() [1/2]

uint8 & ByteBuffer::operator[] ( size_t const pos)
inline

Definition at line 456 of file ByteBuffer.h.

References _storage, and size().

◆ operator[]() [2/2]

uint8 const & ByteBuffer::operator[] ( size_t const pos) const
inline

Definition at line 463 of file ByteBuffer.h.

References _storage, and size().

◆ print_storage()

void ByteBuffer::print_storage ( ) const

Definition at line 37 of file ByteBuffer.cpp.

References LOG_LEVEL_TRACE, read(), SF_LOG_TRACE, size(), and sLog.

Referenced by WorldSession::LogUnprocessedTail().

◆ put() [1/2]

void ByteBuffer::put ( size_t pos,
const uint8 * src,
size_t cnt )
inline

Definition at line 707 of file ByteBuffer.h.

References _storage, _wpos, and size().

◆ put() [2/2]

◆ PutBits()

◆ read() [1/4]

◆ read() [2/4]

template<typename T>
T ByteBuffer::read ( size_t pos) const
inline

Definition at line 518 of file ByteBuffer.h.

References _storage, EndianConvert(), and size().

◆ read() [3/4]

template<size_t Size>
void ByteBuffer::read ( std::array< uint8, Size > & arr)
inline

Definition at line 536 of file ByteBuffer.h.

References read().

◆ read() [4/4]

void ByteBuffer::read ( uint8 * dest,
size_t len )
inline

Definition at line 527 of file ByteBuffer.h.

References _rpos, _storage, and size().

◆ read_skip() [1/4]

template<>
void ByteBuffer::read_skip ( )
inline

Definition at line 825 of file ByteBuffer.h.

References read_skip().

◆ read_skip() [2/4]

template<>
void ByteBuffer::read_skip ( )
inline

Definition at line 818 of file ByteBuffer.h.

◆ read_skip() [3/4]

◆ read_skip() [4/4]

void ByteBuffer::read_skip ( size_t skip)
inline

Definition at line 504 of file ByteBuffer.h.

References _rpos, and size().

◆ ReadBit()

bool ByteBuffer::ReadBit ( )
inline

Definition at line 180 of file ByteBuffer.h.

References _bitpos, _curbitval, and read().

Referenced by WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionSellItem(), WorldSocket::HandleAuthSession(), WorldSession::HandleAutoDeclineGuildInvites(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBattlePetModifyName(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleBfEntryInviteResponse(), WorldSession::HandleBfQueueInviteResponse(), WorldSession::HandleBuyItemOpcode(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCalendarEventSignup(), WorldSession::HandleCalendarUpdateEvent(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleDuelResponseOpcode(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupEveryoneIsAssistantOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankQueryTab(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleGuildBankUpdateTab(), WorldSession::HandleGuildFinderSetGuildPost(), WorldSession::HandleGuildNewsUpdateStickyOpcode(), WorldSession::HandleGuildQueryOpcode(), WorldSession::HandleGuildSetNoteOpcode(), WorldSession::HandleJoinChannel(), WorldSession::HandleLFDGetLockInfoOpcode(), WorldSession::HandleLfgJoinOpcode(), WorldSession::HandleLfgProposalResultOpcode(), WorldSession::HandleNameQueryOpcode(), WorldSession::HandleOptOutOfLootOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSaveCUFProfiles(), WorldSession::HandleSetPartyAssignmentOpcode(), WorldSession::HandleSetSheathedOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoiceSessionEnableOpcode(), WorldSession::HandleWhoOpcode(), Skyfire::BattlePetPackets::ReadBattlePetInput(), Skyfire::BattlePetPackets::ReadBattlePetRequestUpdate(), ReadBits(), ReadGuidMask(), Player::ReadMovementInfo(), and Movement::ExtraMovementStatusElement::ReadNextElement().

◆ ReadBits()

uint32 ByteBuffer::ReadBits ( size_t bits)
inline

Definition at line 198 of file ByteBuffer.h.

References ReadBit().

Referenced by BugTicket::BugTicket(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleAddonMessagechatOpcode(), WorldSession::HandleAddonRegisteredPrefixesOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionSellItem(), WorldSocket::HandleAuthSession(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlePetModifyName(), WorldSession::HandleBattlePetSetFlags(), WorldSession::HandleBuyItemOpcode(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCalendarUpdateEvent(), WorldSession::HandleChannelAnnouncements(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelList(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelOwner(), WorldSession::HandleChannelPassword(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), WorldSession::HandleChannelVoiceOnOpcode(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGMTicketUpdateOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGuildAddRankOpcode(), WorldSession::HandleGuildBankTabNote(), WorldSession::HandleGuildBankUpdateTab(), WorldSession::HandleGuildChangeInfoTextOpcode(), WorldSession::HandleGuildFinderAddApplication(), WorldSession::HandleGuildFinderSetGuildPost(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildMOTDOpcode(), WorldSession::HandleGuildSetAchievementTracking(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleGuildSetNoteOpcode(), WorldSession::HandleGuildSetRankPermissionsOpcode(), WorldSession::HandleJoinChannel(), WorldSession::HandleLearnTalentOpcode(), WorldSession::HandleLeaveChannel(), WorldSession::HandleLfgJoinOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandleQuestPOIQuery(), WorldSession::HandleRequestHotfix(), WorldSession::HandleSaveCUFProfiles(), WorldSession::HandleSetGuildBankTabText(), WorldSession::HandleSwapItem(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleUpdateAccountData(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleWhoOpcode(), Player::ReadMovementInfo(), Movement::ExtraMovementStatusElement::ReadNextElement(), and SuggestTicket::SuggestTicket().

◆ ReadByteSeq()

◆ ReadBytesSeq()

void ByteBuffer::ReadBytesSeq ( ObjectGuid & guid,
uint8 order[8] )
inline

Definition at line 208 of file ByteBuffer.h.

References ReadByteSeq().

◆ ReadGuidBytes()

template<typename... Offsets>
void ByteBuffer::ReadGuidBytes ( ObjectGuid & guid,
Offsets... offsets )
inline

Definition at line 256 of file ByteBuffer.h.

References ReadByteSeq().

Referenced by WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBattlePetDelete(), WorldSession::HandleBattlePetLearn(), WorldSession::HandleBattlePetSetBattleSlot(), WorldSession::HandleBattlePetSetFlags(), WorldSession::HandleBattlePetSummonCompanion(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleBfEntryInviteResponse(), WorldSession::HandleBfExitRequest(), WorldSession::HandleBfQueueInviteResponse(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketBidOnItem(), WorldSession::HandleBlackMarketHelloOpcode(), WorldSession::HandleBlackMarketRequestItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), WorldSession::HandleCalendarComplain(), WorldSession::HandleCalendarEventModeratorStatus(), WorldSession::HandleCalendarEventRemoveInvite(), WorldSession::HandleCalendarEventStatus(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleCorpseMapPositionQuery(), WorldSession::HandleDuelProposedOpcode(), WorldSession::HandleDuelResponseOpcode(), WorldSession::HandleEjectPassenger(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleGuildAssignRankOpcode(), WorldSession::HandleGuildBankBuyTab(), WorldSession::HandleGuildBankDepositMoney(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankQueryTab(), WorldSession::HandleGuildBankWithdrawMoney(), WorldSession::HandleGuildDemoteOpcode(), WorldSession::HandleGuildFinderAddApplication(), WorldSession::HandleGuildFinderDeclineRecruit(), WorldSession::HandleGuildFinderRemoveApplication(), WorldSession::HandleGuildNewsUpdateStickyOpcode(), WorldSession::HandleGuildPromoteOpcode(), WorldSession::HandleGuildQueryRanksOpcode(), WorldSession::HandleGuildQueryXPOpcode(), WorldSession::HandleGuildRemoveOpcode(), WorldSession::HandleGuildRequestMaxDailyXP(), WorldSession::HandleGuildRequestPartyState(), WorldSession::HandleGuildSetNoteOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleItemRefund(), WorldSession::HandleItemRefundInfoRequest(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgProposalResultOpcode(), WorldSession::HandleListInventoryOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootOpcode(), WorldSession::HandleLootReleaseOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleNameQueryOpcode(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePageTextQueryOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionDeclineOpcode(), WorldSession::HandlePetitionQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowListOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestPushResult(), WorldSession::HandleQuestQueryOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleReportPvPAFK(), WorldSession::HandleRequestHotfix(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldSession::HandleRequestStabledPetsOpcode(), WorldSession::HandleRespecWipeConfirmOpcode(), WorldSession::HandleRideVehicleInteract(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTaxiNodeStatusQueryOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), and Skyfire::BattlePetPackets::ReadBattlePetRequestUpdate().

◆ ReadGuidMask()

template<typename... Offsets>
void ByteBuffer::ReadGuidMask ( ObjectGuid & guid,
Offsets... offsets )
inline

Definition at line 240 of file ByteBuffer.h.

References ReadBit().

Referenced by WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBattlePetDelete(), WorldSession::HandleBattlePetLearn(), WorldSession::HandleBattlePetSetBattleSlot(), WorldSession::HandleBattlePetSetFlags(), WorldSession::HandleBattlePetSummonCompanion(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleBfEntryInviteResponse(), WorldSession::HandleBfExitRequest(), WorldSession::HandleBfQueueInviteResponse(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketBidOnItem(), WorldSession::HandleBlackMarketHelloOpcode(), WorldSession::HandleBlackMarketRequestItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), WorldSession::HandleCalendarComplain(), WorldSession::HandleCalendarEventModeratorStatus(), WorldSession::HandleCalendarEventRemoveInvite(), WorldSession::HandleCalendarEventStatus(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleCorpseMapPositionQuery(), WorldSession::HandleDuelProposedOpcode(), WorldSession::HandleDuelResponseOpcode(), WorldSession::HandleEjectPassenger(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleGuildAssignRankOpcode(), WorldSession::HandleGuildBankBuyTab(), WorldSession::HandleGuildBankDepositMoney(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankQueryTab(), WorldSession::HandleGuildBankWithdrawMoney(), WorldSession::HandleGuildDemoteOpcode(), WorldSession::HandleGuildFinderAddApplication(), WorldSession::HandleGuildFinderDeclineRecruit(), WorldSession::HandleGuildFinderRemoveApplication(), WorldSession::HandleGuildNewsUpdateStickyOpcode(), WorldSession::HandleGuildPromoteOpcode(), WorldSession::HandleGuildQueryRanksOpcode(), WorldSession::HandleGuildQueryXPOpcode(), WorldSession::HandleGuildRemoveOpcode(), WorldSession::HandleGuildRequestMaxDailyXP(), WorldSession::HandleGuildRequestPartyState(), WorldSession::HandleGuildSetNoteOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleItemRefund(), WorldSession::HandleItemRefundInfoRequest(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgProposalResultOpcode(), WorldSession::HandleListInventoryOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootOpcode(), WorldSession::HandleLootReleaseOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleNameQueryOpcode(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePageTextQueryOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionDeclineOpcode(), WorldSession::HandlePetitionQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowListOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestPushResult(), WorldSession::HandleQuestQueryOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleReportPvPAFK(), WorldSession::HandleRequestHotfix(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldSession::HandleRequestStabledPetsOpcode(), WorldSession::HandleRespecWipeConfirmOpcode(), WorldSession::HandleRideVehicleInteract(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTaxiNodeStatusQueryOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), and Skyfire::BattlePetPackets::ReadBattlePetRequestUpdate().

◆ ReadPackedTime() [1/2]

uint32 ByteBuffer::ReadPackedTime ( )
inline

◆ ReadPackedTime() [2/2]

ByteBuffer & ByteBuffer::ReadPackedTime ( uint32 & time)
inline

Definition at line 599 of file ByteBuffer.h.

References ByteBuffer(), and ReadPackedTime().

◆ readPackGUID()

void ByteBuffer::readPackGUID ( uint64 & guid)
inline

Definition at line 541 of file ByteBuffer.h.

References _rpos, rpos(), and size().

Referenced by WorldSession::HandleCalendarAddEvent(), and SpellCastTargets::Read().

◆ ReadString()

std::string ByteBuffer::ReadString ( size_t length)
inline

Definition at line 565 of file ByteBuffer.h.

References read().

Referenced by BugTicket::BugTicket(), WorldSession::HandleAddonMessagechatOpcode(), WorldSession::HandleAddonRegisteredPrefixesOpcode(), WorldSession::HandleAuctionListItems(), WorldSocket::HandleAuthSession(), WorldSession::HandleBattlePetModifyName(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCalendarUpdateEvent(), WorldSession::HandleChannelAnnouncements(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelList(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelOwner(), WorldSession::HandleChannelPassword(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), WorldSession::HandleChannelVoiceOnOpcode(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGMTicketUpdateOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGuildAddRankOpcode(), WorldSession::HandleGuildBankTabNote(), WorldSession::HandleGuildBankUpdateTab(), WorldSession::HandleGuildChangeInfoTextOpcode(), WorldSession::HandleGuildFinderAddApplication(), WorldSession::HandleGuildFinderSetGuildPost(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildMOTDOpcode(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleGuildSetNoteOpcode(), WorldSession::HandleGuildSetRankPermissionsOpcode(), WorldSession::HandleJoinChannel(), WorldSession::HandleLeaveChannel(), WorldSession::HandleLfgJoinOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandleSaveCUFProfiles(), WorldSession::HandleSetGuildBankTabText(), WorldSession::HandleWhoOpcode(), and SuggestTicket::SuggestTicket().

◆ reserve()

void ByteBuffer::reserve ( size_t ressize)
inline

Definition at line 619 of file ByteBuffer.h.

References _storage, and size().

Referenced by ByteBuffer(), and WorldSession::HandleCharEnum().

◆ resize()

◆ rfinish()

void ByteBuffer::rfinish ( )
inline

Definition at line 478 of file ByteBuffer.h.

References _rpos, and wpos().

Referenced by WorldSession::HandleAddonRegisteredPrefixesOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleCalendarRemoveEvent(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleCharCustomize(), WorldSession::HandleDismissControlledVehicle(), WorldSession::HandleEjectPassenger(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleFeatherFallAck(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleGuildQueryNewsOpcode(), WorldSession::HandleGuildRosterOpcode(), WorldSession::HandleGuildSetAchievementTracking(), WorldSession::HandleGuildSetRankPermissionsOpcode(), WorldSession::HandleLfgJoinOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMoveGravityAck(), WorldSession::HandleMoveRootAck(), WorldSession::HandleMoveSetCanTurnWhileFallingAck(), WorldSession::HandleMoveUnRootAck(), WorldSession::HandleQuestPOIQuery(), WorldSession::HandleRequestHotfix(), WorldSession::HandleSaveCUFProfiles(), WorldSession::HandleSendMail(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleUpdateAccountData(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleVoidStorageTransfer(), and WorldSocket::ProcessIncoming().

◆ rpos() [1/2]

◆ rpos() [2/2]

size_t ByteBuffer::rpos ( size_t rpos_)
inline

Definition at line 472 of file ByteBuffer.h.

References _rpos.

◆ size()

size_t ByteBuffer::size ( ) const
inline

Definition at line 609 of file ByteBuffer.h.

References _storage.

Referenced by AuthSocket::_HandleLogonChallenge(), AuthSocket::_HandleRealmList(), AuthSocket::_HandleReconnectChallenge(), AuthSocket::_HandleReconnectProof(), append(), appendPackGUID(), AddonHandler::BuildAddonPacket(), WorldSession::BuildPartyMemberStatsChangedPacket(), WorldSession::DosProtection::EvaluateOpcode(), LuaPacket::GetSize(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandleCharEnum(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfrJoinOpcode(), WorldSession::HandleLfrLeaveOpcode(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleRequestHotfix(), WorldSession::HandleUseItemOpcode(), WorldSession::HandleWardenDataOpcode(), hexlike(), Skyfire::PacketLogServer::LogBinaryPacket(), PacketLog::LogPacket(), PacketLog::LogPacket(), operator<<(), operator<<(), operator<<(), operator>>(), operator[](), operator[](), print_storage(), put(), PutBits(), read(), read(), read_skip(), WorldSession::ReadAddonsInfo(), Skyfire::BattlePetPackets::ReadBattlePetRequestUpdate(), readPackGUID(), WardenMac::RequestData(), WardenWin::RequestData(), reserve(), resize(), Unit::SendAttackStateUpdate(), WorldSession::SendBroadcastText(), Player::SendComboPoints(), WorldSession::SendListInventory(), WorldSession::SendPacket(), WorldSocket::SendPacket(), and textlike().

◆ textlike()

void ByteBuffer::textlike ( ) const

Definition at line 51 of file ByteBuffer.cpp.

References LOG_LEVEL_TRACE, read(), SF_LOG_TRACE, size(), and sLog.

◆ wpos() [1/2]

◆ wpos() [2/2]

size_t ByteBuffer::wpos ( size_t wpos_)
inline

Definition at line 485 of file ByteBuffer.h.

References _wpos.

◆ WriteBit()

bool ByteBuffer::WriteBit ( uint32 bit)
inline

Definition at line 164 of file ByteBuffer.h.

References _bitpos, _curbitval, and append().

Referenced by Pet::_LoadSpellCooldowns(), Guild::_SendBankContentUpdate(), CharacterBooster::_SendCharBoostPacket(), Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), InstanceMap::AddPlayerToMap(), Player::BindToInstance(), BattlegroundMgr::BuildBattlegroundListPacket(), BattlegroundMgr::BuildBattlegroundStatusPacket(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), ChatHandler::BuildChatPacket(), Player::BuildEnumData(), Skyfire::BattlePetPackets::BuildFinalizeLocationPacket(), Skyfire::BattlePetPackets::BuildFinalRoundPacket(), Skyfire::BattlePetPackets::BuildFirstRoundPacket(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), Object::BuildMovementUpdate(), BuildPartyLockDungeonBlock(), WorldSession::BuildPartyMemberStatsChangedPacket(), BattlegroundMgr::BuildPlayerJoinedBattlegroundPacket(), BattlegroundMgr::BuildPlayerLeftBattlegroundPacket(), Skyfire::BattlePetPackets::BuildPvpChallengePacket(), BattlegroundMgr::BuildPvpLogDataPacket(), Skyfire::BattlePetPackets::BuildQueueStatusPacket(), Skyfire::BattlePetPackets::BuildRequestFailedPacket(), Skyfire::BattlePetPackets::BuildRoundResultPacket(), BattlegroundMgr::BuildStatusFailedPacket(), BattlegroundMgr::BuildUpdateWorldStatePacket(), Player::CharmSpellInitialize(), AuraApplication::ClientUpdate(), Unit::DealMeleeDamage(), instance_deadmines::instance_deadmines_InstanceMapScript::DoPlaySound(), Player::DuelComplete(), Spell::EffectDispel(), Spell::EffectInstaKill(), Spell::EffectPlaySound(), boss_ossirian::boss_ossirianAI::EnterCombat(), Player::EnvironmentalDamage(), Player::EquipItem(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCharEnum(), WorldSession::HandleCorpseQueryOpcode(), WorldSession::HandleCreatureQueryOpcode(), spell_gen_spirit_healer_res::spell_gen_spirit_healer_res_SpellScript::HandleDummy(), WorldSession::HandleGameObjectQueryOpcode(), WorldSession::HandleGetMailList(), WorldSession::HandleGMResponseResolve(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetApplications(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleNpcTextQueryOpcode(), WorldSession::HandlePageTextQueryOpcode(), misc_commandscript::HandlePlayAllCommand(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), Guild::HandleQuery(), WorldSession::HandleQueryNextMailTime(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRandomizeCharNameOpcode(), WorldSession::HandleRequestPvpOptions(), Guild::HandleRoster(), Guild::HandleSetMemberNote(), WorldSession::HandleSetPlayerDeclinedNames(), WorldSession::HandleVoidSwapItem(), WorldSession::HandleWhoOpcode(), Unit::Kill(), Player::learnSpell(), Guild::MassInviteToEvent(), Player::ModifyCurrency(), Group::OfflineReadyCheck(), Skyfire::EmoteChatBuilder::operator()(), InstanceMap::PermBindAllPlayers(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), Pet::ProhibitSpellSchool(), Player::ProhibitSpellSchool(), Player::RemovePet(), AchievementMgr< Guild >::Reset(), WorldSession::SendAccountDataTimes(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementInfo(), Player::SendActionButtons(), WorldSession::SendAddonsInfo(), AchievementMgr< T >::SendAllAchievementData(), Unit::SendAttackStateUpdate(), WorldSession::SendAuctionCommandResult(), WorldSession::SendAuctionHello(), WorldSession::SendAuctionOwnerNotification(), Player::SendAurasForTarget(), WorldSession::SendAuthResponse(), WorldSocket::SendAuthResponseError(), WorldSession::SendAuthWaitQue(), Guild::SendBankList(), Guild::SendBankLog(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetJournal(), BattlePetMgr::SendBattlePetSlotUpdate(), BattlePetMgr::SendBattlePetUpdate(), WorldSession::SendBfEntered(), WorldSession::SendBfInvitePlayerToQueue(), WorldSession::SendBfLeaveMessage(), WorldSession::SendBfQueueInviteResponse(), WorldSession::SendBlackMarketHello(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemove(), CalendarMgr::SendCalendarEventModeratorStatus(), CalendarMgr::SendCalendarEventRemovedAlert(), CalendarMgr::SendCalendarEventStatus(), CalendarMgr::SendCalendarEventUpdateAlert(), WorldSession::SendCalendarRaidLockout(), Player::SendCanTakeQuestResponse(), Spell::SendCastResult(), Unit::SendChangeCurrentVictimOpcode(), Spell::SendChannelStart(), Player::SendClearAllCooldowns(), Player::SendClearCooldown(), Player::SendComboPoints(), Player::SendCorpseReclaimDelay(), AchievementMgr< Guild >::SendCriteriaUpdate(), AchievementMgr< Guild >::SendCriteriaUpdate(), Player::SendCurrencies(), GameObject::SendCustomAnim(), Player::SendDeclineGuildInvitation(), Object::SendDestroyObject(), Unit::SendEnergizeSpellLog(), Player::SendEquipmentSetList(), WorldSession::SendFeatureSystemStatusGlueScreen(), WeatherMgr::SendFineWeatherUpdateToPlayer(), Player::SendGameError(), TicketMgr::SendGmResponsee(), TicketMgr::SendGmTicket(), PlayerMenu::SendGossipMenu(), WorldSession::SendGroupInviteNotification(), Guild::SendGuildRanksUpdate(), Unit::SendHealSpellLog(), Player::SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), Player::SendInitialSpells(), Player::SendInspectResult(), Player::SendInstanceResetWarning(), WorldSession::SendItemEnchantTimeUpdate(), Player::SendItemRefundResult(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), WorldSession::SendLfgRoleChosen(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendLfgUpdateStatus(), WorldSession::SendListInventory(), WorldSession::SendLoadCUFProfiles(), Spell::SendLogExecute(), Player::SendLogXPGain(), Group::SendLooter(), Unit::SendMeleeAttackStart(), Unit::SendMeleeAttackStop(), Player::SendMirrorTimer(), Unit::SendMissileCancel(), WorldSession::SendNameQueryOpcode(), Player::SendNewCurrency(), Player::SendNewItem(), Guild::SendNewsUpdate(), Player::SendNotifyLootItemRemoved(), Unit::SendPeriodicAuraLog(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetNameInvalid(), WorldSession::SendPetNameQuery(), WorldObject::SendPlaySound(), Unit::SendPlaySpellVisual(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), WorldSession::SendQuestgiverStatusMultiple(), PlayerMenu::SendQuestQueryResponse(), Player::SendQuestReward(), Player::SendRaidInfo(), WorldSession::SendRealmNameQueryOpcode(), WorldSession::SendReforgeResult(), Player::SendRefundInfo(), Player::SendRemoveControlBar(), Spell::SendResurrectRequest(), CreatureTextMgr::SendSound(), Player::SendSpellCooldown(), Player::SendSpellCooldowns(), Unit::SendSpellDamageImmune(), Spell::SendSpellGo(), Unit::SendSpellMiss(), Unit::SendSpellNonMeleeDamageLog(), Spell::SendSpellStart(), ReputationMgr::SendState(), Player::SendSurveyCastInfo(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), WorldSession::SendTradeStatus(), Player::SendTransferAborted(), Group::SendUpdateToPlayer(), WorldSession::SendUpdateTrade(), Player::SendUpdateWorldState(), boss_earthrager_ptah::boss_earthrager_ptahAI::SendWeather(), boss_the_lich_king::boss_the_lich_kingAI::SendWeather(), Weather::SendWeatherUpdateToPlayer(), Player::SetBindPoint(), Player::SetClientControl(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), Player::SetEquipmentSet(), Unit::SetPower(), Player::TeleportTo(), Weather::UpdateWeather(), Player::VehicleSpellInitialize(), LootItem::WriteBitDataPart(), WriteBits(), Movement::PacketBuilder::WriteCreateBits(), LootView::WriteData(), WriteGuidMask(), Movement::PacketBuilder::WriteMonsterMove(), Unit::WriteMovementInfo(), Movement::ExtraMovementStatusElement::WriteNextElement(), Guild::BankEventLogEntry::WritePacket(), Guild::NewsLogEntry::WritePacket(), and Movement::PacketBuilder::WriteStopMovement().

◆ WriteBits()

template<typename T>
void ByteBuffer::WriteBits ( T value,
size_t bits )
inline

Definition at line 192 of file ByteBuffer.h.

References WriteBit().

Referenced by Pet::_LoadSpellCooldowns(), Guild::_SendBankContentUpdate(), CharacterBooster::_SendCharBoostPacket(), Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), Guild::AddGuildNews(), Player::addSpell(), Player::AddSpellMod(), AppendBits(), BattlegroundMgr::BuildBattlegroundListPacket(), BlackMarketMgr::BuildBlackMarketRequestItemsResult(), ChatHandler::BuildChatPacket(), Player::BuildEnumData(), Skyfire::BattlePetPackets::BuildFinalRoundPacket(), Skyfire::BattlePetPackets::BuildFirstRoundPacket(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), Object::BuildMovementUpdate(), WorldStateBuilder::BuildPacket(), BuildPartyLockDungeonBlock(), Player::BuildPlayerTalentsInfoData(), BattlegroundMgr::BuildPlaySoundPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), Skyfire::BattlePetPackets::BuildQueueStatusPacket(), Skyfire::BattlePetPackets::BuildRoundResultPacket(), Skyfire::SpellBook::BuildSupercededSpellPacket(), Group::ChangeLeader(), Player::CharmSpellInitialize(), AuraApplication::ClientUpdate(), Battlefield::DoPlaySoundToAll(), Player::DuelComplete(), Spell::EffectDispel(), Player::EquipItem(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleChallengeModeRequestLeaders(), WorldSession::HandleChallengeModeRequestMapStats(), WorldSession::HandleCharEnum(), WorldSession::HandleCorpseQueryOpcode(), WorldSession::HandleCreatureQueryOpcode(), WorldSession::HandleGetChallengeModeRewards(), WorldSession::HandleGetMailList(), WorldSession::HandleGMTicketCaseStatusOpcode(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetApplications(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), WorldSession::HandleGuildRewardsQueryOpcode(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), WorldSession::HandleMirrorImageDataRequest(), Guild::HandleNewsSetSticky(), message_commandscript::HandleNotifyCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePageTextQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePlayerLogin(), Guild::HandleQuery(), WorldSession::HandleQueryNextMailTime(), WorldSession::HandleQuestNPCQuery(), WorldSession::HandleQuestPOIQuery(), WorldSession::HandleRandomizeCharNameOpcode(), WorldSession::HandleRealmSplitOpcode(), WorldSession::HandleRequestAccountData(), WorldSession::HandleRequestCategoryCooldowns(), WorldSession::HandleRequestCemeteryList(), Guild::HandleRoster(), Guild::HandleSetBankTabInfo(), Guild::HandleSetMemberNote(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), Channel::JoinNotify(), Player::learnSpell(), Channel::LeaveNotify(), Guild::MassInviteToEvent(), Group::MasterLoot(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), Pet::ProhibitSpellSchool(), Player::ProhibitSpellSchool(), Player::RemovePet(), Player::removeSpell(), Player::ResyncRunes(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementInfo(), WorldSession::SendActivateTaxiReply(), WorldSession::SendAddonsInfo(), AchievementMgr< T >::SendAllAchievementData(), AchievementMgr< Guild >::SendAllAchievementData(), Player::SendAttackSwingError(), Player::SendAurasForTarget(), WorldSession::SendAuthResponse(), World::SendAutoBroadcast(), Guild::SendBankList(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetJournal(), BattlePetMgr::SendBattlePetSlotUpdate(), BattlePetMgr::SendBattlePetUpdate(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), Player::SendClearAllCooldowns(), Guild::SendCommandResult(), AchievementMgr< Guild >::SendCriteriaUpdate(), Player::SendCurrencies(), Player::SendDeclineGuildInvitation(), Player::SendEquipError(), Player::SendEquipmentSetList(), ReputationMgr::SendForceReactions(), TicketMgr::SendGmResponsee(), TicketMgr::SendGmTicket(), PlayerMenu::SendGossipMenu(), WorldSession::SendGroupInviteNotification(), Guild::SendGuildRankInfo(), Player::SendInitialPacketsBeforeAddToMap(), Player::SendInitialSpells(), Player::SendInspectResult(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgJoinResult(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), WorldSession::SendLfgTeleportError(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendLfgUpdateStatus(), WorldSession::SendListInventory(), WorldSession::SendLoadCUFProfiles(), Spell::SendLogExecute(), WorldSession::SendNameQueryOpcode(), Player::SendNewCurrency(), Guild::SendNewsUpdate(), WorldSession::SendNotification(), WorldSession::SendNotification(), Unit::SendPeriodicAuraLog(), Guild::SendPermissions(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetitionSignResults(), WorldSession::SendPetNameInvalid(), WorldSession::SendPetNameQuery(), WorldSession::SendPlayerAmbiguousNotice(), WorldSession::SendPlayerNotFoundNotice(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), WorldSession::SendQuestgiverStatusMultiple(), PlayerMenu::SendQuestQueryResponse(), Player::SendRaidInfo(), WorldSession::SendRealmNameQueryOpcode(), Player::SendRemoveControlBar(), Player::SendResearchHistory(), Player::SendResetInstanceFailed(), Spell::SendResurrectRequest(), Player::SendSpellCooldown(), Player::SendSpellCooldowns(), Spell::SendSpellGo(), Unit::SendSpellMiss(), Spell::SendSpellStart(), ReputationMgr::SendState(), Group::SendTargetIconList(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), Guild::BankTab::SendText(), Unit::SendThreatListUpdate(), WorldSession::SendTimezoneInformation(), WorldSession::SendTradeStatus(), WorldSession::SendTrainerList(), Player::SendTransferAborted(), Group::SendUpdateToPlayer(), WorldSession::SendUpdateTrade(), Guild::SetName(), Unit::SetPower(), Player::VehicleSpellInitialize(), LootItem::WriteBitDataPart(), Movement::PacketBuilder::WriteCreateBits(), LootView::WriteData(), Movement::PacketBuilder::WriteMonsterMove(), Unit::WriteMovementInfo(), Movement::ExtraMovementStatusElement::WriteNextElement(), Guild::LogHolder::WritePacket(), Guild::NewsLogEntry::WritePacket(), and Movement::PacketBuilder::WriteStopMovement().

◆ WriteByteSeq()

void ByteBuffer::WriteByteSeq ( uint8 b)
inline

Definition at line 227 of file ByteBuffer.h.

References append().

Referenced by Pet::_LoadSpellCooldowns(), Guild::_SendSetNewGuildMaster(), BattlegroundMgr::BuildBattlegroundListPacket(), BattlegroundMgr::BuildBattlegroundStatusPacket(), ChatHandler::BuildChatPacket(), Player::BuildEnumData(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), Object::BuildMovementUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), BattlegroundMgr::BuildPlayerJoinedBattlegroundPacket(), BattlegroundMgr::BuildPlayerLeftBattlegroundPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), BattlegroundMgr::BuildStatusFailedPacket(), Player::CharmSpellInitialize(), AuraApplication::ClientUpdate(), instance_deadmines::instance_deadmines_InstanceMapScript::DoPlaySound(), Spell::EffectInstaKill(), Spell::EffectPlaySound(), Player::EnvironmentalDamage(), Player::EquipItem(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleCalendarGetCalendar(), spell_gen_spirit_healer_res::spell_gen_spirit_healer_res_SpellScript::HandleDummy(), WorldSession::HandleGetMailList(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetApplications(), WorldSession::HandleGuildFinderGetRecruits(), Guild::HandleInviteMember(), WorldSession::HandleMirrorImageDataRequest(), misc_commandscript::HandlePlayAllCommand(), Guild::HandleQuery(), WorldSession::HandleQueryNextMailTime(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), Guild::HandleRoster(), Guild::HandleSetMemberNote(), WorldSession::HandleWhoOpcode(), Unit::Kill(), Guild::MassInviteToEvent(), Group::OfflineReadyCheck(), Skyfire::EmoteChatBuilder::operator()(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), Pet::ProhibitSpellSchool(), Player::ProhibitSpellSchool(), Player::RemovePet(), AchievementMgr< Guild >::Reset(), AchievementMgr< Guild >::SendAchievementInfo(), Player::SendActionButtons(), AchievementMgr< T >::SendAllAchievementData(), WorldSession::SendAuctionCommandResult(), WorldSession::SendAuctionHello(), Player::SendAurasForTarget(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetJournal(), BattlePetMgr::SendBattlePetSlotUpdate(), BattlePetMgr::SendBattlePetUpdate(), WorldSession::SendBfEntered(), WorldSession::SendBfInvitePlayerToQueue(), WorldSession::SendBfQueueInviteResponse(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemove(), CalendarMgr::SendCalendarEventModeratorStatus(), CalendarMgr::SendCalendarEventStatus(), WorldSession::SendCalendarRaidLockout(), Unit::SendChangeCurrentVictimOpcode(), Spell::SendChannelStart(), Player::SendClearAllCooldowns(), Player::SendComboPoints(), AchievementMgr< Guild >::SendCriteriaUpdate(), AchievementMgr< Guild >::SendCriteriaUpdate(), GameObject::SendCustomAnim(), Unit::SendEnergizeSpellLog(), Player::SendEquipmentSetList(), WorldSession::SendGroupInviteNotification(), Guild::SendGuildRanksUpdate(), Player::SendInspectResult(), WorldSession::SendItemEnchantTimeUpdate(), WorldSession::SendListInventory(), Player::SendLogXPGain(), Group::SendLooter(), Unit::SendMeleeAttackStart(), Unit::SendMeleeAttackStop(), WorldSession::SendNameQueryOpcode(), Guild::SendNewsUpdate(), Player::SendNotifyLootItemRemoved(), WorldObject::SendPlaySound(), Unit::SendPlaySpellVisual(), Player::SendQuestConfirmAccept(), WorldSession::SendQuestgiverStatusMultiple(), Player::SendRefundInfo(), Player::SendRemoveControlBar(), Spell::SendResurrectRequest(), CreatureTextMgr::SendSound(), Spell::SendSpellGo(), Unit::SendSpellNonMeleeDamageLog(), Spell::SendSpellStart(), WorldSession::SendTaxiStatus(), Group::SendUpdateToPlayer(), WorldSession::SendUpdateTrade(), Player::SetBindPoint(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), Player::SetEquipmentSet(), Unit::SetPower(), Player::VehicleSpellInitialize(), WriteBytesSeq(), LootView::WriteData(), WriteGuidBytes(), Movement::PacketBuilder::WriteMonsterMove(), Unit::WriteMovementInfo(), Movement::ExtraMovementStatusElement::WriteNextElement(), Guild::BankEventLogEntry::WritePacket(), Guild::NewsLogEntry::WritePacket(), and Movement::PacketBuilder::WriteStopMovement().

◆ WriteBytesSeq()

void ByteBuffer::WriteBytesSeq ( ObjectGuid guid,
uint8 order[8] )
inline

Definition at line 221 of file ByteBuffer.h.

References WriteByteSeq().

◆ WriteGuidBytes()

template<typename... Offsets>
void ByteBuffer::WriteGuidBytes ( const ObjectGuid & guid,
Offsets... offsets )
inline

Definition at line 264 of file ByteBuffer.h.

References WriteByteSeq().

Referenced by CharacterBooster::_SendCharBoostPacket(), Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), Player::_StoreOrEquipNewItem(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), BuildPartyLockDungeonBlock(), Skyfire::PlayerPackets::BuildPreResurrectPacket(), Skyfire::BattlePetPackets::BuildPvpChallengePacket(), Skyfire::BattlePetPackets::BuildQueueStatusPacket(), Unit::DealMeleeDamage(), Spell::Delayed(), Unit::Dismount(), Spell::EffectDispel(), Spell::EffectDuel(), Spell::EffectForceDeselect(), Spell::EffectSummonPlayer(), Spell::ExecuteLogEffectInterruptCast(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleCorpseQueryOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectHonorStatsOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleMountSpecialAnimOpcode(), WorldSession::HandleMoveSetVehicleRecAck(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), AuraEffect::HandlePlayScene(), WorldSession::HandleRandomRollOpcode(), WorldSession::HandleRequestAccountData(), WorldSession::HandleSetPlayerDeclinedNames(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidSwapItem(), Channel::JoinNotify(), Unit::Kill(), Channel::LeaveNotify(), Group::MasterLoot(), GameObject::ModifyHealth(), WorldObject::PlayDistanceSound(), Unit::PlayOneShotAnimKit(), AchievementMgr< Guild >::RemoveCriteriaProgress(), Player::RewardHonor(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), Creature::SendAIReaction(), Battlefield::SendAreaSpiritHealerQueryOpcode(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), WorldSession::SendAuctionBidderNotification(), Player::SendAutoRepeatCancel(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetDeleted(), WorldSession::SendBfInvitePlayerToWar(), WorldSession::SendBfLeaveMessage(), WorldSession::SendBlackMarketHello(), Player::SendBuyFailed(), Spell::SendChannelUpdate(), Player::SendClearCooldown(), Unit::SendClearTarget(), Unit::SendClearThreatListOpcode(), Player::SendCooldownEvent(), WorldSession::SendCrossedInebriationThreshold(), Object::SendDestroyObject(), WorldSession::SendEnchantmentLog(), Player::SendEquipError(), PlayerMenu::SendGossipMenu(), Unit::SendHealSpellLog(), Player::SendInspectResult(), Spell::SendInterrupted(), WorldSession::SendItemExpirePurchaseRefund(), Player::SendItemRefundResult(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgJoinResult(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgQueueStatus(), WorldSession::SendLfgRoleCheckUpdate(), WorldSession::SendLfgRoleChosen(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendLfgUpdateStatus(), Spell::SendLogExecute(), Player::SendLootRelease(), Unit::SendMissileCancel(), WorldSession::SendModifyCooldown(), Unit::SendMoveKnockBack(), WorldSession::SendNameQueryOpcode(), Player::SendNewItem(), Player::SendNotifyLootMoneyRemoved(), WorldObject::SendObjectDeSpawnAnim(), WorldSession::SendPageText(), Unit::SendPeriodicAuraLog(), Unit::SendPetAIReaction(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetitionShowList(), WorldSession::SendPetitionSignResults(), Unit::SendPetTalk(), Unit::SendPlaySpellVisualKit(), Player::SendPushToPartyResponse(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestGiverStatus(), Player::SendQuestUpdateAddCredit(), Player::SendRaidInfo(), Group::SendReadyCheckCompleted(), Unit::SendRemoveFromThreatListOpcode(), WorldSession::SendRolePollInform(), Player::SendSellResponse(), WorldSession::SendSetPhaseShift(), Unit::SendSetVehicleRecId(), WorldSession::SendShowBank(), Player::SendSpellCooldown(), Player::SendSpellCooldowns(), Unit::SendSpellDamageImmune(), Unit::SendSpellMiss(), WorldSession::SendTabardVendorActivate(), Player::SendTalentWipeConfirm(), Group::SendTargetIconList(), WorldSession::SendTaxiMenu(), Unit::SendThreatListUpdate(), Item::SendTimeUpdate(), WorldSession::SendTotemCreated(), WorldSession::SendTrainerBuyFailed(), WorldSession::SendTrainerList(), WorldSession::SendUpdateSockets(), Player::SetClientControl(), Unit::SetHealth(), Player::SetMover(), Guild::SetName(), Group::SetTargetIcon(), Movement::PacketBuilder::WriteFacingTargetPart(), and Guild::EventLogEntry::WritePacket().

◆ WriteGuidMask()

template<typename... Offsets>
void ByteBuffer::WriteGuidMask ( const ObjectGuid & guid,
Offsets... offsets )
inline

Definition at line 248 of file ByteBuffer.h.

References WriteBit().

Referenced by CharacterBooster::_SendCharBoostPacket(), Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), Player::_StoreOrEquipNewItem(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), BuildPartyLockDungeonBlock(), Skyfire::PlayerPackets::BuildPreResurrectPacket(), Skyfire::BattlePetPackets::BuildPvpChallengePacket(), Skyfire::BattlePetPackets::BuildQueueStatusPacket(), Unit::DealMeleeDamage(), Spell::Delayed(), Unit::Dismount(), Spell::EffectBind(), Spell::EffectDispel(), Spell::EffectDuel(), Spell::EffectForceDeselect(), Spell::EffectSummonPlayer(), Spell::ExecuteLogEffectInterruptCast(), WorldSession::HandleBattleCharBoost(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleCorpseQueryOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectHonorStatsOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleMountSpecialAnimOpcode(), WorldSession::HandleMoveSetVehicleRecAck(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionShowSignOpcode(), AuraEffect::HandlePlayScene(), WorldSession::HandleRandomRollOpcode(), WorldSession::HandleRequestAccountData(), WorldSession::HandleSetPlayerDeclinedNames(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidSwapItem(), Channel::JoinNotify(), Unit::Kill(), Channel::LeaveNotify(), Group::MasterLoot(), GameObject::ModifyHealth(), WorldObject::PlayDistanceSound(), Unit::PlayOneShotAnimKit(), AchievementMgr< Guild >::RemoveCriteriaProgress(), Player::RewardHonor(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), Creature::SendAIReaction(), Battlefield::SendAreaSpiritHealerQueryOpcode(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), WorldSession::SendAuctionBidderNotification(), Player::SendAutoRepeatCancel(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetDeleted(), WorldSession::SendBfInvitePlayerToWar(), WorldSession::SendBfLeaveMessage(), WorldSession::SendBlackMarketHello(), Player::SendBuyFailed(), Spell::SendChannelUpdate(), Player::SendClearCooldown(), Unit::SendClearTarget(), Unit::SendClearThreatListOpcode(), Player::SendCooldownEvent(), WorldSession::SendCrossedInebriationThreshold(), Object::SendDestroyObject(), WorldSession::SendEnchantmentLog(), Player::SendEquipError(), PlayerMenu::SendGossipMenu(), Unit::SendHealSpellLog(), Player::SendInspectResult(), Spell::SendInterrupted(), WorldSession::SendItemExpirePurchaseRefund(), Player::SendItemRefundResult(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgJoinResult(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgQueueStatus(), WorldSession::SendLfgRoleCheckUpdate(), WorldSession::SendLfgRoleChosen(), WorldSession::SendLfgUpdateProposal(), WorldSession::SendLfgUpdateStatus(), Spell::SendLogExecute(), Player::SendLootRelease(), Unit::SendMissileCancel(), WorldSession::SendModifyCooldown(), Unit::SendMoveKnockBack(), WorldSession::SendNameQueryOpcode(), Player::SendNewItem(), Player::SendNotifyLootMoneyRemoved(), WorldObject::SendObjectDeSpawnAnim(), WorldSession::SendPageText(), Unit::SendPeriodicAuraLog(), Unit::SendPetAIReaction(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetitionShowList(), WorldSession::SendPetitionSignResults(), Unit::SendPetTalk(), Unit::SendPlaySpellVisualKit(), Player::SendPushToPartyResponse(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestGiverStatus(), Player::SendQuestUpdateAddCredit(), Player::SendRaidInfo(), Group::SendReadyCheckCompleted(), Unit::SendRemoveFromThreatListOpcode(), WorldSession::SendRolePollInform(), Player::SendSellResponse(), WorldSession::SendSetPhaseShift(), Unit::SendSetVehicleRecId(), WorldSession::SendShowBank(), Player::SendSpellCooldown(), Player::SendSpellCooldowns(), Unit::SendSpellDamageImmune(), Unit::SendSpellMiss(), WorldSession::SendTabardVendorActivate(), Player::SendTalentWipeConfirm(), Group::SendTargetIconList(), WorldSession::SendTaxiMenu(), Unit::SendThreatListUpdate(), Item::SendTimeUpdate(), WorldSession::SendTotemCreated(), WorldSession::SendTrainerBuyFailed(), WorldSession::SendTrainerList(), WorldSession::SendUpdateSockets(), Player::SetClientControl(), Unit::SetHealth(), Player::SetMover(), Guild::SetName(), Group::SetTargetIcon(), Movement::PacketBuilder::WriteFacingTargetPart(), and Guild::EventLogEntry::WritePacket().

◆ WriteString()

void ByteBuffer::WriteString ( std::string const & str)
inline

Method for writing strings that have their length sent separately in packet without null-terminating the string

Definition at line 578 of file ByteBuffer.h.

References append().

Referenced by Guild::_SendRemovePlayerFromGuild(), Guild::_SendSetNewGuildMaster(), ChatHandler::BuildChatPacket(), Skyfire::BattlePetPackets::BuildInitialUpdatePacket(), Group::ChangeLeader(), Player::DuelComplete(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleGetMailList(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetApplications(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), Guild::HandleInviteMember(), message_commandscript::HandleNotifyCommand(), WorldSession::HandlePageTextQueryOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePlayerLogin(), Guild::HandleQuery(), WorldSession::HandleRandomizeCharNameOpcode(), WorldSession::HandleRealmSplitOpcode(), Guild::HandleRoster(), Guild::HandleSetBankTabInfo(), Guild::HandleSetMemberNote(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), WorldSession::SendAuthResponse(), World::SendAutoBroadcast(), Guild::SendBankList(), WorldSession::SendBattlePayDistributionUpdate(), BattlePetMgr::SendBattlePetJournal(), BattlePetMgr::SendBattlePetUpdate(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), Guild::SendCommandResult(), Player::SendDeclineGuildInvitation(), TicketMgr::SendGmResponsee(), TicketMgr::SendGmTicket(), PlayerMenu::SendGossipMenu(), WorldSession::SendGroupInviteNotification(), Guild::SendGuildRankInfo(), WorldSession::SendLfgBootProposalUpdate(), WorldSession::SendLfgUpdateStatus(), WorldSession::SendLoadCUFProfiles(), WorldSession::SendNameQueryOpcode(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendPetNameInvalid(), WorldSession::SendPetNameQuery(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), WorldSession::SendRealmNameQueryOpcode(), Spell::SendResurrectRequest(), Spell::SendSpellGo(), Spell::SendSpellStart(), Guild::BankTab::SendText(), WorldSession::SendTimezoneInformation(), WorldSession::SendTrainerList(), Group::SendUpdateToPlayer(), and Guild::SetName().

Member Data Documentation

◆ _bitpos

size_t ByteBuffer::_bitpos
protected

◆ _curbitval

uint8 ByteBuffer::_curbitval
protected

Definition at line 726 of file ByteBuffer.h.

Referenced by AppendBits(), ByteBuffer(), ByteBuffer(), ByteBuffer(), FlushBits(), ReadBit(), and WriteBit().

◆ _rpos

size_t ByteBuffer::_rpos
protected

◆ _storage

◆ _wpos

size_t ByteBuffer::_wpos
protected

◆ DEFAULT_SIZE

const size_t ByteBuffer::DEFAULT_SIZE = 0x1000
static

Definition at line 122 of file ByteBuffer.h.

Referenced by ByteBuffer().


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