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

Function record

atomic-repository/src/git_binding/privacy.rs:151–153  ·  view source on GitHub ↗
(family: ObjectFamily, bytes: &[u8])

Source from the content-addressed store, hash-verified

149 use super::*;
150
151 fn record(family: ObjectFamily, bytes: &[u8]) -> ObjectRecord {
152 ObjectRecord::new(family, Hash::of(bytes).to_hex(), bytes.to_vec())
153 }
154
155 #[test]
156 fn pack_refuses_private_sidecar_families() {

Calls 1

to_hexMethod · 0.45