# Build.Step.Run: fix missing stdin buffer and flush · gitcafe/zig

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

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

Visibility: public

Requested revision: 551e009da7be279293fe261b729280d29fcf81b0

Requested commit: 551e009da7be279293fe261b729280d29fcf81b0

Commit: 551e009da7be279293fe261b729280d29fcf81b0

Tree: 2cc356fc7c44c09d8e893f4f1b5a63b3290ec993

Author: Isaac Freund

Committer: Andrew Kelley

## Message

```
Build.Step.Run: fix missing stdin buffer and flush

Writer.sendFileAll() asserts non-zero buffer capacity in the case that
the fallback is hit. It also requires the caller to flush. The buffer
may be bypassed as an optimization but this is not a guarantee.

Also improve the Writer documentation and add an earlier assert on
buffer capacity in sendFileAll().

```

## Parents

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

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