lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Types | Public Member Functions
lean::io::generic_serializer< Serialization > Class Template Reference

Generic value serializer. More...

#include <generic.h>

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

List of all members.

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.

Detailed Description

template<class Serialization>
class lean::io::generic_serializer< Serialization >

Generic value serializer.


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