Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
new
Method · 0.70
shared_idempotence_conflict_empty_and_rollback
Function · 0.70
corrupt_persisted_node_is_rejected_by_both_readers
Function · 0.70
of
Method · 0.50
prompt_hash_from_text
Method · 0.50
test_builder_prompt_hash_from_text
Function · 0.50
session_turn_namespace
Function · 0.50
encode_session_todo_key
Function · 0.50
encode_session_phase_key
Function · 0.50
chunk_content
Function · 0.50
test_chunk_hashes_are_correct
Function · 0.50
test_blake3_hashes
Function · 0.50
Calls
1
to_le_bytes
Method · 0.80
Tested by
15
shared_idempotence_conflict_empty_and_rollback
Function · 0.56
corrupt_persisted_node_is_rejected_by_both_readers
Function · 0.56
test_builder_prompt_hash_from_text
Function · 0.40
test_chunk_hashes_are_correct
Function · 0.40
test_blake3_hashes
Function · 0.40
test_end_to_end_header_and_hash_table
Function · 0.40
test_compact_position_with_hash_table
Function · 0.40
test_minimal_valid_change_file_bytes
Function · 0.40
test_content_chunk_header_io_roundtrip
Function · 0.40
test_trailer_roundtrip
Function · 0.40
write_minimal_change
Function · 0.40
write_full_change
Function · 0.40