Skip to main content

pio_source_from_memory_with_buffers

Function pio_source_from_memory_with_buffers 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_source_from_memory_with_buffers( name: *const c_char, name_len: usize, data: *const u8, data_len: usize, buffers: *const PioNamedBufferView, buffers_len: usize, error: *mut *mut PioError, ) -> *mut PioSource
Expand description

Construct a memory source with explicitly supplied relative companions. Copies the primary and companion bytes before returning an owned handle. This source never reads referenced files from the filesystem.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements. buffers addresses buffers_len readable views; NULL is valid only at zero length.