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

Function insert

atomic-core/examples/compact_semantic_codec/tests.rs:10–16  ·  view source on GitHub ↗
(after: Option<LeafId>, bytes: &[u8])

Source from the content-addressed store, hash-verified

8};
9
10fn insert(after: Option<LeafId>, bytes: &[u8]) -> LeafOp {
11 LeafOp::Insert {
12 after,
13 kind: TokenKind::Word,
14 content: bytes.into(),
15 }
16}
17
18fn fixtures() -> Vec<FileOps> {
19 let trunk = TrunkId::new(NodeId::new(u64::MAX), u32::MAX);

Calls

no outgoing calls

Tested by

no test coverage detected