0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley ba0e3be5cf
(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.
History 2020-03-10 15:32:32 -04:00
..
include update C header files to clang 9.0.0rc4 2019-09-10 13:30:43 -04:00
libc reapply mingw-w64 header patches 2020-03-05 15:41:28 -05:00
libcxx add missing license files 2019-12-02 16:02:03 -05:00
libunwind update libunwind to llvm9 2019-07-19 16:54:00 -04:00
std (breaking) rework stream abstractions 2020-03-10 15:32:32 -04:00