OverSim
|
Communication buffer that packs data into a memory buffer without any transformation. More...
#include <cnetcommbuffer.h>
Public Member Functions | |
cNetCommBuffer () | |
Constructor. | |
virtual | ~cNetCommBuffer () |
Destructor. | |
size_t | getRemainingMessageSize () |
return the length of the remaining buffer in bytes | |
virtual void | packObject (cObject *obj) |
Packs an object. | |
virtual cObject * | unpackObject () |
Unpacks and returns an object. | |
Pack basic types | |
virtual void | pack (char d) |
virtual void | pack (unsigned char d) |
virtual void | pack (bool d) |
virtual void | pack (short d) |
virtual void | pack (unsigned short d) |
virtual void | pack (int d) |
virtual void | pack (unsigned int d) |
virtual void | pack (long d) |
virtual void | pack (unsigned long d) |
virtual void | pack (opp_long_long d) |
virtual void | pack (opp_unsigned_long_long d) |
virtual void | pack (float d) |
virtual void | pack (double d) |
virtual void | pack (long double d) |
virtual void | pack (const char *d) |
virtual void | pack (const opp_string &d) |
virtual void | pack (SimTime d) |
Pack arrays of basic types | |
virtual void | pack (const char *d, int size) |
virtual void | pack (const unsigned char *d, int size) |
virtual void | pack (const bool *d, int size) |
virtual void | pack (const short *d, int size) |
virtual void | pack (const unsigned short *d, int size) |
virtual void | pack (const int *d, int size) |
virtual void | pack (const unsigned int *d, int size) |
virtual void | pack (const long *d, int size) |
virtual void | pack (const unsigned long *d, int size) |
virtual void | pack (const opp_long_long *d, int size) |
virtual void | pack (const opp_unsigned_long_long *d, int size) |
virtual void | pack (const float *d, int size) |
virtual void | pack (const double *d, int size) |
virtual void | pack (const long double *d, int size) |
virtual void | pack (const char **d, int size) |
virtual void | pack (const opp_string *d, int size) |
virtual void | pack (const SimTime *d, int size) |
Unpack basic types | |
virtual void | unpack (char &d) |
virtual void | unpack (unsigned char &d) |
virtual void | unpack (bool &d) |
virtual void | unpack (short &d) |
virtual void | unpack (unsigned short &d) |
virtual void | unpack (int &d) |
virtual void | unpack (unsigned int &d) |
virtual void | unpack (long &d) |
virtual void | unpack (unsigned long &d) |
virtual void | unpack (opp_long_long &d) |
virtual void | unpack (opp_unsigned_long_long &d) |
virtual void | unpack (float &d) |
virtual void | unpack (double &d) |
virtual void | unpack (long double &d) |
virtual void | unpack (const char *&d) |
void | unpack (char *&d) |
Unpacks a string – storage will be allocated for it via new char[]. | |
virtual void | unpack (opp_string &d) |
virtual void | unpack (SimTime &) |
Unpack arrays of basic types | |
virtual void | unpack (char *d, int size) |
virtual void | unpack (unsigned char *d, int size) |
virtual void | unpack (bool *d, int size) |
virtual void | unpack (short *d, int size) |
virtual void | unpack (unsigned short *d, int size) |
virtual void | unpack (int *d, int size) |
virtual void | unpack (unsigned int *d, int size) |
virtual void | unpack (long *d, int size) |
virtual void | unpack (unsigned long *d, int size) |
virtual void | unpack (opp_long_long *d, int size) |
virtual void | unpack (opp_unsigned_long_long *d, int size) |
virtual void | unpack (float *d, int size) |
virtual void | unpack (double *d, int size) |
virtual void | unpack (long double *d, int size) |
virtual void | unpack (const char **d, int size) |
virtual void | unpack (opp_string *d, int size) |
virtual void | unpack (SimTime *d, int size) |
Communication buffer that packs data into a memory buffer without any transformation.
Definition at line 31 of file cnetcommbuffer.h.
cNetCommBuffer::cNetCommBuffer | ( | ) |
|
virtual |
size_t cNetCommBuffer::getRemainingMessageSize | ( | ) |
return the length of the remaining buffer in bytes
Definition at line 527 of file cnetcommbuffer.cc.
Referenced by OverSimMessage::parsimUnpack().
|
virtual |
Definition at line 57 of file cnetcommbuffer.cc.
Referenced by pack(), and packObject().
|
virtual |
Definition at line 64 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 71 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 78 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 86 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 94 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 102 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 110 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 118 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 126 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 133 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 140 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 147 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 154 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 163 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 172 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 299 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 183 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 190 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 197 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 204 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 212 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 220 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 228 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 236 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 244 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 251 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 258 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 265 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 272 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 279 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 287 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 293 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 177 of file cnetcommbuffer.cc.
|
virtual |
Packs an object.
Definition at line 532 of file cnetcommbuffer.cc.
Referenced by GenericPacketParser::encapsulatePayload(), and BinaryValue::packObject().
|
virtual |
Definition at line 306 of file cnetcommbuffer.cc.
Referenced by unpack(), and unpackObject().
|
virtual |
Definition at line 312 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 317 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 322 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 329 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 336 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 343 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 350 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 357 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 364 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 370 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 376 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 382 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 388 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 395 of file cnetcommbuffer.cc.
|
inline |
Unpacks a string – storage will be allocated for it via new char[].
Definition at line 106 of file cnetcommbuffer.h.
Referenced by unpack().
|
virtual |
Definition at line 407 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 418 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 426 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 431 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 437 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 442 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 448 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 454 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 460 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 466 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 472 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 478 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 484 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 490 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 496 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 502 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 507 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 513 of file cnetcommbuffer.cc.
|
virtual |
Definition at line 520 of file cnetcommbuffer.cc.
|
virtual |
Unpacks and returns an object.
Definition at line 538 of file cnetcommbuffer.cc.
Referenced by GenericPacketParser::decapsulatePayload(), and BinaryValue::unpackObject().