Function

JSObjectGetArrayBufferByteLength(_:_:_:)

Returns the number of bytes in a JavaScript data object.

Declaration

func JSObjectGetArrayBufferByteLength(_ ctx: JSContextRef!, _ object: JSObjectRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> Int

Parameters

ctx

The execution context to use.

object

The JS Arary Buffer object whose length in bytes to return.

exception

A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.

Return Value

The number of bytes stored in the data object.