12 #ifndef BSCRIPT_BOBJECT_H 13 #include "../bscript/bobject.h" 18 #include "../clib/compilerspecifics.h" 19 #include "../clib/rawtypes.h" 39 BPacket(
const unsigned char*
data,
unsigned short length,
bool variable_len );
48 bool forcebuiltin =
false ) POL_OVERRIDE;
49 virtual Bscript::
BObjectImp* copy() const POL_OVERRIDE;
50 virtual
std::
string getStringRep() const POL_OVERRIDE;
51 bool SetSize(
u16 newsize );
53 virtual
size_t sizeEstimate() const POL_OVERRIDE
55 return sizeof( *this ) + 3 *
sizeof(
void* ) * buffer.capacity() *
sizeof(
unsigned char );
57 virtual const char*
typeOf() const POL_OVERRIDE {
return "Packet"; }
58 virtual u8 typeOfInt() const POL_OVERRIDE {
return OTPacket; }
std::vector< unsigned char > buffer
virtual const char * typeOf() const POL_OVERRIDE
virtual u8 typeOfInt() const POL_OVERRIDE
std::unordered_map< u64, ScriptDiffData > data