|
Pol
Rev 533
|
#include <packetscrobj.h>
Inheritance diagram for BPacket:
Collaboration diagram for BPacket:Public Member Functions | |
| BPacket () | |
| BPacket (const BPacket ©from) | |
| BPacket (u8 type, signed short length) | |
| BPacket (const unsigned char *data, unsigned short length, bool variable_len) | |
| ~BPacket () | |
| virtual BObjectImp * | call_method (const char *methodname, Executor &ex) |
| virtual BObjectImp * | call_method_id (const int id, Executor &ex, bool forcebuiltin=false) |
| virtual BObjectImp * | copy () const |
| virtual BObjectRef | get_member (const char *membername) |
| virtual BObjectRef | get_member_id (const int id) |
| virtual std::string | getStringRep () const |
| bool | SetSize (u16 newsize) |
| BObjectImp * | SetSize (u16 newsize, bool giveReturn) |
| virtual size_t | sizeEstimate () const |
| virtual const char * | typeOf () const |
| virtual int | typeOfInt () const |
Public Attributes | |
| vector< unsigned char > | buffer |
| bool | is_variable_length |
Definition at line 18 of file packetscrobj.h.
| BPacket::BPacket | ( | ) |
Definition at line 41 of file packetscrobj.cpp.
Referenced by copy().
Here is the caller graph for this function:| BPacket::BPacket | ( | const BPacket & | copyfrom | ) |
Definition at line 45 of file packetscrobj.cpp.
| BPacket::BPacket | ( | u8 | type, |
| signed short | length | ||
| ) |
Definition at line 50 of file packetscrobj.cpp.
References buffer, is_variable_length, and BObjectImp::type().
Here is the call graph for this function:| BPacket::BPacket | ( | const unsigned char * | data, |
| unsigned short | length, | ||
| bool | variable_len | ||
| ) |
Definition at line 67 of file packetscrobj.cpp.
References is_variable_length.
Definition at line 72 of file packetscrobj.cpp.
| BObjectImp * BPacket::call_method | ( | const char * | methodname, |
| Executor & | ex | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 530 of file packetscrobj.cpp.
References call_method_id(), getKnownObjMethod(), and ObjMethod::id.
Here is the call graph for this function:| BObjectImp * BPacket::call_method_id | ( | const int | id, |
| Executor & | ex, | ||
| bool | forcebuiltin = false |
||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 89 of file packetscrobj.cpp.
References ADDTOSENDQUEUE, buffer, cfBEu16, cfBEu32, cfLEu16, cfLEu32, Client::chr, Character::client, clients, convertArrayToUC(), convertUCtoArray(), ctBEu16, ctBEu32, ctLEu16, ctLEu32, find_realm(), getCharacterOrClientParam(), Executor::getObjArrayParam(), Executor::getParam(), Executor::getStringParam(), Character::has_active_client(), inrangex(), is_variable_length, Client::isConnected(), String::length(), MTH_GETINT16, MTH_GETINT16FLIPPED, MTH_GETINT32, MTH_GETINT32FLIPPED, MTH_GETINT8, MTH_GETSIZE, MTH_GETSTRING, MTH_GETUNICODESTRING, MTH_GETUNICODESTRINGFLIPPED, MTH_SENDAREAPACKET, MTH_SENDPACKET, MTH_SETINT16, MTH_SETINT16FLIPPED, MTH_SETINT32, MTH_SETINT32FLIPPED, MTH_SETINT8, MTH_SETSIZE, MTH_SETSTRING, MTH_SETUNICODESTRING, MTH_SETUNICODESTRINGFLIPPED, Executor::numParams(), Client::ready, UObject::realm, ObjArray::ref_arr, SetSize(), Realm::valid(), String::value(), and x.
Referenced by call_method().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * BPacket::copy | ( | void | ) | const [virtual] |
Implements BObjectImp.
Definition at line 859 of file packetscrobj.cpp.
References BPacket().
Here is the call graph for this function:| BObjectRef BPacket::get_member | ( | const char * | membername | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 80 of file packetscrobj.cpp.
References UninitObject::create(), get_member_id(), getKnownObjMember(), and ObjMember::id.
Here is the call graph for this function:| BObjectRef BPacket::get_member_id | ( | const int | id | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 76 of file packetscrobj.cpp.
Referenced by get_member().
Here is the caller graph for this function:| std::string BPacket::getStringRep | ( | ) | const [virtual] |
Implements BObjectImp.
Definition at line 863 of file packetscrobj.cpp.
References buffer, OSTRINGSTREAM, and OSTRINGSTREAM_STR.
| bool BPacket::SetSize | ( | u16 | newsize | ) |
Definition at line 873 of file packetscrobj.cpp.
References buffer, ctBEu16, and is_variable_length.
Referenced by call_method_id().
Here is the caller graph for this function:| BObjectImp * BPacket::SetSize | ( | u16 | newsize, |
| bool | giveReturn | ||
| ) |
Definition at line 884 of file packetscrobj.cpp.
References buffer, ctBEu16, and is_variable_length.
| virtual size_t BPacket::sizeEstimate | ( | ) | const [inline, virtual] |
| virtual const char* BPacket::typeOf | ( | ) | const [inline, virtual] |
Reimplemented from BObjectImp.
Definition at line 37 of file packetscrobj.h.
| virtual int BPacket::typeOfInt | ( | ) | const [inline, virtual] |
Reimplemented from BObjectImp.
Definition at line 38 of file packetscrobj.h.
References BObjectImp::OTPacket.
| vector<unsigned char> BPacket::buffer |
Definition at line 27 of file packetscrobj.h.
Referenced by BPacket(), call_method_id(), CallOutgoingPacketExportedFunction(), ExportedPacketHookHandler(), getStringRep(), SetSize(), and sizeEstimate().
Definition at line 40 of file packetscrobj.h.
Referenced by BPacket(), call_method_id(), and SetSize().