Function

JSObjectGetTypedArrayLength(_:_:_:)

Returns the length of a JavaScript Typed Array object.

Declaration

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

Parameters

ctx

The execution context to use.

object

The JSObjectRef whose Typed Array type data pointer to obtain.

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 length of the Typed Array object or 0 if the object is not a Typed Array object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software