# std.Io.Reader: use readVec for fill functions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/04fe1bfe3ceabd632183a85101cddeeec11f0745)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 04fe1bfe3ceabd632183a85101cddeeec11f0745

Requested commit: 04fe1bfe3ceabd632183a85101cddeeec11f0745

Commit: 04fe1bfe3ceabd632183a85101cddeeec11f0745

Tree: ae10e13312f60a6010ffad760d62a617e28de060

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Reader: use readVec for fill functions

readVec has two updated responsibilities:
1. it must respect any existing already buffered data.
2. it must write to the buffer if data is empty

```

## Parents

- [e17a050bc695f7d117b89adb1d258813593ca111](https://git.cafe/gitcafe/zig/commit/e17a050bc695f7d117b89adb1d258813593ca111?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/04fe1bfe3ceabd632183a85101cddeeec11f0745?format=markdown)
