Skip to main content

webp_init_dec_buffer_internal

Function webp_init_dec_buffer_internal 

Source
pub fn webp_init_dec_buffer_internal(
    buffer: &mut WebPDecBuffer<'_>,
    version: i32,
) -> bool
Expand description

Internal, version-checked, entry point of WebPInitDecBuffer: resets the buffer to empty unless the ABI versions are incompatible. Returns false in case of version mismatch. C also returns 0 for a NULL buffer, which exists only at the C ABI. C zeroes the structure without freeing it; here the old storage is dropped.