Struct bytes::SliceBuf [] [src]

pub struct SliceBuf<'a> {
    // some fields omitted
}

Methods

impl<'a> SliceBuf<'a>

fn wrap(bytes: &'a [u8]) -> SliceBuf<'a>

Trait Implementations

impl<'a> Buf for SliceBuf<'a>

fn remaining(&self) -> usize

fn bytes<'b>(&'b self) -> &'b [u8]

fn advance(&mut self, cnt: usize)

fn has_remaining(&self) -> bool

fn read_slice(&mut self, dst: &mut [u8]) -> usize

fn read_byte(&mut self) -> Option<u8>