zig/lib/std/debug
Andrew Kelley 30b41dc510 std.compress.zstd.Decompress fixes
* std.Io.Reader: appendRemaining no longer supports alignment and has
  different rules about how exceeding limit. Fixed bug where it would
  return success instead of error.StreamTooLong like it was supposed to.

* std.Io.Reader: simplify appendRemaining and appendRemainingUnlimited
  to be implemented based on std.Io.Writer.Allocating

* std.Io.Writer: introduce unreachableRebase

* std.Io.Writer: remove minimum_unused_capacity from Allocating. maybe
  that flexibility could have been handy, but let's see if anyone
  actually needs it. The field is redundant with the superlinear growth
  of ArrayList capacity.

* std.Io.Writer: growingRebase also ensures total capacity on the
  preserve parameter, making it no longer necessary to do
  ensureTotalCapacity at the usage site of decompression streams.

* std.compress.flate.Decompress: fix rebase not taking into account seek

* std.compress.zstd.Decompress: split into "direct" and "indirect" usage
  patterns depending on whether a buffer is provided to init, matching
  how flate works. Remove some overzealous asserts that prevented buffer
  expansion from within rebase implementation.

* std.zig: fix readSourceFileToAlloc returning an overaligned slice
  which was difficult to free correctly.

fixes #24608
2025-08-15 10:44:35 -07:00
..
Dwarf std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
Coverage.zig std: Restore conventional compareFn behavior for binarySearch 2024-09-16 14:04:18 -07:00
Dwarf.zig std.compress.zstd.Decompress fixes 2025-08-15 10:44:35 -07:00
FixedBufferReader.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
Info.zig runtime page size detection 2025-02-06 14:23:23 -08:00
MemoryAccessor.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
no_panic.zig std: remove old panic handlers after zig1.wasm update 2025-06-01 12:10:57 +01:00
Pdb.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
SelfInfo.zig zig fmt: apply new cast builtin order 2025-08-03 14:59:56 +02:00
simple_panic.zig std.io: move getStdIn, getStdOut, getStdErr functions to fs.File 2025-07-07 22:43:51 -07:00