pub struct Window<'a> { /* private fields */ }Implementations§
Source§impl<'a> Window<'a>
impl<'a> Window<'a>
pub fn into_raw_parts(self) -> (*mut u8, usize)
pub unsafe fn from_raw_parts(ptr: *mut u8, len: usize) -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
The size of the underlying buffer. For inflate, use size instead. This function is used
in inflateBack which does not consider the padding.
pub fn size(&self) -> usize
pub unsafe fn set_have(&mut self, have: usize)
pub fn empty() -> Self
pub fn clear(&mut self)
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_ptr(&self) -> *const u8
pub fn extend( &mut self, slice: &[u8], flags: i32, update_checksum: bool, checksum: &mut u32, crc_fold: &mut Crc32Fold, )
pub unsafe fn clone_to(&self, ptr: *mut u8, len: usize) -> Self
pub fn padding() -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Window<'a>
impl<'a> RefUnwindSafe for Window<'a>
impl<'a> !Send for Window<'a>
impl<'a> !Sync for Window<'a>
impl<'a> Unpin for Window<'a>
impl<'a> !UnwindSafe for Window<'a>
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