Add additional error checking to helpers.

This commit is contained in:
Jeroen van Rijn
2021-10-06 20:10:37 +02:00
parent 2e9eec156c
commit 21c6d691d8
6 changed files with 176 additions and 143 deletions
+2
View File
@@ -11,6 +11,7 @@ package compress
import "core:io"
import "core:image"
import "core:bytes"
import "core:mem"
/*
These settings bound how much compression algorithms will allocate for their output buffer.
@@ -47,6 +48,7 @@ when size_of(uintptr) == 8 {
Error :: union {
General_Error,
mem.Allocator_Error,
Deflate_Error,
ZLIB_Error,
GZIP_Error,