| ... | @@ -94,6 +94,9 @@ pub usingnamespace nio.Writable(@This(), ._bare); | ... | @@ -94,6 +94,9 @@ pub usingnamespace nio.Writable(@This(), ._bare); |
| 94 | pub fn write(self: File, buffer: []const u8) WriteError!usize { | 94 | pub fn write(self: File, buffer: []const u8) WriteError!usize { |
| 95 | return sys.write(@intFromEnum(self.fd), buffer); | 95 | return sys.write(@intFromEnum(self.fd), buffer); |
| 96 | } | 96 | } |
| | 97 | pub fn writev(self: File, iovec: []const sys.struct_iovec) WriteError!usize { |
| | 98 | return sys.writev(@intFromEnum(self.fd), iovec); |
| | 99 | } |
| 97 | | 100 | |
| 98 | pub const Stat = struct { | 101 | pub const Stat = struct { |
| 99 | inode: INode, | 102 | inode: INode, |