Encoded as little-endian bytes.
| 91 | |
| 92 | /// Encoded as little-endian bytes. |
| 93 | pub trait EncodeLE: PackedSize { |
| 94 | /// Borrow `self` and pack into `bytes` using little-endian representation. Return the packed size in bytes. |
| 95 | /// |
| 96 | /// # Panics |
| 97 | /// Panic if [PackedSize](PackedSize) represents a different size than `bytes` slice. |
| 98 | /// |
| 99 | fn encode_as_le_bytes(&self, bytes: &mut [u8]) -> usize; |
| 100 | } |
| 101 | |
| 102 | /// Encoded as big-endian bytes. |
| 103 | pub trait EncodeBE: PackedSize { |
nothing calls this directly
no outgoing calls
no test coverage detected