nlib
|
The structure that stores the various ZlibOutputStream
settings. At construction time, the default settings are stored.
More...
#include "nn/nlib/ZlibOutputStream.h"
Public Types | |
typedef void *(* | ReallocFunc) (void *p, size_t n) |
The type for functions compatible with realloc . | |
Public Member Functions | |
constexpr | ZlibOutputStreamSettings () noexcept |
Instantiates the object with default parameters (default constructor). Sets the default values. | |
constexpr | ZlibOutputStreamSettings (void *buf_in_, void *buf_out_, size_t buffer_size_, int level_) noexcept |
Sets the individual data members. | |
constexpr | ZlibOutputStreamSettings (void *buf_in_, void *buf_out_, size_t buffer_size_, int level_, ReallocFunc realloc_func_) noexcept |
Sets the individual data members. | |
Public Attributes | |
void * | buf_in |
The buffer set for z_stream::next_in . More... | |
void * | buf_out |
The buffer set for z_stream::next_out . More... | |
size_t | buffer_size |
The size of ZlibOutputStreamSettings::buf_in and ZlibOutputStreamSettings::buf_out . More... | |
int | level |
The compression setting to pass to the deflateInit2 function of zlib . More... | |
ReallocFunc | realloc_func |
The realloc function or its equivalent that ZlibOutputStream uses internally. More... | |
The structure that stores the various ZlibOutputStream
settings. At construction time, the default settings are stored.
Definition at line 15 of file ZlibOutputStream.h.
nn::nlib::ZlibOutputStreamSettings::buf_in |
The buffer set for z_stream::next_in
.
NULL
is specified, ZlibOutputStream
acts internally to allocate a buffer. If you specify NULL
, you also must specify NULL
for buf_out. NULL
. Definition at line 17 of file ZlibOutputStream.h.
nn::nlib::ZlibOutputStreamSettings::buf_out |
The buffer set for z_stream::next_out
.
NULL
is specified, ZlibOutputStream
acts internally to allocate a buffer. If you specify NULL
, you also must specify NULL
for buf_in. NULL
. Definition at line 18 of file ZlibOutputStream.h.
nn::nlib::ZlibOutputStreamSettings::buffer_size |
The size of ZlibOutputStreamSettings::buf_in
and ZlibOutputStreamSettings::buf_out
.
1024
or greater. The default is 65536
. Definition at line 19 of file ZlibOutputStream.h.
nn::nlib::ZlibOutputStreamSettings::level |
The compression setting to pass to the deflateInit2
function of zlib
.
Z_DEFAULT_COMPRESSION
. Definition at line 20 of file ZlibOutputStream.h.
nn::nlib::ZlibOutputStreamSettings::realloc_func |
The realloc
function or its equivalent that ZlibOutputStream
uses internally.
realloc
function. Definition at line 21 of file ZlibOutputStream.h.
© 2013, 2014, 2015 Nintendo Co., Ltd. All rights reserved.