|
static bool | Compress (ByteBlock &out, const ByteBlock &in, int level, Report &report=(ts::NullReport::Instance())) |
| Compress data according to the DEFLATE algorithm.
|
|
static bool | Compress (ByteBlock &out, const void *in, size_t in_size, int level, Report &report=(ts::NullReport::Instance())) |
| Compress data according to the DEFLATE algorithm.
|
|
static bool | Decompress (ByteBlock &out, const ByteBlock &in, Report &report=(ts::NullReport::Instance())) |
| Decompress data according to the DEFLATE algorithm.
|
|
static bool | Decompress (ByteBlock &out, const void *in, size_t in_size, Report &report=(ts::NullReport::Instance())) |
| Decompress data according to the DEFLATE algorithm.
|
|
static UString | GetLibraryVersion () |
| Get the Zlib library version.
|
|
Implementation of RFC 1951 data compression, a.k.a.
zlib format, a.k.a. DEFLATE.
This interface is a proxy to the zlib library on UNIX systems (Linux, macOS, BSD). On Windows systems, the source code of TSDuck embeds the header-only implementation called "Small Deflate" or "sdefl". The sdefl implementation is also used when the macro TS_NO_ZLIB is defined on any system.
- See also
- RFC 1950 ZLIB Compressed Data Format Specification version 3.3
-
RFC 1951 DEFLATE Compressed Data Format Specification version 1.3
-
https://www.zlib.net
-
https://github.com/vurtun/lib