# std.Io.File.MemoryMap API tuning · gitcafe/zig

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

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

Visibility: public

Requested revision: 482189843220d4bd21ab4fdb737c20ee57580769

Requested commit: 482189843220d4bd21ab4fdb737c20ee57580769

Commit: 482189843220d4bd21ab4fdb737c20ee57580769

Tree: d5cd417a1ca03a04e51ce7505924c2fe71566780

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.File.MemoryMap API tuning

- remove file_size parameter from MemoryMap.write
- remove requirement for mapping length to be aligned
- align allocated fallback memory
- add unit test for std.Io.Threaded.disable_memory_mapping = true
- add unit test for MemoryMap.setLength

```

## Parents

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

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