diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-11-14 11:17:38 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-11-14 11:17:38 +0000 |
| commit | e4fcebe4bf715cf60ccb74f2a03abca995ca608f (patch) | |
| tree | 84b90a922b4b89e00560631abffd56aacd075fb2 /core/compress | |
| parent | 51536fecf4859d61d2a0a786eb33ac4f2dc4fb73 (diff) | |
`Empty` -> `Unsupported`bill/io-error-changes
Diffstat (limited to 'core/compress')
| -rw-r--r-- | core/compress/common.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/compress/common.odin b/core/compress/common.odin index 39aa1ca72..d78aec328 100644 --- a/core/compress/common.odin +++ b/core/compress/common.odin @@ -297,7 +297,7 @@ peek_data_from_stream :: #force_inline proc(z: ^Context_Stream_Input, $T: typeid curr := z.input->impl_seek(0, .Current) or_return r, e1 := io.to_reader_at(z.input) if !e1 { - return T{}, .Empty + return T{}, .Unsupported } when size <= 128 { b: [size]u8 @@ -306,7 +306,7 @@ peek_data_from_stream :: #force_inline proc(z: ^Context_Stream_Input, $T: typeid } _, e2 := io.read_at(r, b[:], curr) if e2 != .None { - return T{}, .Empty + return T{}, .Unsupported } res = (^T)(&b[0])^ @@ -324,7 +324,7 @@ peek_data_at_offset_from_stream :: #force_inline proc(z: ^Context_Stream_Input, r, e3 := io.to_reader_at(z.input) if !e3 { - return T{}, .Empty + return T{}, .Unsupported } when size <= 128 { b: [size]u8 @@ -333,7 +333,7 @@ peek_data_at_offset_from_stream :: #force_inline proc(z: ^Context_Stream_Input, } _, e4 := io.read_at(r, b[:], pos) if e4 != .None { - return T{}, .Empty + return T{}, .Unsupported } // Return read head to original position. |