aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/reader.zig
AgeCommit message (Collapse)Author
2022-08-22std.io.Reader: bounded array functionsInKryption
* Add readIntoBoundedBytes * Add readBoundedBytes
2022-06-03std: update tests to stage2 semanticsVeikka Tuominen
2022-03-08deprecated TypeInfo in favor of TypeJonathan Marler
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-01-24readUntilDelimiter*: read only if buffer not fullPablo Santiago Blum de Aguiar
Ref.: #9594
2021-11-30allocgate: std Allocator interface refactorLee Cannon
2021-11-30std lib API deprecations for the upcoming 0.9.0 releaseAndrew Kelley
See #3811
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-09-19Update all ensureCapacity calls to the relevant non-deprecated versionRyan Liptak
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-08-20Add std.io.Reader.readUntilDelimiter()Samadi van Koten
2021-05-08std: update usage of std.testingVeikka Tuominen
2021-02-21replace ArrayList.shrinkAndFree by ArrayList.shrinkRetainingCapacityBenjamin Graf
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