zig/lib/std/io
Andrew Kelley d8540dd708 std: add type-erased reader; base GenericReader on it
The idea here is to avoid code bloat by having only one actual io.Reader
implementation, which is type erased, and then implement a GenericReader
that preserves type information on top of that as thin glue code.

The strategy here is for that glue code to `@errSetCast` the result of
the type-erased reader functions, however, while trying to do that I
ran into #17343.
2023-10-03 14:55:17 -07:00
..
Reader std: add type-erased reader; base GenericReader on it 2023-10-03 14:55:17 -07:00
bit_reader.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bit_writer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
buffered_atomic_file.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buffered_reader.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
buffered_writer.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
c_writer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
change_detection_stream.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
counting_reader.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
counting_writer.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
find_byte_writer.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
fixed_buffer_stream.zig Remove @fabs, fabs and absCast/Int from std lib 2023-09-27 11:24:28 -07:00
limited_reader.zig migration: std.math.{min, min3, max, max3} -> @min & @max 2023-06-16 13:44:09 -07:00
multi_writer.zig multi-writer: test with a non-comptime stream 2023-05-19 09:13:49 -07:00
peek_stream.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
Reader.zig std: add type-erased reader; base GenericReader on it 2023-10-03 14:55:17 -07:00
seekable_stream.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
stream_source.zig check for UEFI in io.StreamSource 2023-07-03 11:00:54 -07:00
test.zig std.rand: Refactor Random interface 2021-10-27 16:07:48 -04:00
tty.zig Fix TTY.detectConfig regression on windows 2023-07-02 00:07:24 -07:00
writer.zig fix u65529 and above overflowing in more places 2023-06-27 19:08:24 -04:00