A poolable string builder (aka string buffer) for Zig
0

Configure Feed

Select the types of activity you want to include in your feed.

std.io.Writer -> std.Io.Writer

authored by

Ben Jordan and committed by
GitHub
(Sep 13, 2025, 11:00 AM EDT) 434b36c1 30f9512f

+1 -1
+1 -1
src/buffer.zig
··· 60 60 } 61 61 } 62 62 63 - pub fn drain(io_w: *std.io.Writer, data: []const []const u8, splat: usize) error{WriteFailed}!usize { 63 + pub fn drain(io_w: *std.Io.Writer, data: []const []const u8, splat: usize) error{WriteFailed}!usize { 64 64 _ = splat; 65 65 const self: *Buffer = @alignCast(@fieldParentPtr("interface", io_w)); 66 66 self.write(data[0]) catch return error.WriteFailed;