|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Classes | |
| struct | CompressionOptions |
| Deflate compression options. More... | |
| struct | DecompressionOptions |
| Deflate decompression options. More... | |
Functions | |
| void | compress (Writer writer, Span< const byte > data, const CompressionOptions &options={}) |
| Compress arbitrary data into a deflate-compressed data set. | |
| Buffer< byte > | compress (Span< const byte > data, const CompressionOptions &options={}) |
| Compress arbitrary data into a deflate-compressed data set. | |
| void | decompress (Buffer< byte > &output, SpanReader reader, const DecompressionOptions &options={}) |
| Decompress the original data from a deflate-compressed data set. | |
| Buffer< byte > | decompress (SpanReader reader, const DecompressionOptions &options={}) |
| Decompress the original data from a deflate-compressed data set. | |
| void | decompress (Buffer< byte > &output, Span< const byte > &&compressedData, const DecompressionOptions &options={}) |
| Decompress the original data from a deflate-compressed data set. | |
| Buffer< byte > | decompress (Span< const byte > &&compressedData, const DecompressionOptions &options={}) |
| Decompress the original data from a deflate-compressed data set. | |
| void grem::deflate::compress | ( | Writer | writer, |
| Span< const byte > | data, | ||
| const CompressionOptions & | options = {} ) |
Compress arbitrary data into a deflate-compressed data set.
| writer | writer to write the compressed data to. |
| data | input data to compress. |
| options | compression options, see CompressionOptions. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the writer implementation. |
|
nodiscard |
Compress arbitrary data into a deflate-compressed data set.
| data | input data to compress. |
| options | compression options, see CompressionOptions. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::deflate::decompress | ( | Buffer< byte > & | output, |
| SpanReader | reader, | ||
| const DecompressionOptions & | options = {} ) |
Decompress the original data from a deflate-compressed data set.
| output | buffer to write the data decompressed from the deflate-compressed data set to. |
| reader | reader over the deflate-compressed data set to decompress. After successful decompression, the reader's next read position will be the next full byte after the compressed data. |
| options | deompression options, see DecompressionOptions. |
| std::invalid_argument | if the read data is not a valid deflate-compressed data set. |
| std::length_error | if an internal size limit was exceeded, if the end of the reader was reached unexpectedly, or if the specified maximum decompressed size was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inlinenodiscard |
Decompress the original data from a deflate-compressed data set.
| reader | reader over the deflate-compressed data set to decompress. After successful decompression, the reader's next read position will be the next full byte after the compressed data. |
| options | deompression options, see DecompressionOptions. |
| std::invalid_argument | if the read data is not a valid deflate-compressed data set. |
| std::length_error | if an internal size limit was exceeded, if the end of the reader was reached unexpectedly, or if the specified maximum decompressed size was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Decompress the original data from a deflate-compressed data set.
| output | buffer to write the data decompressed from the deflate-compressed data set to. |
| compressedData | deflate-compressed data set to decompress. |
| options | decompression options, see DecompressionOptions. |
| std::invalid_argument | if the given data is not a valid deflate-compressed data set, or contains data after the end of the compressed data set. |
| std::length_error | if an internal size limit was exceeded, if the end of the compressed data was reached unexpectedly, or if the specified maximum decompressed size was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inlinenodiscard |
Decompress the original data from a deflate-compressed data set.
| compressedData | deflate-compressed data set to decompress. |
| options | decompression options, see DecompressionOptions. |
| std::invalid_argument | if the given data is not a valid deflate-compressed data set, or contains data after the end of the compressed data set. |
| std::length_error | if an internal size limit was exceeded, if the end of the compressed data was reached unexpectedly, or if the specified maximum decompressed size was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |