Function JSValueGetTypedArrayType

Source
pub unsafe extern "C" fn JSValueGetTypedArrayType(
    ctx: JSContextRef,
    value: JSValueRef,
    exception: *mut JSValueRef,
) -> JSTypedArrayType
Expand description

Returns a JavaScript value’s Typed Array type.

  • ctx: The execution context to use.
  • value: The JSValueRef whose Typed Array type 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.

Returns a value of type JSTypedArrayType that identifies value’s Typed Array type, or JSTypedArrayType::None if the value is not a Typed Array object.