package vendor:zlib

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 "cdecl" (opaque: rawptr, items: u32, size: u32) -> rawptr

crc_t ¶

crc_t :: u32

free_func ¶

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

gzFile_s ¶

gzFile_s :: struct {
	have: u32,
	next: [^]u8,
	pos:  i64,
}

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,
}

in_func ¶

in_func :: proc "cdecl" (_: rawptr, _: [^][^]u8) -> u32

off64_t ¶

off64_t :: i64

off_t ¶

off_t :: i32

out_func ¶

out_func :: proc "cdecl" (_: rawptr, _: [^]u8, _: u32) -> i32

size_t ¶

size_t :: uint

uInt ¶

uInt :: u32

uIntf ¶

uIntf :: u32

uLong ¶

uLong :: u32

uLongf ¶

uLongf :: u32

voidp ¶

voidp :: rawptr

voidpc ¶

voidpc :: rawptr

voidpf ¶

voidpf :: rawptr

z_stream_s ¶

z_stream_s :: struct {
	next_in:   ^u8,
	avail_in:  u32,
	total_in:  u32,
	next_out:  ^u8,
	avail_out: u32,
	total_out: u32,
	msg:       [^]u8,
	state:     rawptr,
	zalloc:    alloc_func,
	zfree:     free_func,
	opaque:    rawptr,
	data_type: i32,
	adler:     u32,
	reserved:  u32,
}

Constants

ASCII ¶

ASCII :: TEXT

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

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 "cdecl" () -> cstring ---

adler32 ¶

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

adler32_combine ¶

adler32_combine :: proc "cdecl" (_: u32, _: u32, _: i32) -> u32 ---

adler32_combine64 ¶

adler32_combine64 :: proc "cdecl" (_: u32, _: u32, _: i64) -> u32 ---

adler32_z ¶

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

compress ¶

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

compress2 ¶

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

compressBound ¶

compressBound :: proc "cdecl" (x: u32) -> u32 ---

crc32 ¶

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

crc32_combine ¶

crc32_combine :: proc "cdecl" (_: u32, _: u32, _: i32) -> u32 ---

crc32_combine64 ¶

crc32_combine64 :: proc "cdecl" (_: u32, _: u32, _: i64) -> u32 ---

crc32_combine_gen ¶

crc32_combine_gen :: proc "cdecl" (v: i32) -> u32 ---

crc32_combine_gen64 ¶

crc32_combine_gen64 :: proc "cdecl" (_: i64) -> u32 ---

crc32_combine_op ¶

crc32_combine_op :: proc "cdecl" (x, y, z: u32) -> u32 ---

crc32_z ¶

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

deflate ¶

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

deflateBound ¶

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

deflateCopy ¶

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

deflateEnd ¶

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

deflateGetDictionary ¶

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

deflateInit ¶

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

deflateInit2 ¶

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

deflateParams ¶

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

deflatePending ¶

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

deflatePrime ¶

deflatePrime :: proc "cdecl" (strm: ^z_stream_s, level, strategy: i32) -> i32 ---

deflateReset ¶

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

deflateResetKeep ¶

deflateResetKeep :: proc "cdecl" (strm: ^z_stream_s) -> i32 ---

deflateSetDictionary ¶

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

deflateSetHeader ¶

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

deflateTune ¶

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

get_crc_table ¶

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

gzbuffer ¶

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

gzclearerr ¶

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

gzclose ¶

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

gzclose_r ¶

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

gzclose_w ¶

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

gzdirect ¶

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

gzdopen ¶

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

gzeof ¶

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

gzerror ¶

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

gzflush ¶

gzflush :: proc "cdecl" (file: ^gzFile_s, ch: i32) -> i32 ---

gzfread ¶

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

gzfwrite ¶

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

gzgetc ¶

gzgetc :: proc "odin" (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 "cdecl" (file: ^gzFile_s) -> i32 ---

gzgets ¶

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

gzoffset64 ¶

gzoffset64 :: proc "cdecl" (_: ^gzFile_s) -> i64 ---

gzopen64 ¶

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

gzprintf ¶

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

gzputc ¶

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

gzputs ¶

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

gzread ¶

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

gzrewind ¶

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

gzseek64 ¶

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

gzsetparams ¶

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

gztell64 ¶

gztell64 :: proc "cdecl" (_: ^gzFile_s) -> i64 ---

gzungetc ¶

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

gzwrite ¶

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

inflate ¶

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

inflateBack ¶

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

inflateBackEnd ¶

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

inflateBackInit ¶

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

inflateCodesUsed ¶

inflateCodesUsed :: proc "cdecl" (_: ^z_stream_s) -> u32 ---

inflateCopy ¶

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

inflateEnd ¶

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

inflateGetDictionary ¶

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

inflateGetHeader ¶

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

inflateInit ¶

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

inflateInit2 ¶

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

inflateMark ¶

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

inflatePrime ¶

inflatePrime :: proc "cdecl" (strm: ^z_stream_s, level, strategy: i32) -> i32 ---

inflateReset ¶

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

inflateReset2 ¶

inflateReset2 :: proc "cdecl" (strm: ^z_stream_s, flush: i32) -> i32 ---

inflateResetKeep ¶

inflateResetKeep :: proc "cdecl" (strm: ^z_stream_s) -> i32 ---

inflateSetDictionary ¶

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

inflateSync ¶

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

inflateSyncPoint ¶

inflateSyncPoint :: proc "cdecl" (strm: ^z_stream_s) -> i32 ---

inflateUndermine ¶

inflateUndermine :: proc "cdecl" (strm: ^z_stream_s, flush: i32) -> i32 ---

inflateValidate ¶

inflateValidate :: proc "cdecl" (strm: ^z_stream_s, flush: i32) -> i32 ---

uncompress ¶

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

uncompress2 ¶

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

zError ¶

zError :: proc "cdecl" (joy: i32) -> cstring ---

zlibCompileFlags ¶

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

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.885532200 +0000 UTC