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

Function put_u64

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

Source from the content-addressed store, hash-verified

235}
236
237fn put_u64(bytes: &mut [u8; PATH_CLAIM_EVENT_SIZE], offset: usize, value: u64) {
238 bytes[offset..offset + 8].copy_from_slice(&value.to_be_bytes());
239}
240
241fn get_u64(bytes: &[u8; PATH_CLAIM_EVENT_SIZE], offset: usize) -> u64 {
242 let mut value = [0u8; 8];

Callers 1

encode_path_claim_eventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected