package vendor:zlib

⌘K
Ctrl+K
or
/

    Index

    Variables (0)

    This section is empty.

    Procedures (84)
    Procedure Groups (0)

    This section is empty.

    Types

    Byte ¶

    Byte :: u8

    Bytef ¶

    Bytef :: u8

    alloc_func ¶

    alloc_func :: proc "c" (opaque: rawptr, items: u32, size: u32) -> rawptr

    crc_t ¶

    crc_t :: u32

    free_func ¶

    free_func :: proc "c" (opaque: rawptr, address: rawptr)

    gz_header_s ¶

    gz_header_s :: struct {
    	text:      i32,
    	time:      u32,
    	xflags:    i32,
    	os:        i32,
    	extra:     [^]u8,
    	extra_len: u32,
    	extra_max: u32,
    	name:      [^]u8,
    	name_max:  u32,
    	comment:   [^]u8,
    	comm_max:  u32,
    	hcrc:      i32,
    	done:      i32,
    }
    Related Procedures With Parameters

    in_func ¶

    in_func :: proc "c" (rawptr, [^][^]u8) -> u32
    Related Procedures With Parameters

    off64_t ¶

    off64_t :: i64

    off_t ¶

    off_t :: i32

    out_func ¶

    out_func :: proc "c" (rawptr, [^]u8, u32) -> i32
    Related Procedures With Parameters

    uIntf ¶

    uIntf :: u32

    uLong ¶

    uLong :: u32

    uLongf ¶

    uLongf :: u32

    Constants

    ASCII ¶

    ASCII :: TEXT
     

    for compatibility with 1.2.2 and earlier

    BEST_COMPRESSION ¶

    BEST_COMPRESSION :: 9

    BEST_SPEED ¶

    BEST_SPEED :: 1

    BINARY ¶

    BINARY :: 0
     

    Possible values of the data_type field for deflate()

    BLOCK ¶

    BLOCK :: 5

    BUF_ERROR ¶

    BUF_ERROR :: -5

    DATA_ERROR ¶

    DATA_ERROR :: -3

    DEFAULT_COMPRESSION ¶

    DEFAULT_COMPRESSION :: -1

    DEFAULT_STRATEGY ¶

    DEFAULT_STRATEGY :: 0

    DEFLATED ¶

    DEFLATED :: 8
     

    The deflate compression method (the only one supported in this version)

    ERRNO ¶

    ERRNO :: -1

    FILTERED ¶

    FILTERED :: 1
     

    compression strategy; see deflateInit2() below for details

    FINISH ¶

    FINISH :: 4

    FIXED ¶

    FIXED :: 4

    FULL_FLUSH ¶

    FULL_FLUSH :: 3

    HUFFMAN_ONLY ¶

    HUFFMAN_ONLY :: 2

    MEM_ERROR ¶

    MEM_ERROR :: -4

    NEED_DICT ¶

    NEED_DICT :: 2

    NO_COMPRESSION ¶

    NO_COMPRESSION :: 0
     

    compression levels

    NO_FLUSH ¶

    NO_FLUSH :: 0
     

    Allowed flush values; see deflate() and inflate() below for details

    NULL ¶

    NULL :: 0
     

    for initializing zalloc, zfree, opaque

    OK ¶

    OK :: 0
     

    Return codes for the compression/decompression functions. Negative values are errors, positive values are used for special but normal events.

    PARTIAL_FLUSH ¶

    PARTIAL_FLUSH :: 1

    RLE ¶

    RLE :: 3

    STREAM_END ¶

    STREAM_END :: 1

    STREAM_ERROR ¶

    STREAM_ERROR :: -2

    SYNC_FLUSH ¶

    SYNC_FLUSH :: 2

    TEXT ¶

    TEXT :: 1

    TREES ¶

    TREES :: 6

    UNKNOWN ¶

    UNKNOWN :: 2

    VERNUM ¶

    VERNUM :: 0x12c0

    VERSION ¶

    VERSION :: "1.2.12"

    VERSION_ERROR ¶

    VERSION_ERROR :: -6

    VER_MAJOR ¶

    VER_MAJOR :: 1

    VER_MINOR ¶

    VER_MINOR :: 2

    VER_REVISION ¶

    VER_REVISION :: 12

    VER_SUBREVISION ¶

    VER_SUBREVISION :: 0

    Variables

    This section is empty.

    Procedures

    Version ¶

    Version :: proc "c" () -> cstring ---
     

    becase zlib.zlibVersion would be silly to write

    adler32 ¶

    adler32 :: proc "c" (adler: u32, buf: [^]u8, len: u32) -> u32 ---

    adler32_combine ¶

    adler32_combine :: proc "c" (u32, u32, i32) -> u32 ---

    adler32_combine64 ¶

    adler32_combine64 :: proc "c" (u32, u32, i64) -> u32 ---

    adler32_z ¶

    adler32_z :: proc "c" (adler: u32, buf: [^]u8, len: uint) -> u32 ---

    compress ¶

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

    compress2 ¶

    compress2 :: proc "c" (dest: [^]u8, destLen: ^u32, source: [^]u8, sourceLen: u32, level: i32) -> i32 ---

    compressBound ¶

    compressBound :: proc "c" (sourceLen: u32) -> u32 ---

    crc32 ¶

    crc32 :: proc "c" (crc: u32, buf: [^]u8, len: u32) -> u32 ---

    crc32_combine ¶

    crc32_combine :: proc "c" (u32, u32, i32) -> u32 ---

    crc32_combine64 ¶

    crc32_combine64 :: proc "c" (u32, u32, i64) -> u32 ---

    crc32_combine_gen ¶

    crc32_combine_gen :: proc "c" (i32) -> u32 ---

    crc32_combine_gen64 ¶

    crc32_combine_gen64 :: proc "c" (i64) -> u32 ---

    crc32_combine_op ¶

    crc32_combine_op :: proc "c" (crc1, crc2, op: u32) -> u32 ---

    crc32_z ¶

    crc32_z :: proc "c" (crc: u32, buf: [^]u8, len: uint) -> u32 ---

    deflate ¶

    deflate :: proc "c" (strm: ^z_stream_s, flush: i32) -> i32 ---

    deflateBound ¶

    deflateBound :: proc "c" (strm: ^z_stream_s, sourceLen: u32) -> u32 ---

    deflateCopy ¶

    deflateCopy :: proc "c" (dest, source: ^z_stream_s) -> i32 ---

    deflateEnd ¶

    deflateEnd :: proc "c" (strm: ^z_stream_s) -> i32 ---

    deflateGetDictionary ¶

    deflateGetDictionary :: proc "c" (strm: ^z_stream_s, dictionary: [^]u8, dictLength: ^u32) -> i32 ---

    deflateInit ¶

    deflateInit :: proc "c" (strm: ^z_stream_s, level: i32) -> i32 {…}

    deflateInit2 ¶

    deflateInit2 :: proc "c" (
    	strm:                                ^z_stream_s, 
    	level, method, windowBits, memLevel, 
    	strategy:                            i32, 
    ) -> i32 {…}

    deflateParams ¶

    deflateParams :: proc "c" (strm: ^z_stream_s, level, strategy: i32) -> i32 ---

    deflatePending ¶

    deflatePending :: proc "c" (strm: ^z_stream_s, pending: [^]u32, bits: [^]i32) -> i32 ---

    deflatePrime ¶

    deflatePrime :: proc "c" (strm: ^z_stream_s, bits, value: i32) -> i32 ---

    deflateReset ¶

    deflateReset :: proc "c" (strm: ^z_stream_s) -> i32 ---

    deflateResetKeep ¶

    deflateResetKeep :: proc "c" (^z_stream_s) -> i32 ---

    deflateSetDictionary ¶

    deflateSetDictionary :: proc "c" (strm: ^z_stream_s, dictionary: [^]u8, dictLength: u32) -> i32 ---

    deflateSetHeader ¶

    deflateSetHeader :: proc "c" (strm: ^z_stream_s, head: ^gz_header_s) -> i32 ---

    deflateTune ¶

    deflateTune :: proc "c" (strm: ^z_stream_s, good_length, max_lazy, nice_length, max_chain: i32) -> i32 ---

    get_crc_table ¶

    get_crc_table :: proc "c" () -> [^]u32 ---

    gzbuffer ¶

    gzbuffer :: proc "c" (file: ^gzFile_s, size: u32) -> i32 ---

    gzclearerr ¶

    gzclearerr :: proc "c" (file: ^gzFile_s) ---

    gzclose ¶

    gzclose :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzclose_r ¶

    gzclose_r :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzclose_w ¶

    gzclose_w :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzdirect ¶

    gzdirect :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzdopen ¶

    gzdopen :: proc "c" (fd: i32, mode: cstring) -> ^gzFile_s ---

    gzeof ¶

    gzeof :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzerror ¶

    gzerror :: proc "c" (file: ^gzFile_s, errnum: ^i32) -> cstring ---

    gzflush ¶

    gzflush :: proc "c" (file: ^gzFile_s, flush: i32) -> i32 ---

    gzfread ¶

    gzfread :: proc "c" (buf: rawptr, size, nitems: uint, file: ^gzFile_s) -> uint ---

    gzfwrite ¶

    gzfwrite :: proc "c" (buf: rawptr, size, nitems: uint, file: ^gzFile_s) -> uint ---

    gzgetc ¶

    gzgetc :: proc(file: ^gzFile_s) -> i32 {…}
     

    zlib.h redefines gzgetc with a macro and uses (gzgetc)(g) to invoke it from inside the same macro (preventing macro expansion), in Odin we give that a unique name using link_prefix then implement the body of the macro in our own procedure calling the unique named gzgetc instead.

    gzgetc_ ¶

    gzgetc_ :: proc "c" (file: ^gzFile_s) -> i32 ---
     

    backwards compat, not the same as gzget

    gzgets ¶

    gzgets :: proc "c" (file: ^gzFile_s, buf: [^]u8, len: i32) -> [^]u8 ---

    gzoffset64 ¶

    gzoffset64 :: proc "c" (^gzFile_s) -> i64 ---

    gzopen64 ¶

    gzopen64 :: proc "c" (cstring, cstring) -> ^gzFile_s ---

    gzprintf ¶

    gzprintf :: proc "c" (file: ^gzFile_s, format: cstring, .. args: ..any) -> i32 ---

    gzputc ¶

    gzputc :: proc "c" (file: ^gzFile_s, ch: i32) -> i32 ---

    gzputs ¶

    gzputs :: proc "c" (file: ^gzFile_s, s: cstring) -> i32 ---

    gzread ¶

    gzread :: proc "c" (file: ^gzFile_s, buf: rawptr, len: u32) -> i32 ---

    gzrewind ¶

    gzrewind :: proc "c" (file: ^gzFile_s) -> i32 ---

    gzseek64 ¶

    gzseek64 :: proc "c" (^gzFile_s, i64, i32) -> i64 ---

    gzsetparams ¶

    gzsetparams :: proc "c" (file: ^gzFile_s, level, strategy: i32) -> i32 ---

    gztell64 ¶

    gztell64 :: proc "c" (^gzFile_s) -> i64 ---

    gzungetc ¶

    gzungetc :: proc "c" (ch: i32, file: ^gzFile_s) -> i32 ---

    gzwrite ¶

    gzwrite :: proc "c" (file: ^gzFile_s, buf: rawptr, len: u32) -> i32 ---

    inflate ¶

    inflate :: proc "c" (strm: ^z_stream_s, flush: i32) -> i32 ---

    inflateBack ¶

    inflateBack :: proc "c" (strm: ^z_stream_s, _in: in_func, in_desc: rawptr, out: out_func, out_desc: rawptr) -> i32 ---

    inflateBackEnd ¶

    inflateBackEnd :: proc "c" (strm: ^z_stream_s) -> i32 ---

    inflateBackInit ¶

    inflateBackInit :: proc "c" (strm: ^z_stream_s, windowBits: i32, window: [^]u8) -> i32 {…}

    inflateCodesUsed ¶

    inflateCodesUsed :: proc "c" (^z_stream_s) -> u32 ---

    inflateCopy ¶

    inflateCopy :: proc "c" (dest, source: ^z_stream_s) -> i32 ---

    inflateEnd ¶

    inflateEnd :: proc "c" (strm: ^z_stream_s) -> i32 ---

    inflateGetDictionary ¶

    inflateGetDictionary :: proc "c" (strm: ^z_stream_s, dictionary: [^]u8, dictLength: ^u32) -> i32 ---

    inflateGetHeader ¶

    inflateGetHeader :: proc "c" (strm: ^z_stream_s, head: ^gz_header_s) -> i32 ---

    inflateInit ¶

    inflateInit :: proc "c" (strm: ^z_stream_s, level: i32) -> i32 {…}

    inflateInit2 ¶

    inflateInit2 :: proc "c" (strm: ^z_stream_s, windowBits: i32) -> i32 {…}

    inflateMark ¶

    inflateMark :: proc "c" (strm: ^z_stream_s) -> i32 ---

    inflatePrime ¶

    inflatePrime :: proc "c" (strm: ^z_stream_s, bits, value: i32) -> i32 ---

    inflateReset ¶

    inflateReset :: proc "c" (strm: ^z_stream_s) -> i32 ---

    inflateReset2 ¶

    inflateReset2 :: proc "c" (strm: ^z_stream_s, windowBits: i32) -> i32 ---

    inflateResetKeep ¶

    inflateResetKeep :: proc "c" (^z_stream_s) -> i32 ---

    inflateSetDictionary ¶

    inflateSetDictionary :: proc "c" (strm: ^z_stream_s, dictionary: [^]u8, dictLength: u32) -> i32 ---

    inflateSync ¶

    inflateSync :: proc "c" (strm: ^z_stream_s) -> i32 ---

    inflateSyncPoint ¶

    inflateSyncPoint :: proc "c" (^z_stream_s) -> i32 ---

    inflateUndermine ¶

    inflateUndermine :: proc "c" (^z_stream_s, i32) -> i32 ---

    inflateValidate ¶

    inflateValidate :: proc "c" (^z_stream_s, i32) -> i32 ---

    uncompress ¶

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

    uncompress2 ¶

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

    version ¶

    version :: Version
     

    becase zlib.zlibVersion would be silly to write

    zError ¶

    zError :: proc "c" (i32) -> cstring ---

    zlibCompileFlags ¶

    zlibCompileFlags :: proc "c" () -> u32 ---

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-20 21:10:48.193922800 +0000 UTC