MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / set_node_extra_json

Method set_node_extra_json

codegraph-kernel/src/buffers.rs:301–306  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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;

Callers 1

set_object_membersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected