fn nullTerminatedString(astgen: AstGen, index: Zir.NullTerminatedString) [*:0]const u8
This can only be for short-lived references; the memory becomes invalidated when another string is added.
astgen: AstGen
index: Zir.NullTerminatedString
12725 12726 12727
fn nullTerminatedString(astgen: AstGen, index: Zir.NullTerminatedString) [*:0]const u8 { return @ptrCast(astgen.string_bytes.items[@backingInt(index)..]); }
This can only be for short-lived references; the memory becomes invalidated when another string is added.