0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/std
Andrew Kelley 4543413491 std.io: introduce buffered I/O and change API
I started working on #465 and made some corresponding std.io
API changes.

New structs:
 * std.io.FileInStream
 * std.io.FileOutStream
 * std.io.BufferedOutStream
 * std.io.BufferedInStream

Removed:
 * std.io.File.in_stream
 * std.io.File.out_stream

Now instead of &file.out_stream or &file.in_stream to get access to
the stream API for a file, you get it like this:

var file_in_stream = io.FileInStream.init(&file);
const in_stream = &file_in_stream.stream;

var file_out_stream = io.FileOutStream.init(&file);
const out_stream = &file_out_stream.stream;

This is evidence that we might not need any OOP features -
See #130.
History 2017-11-07 03:22:27 -05:00
..
c Add c allocator (#542) 2017-10-17 08:13:04 -04:00
fmt breaking change to std.io API 2017-10-31 04:47:55 -04:00
math disable some of the failing tests 2017-10-15 02:04:21 -04:00
os std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
special std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
zlib c-to-zig: return statement 2017-09-01 03:16:35 -04:00
array_list.zig breaking change to std.io API 2017-10-31 04:47:55 -04:00
base64.zig more intuitive left shift and right shift operators 2017-08-09 10:09:38 -04:00
buf_map.zig change slicing syntax from ... to .. 2017-05-19 10:39:59 -04:00
buf_set.zig implement std.os.ChildProcess for windows 2017-10-14 15:32:18 -04:00
buffer.zig breaking change to std.io API 2017-10-31 04:47:55 -04:00
build.zig std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
cstr.zig implement std.os.symLink for windows 2017-10-14 17:39:44 -04:00
debug.zig std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
dwarf.zig better stack traces for ELF x86_64 2017-04-24 12:14:45 -04:00
elf.zig std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
empty.zig recognize ar program and pass --gc-sections to ld 2016-05-11 14:44:10 -07:00
endian.zig change slicing syntax from ... to .. 2017-05-19 10:39:59 -04:00
hash_map.zig introduce align keyword 2017-08-29 07:51:34 -04:00
heap.zig fix redeclaration of mem (#585) 2017-11-05 15:46:54 -06:00
index.zig breaking change to std.io API 2017-10-31 04:47:55 -04:00
io.zig std.io: introduce buffered I/O and change API 2017-11-07 03:22:27 -05:00
linked_list.zig LinkedList helper functions (#493) 2017-09-21 10:28:44 -04:00
mem.zig breaking change to std.io API 2017-10-31 04:47:55 -04:00
net.zig fix std.io.InStream for windows 2017-10-15 16:45:43 -04:00
rand.zig disable some of the failing tests 2017-10-15 02:04:21 -04:00
rand_test.zig std: add tests for mt32 and mt64 2016-07-28 20:14:57 -07:00
sort.zig partial implementation of printing floating point numbers with errol3 2017-06-14 00:24:25 -04:00