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

Function append_revision_field

atomic-cli/src/commands/vault/mod.rs:88–91  ·  view source on GitHub ↗
(hasher: &mut Hasher, value: &[u8])

Source from the content-addressed store, hash-verified

86}
87
88fn append_revision_field(hasher: &mut Hasher, value: &[u8]) {
89 hasher.update(&(value.len() as u64).to_be_bytes());
90 hasher.update(value);
91}
92
93// Vault Subcommands
94

Callers 1

Calls 2

updateMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected