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

Function decode_inode_vertex

atomic-core/src/pristine/tables.rs:1105–1111  ·  view source on GitHub ↗
(key: &[u8; 32])

Source from the content-addressed store, hash-verified

1103/// Decode an inode-span from 32 bytes
1104#[inline]
1105pub fn decode_inode_vertex(key: &[u8; 32]) -> (u64, u64, u64, u64) {
1106 let inode = u64::from_be_bytes(key[0..8].try_into().unwrap());
1107 let change_id = u64::from_be_bytes(key[8..16].try_into().unwrap());
1108 let start = u64::from_be_bytes(key[16..24].try_into().unwrap());
1109 let end = u64::from_be_bytes(key[24..32].try_into().unwrap());
1110 (inode, change_id, start, end)
1111}
1112
1113/// Encode a position as 16 bytes
1114#[inline]

Callers 14

export_graph_sliceMethod · 0.85
find_block_in_inodeFunction · 0.85
find_block_end_in_inodeFunction · 0.85
count_inode_verticesMethod · 0.85
iter_inode_verticesMethod · 0.85
count_inode_verticesMethod · 0.85
from_tableMethod · 0.85
next_inode_idFunction · 0.85
iter_inode_verticesMethod · 0.85

Calls 1

unwrapMethod · 0.45