Crate libbz2_rs_sys

Source
Expand description

A drop-in compatible rust implementation of bzip2

Structs§

BZFILE
Abstract handle to a .bz2 file.
bz_stream
The current stream state.

Constants§

BZ_CONFIG_ERROR
BZ_DATA_ERROR
BZ_DATA_ERROR_MAGIC
BZ_FINISH
BZ_FINISH_OK
BZ_FLUSH
BZ_FLUSH_OK
BZ_IO_ERROR
BZ_MAX_UNUSED
BZ_MEM_ERROR
BZ_OK
BZ_OUTBUFF_FULL
BZ_PARAM_ERROR
BZ_RUN
BZ_RUN_OK
BZ_SEQUENCE_ERROR
BZ_STREAM_END
BZ_UNEXPECTED_EOF

Functions§

BZ2_bzBuffToBuffCompress
Compress the input data into the destination buffer.
BZ2_bzBuffToBuffDecompress
Decompress the input data into the destination buffer.
BZ2_bzCompress
Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
BZ2_bzCompressEnd
Deallocates all dynamically allocated data structures for this stream.
BZ2_bzCompressInit
Prepares the stream for compression.
BZ2_bzDecompress
Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
BZ2_bzDecompressEnd
Deallocates all dynamically allocated data structures for this stream.
BZ2_bzDecompressInit
Prepares the stream for decompression.
BZ2_bzRead
Reads up to len (uncompressed) bytes from the compressed file b into the buffer buf.
BZ2_bzReadClose
Releases all memory associated with a BZFILE opened with BZ2_bzReadOpen.
BZ2_bzReadGetUnused
Returns data which was read from the compressed file but was not needed to get to the logical end-of-stream.
BZ2_bzReadOpen
Prepare to read compressed data from a file handle.
BZ2_bzWrite
Absorbs len bytes from the buffer buf, eventually to be compressed and written to the file.
BZ2_bzWriteClose
Compresses and flushes to the compressed file all data so far supplied by BZ2_bzWrite.
BZ2_bzWriteClose64
Compresses and flushes to the compressed file all data so far supplied by BZ2_bzWrite.
BZ2_bzWriteOpen
Prepare to write compressed data to a file handle.
BZ2_bzclose
Closes a BZFILE.
BZ2_bzdopen
Opens a .bz2 file for reading or writing using a pre-existing file descriptor. Analogous to libc::fdopen.
BZ2_bzerror
Describes the most recent error.
BZ2_bzflush
Flushes a BZFILE.
BZ2_bzlibVersion
The version of the zlib library.
BZ2_bzopen
Opens a .bz2 file for reading or writing using its name. Analogous to libc::fopen.
BZ2_bzread
Reads up to len (uncompressed) bytes from the compressed file b into the buffer buf.
BZ2_bzwrite
Absorbs len bytes from the buffer buf, eventually to be compressed and written to the file.