#include <TypeShims.h>
Inheritance diagram for oasys::ByteBufShim:

Definition at line 147 of file TypeShims.h.
Public Member Functions | |
| ByteBufShim (char *buf, size_t size) | |
| ByteBufShim (const Builder &) | |
| ~ByteBufShim () | |
| int | format (char *buf, size_t sz) const |
| Virtual callback, called from this vsnprintf implementation whenever it encounters a format string of the form "*%p". | |
| void | serialize (SerializeAction *a) |
| This should call v->process() on each of the types that are to be serialized in the object. | |
| const char * | value () const |
| char * | take_buf () |
| u_int32_t | size () const |
Private Attributes | |
| char * | buf_ |
| u_int32_t | size_ |
| bool | own_buf_ |
| oasys::ByteBufShim::ByteBufShim | ( | char * | buf, | |
| size_t | size | |||
| ) | [inline] |
Definition at line 149 of file TypeShims.h.
| oasys::ByteBufShim::ByteBufShim | ( | const Builder & | ) | [inline] |
Definition at line 152 of file TypeShims.h.
| oasys::ByteBufShim::~ByteBufShim | ( | ) | [inline] |
| int oasys::ByteBufShim::format | ( | char * | buf, | |
| size_t | sz | |||
| ) | const [inline, virtual] |
Virtual callback, called from this vsnprintf implementation whenever it encounters a format string of the form "*%p".
The output routine must not write more than sz bytes and is not null terminated.
Implements oasys::Formatter.
Definition at line 162 of file TypeShims.h.
References snprintf().
| void oasys::ByteBufShim::serialize | ( | SerializeAction * | a | ) | [inline, virtual] |
This should call v->process() on each of the types that are to be serialized in the object.
Implements oasys::SerializableObject.
Definition at line 167 of file TypeShims.h.
References oasys::SerializeAction::action_code(), oasys::Serialize::ALLOC_MEM, buf_, own_buf_, oasys::SerializeAction::process(), size_, and oasys::Serialize::UNMARSHAL.
| const char* oasys::ByteBufShim::value | ( | ) | const [inline] |
| char* oasys::ByteBufShim::take_buf | ( | ) | [inline] |
| u_int32_t oasys::ByteBufShim::size | ( | ) | const [inline] |
char* oasys::ByteBufShim::buf_ [private] |
Definition at line 181 of file TypeShims.h.
Referenced by serialize(), take_buf(), value(), and ~ByteBufShim().
u_int32_t oasys::ByteBufShim::size_ [private] |
bool oasys::ByteBufShim::own_buf_ [private] |
Definition at line 183 of file TypeShims.h.
Referenced by serialize(), take_buf(), and ~ByteBufShim().
1.5.1