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

Function put_hash

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

Source from the content-addressed store, hash-verified

372 }
373}
374fn put_hash(dst: &mut [u8], value: Option<&Hash>) {
375 if let Some(value) = value {
376 dst.copy_from_slice(&value.0);
377 }
378}
379fn read_u64(src: &[u8], fields: FileIndexV2Fields, field: FileIndexV2Fields) -> Option<u64> {
380 fields
381 .contains(field)

Callers 1

encode_file_index_v2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected