Crate brotlic_sys
source ·Structs
- Opaque structure that holds decoder state.
- Opaque type for pointer to different possible internal structures containing dictionary prepared for the encoder
- Opaque structure that holds encoder state.
- Opaque structure that holds shared dictionary data.
Constants
- Disable “canny” ring buffer allocation strategy.
- Flag that determines if “Large Window Brotli” is used.
- Decoding error, e.g. corrupted input or memory allocation problem.
- Partially done; should be called again with more input.
- Partially done; should be called again with more output.
- Decoding successfully completed.
- Compression mode used in WOFF 2.0.
- Default compression mode.
- Compression mode for UTF-8 formatted text input.
- Emit metadata block to stream.
- Finalize the stream.
- Produce output for all processed input.
- Process input.
- Flag that affects usage of “literal context modeling” format feature.
- Flag that determines if “Large Window Brotli” is used.
- Recommended input block size.
- Recommended sliding LZ77 window size.
- Tune encoder for specific input.
- Recommended number of direct distance codes (NDIRECT).
- Recommended number of postfix bits (NPOSTFIX).
- The main compression speed-density lever.
- Estimated total input size for all ::BrotliEncoderCompressStream calls.
- Number of bytes of input stream already processed by a different instance.
- Raw LZ77 prefix dictionary.
- Serialized shared dictionary.
Functions
- Adds LZ77 prefix dictionary, adds or replaces built-in static dictionary and transforms.
- Creates an instance of ::BrotliDecoderState and initializes it.
- Performs one-shot memory-to-memory decompression.
- Decompresses the input stream to the output stream.
- Deinitializes and frees ::BrotliDecoderState instance.
- Converts error code to a c-string.
- Acquires a detailed error code.
- Checks if decoder has more output.
- Checks if decoder instance reached the final state.
- Checks if instance has already consumed input.
- Sets the specified parameter to the given decoder instance.
- Acquires pointer to internal output buffer.
- Gets a decoder library version.
- Attaches a prepared dictionary of any type to the encoder. Can be used multiple times to attach multiple dictionaries. The dictionary type was determined by BrotliEncoderPrepareDictionary. Multiple raw prefix dictionaries and/or max 1 serialized dictionary with custom words can be attached.
- Performs one-shot memory-to-memory compression.
- Compresses input stream to output stream.
- Creates an instance of ::BrotliEncoderState and initializes it.
- Deinitializes and frees ::BrotliEncoderState instance.
- Checks if encoder has more output.
- Checks if encoder instance reached the final state.
- Calculates the output size bound for the given @p input_size.
- Prepares a shared dictionary from the given file format for the encoder.
- Sets the specified parameter to the given encoder instance.
- Acquires pointer to internal output buffer.
- Gets an encoder library version.
- Attaches dictionary to a given instance of ::BrotliSharedDictionary.
- Creates an instance of ::BrotliSharedDictionary.
- Deinitializes and frees ::BrotliSharedDictionary instance.
Type Definitions
- Error code for detailed logging / production debugging.
- Options to be used with ::BrotliDecoderSetParameter.
- Result type for ::BrotliDecoderDecompress and ::BrotliDecoderDecompressStream functions.
- Options for ::BROTLI_PARAM_MODE parameter.
- Operations that can be performed by streaming encoder.
- Options to be used with ::BrotliEncoderSetParameter.
- Input data type for ::BrotliSharedDictionaryAttach.
- Allocating function pointer type.
- Deallocating function pointer type.