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§
Provided Methods§
sourcefn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes
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.