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

Method id

atomic-core/examples/compact_semantic_codec/codec.rs:85–88  ·  view source on GitHub ↗
(&mut self, owner: NodeId, index: u32)

Source from the content-addressed store, hash-verified

83
84impl Encoder<'_> {
85 fn id(&mut self, owner: NodeId, index: u32) {
86 delta(&mut self.c.owners, &mut self.s.owner, owner.get());
87 delta(&mut self.c.indices, &mut self.s.index, index.into());
88 }
89
90 fn branch(&mut self, id: BranchId) {
91 self.id(id.change_id(), id.branch_idx());

Callers 2

branchMethod · 0.45
leafMethod · 0.45

Calls 3

deltaFunction · 0.70
undeltaFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected