Decode from bytes stored as a little-endian.
| 124 | |
| 125 | /// Decode from bytes stored as a little-endian. |
| 126 | pub 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. |
| 136 | pub trait DecodeBE: PackedSize { |
nothing calls this directly
no outgoing calls
no test coverage detected