(bytes: &[u8], offset: usize)
| 41 | } |
| 42 | |
| 43 | fn read_u32(bytes: &[u8], offset: usize) -> u32 { |
| 44 | u32::from_le_bytes([ |
| 45 | bytes[offset], |
| 46 | bytes[offset + 1], |
| 47 | bytes[offset + 2], |
| 48 | bytes[offset + 3], |
| 49 | ]) |
| 50 | } |
| 51 | |
| 52 | fn read_u64(bytes: &[u8], offset: usize) -> u64 { |
| 53 | u64::from_le_bytes([ |
no outgoing calls