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

Method decode_from_me_bytes

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

Source from the content-addressed store, hash-verified

232impl DecodeME for u8 {
233 #[inline]
234 fn decode_from_me_bytes(bytes: &[u8]) -> Self {
235 let mut arr = [0; 1];
236 arr.copy_from_slice(bytes);
237 Self::from_le_bytes(arr)
238 }
239}
240
241impl_codec_for_primitives!(u16, 2);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected