aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/reader.zig
AgeCommit message (Collapse)Author
2021-01-11std: reader.skipBytes's num_bytes should be a u64daurnimator
2021-01-06std: Rename ArrayList shrink => shrinkAndFreeAlex Cameron
2020-12-31Year++Frank Denis
2020-12-29std: fix Reader.readUntilDelimiterOrEofAlloc() APIIsaac Freund
The current API does not allow the user to distinguish between EOF and an empty line. Reader.readUntilDelimiterOrEof() gets this API right so update readUntilDelimiterOrEofAlloc() to match it. Returning an optional here additionally makes calling this in a loop much cleaner. Remove readUntilDelimiterOrEofArrayList() as it no longer needed to implement readUntilDelimiterOrEof() and has the same API issues described without a clear way to fix them.
2020-12-03Make zig fmt happy with multiline arguments for `readAllArrayListAligned`Lee Cannon
2020-12-02Add `readUntilDelimiterOrEofArrayList` & `readUntilDelimiterOrEofAlloc`Lee Cannon
2020-11-27Add readAllArrayListAligned to Reader which can accept an arbitrary alignmentchristian-stephen
2020-11-07remove deprecated uses of ArrayList.spanJosh Holland
2020-09-03update uses of deprecated type field accessVexu
2020-08-28Improve io.Reader.skipBytes and add testsjoachimschmidt557
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-06-22Add std.fs.File.readAllAlloc testsJakub Konka
This commit adds some unit tests for `std.fs.File.readAllAlloc` function. It also updates the docs of `Reader.readNoEof` which were outdated, and swaps `inStream()` for `reader()` in `File.readAllAlloc` with the former being deprecated.
2020-06-09Support Reader for InStreamJonathan Marler