Deserialize a Syntax from bytes (mirrors compile-side serialize_syntax).
( bytes: &[u8], stt: &CompileState, )
| 334 | |
| 335 | /// Read a Nat from the blob store. |
| 336 | fn 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. |
| 342 | fn read_string( |
| 343 | addr: &Address, |
| 344 | stt: &CompileState, |
| 345 | ) -> Result<String, DecompileError> { |
no test coverage detected