Skip to main content

JS_NewUint8ArrayCopy2

Function JS_NewUint8ArrayCopy2 

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

JS_NewUint8ArrayCopy2: the same, optionally immutable.

This engine has no immutable-buffer extension, so is_immutable is refused rather than silently ignored — a caller that needs the guarantee must not believe it got it.

§Safety

As JS_NewUint8ArrayCopy.