aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-10 15:27:45 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-10 15:32:32 -0400
commitba0e3be5cfa2f60f2f9d2a4eb319408f972796c2 (patch)
treeda35c17d0067a463b521163f624f3d109b8050f4 /lib/std/net.zig
parent1ad831a0ef22f354d4e1dd5073456a0683249846 (diff)
downloadzig-ba0e3be5cfa2f60f2f9d2a4eb319408f972796c2.tar.gz
zig-ba0e3be5cfa2f60f2f9d2a4eb319408f972796c2.zip
(breaking) rework stream abstractions
The main goal here is to make the function pointers comptime, so that we don't have to do the crazy stuff with async function frames. Since InStream, OutStream, and SeekableStream are already generic across error sets, it's not really worse to make them generic across the vtable as well. See #764 for the open issue acknowledging that using generics for these abstractions is a design flaw. See #130 for the efforts to make these abstractions non-generic. This commit also changes the OutStream API so that `write` returns number of bytes written, and `writeAll` is the one that loops until the whole buffer is written.
Diffstat (limited to 'lib/std/net.zig')
0 files changed, 0 insertions, 0 deletions