[][src]Trait interledger_packet::oer::BufOerExt

pub trait BufOerExt<'a> {
    fn peek_var_octet_string(&self) -> Result<&'a [u8]>;
fn read_var_octet_string(&mut self) -> Result<&'a [u8]>;
fn skip(&mut self, discard_bytes: usize) -> Result<()>;
fn skip_var_octet_string(&mut self) -> Result<()>;
fn read_var_octet_string_length(&mut self) -> Result<usize>;
fn read_var_uint(&mut self) -> Result<u64>; }

Required methods

fn peek_var_octet_string(&self) -> Result<&'a [u8]>

fn read_var_octet_string(&mut self) -> Result<&'a [u8]>

fn skip(&mut self, discard_bytes: usize) -> Result<()>

fn skip_var_octet_string(&mut self) -> Result<()>

fn read_var_octet_string_length(&mut self) -> Result<usize>

fn read_var_uint(&mut self) -> Result<u64>

Loading content...

Implementations on Foreign Types

impl<'a> BufOerExt<'a> for &'a [u8][src]

fn peek_var_octet_string(&self) -> Result<&'a [u8]>[src]

Decodes variable-length octet string buffer without moving the cursor.

fn read_var_octet_string(&mut self) -> Result<&'a [u8]>[src]

Decodes variable-length octet string.

fn read_var_uint(&mut self) -> Result<u64>[src]

Decodes variable-length octet unsigned integer to get u64.

Loading content...

Implementors

Loading content...