|
@@ -235,7 +235,7 @@ allocate_huffman_table :: proc(allocator := context.allocator) -> (z: ^Huffman_T
|
|
|
}
|
|
|
|
|
|
@(optimization_mode="favor_size")
|
|
|
-build_huffman :: proc(z: ^Huffman_Table, code_lengths: []u8) -> (err: Error) {
|
|
|
+build_huffman :: #force_no_inline proc(z: ^Huffman_Table, code_lengths: []u8) -> (err: Error) {
|
|
|
sizes: [HUFFMAN_MAX_BITS+1]int
|
|
|
next_code: [HUFFMAN_MAX_BITS+1]int
|
|
|
|
|
@@ -670,4 +670,4 @@ inflate_from_byte_array_raw :: proc(input: []u8, buf: ^bytes.Buffer, raw := fals
|
|
|
return inflate_raw(&ctx, expected_output_size=expected_output_size)
|
|
|
}
|
|
|
|
|
|
-inflate :: proc{inflate_from_context, inflate_from_byte_array}
|
|
|
+inflate :: proc{inflate_from_context, inflate_from_byte_array}
|