32 content.resize(auxStream.getTotalBytesCount());
35 auxStream.getRawBufferData(),
54 auxStream.ReadObject(
obj);
74 obj = auxStream.ReadObject();
106 void** ptrPtr =
reinterpret_cast<void**
>(&
content[0]);
118 return *
reinterpret_cast<void**
>(
const_cast<unsigned char*
>(&
content[0]));
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.
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
void deserializeIntoNewObject(CSerializable::Ptr &obj)
A method that parse the data in the message into a new object of (a priori) unknown class...
This CStream derived class allow using a memory buffer as a CStream.
void serializeObject(const CSerializable *obj)
A method for serializing a MRPT's object into the content.
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
std::shared_ptr< CSerializable > Ptr
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.
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object) ...
void memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".