|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WorldPacket.h>
Public Member Functions | |
| void | Compress (z_stream_s *compressionStream) |
| void | Compress (z_stream_s *compressionStream, WorldPacket const *source) |
| Opcodes | GetOpcode () const |
| uint16 | GetReceivedOpcode () |
| void | Initialize (Opcodes opcode, size_t newres=200) |
| void | SetOpcode (Opcodes opcode) |
| void | SetReceivedOpcode (uint16 opcode) |
| WorldPacket () | |
| WorldPacket (Opcodes opcode, size_t res=200) | |
| WorldPacket (WorldPacket const &packet) | |
| Public Member Functions inherited from ByteBuffer | |
| 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 () |
| 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>> (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. | |
| 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) |
| 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 () |
| ByteBuffer & | ReadPackedTime (uint32 &time) |
| uint8 * | contents () |
| const uint8 * | 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 | 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 |
Protected Member Functions | |
| void | Compress (void *dst, uint32 *dst_size, const void *src, int src_size) |
Protected Attributes | |
| z_stream_s * | _compressionStream |
| Opcodes | m_opcode |
| uint16 | m_rcvdOpcodeNumber |
| size_t | _rpos |
| size_t | _wpos |
| size_t | _bitpos |
| uint8 | _curbitval |
| std::vector< uint8 > | _storage |
Additional Inherited Members | |
| Static Public Attributes inherited from ByteBuffer | |
| static const size_t | DEFAULT_SIZE = 0x1000 |
Definition at line 15 of file WorldPacket.h.
|
inline |
Definition at line 19 of file WorldPacket.h.
References _compressionStream, ByteBuffer::ByteBuffer(), m_opcode, m_rcvdOpcodeNumber, and UNKNOWN_OPCODE.
Referenced by Compress(), and WorldPacket().
|
inline |
Definition at line 23 of file WorldPacket.h.
References _compressionStream, ByteBuffer::ByteBuffer(), m_opcode, and m_rcvdOpcodeNumber.
|
inline |
Definition at line 27 of file WorldPacket.h.
References _compressionStream, ByteBuffer::ByteBuffer(), m_opcode, m_rcvdOpcodeNumber, and WorldPacket().
|
protected |
Definition at line 71 of file WorldPacket.cpp.
References _compressionStream, and SF_LOG_ERROR.
| void WorldPacket::Compress | ( | z_stream_s * | compressionStream | ) |
| void WorldPacket::Compress | ( | z_stream_s * | compressionStream, |
| WorldPacket const * | source ) |
References WorldPacket().
|
inline |
Definition at line 38 of file WorldPacket.h.
References m_opcode.
Referenced by WorldSession::DosProtection::EvaluateOpcode(), LuaPacket::GetOpcode(), WorldSession::Handle_Deprecated(), WorldSession::Handle_EarlyProccess(), WorldSession::Handle_EarlyProccessContinued(), WorldSession::Handle_NULL(), WorldSession::HandleAddonMessagechatOpcode(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleChannelDeclineInvite(), WorldSession::HandleChannelList(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMovementForceAck(), WorldSession::HandleMovementOpcodes(), PacketLog::LogPacket(), PacketLog::LogPacket(), WorldSession::LogUnexpectedOpcode(), WorldSession::LogUnprocessedTail(), MapSessionFilter::Process(), WorldSessionFilter::Process(), WorldSocket::ProcessIncoming(), Player::ReadMovementInfo(), WorldSession::SendPacket(), WorldSocket::SendPacket(), WorldSession::Update(), and Unit::WriteMovementInfo().
|
inline |
Definition at line 43 of file WorldPacket.h.
References m_rcvdOpcodeNumber.
Referenced by WorldSocket::ProcessIncoming().
|
inline |
Definition at line 31 of file WorldPacket.h.
References ByteBuffer::_storage, ByteBuffer::clear(), and m_opcode.
Referenced by AddonHandler::BuildAddonPacket(), BattlegroundMgr::BuildBattlegroundListPacket(), BattlegroundMgr::BuildBattlegroundStatusPacket(), ChatHandler::BuildChatPacket(), UpdateData::BuildPacket(), WorldSession::BuildPartyMemberStatsChangedPacket(), BattlegroundMgr::BuildPlayerJoinedBattlegroundPacket(), BattlegroundMgr::BuildPlayerLeftBattlegroundPacket(), BattlegroundMgr::BuildPlaySoundPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), BattlegroundMgr::BuildStatusFailedPacket(), BattlegroundMgr::BuildUpdateWorldStatePacket(), Group::Disband(), Player::DuelComplete(), Spell::EffectBind(), modify_commandscript::HandleModifyMountCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleReadItem(), WorldSession::HandleTurnInPetitionOpcode(), SocialMgr::MakeFriendStatusPacket(), Channel::MakeNotifyPacket(), ChannelMgr::MakeNotOnPacket(), Skyfire::EmoteChatBuilder::operator()(), Group::RemoveMember(), Player::SendComboPoints(), Player::SendInitialPacketsBeforeAddToMap(), Spell::SendInterrupted(), Guild::SendLoginInfo(), Player::SendSavedInstances(), and WorldSession::SendTradeStatus().
|
inline |
Definition at line 39 of file WorldPacket.h.
References m_opcode.
Referenced by WorldSession::HandleUpdateMissileTrajectory(), and LuaPacket::SetOpcode().
|
inline |
Definition at line 42 of file WorldPacket.h.
References m_rcvdOpcodeNumber.
|
protected |
Definition at line 49 of file WorldPacket.h.
Referenced by Compress(), WorldPacket(), WorldPacket(), and WorldPacket().
|
protected |
Definition at line 46 of file WorldPacket.h.
Referenced by GetOpcode(), Initialize(), SetOpcode(), WorldPacket(), WorldPacket(), and WorldPacket().
|
protected |
Definition at line 47 of file WorldPacket.h.
Referenced by GetReceivedOpcode(), SetReceivedOpcode(), WorldPacket(), WorldPacket(), and WorldPacket().