pub struct UnfilterRegion {
pub available: usize,
pub filled: usize,
}
Expand description
A region into a buffer utilized as a UnfilterBuf
.
The span of data denoted by filled..available
is the region of bytes that must be preserved
for use by the decompression algorithm. It may be moved, e.g. by subtracting the same amount
from both of these fields. Always ensure that filled <= available
, the library does not
violate this invariant when modifying this struct as an UnfilterBuf
.
Fields§
§available: usize
The past-the-end index of byte that are allowed to be modified.
filled: usize
The past-the-end of bytes that have been written to.
Implementations§
Source§impl UnfilterRegion
impl UnfilterRegion
Sourcepub fn as_buf<'data>(
&'data mut self,
buffer: &'data mut Vec<u8>,
) -> UnfilterBuf<'data>
pub fn as_buf<'data>( &'data mut self, buffer: &'data mut Vec<u8>, ) -> UnfilterBuf<'data>
Use this region to decompress new filtered rowline data.
Pass the wrapped buffer to
StreamingDecoder::update
to fill it with
data and update the region indices.
Trait Implementations§
Source§impl Clone for UnfilterRegion
impl Clone for UnfilterRegion
Source§fn clone(&self) -> UnfilterRegion
fn clone(&self) -> UnfilterRegion
Returns a duplicate 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 Default for UnfilterRegion
impl Default for UnfilterRegion
Source§fn default() -> UnfilterRegion
fn default() -> UnfilterRegion
Returns the “default value” for a type. Read more
impl Copy for UnfilterRegion
Auto Trait Implementations§
impl Freeze for UnfilterRegion
impl RefUnwindSafe for UnfilterRegion
impl Send for UnfilterRegion
impl Sync for UnfilterRegion
impl Unpin for UnfilterRegion
impl UnwindSafe for UnfilterRegion
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