Module coins_core::ser
source · Expand description
A simple trait for binary (de)Serialization using std Read
and Write
traits.
Enums
- Operation mode for
read_seq_from
. - Erros related to serialization of types.
Traits
- A simple trait for deserializing from
std::io::Read
and serializing tostd::io::Write
.
Functions
- Matches the length of the VarInt to the 1-byte flag
- Calculates the minimum prefix length for a VarInt encoding
number
- Matches the VarInt prefix flag to the serialized length
- Convenience function for reading a Bitcoin-style VarInt
- Convenience function for reading a prefixed vector
- Convenience function for reading a LE u32
- Convenience function for reading a LE u64
- Convenience function for writing a Bitcoin-style VarInt
- Convenience function to write a Bitcoin-style length-prefixed vector.
- Convenience function for writing a LE u32
- Convenience function for writing a LE u64
Type Definitions
- Type alias for serialization errors