package core:compress/gzip

Index

Variables (0)

This section is empty.

Procedure Groups (1)

Types

Compression ¶

Compression :: enum u8 {
	DEFLATE = 8, 
}

Compression_Flags ¶

Compression_Flags :: enum u8 {
	Maximum_Compression = 2, 
	Fastest_Compression = 4, 
}

E_Deflate ¶

E_Deflate :: compress.Deflate_Error

E_GZIP ¶

E_GZIP :: compress.GZIP_Error

E_General ¶

E_General :: compress.General_Error

E_ZLIB ¶

E_ZLIB :: compress.ZLIB_Error

Error ¶

Error :: compress.Error
Header :: struct #packed {
	magic:              Magic,
	compression_method: Compression,
	flags:              Header_Flags,
	modification_time:  u32le,
	xfl:                Compression_Flags,
	os:                 OS,
}

Header_Flag ¶

Header_Flag :: enum u8 {
	// Order is important
	text       = 0, 
	header_crc = 1, 
	extra      = 2, 
	name       = 3, 
	comment    = 4, 
	reserved_1 = 5, 
	reserved_2 = 6, 
	reserved_3 = 7, 
}

Header_Flags ¶

Header_Flags :: distinct bit_set[Header_Flag; u8]

Magic ¶

Magic :: enum u16le {
	GZIP = 35615, 
}

OS ¶

OS :: enum u8 {
	FAT          = 0, 
	Amiga        = 1, 
	VMS          = 2, 
	Unix         = 3, 
	VM_CMS       = 4, 
	Atari_TOS    = 5, 
	HPFS         = 6, 
	Macintosh    = 7, 
	Z_System     = 8, 
	CP_M         = 9, 
	TOPS_20      = 10, 
	NTFS         = 11, 
	QDOS         = 12, 
	Acorn_RISCOS = 13, 
	_Unknown     = 14, 
	Unknown      = 255, 
}

Constants

GZIP_MAX_PAYLOAD_SIZE ¶

GZIP_MAX_PAYLOAD_SIZE :: i64(max(u32le))

OS_Name ¶

OS_Name: [OS]string : [OS]string{._Unknown = "", .FAT = "FAT", .Amiga = "Amiga", .VMS = "VMS/OpenVMS", .Unix = "Unix", .VM_CMS = "VM/CMS", .Atari_TOS = "Atari TOS", .HPFS = "HPFS", .Macintosh = "Macintosh", .Z_System = "Z-System", .CP_M = "CP/M", .TOPS_20 = "TOPS-20", .NTFS = "NTFS", .QDOS = "QDOS", .Acorn_RISCOS = "Acorn RISCOS", .Unknown = "Unknown"}

Variables

This section is empty.

Procedures

load_from_bytes ¶

load_from_bytes :: proc "odin" (data: []u8, buf: ^bytes.Buffer, known_gzip_size: int = -1, expected_output_size: int = -1, allocator := context.allocator) -> (err: compress.Error) {…}

load_from_context ¶

load_from_context :: proc "odin" (z: ^$, buf: ^bytes.Buffer, known_gzip_size: int = -1, expected_output_size: int = -1, allocator := context.allocator) -> (err: compress.Error) {…}

load_from_file ¶

load_from_file :: proc "odin" (filename: string, buf: ^bytes.Buffer, expected_output_size: int = -1, allocator := context.allocator) -> (err: compress.Error) {…}

main ¶

main :: proc "odin" () {…}

Procedure Groups

Source Files

Generation Information

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