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

Interface EncodeLE

endian_codec/src/lib.rs:93–100  ·  view source on GitHub ↗

Encoded as little-endian bytes.

Source from the content-addressed store, hash-verified

91
92/// Encoded as little-endian bytes.
93pub 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.
103pub trait EncodeBE: PackedSize {

Callers

nothing calls this directly

Implementers 1

lib.rsendian_codec/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected