Set the `extraJson` of a node row already written: what is known of a node only after the nodes under it are made (its listed members, #3408).
(&mut self, row: u32, extra_json: StrRef)
| 299 | /// Set the `extraJson` of a node row already written: what is known of a |
| 300 | /// node only after the nodes under it are made (its listed members, #3408). |
| 301 | pub fn set_node_extra_json(&mut self, row: u32, extra_json: StrRef) { |
| 302 | // The str slot at byte 84 of the row (see the layout at the top). |
| 303 | let at = row as usize * NODE_ROW_SIZE + 84; |
| 304 | self.nodes[at..at + 4].copy_from_slice(&extra_json.0.to_le_bytes()); |
| 305 | self.nodes[at + 4..at + 8].copy_from_slice(&extra_json.1.to_le_bytes()); |
| 306 | } |
| 307 | |
| 308 | pub fn push_edge(&mut self, r: &EdgeRow) { |
| 309 | let buf = &mut self.edges; |