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
..
2025-07-16 10:27:40 -07:00
2025-08-15 10:44:35 -07:00
2024-12-19 17:10:03 -05:00
2025-07-07 22:43:51 -07:00
2025-07-31 22:10:11 -07:00
2025-08-15 10:44:35 -07:00
2025-08-15 10:44:35 -07:00
2025-07-09 23:07:18 -07:00
2025-07-14 00:16:49 -07:00
2025-07-07 22:43:51 -07:00
2025-07-07 22:43:51 -07:00
2025-07-14 00:14:21 -07:00
2024-08-22 08:44:08 +02:00
2025-08-08 12:47:00 -07:00
2025-08-08 17:17:53 -07:00
2025-07-31 22:10:11 -07:00
2024-07-31 16:57:42 -07:00
2025-08-01 14:57:16 -07:00
2025-08-10 17:38:46 -07:00
2025-07-07 22:43:51 -07:00
2024-08-29 23:43:52 +01:00
2025-08-03 14:59:56 +02:00
2025-07-30 23:28:58 +01:00
2025-07-22 09:41:44 -07:00
2025-07-21 05:37:51 +02:00
2025-08-15 10:44:35 -07:00
2025-08-07 10:04:52 -07:00
2025-07-16 10:27:39 -07:00
2025-08-15 10:44:35 -07:00