(buf: &mut &[u8])
| 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. |
| 105 | fn 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 { |
no test coverage detected