diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-23 15:20:37 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-23 16:32:48 +0200 |
| commit | a70635d2f67f29b8d080282f99d2101bca55835f (patch) | |
| tree | c1103852a474888875111d914e9e329fb3912f09 /core/compress/zlib/zlib.odin | |
| parent | 5cb16c4cd1342fed7c4af0715d15d9a724fd36fb (diff) | |
Most reads now go through buffer for zlib.
Diffstat (limited to 'core/compress/zlib/zlib.odin')
| -rw-r--r-- | core/compress/zlib/zlib.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/compress/zlib/zlib.odin b/core/compress/zlib/zlib.odin index e6bde8535..a57d202d5 100644 --- a/core/compress/zlib/zlib.odin +++ b/core/compress/zlib/zlib.odin @@ -645,6 +645,8 @@ inflate_from_byte_array :: proc(input: []u8, buf: ^bytes.Buffer, raw := false) - bytes.reader_init(&r, input); rs := bytes.reader_to_stream(&r); ctx.input = rs; + ctx.input_data = input; + ctx.input_fully_in_memory = true; buf := buf; ws := bytes.buffer_to_stream(buf); @@ -662,6 +664,8 @@ inflate_from_byte_array_raw :: proc(input: []u8, buf: ^bytes.Buffer, cb: ^Code_B bytes.reader_init(&r, input); rs := bytes.reader_to_stream(&r); ctx.input = rs; + ctx.input_data = input; + ctx.input_fully_in_memory = true; buf := buf; ws := bytes.buffer_to_stream(buf); |