|
PVData C++ 8.0.9
|
Serialization helper. More...
#include <misc/pv/serializeHelper.h>
Static Public Member Functions | |
| static void | writeSize (std::size_t s, ByteBuffer *buffer, SerializableControl *flusher) |
| static std::size_t | readSize (ByteBuffer *buffer, DeserializableControl *control) |
| static void | serializeString (const std::string &value, ByteBuffer *buffer, SerializableControl *flusher) |
| static void | serializeSubstring (const std::string &value, std::size_t offset, std::size_t count, ByteBuffer *buffer, SerializableControl *flusher) |
| static std::string | deserializeString (ByteBuffer *buffer, DeserializableControl *control, std::size_t max=0x7fffffff) |
Serialization helper.
Definition at line 29 of file serializeHelper.h.
|
static |
std::string deserialization helper method.
| [in] | buffer | deserialization buffer |
| [in] | control | control |
| [in] | max | length limit |
|
static |
Deserialize array size. The specified DeserializableControl ensures sufficient bytes are available.
| [in] | buffer | deserialization buffer. |
| [in] | control | the DeserializableControl. |
|
static |
std::string serialization helper method.
| [in] | value | std::string to serialize |
| [in] | buffer | serialization buffer |
| [in] | flusher | flusher |
|
static |
std::string serialization helper method.
| [in] | value | std::string to serialize |
| [in] | offset | start of the substring in value |
| [in] | count | the number of characters to write |
| [in] | buffer | serialization buffer |
| [in] | flusher | flusher |
|
static |
Serialize the specified array size into the specified buffer, flushing when necessary. The specified SerializableControl manages any flushing required.
| [in] | s | size to encode |
| [in] | buffer | serialization buffer |
| [in] | flusher | SerializableControl to manage the flushing |