authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:16:59 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:16:59 -07:00
log4ff301b3fea0039bd6247ceff407cb40cef6f8c7
tree69e4c0ef31d8eb8b70703410e9c1c739f875e62c
parentfaee6e5d1569075cf148744c95bd532b69c43028

Readable added another param


1 files changed, 1 insertions(+), 1 deletions(-)

File.zig+1-1
...@@ -19,7 +19,7 @@ pub const ReadError = switch (builtin.target.os.tag) {...@@ -19,7 +19,7 @@ pub const ReadError = switch (builtin.target.os.tag) {
19 => errno.Error,19 => errno.Error,
20 else => @compileError("TODO"),20 else => @compileError("TODO"),
21};21};
22pub usingnamespace nio.Readable(@This());22pub usingnamespace nio.Readable(@This(), ._bare);
23pub fn read(self: File, buffer: []u8) ReadError!usize {23pub fn read(self: File, buffer: []u8) ReadError!usize {
24 return sys_libc.read(@intFromEnum(self.fd), buffer);24 return sys_libc.read(@intFromEnum(self.fd), buffer);
25}25}