lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions
lean::io::serializer Class Reference

Value serializer. More...

#include <serializer.h>

Inheritance diagram for lean::io::serializer:
lean::io::generic_serializer< Serialization >

List of all members.

Public Member Functions

virtual size_t max_length (size_t count) const =0
 Gets the maximum length of the given number of values when serialized. Zero if unpredictable.
virtual bool write (std::basic_ostream< utf8_t > &stream, const std::type_info &type, const void *values, size_t count) const =0
 Writes the given number of values to the given stream.
virtual utf8_t * write (utf8_t *begin, const std::type_info &type, const void *values, size_t count) const =0
 Writes the given number of values to the given character buffer, returning the first character not written to.
virtual bool read (std::basic_istream< utf8_t > &stream, const std::type_info &type, void *values, size_t count) const =0
 Reads the given number of values from the given stream.
virtual const utf8_t * read (const utf8_t *begin, const utf8_t *end, const std::type_info &type, void *values, size_t count) const =0
 Reads the given number of values from the given range of characters, returning the first character not read.
virtual const std::type_info & type_info () const =0
 Gets the STD lib typeid.

Detailed Description

Value serializer.


The documentation for this class was generated from the following file: