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

Method from_bytes

crates/ixvm-codegen/src/env_handle.rs:32–55  ·  view source on GitHub ↗

Decode a serialized env blob (`Ixon.serEnv` output) via `Env::get`, then harvest `anon_hints` from each `Def` named entry. Used by the compiled-Lean-env path where the env is built in Lean memory and serialized for the cross-FFI handoff.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

30 pub fn from_bytes(bytes: &[u8]) -> Result<Self, String> {
31 let mut cursor: &[u8] = bytes;
32 let env = Env::get(&mut cursor)?;
33 Ok(Self { env })
34 }
35}

Callers

nothing calls this directly

Calls 4

valueMethod · 0.80
iterMethod · 0.45
cloneMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected