Crate libbzip3_sys

Crate libbzip3_sys 

Source

Structs§

__fsid_t
bz3_state
max_align_t

Constants§

BZ3_ERR_BWT
BZ3_ERR_CRC
BZ3_ERR_DATA_SIZE_TOO_SMALL
BZ3_ERR_DATA_TOO_BIG
BZ3_ERR_INIT
BZ3_ERR_MALFORMED_HEADER
BZ3_ERR_OUT_OF_BOUNDS
BZ3_ERR_TRUNCATED_DATA
BZ3_OK
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__glibc_c99_flexarr_available

Functions§

bz3_bound
@brief Return the recommended size of the output buffer for the compression functions.
bz3_compress
@brief Compress a frame. This function does not support parallelism by itself, consider using the low level bz3_encode_blocks() function instead. Using the low level API might provide better performance. Returns a bzip3 error code; BZ3_OK when the operation is successful. Make sure to set out_size to the size of the output buffer before the operation; out_size must be at least equal to `bz3_bound(in_size)’.
bz3_decode_block
@brief Decode a single block.
bz3_decode_blocks
@brief Decode n' blocks, all in parallel. Same specifics as bz3_encode_blocks’, but doesn’t overwrite `sizes’.
bz3_decompress
@brief Decompress a frame. This function does not support parallelism by itself, consider using the low level bz3_decode_blocks() function instead. Using the low level API might provide better performance. Returns a bzip3 error code; BZ3_OK when the operation is successful. Make sure to set out_size to the size of the output buffer before the operation.
bz3_encode_block
@brief Encode a single block. Returns the amount of bytes written to buffer'. buffer’ must be able to hold at least `bz3_bound(size)’ bytes. The size must not exceed the block size associated with the state.
bz3_encode_blocks
@brief Encode n' blocks, all in parallel. All specifics of the bz3_encode_block’ still hold. The function will launch a thread for each block. The compressed sizes are written to the sizes' array. Every buffer is overwritten and none of them can overlap. Precisely n’ states, buffers and sizes must be supplied.
bz3_free
@brief Free the memory occupied by a block encoder state.
bz3_last_error
@brief Get the last error number associated with a given state.
bz3_min_memory_needed
@brief Calculate the minimal memory required for compression with the given block size. This includes all internal buffers and state structures. This calculates the amount of bytes that will be allocated by a call to bz3_new().
bz3_new
@brief Construct a new block encoder state, which will encode blocks as big as the given block size. The decoder will be able to decode blocks at most as big as the given block size. Returns NULL in case allocation fails or the block size is not between 65K and 511M
bz3_orig_size_sufficient_for_decode
@brief Check if using original file size as buffer size is sufficient for decompressing a block at block pointer.
bz3_strerror
@brief Return a user-readable message explaining the cause of the last error.
bz3_version
@brief Get bzip3 version.

Type Aliases§

__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
wchar_t