Pack up to 8 bools into a u8.
(bools: I)
| 108 | let tag = Tag4::get(buf)?; |
| 109 | if tag.flag != Env::FLAG { |
| 110 | return Err(format!( |
| 111 | "{ctx}: expected flag 0x{:X}, got 0x{:X}", |
| 112 | Env::FLAG, |
| 113 | tag.flag |
| 114 | )); |
| 115 | } |
| 116 | if tag.size != 0 { |
| 117 | return Err(format!("{ctx}: expected Env variant 0, got {}", tag.size)); |
| 118 | } |
| 119 | let stored_root = get_address(buf)?; |
| 120 | // A pre-bundle-format `.ixe` has the §1 blob count here, so this |
| 121 | // byte is that count's Tag0 head — flag the likely cause when it |
| 122 | // isn't a valid opt tag. (.ixe files are regenerated artifacts.) |
| 123 | let main = get_opt_addr(buf).map_err(|e| { |
| 124 | format!( |
no test coverage detected