aether::io::zstd_writer< Writer > Struct Template Referencefinal

Compress data before writing into the inferior writer. More...

#include <zstd.hh>

Public Member Functions

ssize_t write (const void *in, size_t len) override final
 
int flush () override final
 
 zstd_writer (writer_type &w, const size_t buffer_size=0)
 
 ~zstd_writer ()
 

Detailed Description

template<typename Writer>
struct aether::io::zstd_writer< Writer >

Compress data before writing into the inferior writer.

Parameters
buffer_sizethe size of the internal buffer for copmression

Constructor & Destructor Documentation

template<typename Writer >
aether::io::zstd_writer< Writer >::zstd_writer ( writer_type &  w,
const size_t  buffer_size = 0 
)
inline
template<typename Writer >
aether::io::zstd_writer< Writer >::~zstd_writer ( )
inline

Member Function Documentation

template<typename Writer >
int aether::io::zstd_writer< Writer >::flush ( )
inlinefinaloverridevirtual

Implements aether::io::writer.

template<typename Writer >
ssize_t aether::io::zstd_writer< Writer >::write ( const void *  in,
size_t  len 
)
inlinefinaloverridevirtual

Implements aether::io::writer.