Struct thrussh::encoding::Position
[−]
[src]
pub struct Position<'a> { /* fields omitted */ }
A cursor-like type to read SSH-encoded values.
Methods
impl<'a> Position<'a>
[src]
fn read_string(&mut self) -> Result<&'a [u8], Error>
[src]
Read one string from this reader.
fn read_u32(&mut self) -> Result<u32, Error>
[src]
Read a u32
from this reader.
fn read_byte(&mut self) -> Result<u8, Error>
[src]
Read one byte from this reader.
fn read_mpint(&mut self) -> Result<&'a [u8], Error>
[src]
Read one byte from this reader.