Function javascriptcore_sys::JSObjectMakeTypedArrayWithArrayBufferAndOffset [] [src]

pub unsafe extern "C" fn JSObjectMakeTypedArrayWithArrayBufferAndOffset(
    ctx: JSContextRef,
    arrayType: JSTypedArrayType,
    buffer: JSObjectRef,
    byteOffset: usize,
    length: usize,
    exception: *mut JSValueRef
) -> JSObjectRef

Creates a JavaScript Typed Array object from an existing JavaScript Array Buffer object with the given offset and length.

Returns a JSObjectRef that is a Typed Array or NULL if there was an error. The backing store of the Typed Array will be buffer.