GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::deflate::DecompressionOptions Struct Reference

Deflate decompression options. More...

#include <GREM/core/formats/deflate.hpp>

Public Attributes

size_t estimatedDecompressedSizeInBytes = 1024
 Estimated size of the decompressed data, in bytes.
size_t maxDecompressedSizeInBytes = (uint64_t{8'589'934'592ull} <= uint64_t{Limits<size_t>::MAX}) ? static_cast<size_t>(uint64_t{8'589'934'592ull}) : size_t{2'147'483'648ull}
 Maximum size of the decompressed data.

Detailed Description

Deflate decompression options.

Member Data Documentation

◆ estimatedDecompressedSizeInBytes

size_t grem::deflate::DecompressionOptions::estimatedDecompressedSizeInBytes = 1024

Estimated size of the decompressed data, in bytes.

This number of bytes will be reserved in the output buffer initially. The closer it is to the final size of the decompressed data, the fewer unnecessary reallocations will need to be performed while decompressing.

◆ maxDecompressedSizeInBytes

size_t grem::deflate::DecompressionOptions::maxDecompressedSizeInBytes = (uint64_t{8'589'934'592ull} <= uint64_t{Limits<size_t>::MAX}) ? static_cast<size_t>(uint64_t{8'589'934'592ull}) : size_t{2'147'483'648ull}

Maximum size of the decompressed data.

If the output buffer would exceed this size (plus its initial size) while decompressing, an exception is thrown.


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