Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

0.15.1 release notes: fix std.compress.flate code snippet#568

Open
generalmimon wants to merge 1 commit intoziglang:mainfrom
generalmimon:fix-code-snippet-in-0.15.1-relnotes
Open

0.15.1 release notes: fix std.compress.flate code snippet#568
generalmimon wants to merge 1 commit intoziglang:mainfrom
generalmimon:fix-code-snippet-in-0.15.1-relnotes

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

@generalmimon generalmimon force-pushed the fix-code-snippet-in-0.15.1-relnotes branch from 0a04617 to 5f7a5e1 Compare November 25, 2025 11:14
`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 5f7a5e1 to 7d2d63b Compare January 23, 2026 22:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant