Refactor ZLIB structs.

This commit is contained in:
Jeroen van Rijn committed 2021-06-23 16:32:47 +02:00
1 parent bb3ffdbdfb
commit 8663c64e47
6 files changed
+176 -133

No files matched your search

+1 -2
View File
@@ -11,7 +11,6 @@ package zlib
An example of how to use `zlib.inflate`.
*/
import "core:compress/zlib"
import "core:bytes"
import "core:fmt"
@@ -40,7 +39,7 @@ main :: proc() {
buf: bytes.Buffer;
// We can pass ", true" to inflate a raw DEFLATE stream instead of a ZLIB wrapped one.
err := zlib.inflate(ODIN_DEMO, &buf);
err := inflate(ODIN_DEMO, &buf);
defer bytes.buffer_destroy(&buf);
if err != nil {