readJSArrayBuffer method

  1. @override
Object? readJSArrayBuffer()
override

Implementation

@override
Object? readJSArrayBuffer() {
  var byteLength = reader.getVarint();
  if (byteLength < 0) {
    throw RangeError("readJSArrayBuffer expected length: $byteLength");
  }
  reader.position = reader.position + byteLength;
  assignId(undefined);
  if (peekTag() == SerializationTag.kArrayBufferView) {
    readJSArrayBufferView();
  }
  return null;
}