core/compress/zlib

compress_zlib

Types

8

Compression_Method

Compression_Method :: enum u8 { DEFLATE = 8, Reserved = 15, }Source

zlib.inflate decompresses a ZLIB stream passed in as a []u8 or io.Stream.

Returns: Error.
Do we do Adler32 as we write bytes to output?
	It used to be faster to do it inline, now it's faster to do it at the end of `inflate`.

	We'll see what's faster after more optimization, and might end up removing
	`Context.rolling_hash` if not inlining it is still faster.

Constants

9

Variables

7

Z_DIST_BASE

Z_DIST_BASE :: [32]u16 = [32]u16{ 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, 257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0, }Source

Z_FIXED_LENGTH

Z_FIXED_LENGTH :: [288]u8 = [288]u8{ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,Source

Procedures

14

inflate_raw

inflate_raw :: proc(z: ^C, expected_output_size: untyped integer = -1, allocator: mem.Allocator = context.allocator) -> (err: Error)Source

TODO: Check alignment of reserve/resize.

Procedure Groups

1

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.