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

Method put

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected