Function printString [src]

Prototype

pub fn printString(wip: *Wip, comptime fmt: []const u8, args: anytype) Allocator.Error!String

Parameters

wip: *Wipfmt: []const u8

Source

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.writer(gpa).print(fmt, args); try wip.string_bytes.append(gpa, 0); return index; }