pub fn getName(n: Node) [max_name_len]u8 n: Node336
337
338
339
340
341
342 pub fn getName(n: Node) [max_name_len]u8 {
var dest: [max_name_len]u8 align(@alignOf(usize)) = undefined;
if (n.index.unwrap()) |index| {
copyAtomicLoad(&dest, &storageByIndex(index).name);
}
return dest;
}
Gets the name of this
Node. A pointer to this array can later be passed tosetNameto restore the name.