zig/lib/std/compress
Igor Anić 6de2310035
flate change bit reader Bits to usize (#24719)
Don't see why byte returned from specialPeek needs to be shifted by
remaining_needed_bits.
I believe that decision in specialPeek should be done on the number of
the remaining bits not of the content of that bits.

Some test result are changed, but they are now consistent with the
original state as found in:
5f790464b0/lib/std/compress/flate/Decompress.zig

Changing Bits from usize to u32 or u64 now returns same results.

* flate: simplify peekBitsEnding

`peekBits` returns at most asked number of bits. Fails with EndOfStream
when there are no available bits. If there are less bits available than
asked still returns that available bits.
Hopefully this change better reflects intention. On first input stream
peek error we break the loop.
2025-08-07 14:40:08 -07:00
..
flate flate change bit reader Bits to usize (#24719) 2025-08-07 14:40:08 -07:00
lzma std: remove dependencies on legacy coercion 2025-02-26 00:17:09 +00:00
lzma2 std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
testdata remove v1 deflate implementation 2024-02-14 22:34:13 +01:00
xz std: rework zstd for new I/O API 2025-07-25 14:15:33 -07:00
zstd std.compress: fix discard impl and flate error detection 2025-07-31 22:10:11 -07:00
flate.zig std.compress.flate.Decompress: don't compute checksums 2025-07-31 22:10:11 -07:00
lzma.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
lzma2.zig Delete redundant lzma/lzma2 prefix in function/struct names 2023-02-05 06:52:28 -08:00
xz.zig std.compress.xz: eliminate dependency on std.Io.bitReader 2025-07-27 22:08:52 -07:00
zstd.zig std.compress.zstd: respect the window length 2025-07-25 14:15:33 -07:00