TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlenetPackets.cpp File Reference
#include "BattlenetPackets.h"
+ Include dependency graph for BattlenetPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Battlenet::MethodCall const &method)
 
ByteBufferoperator>> (ByteBuffer &data, WorldPackets::Battlenet::MethodCall &method)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Battlenet::MethodCall const method 
)
21 {
22  data << uint64(method.Type);
23  data << uint64(method.ObjectId);
24  data << uint32(method.Token);
25  return data;
26 }
uint64_t uint64
Definition: g3dmath.h:170
uint32_t uint32
Definition: g3dmath.h:168
ByteBuffer& operator>> ( ByteBuffer data,
WorldPackets::Battlenet::MethodCall method 
)
29 {
30  data >> method.Type;
31  data >> method.ObjectId;
32  data >> method.Token;
33  return data;
34 }
uint32 Token
Definition: BattlenetPackets.h:33
uint64 ObjectId
Definition: BattlenetPackets.h:32
uint64 Type
Definition: BattlenetPackets.h:31