Basic module

talloc_string

procedureSource

A string of count bytes in temporary storage. It must not be freed; it lasts until the temporary storage is reset. The bytes are not cleared.

talloc_string :: (count: int) -> string

Parameters

count: int

Returns

string
Example↗
s := talloc_string(3);
memcpy(s.data, "abc".data, 3);
assert(s == "abc");
reset_temporary_storage();

See also