ZLIB: Split up input from stream and memory into own code paths.

This commit is contained in:
Jeroen van Rijn
2021-06-27 13:19:24 +02:00
parent 4689a6b341
commit 02f9668185
5 changed files with 475 additions and 74 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ main :: proc() {
if file == "-" {
// Read from stdin
s := os.stream_from_handle(os.stdin);
ctx := &compress.Context{
ctx := &compress.Context_Stream_Input{
input = s,
};
err = load(ctx, &buf);