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

Function new_api

perro_source/runtime_project/perro_runtime/src/rs_ctx/mesh.rs:371–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369
370 pub(crate) fn register_loaded_mesh_source(&self, source: &str, id: MeshID) {
371 let normalized = normalize_source_slashes(source);
372 let source = normalized.as_ref();
373 let source_hash = string_to_u64(source);
374 let mut state = self.state.lock().expect("resource api mutex poisoned");
375 if source.trim().is_empty() || id.is_nil() {
376 return;

Calls

no outgoing calls