Contents

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 JavaScript array buffer object with the length in bytes to return.

  • exception:

    A pointer to a Jsvalueref to store an exception in, if any. Pass NULL to discard any exception.

Return Value

The number of bytes in the data object.

See Also

Working with Array Buffers