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

Function get_address

crates/ixon/src/serialize.rs:100–107  ·  view source on GitHub ↗
(buf: &mut &[u8])

Source from the content-addressed store, hash-verified

98
99/// Read the `.ixe` header shared by every Env reader:
100/// `Tag4(0xE, VERSION)`, the 32-byte consts merkle root, the bundle
101/// `main` pointer, and the strictly ascending assumptions list.
102/// Centralized so the four readers (`get`, `get_anon`, `get_anon_mmap`,
103/// `parse_lazy_index`) cannot drift. `ctx` labels errors with the
104/// calling reader.
105fn read_env_header(
106 buf: &mut &[u8],
107 ctx: &str,
108) -> Result<(Address, Option<Address>, Vec<Address>), String> {
109 let tag = Tag4::get(buf)?;
110 if tag.flag != Env::FLAG {

Callers 8

read_anon_hints_sectionFunction · 0.70
getMethod · 0.70
get_refsFunction · 0.70
get_name_componentFunction · 0.70
get_named_indexedFunction · 0.70
parse_lazy_indexMethod · 0.70
get_anonMethod · 0.70
get_anon_mmapMethod · 0.70

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected