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

Function hash

atomic-core/src/pristine/git_closure.rs:175–177  ·  view source on GitHub ↗
(n: u64)

Source from the content-addressed store, hash-verified

173 use std::collections::HashMap;
174
175 fn hash(n: u64) -> Hash {
176 Hash::of(&n.to_le_bytes())
177 }
178 fn legacy(hashes: &[Hash]) -> Vec<u8> {
179 let mut bytes = (hashes.len() as u32).to_le_bytes().to_vec();
180 for hash in hashes {

Callers 15

newMethod · 0.70
ofMethod · 0.50
prompt_hash_from_textMethod · 0.50
session_turn_namespaceFunction · 0.50
encode_session_todo_keyFunction · 0.50
encode_session_phase_keyFunction · 0.50
chunk_contentFunction · 0.50
test_blake3_hashesFunction · 0.50

Calls 1

to_le_bytesMethod · 0.80