All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Battlenet::Request Class Referencefinal

#include <BattlenetPackets.h>

Public Member Functions

 Request (WorldPacket &&packet)
void Read () override
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
WorldPacket constWrite () overridefinal
OpcodeClient GetOpcode () const
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
virtual ~Packet ()=default
 Packet (Packet const &right)=delete
Packetoperator= (Packet const &right)=delete
WorldPacket constGetRawPacket () const
size_t GetSize () const
ConnectionType GetConnection () const

Public Attributes

MethodCall Method
MessageBuffer Data

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Battlenet::Request::Request ( WorldPacket &&  packet)
87 : ClientPacket(CMSG_BATTLENET_REQUEST, std::move(packet)) { }
Definition: Opcodes.h:91
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Battlenet::Request::Read ( )

Implements WorldPackets::Packet.

74 {
75  uint32 protoSize;
78  _worldPacket >> protoSize;
80  Data.Resize(protoSize);
81, Data.GetRemainingSpace());
82  Data.WriteCompleted(protoSize);
83 }
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
MethodCall Method
Definition: BattlenetPackets.h:91
Definition: molten_core.h:69
T read()
Definition: ByteBuffer.h:484

Member Data Documentation

MessageBuffer WorldPackets::Battlenet::Request::Data
MethodCall WorldPackets::Battlenet::Request::Method

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