Struct vectorscan::stream::compress::CompressedStream
source · pub struct CompressedStream {
pub buf: Vec<u8>,
}
Available on crate feature
stream
only.Fields§
§buf: Vec<u8>
Implementations§
source§impl CompressedStream
impl CompressedStream
pub fn compress( into: CompressReserveBehavior, live: &LiveStream ) -> Result<Self, CompressionError>
pub fn expand( &self, db: &Database ) -> Result<LiveStream, VectorscanRuntimeError>
sourcepub unsafe fn expand_into(
&self,
to: &mut LiveStream
) -> Result<(), VectorscanRuntimeError>
pub unsafe fn expand_into( &self, to: &mut LiveStream ) -> Result<(), VectorscanRuntimeError>
Safety
self
and to
must have been opened against the same db!
sourcepub unsafe fn expand_into_at(
&self,
db: &Database,
to: *mut NativeStream
) -> Result<(), VectorscanRuntimeError>
pub unsafe fn expand_into_at( &self, db: &Database, to: *mut NativeStream ) -> Result<(), VectorscanRuntimeError>
Safety
to
must point to an allocation of at least Database::stream_size()
bytes in size given db
!
Auto Trait Implementations§
impl RefUnwindSafe for CompressedStream
impl Send for CompressedStream
impl Sync for CompressedStream
impl Unpin for CompressedStream
impl UnwindSafe for CompressedStream
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