#include <WorldPacket.h>
Public Member Functions | |
WorldPacket () | |
WorldPacket (uint16 opcode, size_t res=200) | |
WorldPacket (const WorldPacket &packet) | |
void | Initialize (uint16 opcode, size_t newres=200) |
uint16 | GetOpcode () const |
void | SetOpcode (uint16 opcode) |
![]() | |
ByteBuffer () | |
ByteBuffer (size_t res) | |
ByteBuffer (const ByteBuffer &buf) | |
void | clear () |
template<typename T > | |
void | put (size_t pos, T 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<< (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) |
template<class T > | |
ByteBuffer & | operator>> (Unused< T > const &) |
uint8 | operator[] (size_t pos) const |
size_t | rpos () const |
size_t | rpos (size_t rpos_) |
size_t | wpos () const |
size_t | wpos (size_t wpos_) |
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) |
uint64 | readPackGUID () |
const uint8 * | contents () const |
size_t | size () const |
bool | empty () const |
void | resize (size_t newsize) |
void | reserve (size_t ressize) |
void | append (const std::string &str) |
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 | appendPackGUID (uint64 guid) |
void | put (size_t pos, const uint8 *src, size_t cnt) |
void | print_storage () const |
void | textlike () const |
void | hexlike () const |
template<> | |
void | read_skip () |
template<> | |
void | read_skip () |
Protected Attributes | |
uint16 | m_opcode |
![]() | |
size_t | _rpos |
size_t | _wpos |
std::vector< uint8 > | _storage |
Additional Inherited Members | |
![]() | |
static const size_t | DEFAULT_SIZE = 0x1000 |
Definition at line 24 of file WorldPacket.h.
|
inline |
Definition at line 28 of file WorldPacket.h.
|
inlineexplicit |
Definition at line 31 of file WorldPacket.h.
|
inline |
Definition at line 33 of file WorldPacket.h.
|
inline |
Definition at line 44 of file WorldPacket.h.
References m_opcode.
Referenced by WorldSession::Handle_Deprecated(), WorldSession::Handle_EarlyProccess(), WorldSession::Handle_NULL(), WorldSession::Handle_ServerSide(), WorldSession::HandleForceSpeedChangeAck(), WorldSession::HandleMovementOpcodes(), ChatHandler::HandleSendOpcodeCommand(), WorldSocket::iSendPacket(), WorldSession::LogUnexpectedOpcode(), WorldSession::LogUnprocessedTail(), CreatureTextLocalizer< Builder >::operator()(), WorldSocket::ProcessIncoming(), WorldSocket::SendPacket(), WorldSession::SizeError(), and WorldSession::Update().
|
inline |
Definition at line 37 of file WorldPacket.h.
References ByteBuffer::_storage, ByteBuffer::clear(), and m_opcode.
Referenced by AddonHandler::BuildAddonPacket(), BattlegroundMgr::BuildBattlegroundListPacket(), BattlegroundMgr::BuildBattlegroundStatusPacket(), BattlegroundMgr::BuildGroupJoinedBattlegroundPacket(), Unit::BuildHeartBeatMsg(), CreatureTextMgr::BuildMonsterChat(), WorldSession::BuildPartyMemberStatsChangedPacket(), BattlegroundMgr::BuildPlayerJoinedBattlegroundPacket(), BattlegroundMgr::BuildPlayerLeftBattlegroundPacket(), BattlegroundMgr::BuildPlaySoundPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), Player::BuildTeleportAckMsg(), BattlegroundMgr::BuildUpdateWorldStatePacket(), Group::Disband(), Player::DuelComplete(), Spell::EffectBind(), ChatHandler::FillMessageData(), WorldSocket::HandleAuthSession(), WorldSession::HandleLogoutCancelOpcode(), ChatHandler::HandleModifyMountCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleReadItem(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTurnInPetitionOpcode(), Channel::JoinNotify(), SocialMgr::MakeFriendStatusPacket(), Channel::MakeNotifyPacket(), ChannelMgr::MakeNotOnPacket(), Group::RemoveMember(), ReputationMgr::SendForceReactions(), Player::SendInitialPacketsBeforeAddToMap(), Spell::SendInterrupted(), Player::SendSavedInstances(), WorldSession::SendTradeStatus(), Player::SetCanFly(), Player::SetFeatherFall(), Player::SetHover(), Unit::SetSpeed(), Player::SetWaterWalking(), Player::TeleportTo(), Aura::UpdateAuraDuration(), and Player::Whisper().
|
inline |
Definition at line 48 of file WorldPacket.h.
References m_opcode.
Referenced by UpdateData::BuildPacket(), ChatHandler::HandleAppearCommand(), ChatHandler::HandleFlyModeCommand(), and ChatHandler::HandleTeleCommand().
|
protected |
Definition at line 54 of file WorldPacket.h.
Referenced by GetOpcode(), Initialize(), and SetOpcode().