Trait parity_codec::Input [−][src]
pub trait Input {
fn read(&mut self, into: &mut [u8]) -> usize;
fn read_byte(&mut self) -> Option<u8> { ... }
}Trait that allows reading of data into a slice.
Required Methods
fn read(&mut self, into: &mut [u8]) -> usize
Read into the provided input slice. Returns the number of bytes read.
Provided Methods
Implementors
impl<R: Read> Input for R