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

Method push_ref_flagged

codegraph-kernel/src/buffers.rs:318–330  ·  view source on GitHub ↗
(&mut self, r: &RefRow, flags: u8)

Source from the content-addressed store, hash-verified

316 }
317
318 pub fn push_ref_flagged(&mut self, r: &RefRow, flags: u8) {
319 let buf = &mut self.refs;
320 buf.extend_from_slice(&r.from_idx.to_le_bytes());
321 buf.push(r.kind);
322 buf.push(flags);
323 buf.extend_from_slice(&[0u8; 2]); // pad
324 buf.extend_from_slice(&r.line.to_le_bytes());
325 buf.extend_from_slice(&r.column.to_le_bytes());
326 push_str_ref(buf, r.reference_name);
327 push_str_ref(buf, r.candidates);
328 push_str_ref(buf, r.from_id_str);
329 self.ref_count += 1;
330 }
331}
332
333/// One file's encoded tables, ready to hand across the JS boundary.

Callers 3

try_visit_hookMethod · 0.80
push_refMethod · 0.80
try_visit_hookMethod · 0.80

Calls 2

push_str_refFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected