pub fn printString(wip: *Wip, comptime fmt: []const u8, args: anytype) Allocator.Error!String
wip: *Wip
fmt: []const u8
args
427 428 429 430 431 432 433
pub fn printString(wip: *Wip, comptime fmt: []const u8, args: anytype) Allocator.Error!String { const gpa = wip.gpa; const index: String = @intCast(wip.string_bytes.items.len); try wip.string_bytes.print(gpa, fmt, args); try wip.string_bytes.append(gpa, 0); return index; }