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

Function deserialize_syntax

crates/compile/src/decompile.rs:336–342  ·  view source on GitHub ↗

Deserialize a Syntax from bytes (mirrors compile-side serialize_syntax).

(
  bytes: &[u8],
  stt: &CompileState,
)

Source from the content-addressed store, hash-verified

334
335/// Read a Nat from the blob store.
336fn read_nat(addr: &Address, stt: &CompileState) -> Result<Nat, DecompileError> {
337 let bytes = read_blob(addr, stt)?;
338 Ok(Nat::from_le_bytes(&bytes))
339}
340
341/// Read a string from the blob store.
342fn read_string(
343 addr: &Address,
344 stt: &CompileState,
345) -> Result<String, DecompileError> {

Callers 1

decompile_data_valueFunction · 0.85

Calls 1

deserialize_syntax_innerFunction · 0.85

Tested by

no test coverage detected