Skip to content

Conversation

@generalmimon
Copy link
Contributor

streamRemaining is a method of std.Io.Reader (see https://ziglang.org/documentation/0.15.1/std/#std.Io.Reader.streamRemaining), not std.compress.flate.Decompress.

FWIW, I encountered this error when I tried to use std.compress.flate.Decompress in combination with streamRemaining in my code. Here's the final code that works on Zig 0.15.2: https://github.com/kaitai-io/kaitai_struct_zig_runtime/blob/d0aee404b6f3a8584ce4df57c52ce0425dc2ab8e/src/root.zig#L519-L526

`streamRemaining` is a method of `std.Io.Reader` (see
https://ziglang.org/documentation/0.15.1/std/#std.Io.Reader.streamRemaining),
not `std.compress.flate.Decompress`.

FWIW, I encountered this error when I tried to use
`std.compress.flate.Decompress` in combination with `streamRemaining` in
my code. Here's the final code that works on Zig 0.15.2:
https://github.com/kaitai-io/kaitai_struct_zig_runtime/blob/d0aee404b6f3a8584ce4df57c52ce0425dc2ab8e/src/root.zig#L519-L526
@generalmimon generalmimon force-pushed the fix-code-snippet-in-0.15.1-relnotes branch from 0a04617 to 5f7a5e1 Compare November 25, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant