Decode from bytes stored as a big-endian.
| 134 | |
| 135 | /// Decode from bytes stored as a big-endian. |
| 136 | pub trait DecodeBE: PackedSize { |
| 137 | /// Read `bytes` slice packed as big-endian bytes and create `Self` from them |
| 138 | /// |
| 139 | /// # Panics |
| 140 | /// |
| 141 | /// Panic if [PackedSize](PackedSize) represents a different size than `bytes` slice. |
| 142 | fn decode_from_be_bytes(bytes: &[u8]) -> Self; |
| 143 | } |
| 144 | |
| 145 | /// Decode from bytes stored as a mixed-endian. |
| 146 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected