Trait foyer_common::buf::BufExt

source ·
pub trait BufExt: Buf {
    // Provided methods
    fn get_usize(&mut self) -> usize { ... }
    fn get_isize(&mut self) -> isize { ... }
}
Expand description

Extend Buf with get_isize() and get_usize().

Provided Methods§

source

fn get_usize(&mut self) -> usize

Gets an usize from self in big-endian byte order and advance the current position.

source

fn get_isize(&mut self) -> isize

Gets an isize from self in big-endian byte order and advance the current position.

Implementors§

source§

impl<T: Buf> BufExt for T