![]() |
Spicy
|
#include <zlib_.h>
Public Member Functions | |
Stream (int64_t window_bits=15+32) | |
Stream (const Stream &)=default | |
Stream (Stream &&) noexcept=default | |
Stream & | operator= (const Stream &)=default |
Stream & | operator= (Stream &&) noexcept=default |
hilti::rt::Bytes | decompress (const hilti::rt::Bytes &data) |
hilti::rt::Bytes | decompress (const hilti::rt::stream::View &data) |
hilti::rt::Bytes | finish () |
State for streaming gzip decompression.
Stream::Stream | ( | int64_t | window_bits = 15 + 32 | ) |
Constructor initializing a new stream for decompression.
windows_bits | value corresponding to zlib's windowBits parameter for inflateInit2 ; the default means "check for, and require, a gzip
file" |
hilti::rt::Bytes Stream::decompress | ( | const hilti::rt::Bytes & | data | ) |
Decompresses a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to decompress |
hilti::rt::Bytes Stream::decompress | ( | const hilti::rt::stream::View & | data | ) |
Decompresses a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to decompress |
hilti::rt::Bytes Stream::finish | ( | ) |
Signals the end of decompression.