Struct libavif_sys::avifIO [−][src]
Fields
destroy: extern "C" fn(io: *mut avifIO)read: extern "C" fn(io: *mut avifIO, readFlags: u32, offset: u64, size: size_t, out: *mut avifROData) -> avifResultwrite: extern "C" fn(io: *mut avifIO, writeFlags: u32, offset: u64, size: size_t, data: *const u8, size: size_t) -> avifResultThis is reserved for future use - but currently ignored. Set it to a null pointer.
sizeHint: u64If non-zero, this is a hint to internal structures of the max size offered by the content this avifIO structure is reading. If it is a static memory source, it should be the size of the memory buffer; if it is a file, it should be the file’s size. If this information cannot be known (as it is streamed-in), set a reasonable upper boundary here (larger than the file can possibly be for your environment, but within your environment’s memory constraints). This is used for sanity checks when allocating internal buffers to protect against malformed/malicious files.
persistent: avifBooldata: *mut c_voidTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for avifIO
impl !Send for avifIO
impl !Sync for avifIO
impl Unpin for avifIO
impl UnwindSafe for avifIO
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,