Skip to main content

JS_NewArrayBufferCopy

Function JS_NewArrayBufferCopy 

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

JS_NewArrayBufferCopy: a new ArrayBuffer holding a copy of len bytes at buf.

ยงSafety

buf must point at len readable bytes, or be null with len == 0.