#[repr(C)]pub struct fz_buffer {
pub refs: c_int,
pub data: *mut c_uchar,
pub cap: usize,
pub len: usize,
pub unused_bits: c_int,
pub shared: c_int,
}
Expand description
fz_buffer
is a wrapper around a dynamically allocated array of
bytes.
Buffers have a capacity (the number of bytes storage immediately
available) and a current size.
The contents of the structure are considered implementation
details and are subject to change. Users should use the accessor
functions in preference.
Fields§
§refs: c_int
§data: *mut c_uchar
§cap: usize
§len: usize
§unused_bits: c_int
Trait Implementations§
Auto Trait Implementations§
impl Freeze for fz_buffer
impl RefUnwindSafe for fz_buffer
impl !Send for fz_buffer
impl !Sync for fz_buffer
impl Unpin for fz_buffer
impl UnwindSafe for fz_buffer
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