Returns a mutable pointer to the `NodeItem` with the given `id` if it exists in the graph, or `nullptr` if it does not.
| 222 | // Returns a mutable pointer to the `NodeItem` with the given `id` if it |
| 223 | // exists in the graph, or `nullptr` if it does not. |
| 224 | NodeItem* node(int32_t id) const { |
| 225 | DCHECK_GE(id, 0); |
| 226 | DCHECK_LT(id, num_nodes_); |
| 227 | uint32 offset = node_offsets_[id]; |
| 228 | return ((offset == kuint32max) |
| 229 | ? nullptr |
| 230 | : reinterpret_cast<NodeItem*>(space_ + node_offsets_[id])); |
| 231 | } |
| 232 | |
| 233 | // Returns the `NodeItem` with the given `id`. |
| 234 | // |
no outgoing calls