fn countListCapacity(first_node: ?*Node) usize
first_node: ?*Node
75 76 77 78 79 80 81 82 83 84
fn countListCapacity(first_node: ?*Node) usize { var capacity: usize = 0; var it = first_node; while (it) |node| : (it = node.next) { // Compute the actually allocated size excluding the // linked list node. capacity += node.size.toInt() - @sizeOf(Node); } return capacity; }