Function getName [src]

Gets the name of this Node. A pointer to this array can later be passed to setName to restore the name.

Prototype

pub fn getName(n: Node) [max_name_len]u8

Parameters

n: Node

Source

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; }