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

Method put

codegraph-kernel/src/buffers.rs:147–151  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

145
146impl Arena {
147 pub fn put(&mut self, s: &str) -> StrRef {
148 let off = self.buf.len() as u32;
149 self.buf.extend_from_slice(s.as_bytes());
150 (off, s.len() as u32)
151 }
152
153 /// Not used by the seed emitter yet — R2 (docstring/signature/etc.). Kept
154 /// so the arena API is complete alongside the layout it feeds.

Callers 15

extractFunction · 0.80
push_refMethod · 0.80
create_nodeMethod · 0.80
flush_value_refsMethod · 0.80
opt_strFunction · 0.80
extractFunction · 0.80
push_ref_atMethod · 0.80
create_nodeMethod · 0.80
opt_strFunction · 0.80
extractFunction · 0.80

Calls 1

lenMethod · 0.80

Tested by 1