Andrew Kelley
3d25a9c1e0
std.Io.Writer.Allocating.sendFile: use logicalPos
...
fixes #24754
tested with `zig build test-std -Dskip-release`
2025-08-08 14:21:57 -07:00
Igor Anić
6219c015d8
Io.Writer fix dangling pointer
...
While underlying writer is Allocating writer buffer can grow in
vtable.drain call. We should not hold pointer to the buffer before that
call and use it after.
This remembers positions instead of holding reference.
2025-08-08 12:56:26 -07:00
Andrew Kelley
9a538e0d54
link.Dwarf: minimal changes to remove CountingWriter
2025-08-07 22:26:42 -07:00
Andrew Kelley
e2d81bf6c0
http fixes
2025-08-07 10:04:29 -07: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
c49c90a42a
fetch: update API usage
2025-07-31 22:10:11 -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
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
Jacob Young
5060ab99c9
aarch64: add new from scratch self-hosted backend
2025-07-22 19:43:47 -07:00
Andrew Kelley
9abc3232a8
std.fs.File.Reader: fix missed advance writer positions
2025-07-21 13:08:43 +02: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
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
73cfba4d0d
std.Io.Writer: fix writeStruct
2025-07-16 17:20:03 -07:00
Andrew Kelley
c4776d66af
update compiler
2025-07-16 17:20:02 -07:00
Andrew Kelley
2d5d2ba4f5
std.zig.Render: update it and references
2025-07-16 17:20:02 -07:00
Silver
d772c06272
fix splatBytesAll and writeSplatAll
2025-07-16 20:37:38 +02:00
Andrew Kelley
6d39c29564
std.Io.Writer.Allocating: fix sendFile EndOfStream
2025-07-15 11:43:55 -07:00
Andrew Kelley
c7f332a260
std.Io.Writer.Discarding: fix sendFile EndOfStream
2025-07-15 11:32:40 -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
Travis Staloch
294db62d92
memory safety fix for Io.Writer.Allocating.toOwnedSlice*()
...
don't forget to save the list. this allows a
`testing.checkAllAllocationFailures()` test to pass in one of my
projects which newly failed since #24329 was merged.
2025-07-15 08:49:54 +02: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
524e2e19a5
std.Io.Writer.Discarding: fix drain calculation
2025-07-14 00:18:13 -07:00
Andrew Kelley
9a1f4cb011
std.net: update to new I/O API
2025-07-14 00:16:49 -07:00
Andrew Kelley
b60e9f2e85
Merge pull request #24394 from ziglang/fixes
...
buffering fixes
2025-07-11 10:56:24 +02:00
Anton Serov
d83b95cbf4
fixed .fixed flush recursion
2025-07-11 05:17:31 +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