Struct sea_streamer_file::ByteBuffer
source ยท pub struct ByteBuffer { /* private fields */ }
Expand description
A FIFO queue of Bytes.
Implementationsยง
sourceยงimpl ByteBuffer
impl ByteBuffer
sourcepub fn consume<T: Appendable>(&mut self, size: usize) -> T
pub fn consume<T: Appendable>(&mut self, size: usize) -> T
Consume a specific number of bytes from the buffer, panic if there are not enough bytes.
Trait Implementationsยง
sourceยงimpl Appendable for ByteBuffer
impl Appendable for ByteBuffer
sourceยงimpl ByteSink for ByteBuffer
impl ByteSink for ByteBuffer
sourceยงimpl ByteSource for ByteBuffer
impl ByteSource for ByteBuffer
sourceยงimpl Clone for ByteBuffer
impl Clone for ByteBuffer
sourceยงfn clone(&self) -> ByteBuffer
fn clone(&self) -> ByteBuffer
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceยงimpl Debug for ByteBuffer
impl Debug for ByteBuffer
sourceยงimpl Default for ByteBuffer
impl Default for ByteBuffer
sourceยงfn default() -> ByteBuffer
fn default() -> ByteBuffer
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for ByteBuffer
impl RefUnwindSafe for ByteBuffer
impl Send for ByteBuffer
impl Sync for ByteBuffer
impl Unpin for ByteBuffer
impl UnwindSafe for ByteBuffer
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more