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

Interface DecodeBE

endian_codec/src/lib.rs:136–143  ·  view source on GitHub ↗

Decode from bytes stored as a big-endian.

Source from the content-addressed store, hash-verified

134
135/// Decode from bytes stored as a big-endian.
136pub 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///

Callers

nothing calls this directly

Implementers 1

lib.rsendian_codec/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected