typedArrayByteLength method

int typedArrayByteLength()

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() {
  final JSException exception = JSException.create(context);
  final ret = JSObjectGetTypedArrayByteLength(
    context.ref,
    _ref,
    exception.ref,
  );
  if (exception.shouldThrow) throw exception.error;
  return ret;
}