typedArrayByteLength method

int typedArrayByteLength({
  1. JSValuePointer? exception,
})

Returns the byte length of a JavaScript Typed Array object. 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.

Implementation

int typedArrayByteLength({
  JSValuePointer? exception,
}) {
  return JSTypedArray.jSObjectGetTypedArrayByteLength(context.pointer,
      pointer, (exception ?? JSValuePointer(nullptr)).pointer);
}