ergo
serialization_tools.h File Reference

Tools to simplify serialization of e.g. More...

#include <vector>

Go to the source code of this file.

Typedefs

typedef char * CharPtrType
 
typedef const char * ConstCharPtrType
 

Functions

template<typename VectorType >
size_t std_vector_getSize (const VectorType &v)
 
template<typename VectorType >
void std_vector_writeToBuffer_and_move_ptr (const VectorType &v, CharPtrType &p)
 
template<typename VectorType >
void std_vector_assignFromBuffer_and_move_ptr (VectorType &v, ConstCharPtrType &p, const char *bufEndPtr)
 

Detailed Description

Tools to simplify serialization of e.g.

std::vector objects, useful when writing serialization functions needed for Chunks and Tasks usage.

Author
: Elias Rudberg responsible.

Typedef Documentation

◆ CharPtrType

typedef char* CharPtrType

◆ ConstCharPtrType

typedef const char* ConstCharPtrType

Function Documentation

◆ std_vector_assignFromBuffer_and_move_ptr()

template<typename VectorType >
void std_vector_assignFromBuffer_and_move_ptr ( VectorType v,
ConstCharPtrType p,
const char *  bufEndPtr 
)

◆ std_vector_getSize()

template<typename VectorType >
size_t std_vector_getSize ( const VectorType v)

◆ std_vector_writeToBuffer_and_move_ptr()

template<typename VectorType >
void std_vector_writeToBuffer_and_move_ptr ( const VectorType v,
CharPtrType p 
)