Core Library 1.7.0.0 Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.

Public Member Functions | List of all members
core_lib::serialize::impl::ToCharVectorImpl< T, archives::out_protobuf_t > Struct Template Reference

Serialization to char vector implementation, specialization for Google protocol bufs. More...

`#include <SerializeToVector.h>`

## Public Member Functions
char_vector_t | operator() (const T &object) const
| Function operator. More...
void | operator() (const T &object, char_vector_t &result) const
| Function operator. More...

## Detailed Description

### template<typename T>
struct core_lib::serialize::impl::ToCharVectorImpl< T, archives::out_protobuf_t >

Serialization to char vector implementation, specialization for Google protocol bufs.

## Member Function Documentation

## ◆ operator()() [1/2]

template<typename T >

char_vector_t core_lib::serialize::impl::ToCharVectorImpl< T, archives::out_protobuf_t >::operator() | ( | const T & | object | ) | const
| inline

Function operator.

Parameters

  [in] | object | - Object to serialize

Returns
  Char vector containing serialized object

This overload creates new memory.

## ◆ operator()() [2/2]

template<typename T >

void core_lib::serialize::impl::ToCharVectorImpl< T, archives::out_protobuf_t >::operator() | ( | const T & | object,
|  | char_vector_t & | result
| ) |  | const
| inline

Function operator.

Parameters

  [in] | object | - Object to serialize
  [out] | result | - Char vector containing serialized object

This overload uses the memory passed in and resizes if necessary.

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

- D:/Projects/CoreLibrary/Include/Serialization/SerializeToVector.h