Crate io

Crate io 

Source
Expand description

§Monero IO

Serialization functions, as within the Monero protocol.

This library is usable under no-std when the std feature (on by default) is disabled.

§Cargo Features

  • std (on by default): Enables std (and with it, more efficient internal implementations).

Traits§

VarInt
A trait for a number readable/writable as a VarInt.

Functions§

read_array
Read a constant-length list of elements.
read_byte
Read a single byte.
read_bytes
Read a constant amount of bytes.
read_raw_vec
Read a variable-length list of elements, without length-prefixing.
read_u16
Read a u16, little-endian encoded.
read_u32
Read a u32, little-endian encoded.
read_u64
Read a u64, little-endian encoded.
read_vec
Read a length-prefixed variable-length list of elements.
write_byte
Write a byte.
write_raw_vec
Write a list of elements, without length-prefixing.
write_vec
Write a list of elements, with length-prefixing.