Struct zstd_safe::OutBuffer [−][src]
Expand description
Wrapper around an output buffer.
C
is usually either [u8]
or Vec<u8>
.
Bytes will be written starting at dst[pos]
.
pos
will be updated after writing.
Invariant
pos <= dst.capacity()
Fields
dst: &'a mut C
Implementations
impl<'a, C: WriteBuf + ?Sized> OutBuffer<'a, C>
[src]
impl<'a, C: WriteBuf + ?Sized> OutBuffer<'a, C>
[src]pub fn around(dst: &'a mut C) -> Self
[src]
pub fn around(dst: &'a mut C) -> Self
[src]Returns a new OutBuffer
around the given slice.
Starts with pos = 0
.
pub fn around_pos(dst: &'a mut C, pos: usize) -> Self
[src]
pub fn around_pos(dst: &'a mut C, pos: usize) -> Self
[src]Returns a new OutBuffer
around the given slice, starting at the given position.
Panics
If pos >= dst.capacity()
.
Trait Implementations
Auto Trait Implementations
impl<'a, C: ?Sized> Send for OutBuffer<'a, C> where
C: Send,
C: Send,
impl<'a, C: ?Sized> Sync for OutBuffer<'a, C> where
C: Sync,
C: Sync,