package vendor:compress/bzip2

⌘K
Ctrl+K
or
/

    Types

    Stream ¶

    Stream :: struct {
    	next_in:        [^]u8,
    	avail_in:       u32,
    	total_in_lo32:  u32,
    	total_in_hi32:  u32,
    	next_out:       [^]u8,
    	avail_out:      u32,
    	total_out_lo32: u32,
    	total_out_hi32: u32,
    	state:          rawptr,
    	bzalloc:        rawptr,
    	bzfree:         rawptr,
    	opaque:         rawptr,
    }
     

    Bzip2 stream structure

    Related Procedures With Parameters

    Constants

    ACTION_FINISH ¶

    ACTION_FINISH: int : 2

    ACTION_FLUSH ¶

    ACTION_FLUSH: int : 1

    ACTION_RUN ¶

    ACTION_RUN: int : 0
     

    Compression actions

    BLOCK_SIZE_100K_DEFAULT ¶

    BLOCK_SIZE_100K_DEFAULT: int : 9

    BLOCK_SIZE_100K_MAX ¶

    BLOCK_SIZE_100K_MAX: int : 9

    BLOCK_SIZE_100K_MIN ¶

    BLOCK_SIZE_100K_MIN: int : 1
     

    Bzip2 compression levels

    BZ_CONFIG_ERROR ¶

    BZ_CONFIG_ERROR: int : -9

    BZ_DATA_ERROR ¶

    BZ_DATA_ERROR: int : -4

    BZ_DATA_ERROR_MAGIC ¶

    BZ_DATA_ERROR_MAGIC: int : -5

    BZ_FINISH_OK ¶

    BZ_FINISH_OK: int : 3

    BZ_FLUSH_OK ¶

    BZ_FLUSH_OK: int : 2

    BZ_IO_ERROR ¶

    BZ_IO_ERROR: int : -6

    BZ_MEM_ERROR ¶

    BZ_MEM_ERROR: int : -3

    BZ_OK ¶

    BZ_OK: int : 0
     

    Bzip2 operation results

    BZ_OUTBUFF_FULL ¶

    BZ_OUTBUFF_FULL: int : -8

    BZ_PARAM_ERROR ¶

    BZ_PARAM_ERROR: int : -2

    BZ_RUN_OK ¶

    BZ_RUN_OK: int : 1

    BZ_SEQUENCE_ERROR ¶

    BZ_SEQUENCE_ERROR: int : -1

    BZ_STREAM_END ¶

    BZ_STREAM_END: int : 4

    BZ_UNEXPECTED_EOF ¶

    BZ_UNEXPECTED_EOF: int : -7

    VERBOSITY_MAX ¶

    VERBOSITY_MAX: int : 4

    VERBOSITY_NORMAL ¶

    VERBOSITY_NORMAL: int : 1

    VERBOSITY_SILENT ¶

    VERBOSITY_SILENT: int : 0
     

    Bzip2 verbosity

    VERBOSITY_VERBOSE ¶

    VERBOSITY_VERBOSE: int : 2

    VERBOSITY_VERY_VERBOSE ¶

    VERBOSITY_VERY_VERBOSE: int : 3

    WORK_FACTOR_DEFAULT ¶

    WORK_FACTOR_DEFAULT: int : 30
     

    Bzip2 work factor

    WORK_FACTOR_MAX ¶

    WORK_FACTOR_MAX: int : 250

    Variables

    This section is empty.

    Procedures

    bzBuffToBuffCompress ¶

    bzBuffToBuffCompress :: proc "c" (
    	dest:          [^]u8, 
    	destLen:       ^u32, 
    	source:        [^]u8, 
    	sourceLen:     u32, 
    	blockSize100k: i32, 
    	verbosity:     i32, 
    	workFactor:    i32, 
    ) -> i32 ---
     

    Buffer compress

    bzBuffToBuffDecompress ¶

    bzBuffToBuffDecompress :: proc "c" (
    	dest:      [^]u8, 
    	destLen:   ^u32, 
    	source:    [^]u8, 
    	sourceLen: u32, 
    	small:     i32, 
    	verbosity: i32, 
    ) -> i32 ---
     

    Buffer decompress

    bzCompress ¶

    bzCompress :: proc "c" (strm: ^Stream, action: i32) -> i32 ---
     

    Compress data

    bzCompressEnd ¶

    bzCompressEnd :: proc "c" (strm: ^Stream) -> i32 ---
     

    Compress end

    bzCompressInit ¶

    bzCompressInit :: proc "c" (strm: ^Stream, blockSize100k: i32, verbosity: i32, workFactor: i32) -> i32 ---
     

    Compress initialization

    bzDecompress ¶

    bzDecompress :: proc "c" (strm: ^Stream) -> i32 ---
     

    Decompress data

    bzDecompressEnd ¶

    bzDecompressEnd :: proc "c" (strm: ^Stream) -> i32 ---
     

    Decompress end

    bzDecompressInit ¶

    bzDecompressInit :: proc "c" (strm: ^Stream, verbosity: i32, small: i32) -> i32 ---
     

    Decompress initialization

    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.500951352 +0000 UTC