Sese Framework
2.3.0
A cross-platform framework
|
GZip file output stream (compression) More...
#include <GZipFileOutputStream.h>
Public Types | |
using | Ptr = std::shared_ptr<GZipFileOutputStream> |
Public Types inherited from sese::io::OutputStream | |
typedef std::shared_ptr< OutputStream > | Ptr |
Public Member Functions | |
int64_t | write (const void *buffer, size_t length) override |
void | close () noexcept |
Public Member Functions inherited from sese::io::OutputStream | |
virtual | ~OutputStream () noexcept=default |
int64_t | write (const std::string_view &buffer) |
int64_t | write (const text::StringView &buffer) |
template<typename T > | |
int64_t | write (std::vector< T > &buffer) |
template<typename T , size_t N> | |
int64_t | write (std::array< T, N > &buffer) |
Static Public Member Functions | |
static void | deleter (GZipFileOutputStream *data) noexcept |
static GZipFileOutputStream::Ptr | create (const char *file, size_t level) noexcept |
Private Member Functions | |
GZipFileOutputStream ()=default | |
Private Attributes | |
void * | gzFile = nullptr |
GZip file output stream (compression)
using sese::GZipFileOutputStream::Ptr = std::shared_ptr<GZipFileOutputStream> |
|
privatedefault |
|
noexcept |
|
staticnoexcept |
Create file output stream object
file | Relative or absolute path of the file |
level | Compression level (range 0-9, automatically handles value range) |
nullptr | Failed to open file |
References gzFile.
|
staticnoexcept |
|
overridevirtual |
Implements sese::io::OutputStream.
References gzFile.