Expand description
Bindings for the oead::yaz0
module, which supports Yaz0 decompression and
fast compression (using syaz0).
Structs§
- Yaz0 compression options.
- The header of Yaz0 compressed data.
Functions§
- Compress data with default compression settings (no alignment, compression level 7).
- Compress data conditionally, if an associated path has a Yaz0-associated file extension (starts with
s
, but does not equalsarc
). Returns aCow
which contains the original data if the data does not need to be compressed, or containing the compressed data otherwise. - Compress data with custom compression settings.
- Decompress Yaz0 data to vector.
- Conditionally decompress Yaz0 data to a vector. Returns a
Cow
which contains the original data if the data is not Yaz0 compressed or decompression fails, or containing the decompressed data otherwise. - Decompress Yaz0 data into an existing buffer, returning the number of bytes written.
- Decompress Yaz0 data into an existing buffer, returning the number of bytes written.
- Get the header of Yaz0 compressed data, if it exists.