Function js::jsapi::JS_NewSharedArrayBuffer [] [src]

pub unsafe extern "C" fn JS_NewSharedArrayBuffer(
    cx: *mut JSContext,
    nbytes: u32
) -> *mut JSObject

Create a new SharedArrayBuffer with the given byte length. This may only be called if JS::CompartmentCreationOptionsRef(cx).getSharedMemoryAndAtomicsEnabled() is true.