# std.io.Writer: introduce flush · gitcafe/zig

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

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

Visibility: public

Requested revision: 55d6341eabf002017587863c92e6d5860527a72a

Requested commit: 55d6341eabf002017587863c92e6d5860527a72a

Commit: 55d6341eabf002017587863c92e6d5860527a72a

Tree: 4bee65b4222a262db9f632b598fd14975fab93db

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.io.Writer: introduce flush

into the vtable

also break `drainTo` and `sendFileTo` into lower level primitives
`writeSplatHeader` and `sendFileHeader` respectively. these are easier
to reason about in drain implementations.

```

## Parents

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

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