typedArrayByteOffset method

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

Returns the byte offset 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 typedArrayByteOffset({
  JSValuePointer? exception,
}) {
  return JSTypedArray.jSObjectGetTypedArrayByteOffset(context.pointer,
      pointer, (exception ?? JSValuePointer(nullptr)).pointer);
}