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

Function get_u64

atomic-core/src/pristine/path_claim.rs:241–245  ·  view source on GitHub ↗
(bytes: &[u8; PATH_CLAIM_EVENT_SIZE], offset: usize)

Source from the content-addressed store, hash-verified

239}
240
241fn get_u64(bytes: &[u8; PATH_CLAIM_EVENT_SIZE], offset: usize) -> u64 {
242 let mut value = [0u8; 8];
243 value.copy_from_slice(&bytes[offset..offset + 8]);
244 u64::from_be_bytes(value)
245}
246
247#[cfg(test)]
248mod tests {

Callers 2

build_unhashed_turn_dataFunction · 0.85
decode_path_claim_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected