pub(crate) struct InBufferWrapper<'a, 'b> {
pub(crate) buf: ZSTD_inBuffer,
pub(crate) parent: &'a mut InBuffer<'b>,
}Fields§
§buf: ZSTD_inBuffer§parent: &'a mut InBuffer<'b>Implementations§
Source§impl<'a, 'b> InBufferWrapper<'a, 'b>
impl<'a, 'b> InBufferWrapper<'a, 'b>
Sourcepub(crate) fn check(&mut self, res: SafeResult) -> SafeResult
pub(crate) fn check(&mut self, res: SafeResult) -> SafeResult
Passes res through, and forgets the position reported by zstd if it
is an error, so the parent keeps the one from before the call.
See OutBufferWrapper::check(): a failed call consumed nothing usable,
and the legacy decoders report the whole input as read.
Trait Implementations§
Source§impl<'a, 'b: 'a> Deref for InBufferWrapper<'a, 'b>
impl<'a, 'b: 'a> Deref for InBufferWrapper<'a, 'b>
Source§impl<'a, 'b: 'a> DerefMut for InBufferWrapper<'a, 'b>
impl<'a, 'b: 'a> DerefMut for InBufferWrapper<'a, 'b>
Source§impl<'a, 'b> Drop for InBufferWrapper<'a, 'b>
impl<'a, 'b> Drop for InBufferWrapper<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> !Send for InBufferWrapper<'a, 'b>
impl<'a, 'b> !Sync for InBufferWrapper<'a, 'b>
impl<'a, 'b> !UnwindSafe for InBufferWrapper<'a, 'b>
impl<'a, 'b> Freeze for InBufferWrapper<'a, 'b>
impl<'a, 'b> RefUnwindSafe for InBufferWrapper<'a, 'b>
impl<'a, 'b> Unpin for InBufferWrapper<'a, 'b>
impl<'a, 'b> UnsafeUnpin for InBufferWrapper<'a, 'b>
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