authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-13 19:47:41 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-13 19:47:41 -07:00
log9723d6d1d232b8a186366fc780ed1dac3513a74d
tree986402e05becf4a136c44a2881566fdd52075e43
parent688f401934b1c4f1ed855d2bc1ba04bc61e71f7e
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

allow BufferedWriter with pointer type


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

buffered_writer.zig+2-1
......@@ -1,6 +1,7 @@
11const std = @import("std");
22const nio = @import("./nio.zig");
33const builtin = @import("builtin");
4const extras = @import("extras");
45const sys_linux = @import("sys-linux");
56
67const sys = switch (builtin.target.os.tag) {
......@@ -24,7 +25,7 @@ pub fn BufferedWriter(comptime buffer_size: usize, comptime WriterType: type) ty
2425 };
2526 }
2627
27 pub const WriteError = WriterType.WriteError;
28 pub const WriteError = extras.Pointee(WriterType).WriteError;
2829 pub usingnamespace nio.Writable(@This(), ._var);
2930 pub fn write(self: *Self, bytes: []const u8) WriteError!usize {
3031 if (self.end + bytes.len > self.buf.len) {