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

Function inode_attr_key

atomic-core/src/pristine/attribute.rs:105–110  ·  view source on GitHub ↗
(inode: Inode, name: InodeAttrName)

Source from the content-addressed store, hash-verified

103}
104
105fn inode_attr_key(inode: Inode, name: InodeAttrName) -> [u8; 9] {
106 let mut key = [0; 9];
107 key[..8].copy_from_slice(&inode.get().to_le_bytes());
108 key[8] = name.as_byte();
109 key
110}
111
112/// Read access to graph-backed inode attributes.
113pub trait InodeAttrTxnT: GraphTxnT {

Callers 1

put_inode_attr_eventMethod · 0.85

Calls 3

to_le_bytesMethod · 0.80
as_byteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected