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

Function position_attr_key

atomic-core/src/pristine/attribute.rs:98–103  ·  view source on GitHub ↗
(position: Position<NodeId>, name: InodeAttrName)

Source from the content-addressed store, hash-verified

96}
97
98fn position_attr_key(position: Position<NodeId>, name: InodeAttrName) -> [u8; 17] {
99 let mut key = [0; 17];
100 key[..16].copy_from_slice(&encode_position(position.change.get(), position.pos.get()));
101 key[16] = name.as_byte();
102 key
103}
104
105fn inode_attr_key(inode: Inode, name: InodeAttrName) -> [u8; 9] {
106 let mut key = [0; 9];

Callers 1

put_inode_attr_eventMethod · 0.85

Calls 3

encode_positionFunction · 0.85
as_byteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected