JSValueGetTypedArrayType top-level property

int Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception) JSValueGetTypedArrayType
final

Returns a JavaScript value's Typed Array type. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue whose Typed Array type to return. exception (JSValueRef*) 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 (JSTypedArrayType) A value of type JSTypedArrayType that identifies value's Typed Array type, or kJSTypedArrayTypeNone if the value is not a Typed Array object.

Implementation

final int /*JSTypedArrayType*/ Function(
  JSContextRef ctx,
  JSValueRef value,
  Pointer<JSValueRef> exception,
)
JSValueGetTypedArrayType =
    kLookup<
      NativeFunction<
        Uint32 Function(JSContextRef, JSValueRef, Pointer<JSValueRef>)
      >
    >('JSValueGetTypedArrayType').asFunction();