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

Configure Feed

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

Merge pull request #3 from Cohors1316/patch-1

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

author
Karl Seguin
committer
GitHub
date (Sep 14, 2025, 10:03 AM +0800) commit a0de5026 parent 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;