Function javascriptcore_sys::JSObjectMakeArrayBufferWithBytesNoCopy [] [src]

pub unsafe extern "C" fn JSObjectMakeArrayBufferWithBytesNoCopy(
    ctx: JSContextRef,
    bytes: *mut c_void,
    byteLength: usize,
    bytesDeallocator: JSTypedArrayBytesDeallocator,
    deallocatorContext: *mut c_void,
    exception: *mut JSValueRef
) -> JSObjectRef

Creates a JavaScript Array Buffer object from an existing pointer.

Returns a JSObjectRef Array Buffer whose backing store is the same as the one pointed to by bytes or NULL if there was an error.

If an exception is thrown during this function the bytesDeallocator will always be called.