Andrew Kelley
28190cc404
std.crypto.tls: rework for new std.Io API
2025-08-07 10:04:29 -07:00
Matthew Lugg
fd9cfc39f5
Merge pull request #24199 from Justus2308/24106-fmt-casts
...
zig fmt: canonicalize nested cast builtin order
2025-08-07 10:55:03 +01:00
Andrew Kelley
04fe1bfe3c
std.Io.Reader: use readVec for fill functions
...
readVec has two updated responsibilities:
1. it must respect any existing already buffered data.
2. it must write to the buffer if data is empty
2025-08-06 21:23:06 -07:00
Andrew Kelley
196e36bbb2
std: remove BoundedArray
...
This use case is handled by ArrayListUnmanaged via the "...Bounded"
method variants, and it's more optimal to share machine code, versus
generating multiple versions of each function for differing array
lengths.
2025-08-05 09:56:02 -07:00
Justus Klausecker
7c35070b90
zig fmt: apply new cast builtin order
2025-08-03 14:59:56 +02:00
Andrew Kelley
eb17d4562a
std.Io.Writer.Hashed: fix bad assert
2025-07-31 22:36:52 -07:00
Ian Johnson
d91744401f
fetch: More Git fixes
2025-07-31 22:10:11 -07:00
Andrew Kelley
64814dc986
std.compress.flate.Decompress: respect stream limit
2025-07-31 22:10:11 -07:00
Andrew Kelley
6caa100f0d
std.Io.Writer: fix wrong return value from fixedDrain
2025-07-31 22:10:11 -07:00
Andrew Kelley
165cd87c12
std.Io.Reader: don't set end to zero
...
because it may be used as a ring buffer
2025-07-31 22:10:11 -07:00
Andrew Kelley
111305678c
std: match readVec fn prototype exactly
...
this is not necessary according to zig language, but works around a flaw
in the C backend
2025-07-31 22:10:11 -07:00
Andrew Kelley
c49c90a42a
fetch: update API usage
2025-07-31 22:10:11 -07:00
Andrew Kelley
4c04835a08
std.compress.zstd.Decompress: implement discard and readVec
2025-07-31 22:10:11 -07:00
Andrew Kelley
f3a38e30fa
std.Io: delete SeekableStream
...
Alternative is to use File.Reader and File.Writer directly.
2025-07-31 22:10:11 -07:00
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
1b43551190
std.Io: remove BitWriter
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
Kendall Condon
ecd3ea9bd2
DeprecatedReader.Adapted: fix EndOfStream handling
2025-07-28 21:41:19 -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
66e49d93b7
Merge pull request #24559 from ziglang/zstd
...
std: rework zstd for new I/O API
2025-07-25 20:02:53 -07:00
Andrew Kelley
9e11727c7c
Merge pull request #23340 from castholm/pass-null-to-b-dependency
...
Add support for passing null, string literals, enum lists and more to `b.dependency()`
2025-07-25 18:00:46 -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
bc8e1a74c5
Merge pull request #24523 from ziglang/fifno
...
std.tar: update to new I/O API
2025-07-23 10:02:52 +02:00
Jacob Young
5060ab99c9
aarch64: add new from scratch self-hosted backend
2025-07-22 19:43:47 -07:00
Andrew Kelley
4fcb479de9
don't forget to advance in the deprecated adapter
2025-07-22 18:42:54 -07:00
Andrew Kelley
ec5cdb2fe3
std: fix deprecated writer not handling the buffer
2025-07-22 17:06:25 -07:00
Andrew Kelley
1dcea220a4
std.tar: update to new I/O API
2025-07-22 09:41:44 -07:00
Andrew Kelley
af0a02a2de
std.Io: delete FindByteWriter
...
dead
2025-07-22 09:41:43 -07:00
Andrew Kelley
03a6892189
std.Io: delete ChangeDetectionStream
...
dead code
2025-07-22 09:41:43 -07:00
Andrew Kelley
d9a5a3e8c5
std.Io: delete MultiWriter
...
nah
2025-07-22 09:41:43 -07:00
Andrew Kelley
abed0f5129
std.Io: delete BufferedAtomicFile
...
this is now redundant
2025-07-22 09:41:43 -07:00
Andrew Kelley
a3efdd7279
std.Io: delete StreamSource
...
it shan't be missed
2025-07-22 09:41:43 -07:00
Andrew Kelley
d509bc933f
std.Io: delete CWriter
...
it shan't be missed
2025-07-22 09:41:43 -07:00
Andrew Kelley
9abc3232a8
std.fs.File.Reader: fix missed advance writer positions
2025-07-21 13:08:43 +02:00
Andrew Kelley
e4abdf5a13
std.Io.Reader: fix takeStruct/peekStruct packed
...
closes #24516
2025-07-20 11:23:12 -07:00
Carl Åstholm
e7604bba3e
Serialize float options using the hexadecimal format
...
This ensures no information is lost when the value is round-tripped.
2025-07-20 18:28:36 +02: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
Marc Tiehuis
4780cc50cf
std.Io.Writer: support alignment for {t} specifier
2025-07-20 10:30:17 +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
8489bab1f4
std.Io.Writer: add missing writeSliceSwap
2025-07-19 19:57: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
John Benediktsson
e62e42f0d9
std.io.Writer: remove requirement of a 2-byte buffer for extern unions ( #24489 )
...
closes #24486
2025-07-17 16:42:53 +00: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
John Benediktsson
6e86910e19
std.Io: Fix GenericReader.adaptToNewApi; add DeprecatedReader.adaptToNewApi ( #24484 )
2025-07-17 11:29:22 +00:00