# std.Io.Threaded: allow length-0 file writes · gitcafe/zig

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

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

Visibility: public

Requested revision: f27bd87ade2e43dce66963f43ce678e361ddbfc2

Requested commit: f27bd87ade2e43dce66963f43ce678e361ddbfc2

Commit: f27bd87ade2e43dce66963f43ce678e361ddbfc2

Tree: 3b8b56798cb2c913b11ba950efeda8fa0504897c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: allow length-0 file writes

At first I thought about keeping this as an assertion but I can see this
being useful if you already know how many bytes to read and you are
filling the end of the buffer.

This also more closely mirrors POSIX APIs.

```

## Parents

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

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