Expand description
A drop-in compatible rust implementation of bzip2
Structs§
- Abstract handle to a
.bz2file. - The current stream state.
Constants§
Functions§
- Compress the input data into the destination buffer.
- Decompress the input data into the destination buffer.
- Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
- Deallocates all dynamically allocated data structures for this stream.
- Prepares the stream for compression.
- Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
- Deallocates all dynamically allocated data structures for this stream.
- Prepares the stream for decompression.
- Reads up to
len(uncompressed) bytes from the compressed filebinto the bufferbuf. - Releases all memory associated with a
BZFILEopened withBZ2_bzReadOpen. - Returns data which was read from the compressed file but was not needed to get to the logical end-of-stream.
- Prepare to read compressed data from a file handle.
- Absorbs
lenbytes from the bufferbuf, eventually to be compressed and written to the file. - Compresses and flushes to the compressed file all data so far supplied by
BZ2_bzWrite. - Compresses and flushes to the compressed file all data so far supplied by
BZ2_bzWrite. - Prepare to write compressed data to a file handle.
- Closes a
BZFILE. - Opens a
.bz2file for reading or writing using a pre-existing file descriptor. Analogous tolibc::fdopen. - Describes the most recent error.
- Flushes a
BZFILE. - The version of the zlib library.
- Opens a
.bz2file for reading or writing using its name. Analogous tolibc::fopen. - Reads up to
len(uncompressed) bytes from the compressed filebinto the bufferbuf. - Absorbs
lenbytes from the bufferbuf, eventually to be compressed and written to the file.