fn writevAll(self: File, iovecs: []os.iovec_const) WriteError!void
[src]
The iovecs
parameter is mutable because:
- This function needs to mutate the fields in order to handle partial writes from the underlying OS layer.
- The OS layer expects pointer addresses to be inside the application’s address space even if the length is zero. Meanwhile, in Zig, slices may have undefined pointer addresses when the length is zero. So this function modifies the iov_base fields when the length is zero. See https://github.com/ziglang/zig/issues/7699 See equivalent function:
std.net.Stream.writevAll
.