Function imageflow::imageflow_io_create_from_buffer [] [src]

#[no_mangle]
pub unsafe extern fn imageflow_io_create_from_buffer(context: *mut Context,
                                                     buffer: *const u8,
                                                     buffer_byte_count: size_t,
                                                     lifetime: Lifetime,
                                                     cleanup: CleanupWith)
                                                     -> *mut JobIo

Creates an imageflow_io structure for reading from the provided buffer. You are ALWAYS responsible for freeing the memory provided in accordance with the Lifetime value. If you specify OutlivesFunctionCall, then the buffer will be copied.