Skip to main content

JS_IsImmutableArrayBuffer

Function JS_IsImmutableArrayBuffer 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_IsImmutableArrayBuffer( _obj: JsValue, ) -> c_int
Expand description

JS_IsImmutableArrayBuffer: whether the buffer is frozen against writes.

No engine here has the immutable-buffer extension (docs/m15-plan.md §5 rejects it), so every buffer answers 0. Answering “yes” would make a caller skip a copy it needs.

§Safety

obj must be a live JSValue.