Symphony Of Empires
Eng3D::Deser::Archive Struct Reference

Base class that serves as archiver, stores (in memory) the data required for serialization/deserialization. More...

#include <serializer.hpp>

Public Member Functions

 Archive ()=default
 
 ~Archive ()=default
 
void to_file (const ::std::string &path)
 
void from_file (const ::std::string &path)
 
void copy_to (void *ptr, size_t size)
 
void copy_from (const void *ptr, size_t size)
 
void expand (size_t amount)
 
void end_stream ()
 
void rewind ()
 
const void * get_buffer ()
 
void set_buffer (const void *buf, size_t size)
 
size_t size ()
 

Public Attributes

::std::vector< uint8_t > buffer
 
size_t ptr = 0
 

Detailed Description

Base class that serves as archiver, stores (in memory) the data required for serialization/deserialization.

Definition at line 64 of file serializer.hpp.

Constructor & Destructor Documentation

◆ Archive()

Eng3D::Deser::Archive::Archive ( )
default

◆ ~Archive()

Eng3D::Deser::Archive::~Archive ( )
default

Member Function Documentation

◆ copy_from()

void Eng3D::Deser::Archive::copy_from ( const void *  ptr,
size_t  size 
)

Definition at line 94 of file serializer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy_to()

void Eng3D::Deser::Archive::copy_to ( void *  ptr,
size_t  size 
)

Definition at line 87 of file serializer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end_stream()

void Eng3D::Deser::Archive::end_stream ( )
inline

Definition at line 76 of file serializer.hpp.

◆ expand()

void Eng3D::Deser::Archive::expand ( size_t  amount)
inline

Definition at line 72 of file serializer.hpp.

Here is the caller graph for this function:

◆ from_file()

void Eng3D::Deser::Archive::from_file ( const ::std::string &  path)

Definition at line 61 of file serializer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_buffer()

const void* Eng3D::Deser::Archive::get_buffer ( )
inline

Definition at line 84 of file serializer.hpp.

◆ rewind()

void Eng3D::Deser::Archive::rewind ( )
inline

Definition at line 80 of file serializer.hpp.

Here is the caller graph for this function:

◆ set_buffer()

void Eng3D::Deser::Archive::set_buffer ( const void *  buf,
size_t  size 
)
inline

Definition at line 88 of file serializer.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

size_t Eng3D::Deser::Archive::size ( )
inline

Definition at line 93 of file serializer.hpp.

Here is the caller graph for this function:

◆ to_file()

void Eng3D::Deser::Archive::to_file ( const ::std::string &  path)

Definition at line 40 of file serializer.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ buffer

::std::vector<uint8_t> Eng3D::Deser::Archive::buffer

Definition at line 97 of file serializer.hpp.

◆ ptr

size_t Eng3D::Deser::Archive::ptr = 0

Definition at line 98 of file serializer.hpp.


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