TrinityCore
Loading...
Searching...
No Matches
WorldPackets::ServerPacket Class Reference

#include <Packet.h>

+ Inheritance diagram for WorldPackets::ServerPacket:

Public Member Functions

 ServerPacket (OpcodeServer opcode, size_t initialSize=200)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
OpcodeServer 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
 
virtual WorldPacket constWrite ()=0
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 45 of file Packet.h.

Constructor & Destructor Documentation

◆ ServerPacket()

WorldPackets::ServerPacket::ServerPacket ( OpcodeServer  opcode,
size_t  initialSize = 200 
)

Definition at line 25 of file Packet.cpp.

Member Function Documentation

◆ Clear()

void WorldPackets::ServerPacket::Clear ( )
inline

Definition at line 52 of file Packet.h.

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

◆ GetOpcode()

OpcodeServer WorldPackets::ServerPacket::GetOpcode ( ) const
inline

Definition at line 56 of file Packet.h.

◆ Move()

WorldPacket && WorldPackets::ServerPacket::Move ( )
inline

Definition at line 53 of file Packet.h.

+ Here is the caller graph for this function:

◆ Read()

void WorldPackets::ServerPacket::Read ( )
finaloverridevirtual

Implements WorldPackets::Packet.

Definition at line 29 of file Packet.cpp.

◆ ShrinkToFit()

void WorldPackets::ServerPacket::ShrinkToFit ( )
inline

Definition at line 54 of file Packet.h.

+ Here is the caller graph for this function:

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