# std.io.Reader: add discard function · gitcafe/zig

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

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

Visibility: public

Requested revision: d943ce5dc79d2438ac82bb8e32baa33d3105306d

Requested commit: d943ce5dc79d2438ac82bb8e32baa33d3105306d

Commit: d943ce5dc79d2438ac82bb8e32baa33d3105306d

Tree: 026977ec1c5d674b0028f5d4ea893d78a05c292c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.io.Reader: add discard function

Reads the stream until the end, ignoring all the data.
Returns the number of bytes discarded.

```

## Parents

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

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