core/compress

compress

Types

8

Context_Stream_Input

Context_Stream_Input :: struct #packed { input_data: []u8, input: io.Stream, output: ^bytes.Buffer, bytes_written: i64, code_buffer: u64, num_bits: u64, // If we know the data size, we can optimize the reads and writes. size_packed: i64, size_unpacked: i64, // Flags: // `input_fully_in_memory` // true = This tells us we read input from `input_data` exclusively. [] = EOF. // false = Try to refill `input_data` from the `input` stream. input_fully_in_memory: b8, padding: [1]u8, }Source

Deflate_Error

Deflate_Error :: enum int { None = 0, Huffman_Bad_Sizes = 1, Huffman_Bad_Code_Lengths = 2, Inflate_Error = 3, Bad_Distance = 4, Bad_Huffman_Code = 5, Len_Nlen_Mismatch = 6, BType_3 = 7, }Source

GZIP_Error

GZIP_Error :: enum int { None = 0, Invalid_GZIP_Signature = 1, Reserved_Flag_Set = 2, Invalid_Extra_Data = 3, Original_Name_Too_Long = 4, Comment_Too_Long = 5, Payload_Length_Invalid = 6, Payload_CRC_Invalid = 7, // GZIP's payload can be a maximum of max(u32le), or 4 GiB. // If you tell it you expect it to contain more, that's obviously an error. Payload_Size_Exceeds_Max_Payload = 8, // For buffered instead of streamed output, the payload size can't exceed // the max set by the `COMPRESS_OUTPUT_ALLOCATE_MAX` switch in compress/common.odin. // // You can tweak this setting using `-define:COMPRESS_OUTPUT_ALLOCATE_MAX=size_in_bytes` Output_Exceeds_COMPRESS_OUTPUT_ALLOCATE_MAX = 9, }Source

General_Error

General_Error :: enum int { None = 0, File_Not_Found = 1, Cannot_Open_File = 2, File_Too_Short = 3, Stream_Too_Short = 4, Output_Too_Short = 5, Unknown_Compression_Method = 6, Checksum_Failed = 7, Incompatible_Options = 8, Unimplemented = 9, // Memory errors Allocation_Failed = 10, Resize_Failed = 11, }Source

ZIP_Error

ZIP_Error :: enum int { None = 0, Invalid_ZIP_File_Signature = 1, Unexpected_Signature = 2, Insert_Next_Disk = 3, Expected_End_of_Central_Directory_Record = 4, }Source

ZLIB_Error

ZLIB_Error :: enum int { None = 0, Unsupported_Window_Size = 1, FDICT_Unsupported = 2, Unsupported_Compression_Level = 3, Code_Buffer_Malformed = 4, }Source

Constants

1

Procedures

27

Procedure Groups

11

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.