Andrew Kelley
05ce1f99a6
compiler: update to new flate API
2025-07-31 22:10:11 -07:00
Andrew Kelley
fa410cc234
std.Io: delete BitReader
2025-07-31 22:10:11 -07:00
Andrew Kelley
0294e91451
std.Io.Reader: fix readVec at end
2025-07-31 19:26:12 -07:00
Andrew Kelley
cf7a28febb
std.Io.Reader: introduce readVec back into the VTable
...
simplifies and fixes things
addresses a subset of #24608
2025-07-30 09:26:34 -07:00
Andrew Kelley
1fcaf90dd3
std.Io.Reader: make fillUnbuffered respect prexisting buffer
...
addresses only one usage pattern in #24608
2025-07-29 23:10:50 -07:00
Andrew Kelley
04614d6ea1
std.Io.Reader: add rebase to the vtable
...
This eliminates a footgun and special case handling with fixed buffers,
as well as allowing decompression streams to keep a window in the output
buffer.
2025-07-26 20:00:25 -07:00
Andrew Kelley
7f1c04423e
std.Io: add "preserve" variants to Reader/Writer
2025-07-25 14:15:33 -07:00
Andrew Kelley
3687eada6a
std: rework zstd for new I/O API
...
This passes tests but it doesn't provide as big a window size as is
required to decompress larger streams.
The next commit in this branch will work towards that, without
introducing an additional buffer.
2025-07-25 14:15:33 -07:00
Andrew Kelley
b8955a2e0a
std.Io.poll: update to new I/O API
2025-07-23 21:25:34 -07:00
Andrew Kelley
1dcea220a4
std.tar: update to new I/O API
2025-07-22 09:41:44 -07:00
Andrew Kelley
e4abdf5a13
std.Io.Reader: fix takeStruct/peekStruct packed
...
closes #24516
2025-07-20 11:23:12 -07:00
Andrew Kelley
8373788c4c
Merge pull request #24488 from ziglang/more
...
std.zig: finish updating to new I/O API
2025-07-20 11:24:41 +02:00
Andrew Kelley
c40fb96ca3
std.Io.Writer: fix writeSliceSwap
...
tried to be too clever, wrote bad code
2025-07-19 22:12:37 -07:00
Andrew Kelley
a288266f33
std.Io.Reader: remove aggressive assert from fill
...
with `.fixed("")` you should still be able to do `fill(1)` and have it
return error.EndOfStream.
2025-07-19 16:05:01 -07:00
Andrew Kelley
5784500572
std.Io.Reader: fix readSliceShort with smaller buffer than Reader
...
closes #24443
2025-07-17 09:26:31 -07:00
Andrew Kelley
86699acbb9
std.Io.Reader: update OneByteReader usage to std.testing.Reader
2025-07-17 09:26:31 -07:00
Andrew Kelley
70f514f1ba
std.Io.Reader: fix appendRemaining harder
...
ensure that it issues a stream call that includes the buffer to detect
the end when needed, but otherwise does not offer Reader buffer to
append directly to the list.
2025-07-16 17:20:03 -07:00
Andrew Kelley
e7a639967e
std.Io.Reader: fix appendRemaining
...
it calls readVec which is a higher level function than was expected in
the previous implementation
2025-07-16 17:20:03 -07:00
Andrew Kelley
f521aa0520
std.io.Reader: add more docs for rebase
...
closes #24418
2025-07-15 10:04:45 -07:00
Andrew Kelley
a5dbb656b1
Merge pull request #24454 from ziglang/packed-struct-streams
...
std.Io: handle packed structs better
2025-07-15 13:43:08 +02:00
Andrew Kelley
4f5fa959aa
std.Io.Reader.streamDelimiterEnding docs clarification
2025-07-14 21:01:40 -07:00
Andrew Kelley
deb9f3e88f
std.Io: handle packed structs better
...
Rather than having the endian-suffixed functions be the preferred ones
the unsuffixed ones are the preferred ones and the tricky functions get
a special suffix.
Makes packed structs read and written the same as integers.
closes #12960
2025-07-14 18:43:56 -07:00
Andrew Kelley
5496901e71
std.Io.Reader.appendRemaining: add missing assert
2025-07-14 00:14:21 -07:00
mlugg
549a466dd1
std.Io.Reader: encourage inlining hot buffer check
...
Resolves : #24424
2025-07-12 23:52:13 +02:00
mochalins
61eff7b6dd
std: Fix Io.Reader.Limited and add test
2025-07-11 17:46:14 +02:00
Andrew Kelley
e255415498
std: add some missing doc comments
2025-07-10 16:52:29 -07:00
Andrew Kelley
5360968e03
std: rename io to Io in preparation
...
This commit is non-breaking.
std.io is deprecated in favor of std.Io, in preparation for that
namespace becoming an interface.
2025-07-11 01:16:27 +02:00