lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Generic value serializer. More...
#include <generic.h>
Public Types | |
typedef Serialization | serialization_type |
Serialization type. | |
Public Member Functions | |
size_t | max_length (size_t count) const |
Gets the maximum length of the given number of values when serialized. Zero if unpredictable. | |
bool | write (std::basic_ostream< utf8_t > &stream, const std::type_info &type, const void *values, size_t count) const |
Writes the given number of values to the given stream. | |
utf8_t * | write (utf8_t *begin, const std::type_info &type, const void *values, size_t count) const |
Writes the given number of values to the given character buffer, returning the first character not written to. | |
bool | read (std::basic_istream< utf8_t > &stream, const std::type_info &type, void *values, size_t count) const |
Reads the given number of values from the given stream. | |
const utf8_t * | read (const utf8_t *begin, const utf8_t *end, const std::type_info &type, void *values, size_t count) const |
Reads the given number of values from the given range of characters, returning the first character not read. | |
const std::type_info & | type_info () const |
Gets the STD lib typeid. |
Generic value serializer.