0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Io/Kqueue.zig
Isaac Freund 2217d43cc9
Revert "std.Io.net: improve reception of control data"
It is not clear to me that this is the right path to take, using a
shared buffer for control data makes managing the alignment trickier,
and would require the Io interface itself to deal with alignment.

For an example of what I consider clean design, see net_read/net_write.
There is no need for the Io interface/operations to be aware of control
buffer alignment and it is sufficient for the net.Stream.Reader
abstraction to use an aligned buffer.

Also this has no test coverage and is (to my knowledege)
not currently blocking any real world Zig project.

This reverts commit 7c0347fce0b6f510b43ca503ad9c1cd2f8ac9a6b.
2026-10-01 11:21:28 +02:00

1502 lines
52 KiB