MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / pool

Function pool

atomic-core/examples/semantic_codec_lab/lengths.rs:52–58  ·  view source on GitHub ↗
(view: &'a View<'_>, content: &'a [u8], tag: u64)

Source from the content-addressed store, hash-verified

50 Ok(usize::try_from(*previous)?)
51}
52fn pool<'a>(view: &'a View<'_>, content: &'a [u8], tag: u64) -> &'a [u8] {
53 if tag == 2 {
54 view.literals
55 } else {
56 content
57 }
58}
59
60#[derive(Serialize)]
61struct Frame {

Callers 2

splitFunction · 0.85
valueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected