Struct bytes::buf::SliceBuf [] [src]

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

Methods

impl<'a> SliceBuf<'a>
[src]

Trait Implementations

impl<'a> Buf for SliceBuf<'a>
[src]

Returns the number of bytes that can be accessed from the Buf

Returns a slice starting at the current Buf position and of length between 0 and Buf::remaining(). Read more

Advance the internal cursor of the Buf

Returns true if there are any more bytes to consume

Read bytes from the Buf into the given slice and advance the cursor by the number of bytes read. Returns the number of bytes read. Read more

Read a single byte from the Buf