Commit graph

13 commits

Author SHA1 Message Date
Andrew Kelley
a98dcbfbb9 std.Io.Writer: fix writeStruct 2025-07-16 13:08:33 -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
Renamed from lib/std/io/Writer.zig (Browse further)