Skip to main content

NetBlobAdapterFetchFn

Type Alias NetBlobAdapterFetchFn 

Source
pub type NetBlobAdapterFetchFn = unsafe extern "C" fn(ctx: *mut c_void, uri: *const c_char, hash: *const u8, size: u64, out_data: *mut *mut u8, out_len: *mut usize) -> c_int;
Expand description

fetch / fetch_range function pointer. Caller-allocates the return buffer and writes the pointer + length into the out-params. The substrate releases it via the vtable’s free_buffer after consuming the bytes.