MCPcopy Create free account
hub / github.com/argumentcomputer/ix / rs_refcount_persistent_roundtrip

Function rs_refcount_persistent_roundtrip

crates/ffi/src/refcount.rs:224–230  ·  view source on GitHub ↗
(
  name: LeanIxName<LeanBorrowed<'_>>,
)

Source from the content-addressed store, hash-verified

222/// Decode a persistent Name and rebuild it.
223#[unsafe(no_mangle)]
224pub extern "C" fn rs_refcount_persistent_roundtrip(
225 name: LeanIxName<LeanBorrowed<'_>>,
226) -> LeanIxName<LeanOwned> {
227 let decoded = name.decode();
228 let mut cache = LeanBuildCache::new();
229 LeanIxName::build(&mut cache, &decoded)
230}
231
232// =============================================================================
233// String lifecycle

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected