Trait fbthrift_git::BufExt

source ·
pub trait BufExt: Buf {
    // Provided method
    fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes { ... }
}

Provided Methods§

source

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

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

Implementations on Foreign Types§

source§

impl BufExt for Cursor<Bytes>

source§

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

source§

impl<T: AsRef<[u8]> + ?Sized> BufExt for Cursor<&T>

source§

impl<T: BufExt, U: BufExt> BufExt for Chain<T, U>

Implementors§