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

Interface DecodeLE

endian_codec/src/lib.rs:126–133  ·  view source on GitHub ↗

Decode from bytes stored as a little-endian.

Source from the content-addressed store, hash-verified

124
125/// Decode from bytes stored as a little-endian.
126pub trait DecodeLE: PackedSize {
127 /// Read `bytes` slice packed as little-endian bytes and create `Self` from them
128 ///
129 /// # Panics
130 ///
131 /// Panic if [PackedSize](PackedSize) represents a different size than `bytes` slice.
132 fn decode_from_le_bytes(bytes: &[u8]) -> Self;
133}
134
135/// Decode from bytes stored as a big-endian.
136pub trait DecodeBE: PackedSize {

Callers

nothing calls this directly

Implementers 1

lib.rsendian_codec/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected