pub fn addBytes(wip: *Wip, bytes: []const u8) Allocator.Error!Bytes
wip: *Wip
bytes: []const u8
230 231 232 233 234 235 236
pub fn addBytes(wip: *Wip, bytes: []const u8) Allocator.Error!Bytes { try wip.string_bytes.appendSlice(wip.gpa, bytes); return .{ .index = @intCast(wip.string_bytes.items.len - bytes.len), .len = @intCast(bytes.len), }; }