MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_hashed_source_uri

Function parse_hashed_source_uri

perro_source/core/perro_ids/src/ids.rs:53–58  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

51}
52
53pub fn parse_hashed_source_uri(s: &str) -> Option<u64> {
54 if s.as_bytes().iter().all(|b| b.is_ascii_digit()) {
55 return s.parse::<u64>().ok();
56 }
57 None
58}
59
60pub const fn mix64(mut x: u64) -> u64 {
61 x ^= x >> 30;

Callers 15

decode_texture_sourceMethod · 0.85
load_post_texture_rgbaFunction · 0.85
load_shader_sourceFunction · 0.85
load_project_image_bytesFunction · 0.85
load_bones_2d_staticFunction · 0.85
load_bones_3d_staticFunction · 0.85
load_textureMethod · 0.85
reserve_textureMethod · 0.85

Calls 4

okMethod · 0.80
allMethod · 0.45
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected