aether::serde::fixed_size_buffered_writer< Writer, BufferSize > Struct Template Reference

#include <serde.hh>

Public Member Functions

 fixed_size_buffered_writer (Writer &_inner)
 
int write (const void *data, size_t count)
 
int flush ()
 
 ~fixed_size_buffered_writer ()
 

Public Attributes

Writer & inner
 
std::array< char, BufferSize > buffer
 
size_t length = 0
 

Constructor & Destructor Documentation

template<typename Writer , size_t BufferSize = 64>
aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::fixed_size_buffered_writer ( Writer &  _inner)
inline
template<typename Writer , size_t BufferSize = 64>
aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::~fixed_size_buffered_writer ( )
inline

Member Function Documentation

template<typename Writer , size_t BufferSize = 64>
int aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::flush ( )
inline
template<typename Writer , size_t BufferSize = 64>
int aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::write ( const void *  data,
size_t  count 
)
inline

Member Data Documentation

template<typename Writer , size_t BufferSize = 64>
std::array<char, BufferSize> aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::buffer
template<typename Writer , size_t BufferSize = 64>
Writer& aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::inner
template<typename Writer , size_t BufferSize = 64>
size_t aether::serde::fixed_size_buffered_writer< Writer, BufferSize >::length = 0