package vendor:compress/brotli
⌘K
Ctrl+K
or
/
Overview
!Not Tested Yet (xfitgd) Bindings for Brotli
Index
Types (2)
Constants (25)
- DECODER_RESULT_ERROR
- DECODER_RESULT_NEEDS_MORE_INPUT
- DECODER_RESULT_NEEDS_MORE_OUTPUT
- DECODER_RESULT_SUCCESS
- MODE_FONT
- MODE_GENERIC
- MODE_TEXT
- OPERATION_EMIT_METADATA
- OPERATION_FINISH
- OPERATION_FLUSH
- OPERATION_PROCESS
- QUALITY_DEFAULT
- QUALITY_FAST_ONE_PASS_COMPRESSION
- QUALITY_FAST_TWO_PASS_COMPRESSION
- QUALITY_HQ_ZOPFLIFICATION
- QUALITY_MAX
- QUALITY_MIN
- QUALITY_ZOPFLIFICATION
- RESULT_ERROR
- RESULT_NEEDS_MORE_INPUT
- RESULT_NEEDS_MORE_OUTPUT
- RESULT_SUCCESS
- WINDOW_BITS_DEFAULT
- WINDOW_BITS_MAX
- WINDOW_BITS_MIN
Variables (0)
This section is empty.
Procedures (15)
- BrotliDecoderCreateInstance
- BrotliDecoderDecompress
- BrotliDecoderDecompressStream
- BrotliDecoderDestroyInstance
- BrotliDecoderGetErrorCode
- BrotliDecoderHasMoreOutput
- BrotliDecoderIsFinished
- BrotliEncoderCompress
- BrotliEncoderCompressStream
- BrotliEncoderCreateInstance
- BrotliEncoderDestroyInstance
- BrotliEncoderFinishStream
- BrotliEncoderHasMoreOutput
- BrotliEncoderIsFinished
- BrotliEncoderMaxCompressedSize
Procedure Groups (0)
This section is empty.
Types
DecoderState ¶
DecoderState :: struct {}
Decoder state
Related Procedures With Parameters
Related Procedures With Returns
EncoderState ¶
EncoderState :: struct {}
Encoder state
Related Procedures With Parameters
Related Procedures With Returns
Constants
DECODER_RESULT_NEEDS_MORE_INPUT ¶
DECODER_RESULT_NEEDS_MORE_INPUT: int : 2
DECODER_RESULT_NEEDS_MORE_OUTPUT ¶
DECODER_RESULT_NEEDS_MORE_OUTPUT: int : 3
DECODER_RESULT_SUCCESS ¶
DECODER_RESULT_SUCCESS: int : 1
MODE_FONT ¶
MODE_FONT: int : 2
MODE_TEXT ¶
MODE_TEXT: int : 1
OPERATION_EMIT_METADATA ¶
OPERATION_EMIT_METADATA: int : 3
OPERATION_FINISH ¶
OPERATION_FINISH: int : 2
OPERATION_FLUSH ¶
OPERATION_FLUSH: int : 1
QUALITY_DEFAULT ¶
QUALITY_DEFAULT: int : 11
QUALITY_FAST_ONE_PASS_COMPRESSION ¶
QUALITY_FAST_ONE_PASS_COMPRESSION: int : 0
QUALITY_FAST_TWO_PASS_COMPRESSION ¶
QUALITY_FAST_TWO_PASS_COMPRESSION: int : 1
QUALITY_HQ_ZOPFLIFICATION ¶
QUALITY_HQ_ZOPFLIFICATION: int : 11
QUALITY_MAX ¶
QUALITY_MAX: int : 11
QUALITY_ZOPFLIFICATION ¶
QUALITY_ZOPFLIFICATION: int : 10
RESULT_NEEDS_MORE_INPUT ¶
RESULT_NEEDS_MORE_INPUT: int : 2
RESULT_NEEDS_MORE_OUTPUT ¶
RESULT_NEEDS_MORE_OUTPUT: int : 3
RESULT_SUCCESS ¶
RESULT_SUCCESS: int : 1
WINDOW_BITS_DEFAULT ¶
WINDOW_BITS_DEFAULT: int : 22
WINDOW_BITS_MAX ¶
WINDOW_BITS_MAX: int : 24
Variables
This section is empty.
Procedures
BrotliDecoderCreateInstance ¶
BrotliDecoderCreateInstance :: proc "c" (alloc_func: rawptr, free_func: rawptr, opaque: rawptr) -> ^DecoderState ---
Create decoder instance
BrotliDecoderDecompress ¶
BrotliDecoderDecompress :: proc "c" (encoded_size: uint, encoded_buffer: [^]u8, decoded_size: ^uint, decoded_buffer: [^]u8) -> i32 ---
Decompress data (one-shot)
BrotliDecoderDecompressStream ¶
BrotliDecoderDecompressStream :: proc "c" ( s: ^DecoderState, available_in: ^uint, next_in: ^[^]u8, available_out: ^uint, next_out: ^[^]u8, total_out: ^uint, ) -> i32 ---
Decompress stream
BrotliDecoderDestroyInstance ¶
BrotliDecoderDestroyInstance :: proc "c" (s: ^DecoderState) ---
Destroy decoder instance
BrotliDecoderGetErrorCode ¶
BrotliDecoderGetErrorCode :: proc "c" (s: ^DecoderState) -> i32 ---
Get error code
BrotliDecoderHasMoreOutput ¶
BrotliDecoderHasMoreOutput :: proc "c" (s: ^DecoderState) -> i32 ---
Check if decoder has more output
BrotliDecoderIsFinished ¶
BrotliDecoderIsFinished :: proc "c" (s: ^DecoderState) -> i32 ---
Check if decoder is finished
BrotliEncoderCompress ¶
BrotliEncoderCompress :: proc "c" ( quality: i32, lgwin: i32, mode: i32, input_size: uint, input_buffer: [^]u8, encoded_size: ^uint, encoded_buffer: [^]u8, ) -> i32 ---
Compress data (one-shot)
BrotliEncoderCompressStream ¶
BrotliEncoderCompressStream :: proc "c" ( s: ^EncoderState, op: i32, available_in: ^uint, next_in: ^[^]u8, available_out: ^uint, next_out: ^[^]u8, total_out: ^uint, ) -> i32 ---
Compress stream
BrotliEncoderCreateInstance ¶
BrotliEncoderCreateInstance :: proc "c" (alloc_func: rawptr, free_func: rawptr, opaque: rawptr) -> ^EncoderState ---
Create encoder instance
BrotliEncoderDestroyInstance ¶
BrotliEncoderDestroyInstance :: proc "c" (s: ^EncoderState) ---
Destroy encoder instance
BrotliEncoderFinishStream ¶
BrotliEncoderFinishStream :: proc "c" (s: ^EncoderState, available_out: ^uint, next_out: ^[^]u8, total_out: ^uint) -> i32 ---
Finish stream
BrotliEncoderHasMoreOutput ¶
BrotliEncoderHasMoreOutput :: proc "c" (s: ^EncoderState) -> i32 ---
Check if encoder has more output
BrotliEncoderIsFinished ¶
BrotliEncoderIsFinished :: proc "c" (s: ^EncoderState) -> i32 ---
Check if encoder is finished
BrotliEncoderMaxCompressedSize ¶
Get maximum compressed size
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-v0.0.1 (vendor "odin") Linux_amd64 @ 2026-01-30 10:23:17.498026513 +0000 UTC