diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-02-24 15:08:23 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-02-24 15:08:23 -0700 |
| commit | 8e6c2b7a47c3c19269cf03075eaeddb7ee61c42d (patch) | |
| tree | 6fca0ca2a2929fe9fbb66dc960451d77cefb04bc /lib/std/fs/file.zig | |
| parent | 38441b5eab3c9371f8412aa46a277f37fc026a79 (diff) | |
| parent | 8b9434871ea437840d25f073b945466359f402f9 (diff) | |
| download | zig-8e6c2b7a47c3c19269cf03075eaeddb7ee61c42d.tar.gz zig-8e6c2b7a47c3c19269cf03075eaeddb7ee61c42d.zip | |
Merge remote-tracking branch 'origin/master' into ast-memory-layout
Diffstat (limited to 'lib/std/fs/file.zig')
| -rw-r--r-- | lib/std/fs/file.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig index 5138555723..baea3b4e7f 100644 --- a/lib/std/fs/file.zig +++ b/lib/std/fs/file.zig @@ -587,6 +587,7 @@ pub const File = struct { } /// See https://github.com/ziglang/zig/issues/7699 + /// See equivalent function: `std.net.Stream.writev`. pub fn writev(self: File, iovecs: []const os.iovec_const) WriteError!usize { if (is_windows) { // TODO improve this to use WriteFileScatter @@ -605,6 +606,7 @@ pub const File = struct { /// The `iovecs` parameter is mutable because this function needs to mutate the fields in /// order to handle partial writes from the underlying OS layer. /// See https://github.com/ziglang/zig/issues/7699 + /// See equivalent function: `std.net.Stream.writevAll`. pub fn writevAll(self: File, iovecs: []os.iovec_const) WriteError!void { if (iovecs.len == 0) return; |
