byteme
Read/write bytes from various sources
Loading...
Searching...
No Matches
byteme::ZlibBufferReaderOptions Struct Reference

Options for the ZlibBufferReader constructor. More...

#include <ZlibBufferReader.hpp>

Public Attributes

std::optional< ZlibCompressionModemode
 
std::size_t buffer_size = sanisizer::cap<std::size_t>(65536)
 

Detailed Description

Options for the ZlibBufferReader constructor.

Member Data Documentation

◆ buffer_size

std::size_t byteme::ZlibBufferReaderOptions::buffer_size = sanisizer::cap<std::size_t>(65536)

Size of the buffer to use when reading from disk. Larger values usually reduce computational time at the cost of increased memory usage.

◆ mode

std::optional<ZlibCompressionMode> byteme::ZlibBufferReaderOptions::mode

Compression mode of the stream. If unset, the function will auto-detect the format, choosing between ZLIB and GZIP based on the headers.


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