(bytes: &[u8])
| 291 | |
| 292 | impl<T: DecodeBE, const S: usize> DecodeBE for [T; S] { |
| 293 | fn decode_from_be_bytes(bytes: &[u8]) -> Self { |
| 294 | let size = T::PACKED_LEN; |
| 295 | let mut i: usize = 0; |
| 296 | |
| 297 | [(); S].map(|_| { |
| 298 | let res = T::decode_from_be_bytes(&bytes[i * size..(i + 1) * size]); |
| 299 | i += 1; |
| 300 | res |
| 301 | }) |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | impl<T> PackedSize for *mut T { |
nothing calls this directly
no outgoing calls
no test coverage detected