Skip to main content

JS_NewUint8ArrayCopy

Function JS_NewUint8ArrayCopy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_NewUint8ArrayCopy( ctx: *mut JsContext, buf: *const u8, len: usize, ) -> JsValue
Expand description

JS_NewUint8ArrayCopy: a Uint8Array holding a copy of buf.

ยงSafety

buf must be null or point at len readable bytes.