Skip to main content

JS_NewUint8Array

Function JS_NewUint8Array 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_NewUint8Array( ctx: *mut JsContext, buf: *mut u8, len: usize, free_func: FreeArrayBufferDataFunc, opaque: *mut c_void, is_shared: Bool, ) -> JsValue
Expand description

JS_NewUint8Array: a Uint8Array over a C block, taking ownership of it.

ยงSafety

buf must be null or point at len readable bytes.