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

Function read_addr_bytes

crates/compile/src/decompile.rs:235–246  ·  view source on GitHub ↗

Read exactly 32 bytes (Address) from a byte slice, advancing the cursor.

(buf: &mut &[u8])

Source from the content-addressed store, hash-verified

233 ED::Bvar(..)
234 | ED::Fvar(..)
235 | ED::Mvar(..)
236 | ED::Sort(..)
237 | ED::Const(..)
238 | ED::Lit(..) => e.clone(),
239 };
240 let canonical = self
241 .expr_intern
242 .entry(*e.get_hash().as_bytes())
243 .or_insert(rebuilt)
244 .clone();
245 memo.insert(key, canonical);
246 }
247
248 memo
249 .remove(&Arc::as_ptr(&root.0))

Callers 3

deserialize_substringFunction · 0.85
deserialize_preresolvedFunction · 0.85
deserialize_syntax_innerFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected