JSObjectMakeTypedArray top-level property

JSObjectRef Function(JSContextRef ctx, int arrayType, int length, Pointer<JSValueRef> exception) JSObjectMakeTypedArray
final

MacOS 10.12, iOS 10.0 Creates a JavaScript Typed Array object with the given number of elements. ctx The execution context to use. arrayType A value identifying the type of array to create. If arrayType is kJSTypedArrayTypeNone or kJSTypedArrayTypeArrayBuffer then NULL will be returned. length The number of elements to be in the new Typed Array. 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. @result A JSObjectRef that is a Typed Array with all elements set to zero or NULL if there was an error.

Implementation

final JSObjectRef Function(JSContextRef ctx, int /*JSTypedArrayType*/ arrayType, int length, Pointer<JSValueRef> exception) JSObjectMakeTypedArray =
    jscLib.lookup<NativeFunction<JSObjectRef Function(JSContextRef ctx, Uint32 /*JSTypedArrayType*/ arrayType, Size length, Pointer<JSValueRef> exception)>>('JSObjectMakeTypedArray').asFunction();