snarkvm_console_accountTrait FromBytes
Source pub trait FromBytes {
// Required method
fn read_le<R>(reader: R) -> Result<Self, Error>
where R: Read,
Self: Sized;
// Provided method
fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized { ... }
}
Reads Self
from reader
as little-endian bytes.
Returns Self
from a byte array in little-endian order.
Reads the boolean from a buffer.
Reads the powers from the buffer.
Reads the powers from the buffer.
Reads the integer from a buffer.
Reads in a Merkle path from a buffer.
Reads data into a buffer.
Reads in a Merkle path from a buffer.
Reads data into a buffer.
Reads self
from reader
in little-endian order.