MCPcopy Create free account
hub / github.com/Slowerzs/PPLSystem / decode_from_be_bytes

Method decode_from_be_bytes

endian_codec/src/lib.rs:293–302  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

291
292impl<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
305impl<T> PackedSize for *mut T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected