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

Function put_u64

atomic-core/src/pristine/file_index_v2.rs:358–362  ·  view source on GitHub ↗
(dst: &mut [u8], value: Option<u64>)

Source from the content-addressed store, hash-verified

356}
357
358fn put_u64(dst: &mut [u8], value: Option<u64>) {
359 if let Some(value) = value {
360 dst.copy_from_slice(&value.to_le_bytes());
361 }
362}
363fn put_u16(dst: &mut [u8], value: Option<u16>) {
364 if let Some(value) = value {
365 dst.copy_from_slice(&value.to_le_bytes());

Callers 1

encode_file_index_v2Function · 0.70

Calls 1

to_le_bytesMethod · 0.80

Tested by

no test coverage detected