32 content.resize( auxStream.getTotalBytesCount() );
35 auxStream.getRawBufferData(),
54 auxStream.ReadObject(
obj );
74 obj = auxStream.ReadObject( );
76 else obj.clear_unique();
107 content.resize(
sizeof(
void*) );
108 void ** ptrPtr =
reinterpret_cast<void**
>( &
content[0] );
120 return *
reinterpret_cast<void**
>(
const_cast<unsigned char*
>( &
content[0] ) ) ;
void BASE_IMPEXP memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) MRPT_NO_THROWS
An OS and compiler independent version of "memcpy".
void setContentFromString(const std::string &str)
Sets the contents of the message from a string.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
void deserializeIntoNewObject(CSerializablePtr &obj)
A method that parse the data in the message into a new object of (a priori) unknown class...
The virtual base class which provides a unified interface for all persistent objects in MRPT...
void WriteBuffer(const void *Buffer, size_t Count)
Writes a block of bytes to the stream from Buffer.
void * getContentAsPointer() const
Gets the contents of the message as a "void*" (the pointer itself is the message) - This is intended ...
GLsizei GLsizei GLuint * obj
This CStream derived class allow using a memory buffer as a CStream.
void setContentFromPointer(void *ptr)
Sets the contents of the message from a "void*" (the pointer itself becomes the message) - This is in...
void WriteObject(const CSerializable *o)
Writes an object to the stream.
GLsizei const GLchar ** string
void deserializeIntoExistingObject(CSerializable *obj)
A method that parse the data in the message into an existing object.
void getContentAsString(std::string &str)
Gets the contents of the message as a string.
void serializeObject(CSerializable *obj)
A method for serializing a MRPT's object into the content.
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object) ...