Trait fbthrift_git::BufExt

source ·
pub trait BufExt: Buf {
    fn reset(self) -> Self;

    fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes { ... }
}

Required Methods§

Reset buffer back to the beginning.

Provided Methods§

Copy len Bytes from this (and advance the position), or reuse them from the underlying buffer if possible.

Implementations on Foreign Types§

Implementors§