Encoded as big-endian bytes.
| 101 | |
| 102 | /// Encoded as big-endian bytes. |
| 103 | pub trait EncodeBE: PackedSize { |
| 104 | /// Borrow `self` and pack into `bytes` using big-endian representation. Return the packed size in bytes. |
| 105 | /// |
| 106 | /// # Panics |
| 107 | /// |
| 108 | /// Panic if [PackedSize](PackedSize) represents a different size than `bytes` slice. |
| 109 | fn encode_as_be_bytes(&self, bytes: &mut [u8]) -> usize; |
| 110 | } |
| 111 | |
| 112 | /// Encode using mixed-endian bytes. |
| 113 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected