TrinityCore
Loading...
Searching...
No Matches
ServerPktHeader Struct Reference

#include <ServerPktHeader.h>

Public Member Functions

 ServerPktHeader (uint32 size, uint16 cmd)
 
uint8 getHeaderLength ()
 
bool isLargePacket () const
 

Public Attributes

const uint32 size
 
uint8 header [5]
 

Detailed Description

Definition at line 25 of file ServerPktHeader.h.

Constructor & Destructor Documentation

◆ ServerPktHeader()

ServerPktHeader::ServerPktHeader ( uint32  size,
uint16  cmd 
)
inline

size is the length of the payload plus the length of the opcode

Definition at line 30 of file ServerPktHeader.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ getHeaderLength()

uint8 ServerPktHeader::getHeaderLength ( )
inline

Definition at line 45 of file ServerPktHeader.h.

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

◆ isLargePacket()

bool ServerPktHeader::isLargePacket ( ) const
inline

Definition at line 51 of file ServerPktHeader.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ header

uint8 ServerPktHeader::header[5]

Definition at line 57 of file ServerPktHeader.h.

◆ size

const uint32 ServerPktHeader::size

Definition at line 56 of file ServerPktHeader.h.


The documentation for this struct was generated from the following file: