@ni/nimble-components 34.10.2 → 34.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83206,28 +83206,33 @@ focus outline in that case.
83206
83206
  return this.bytes_.length;
83207
83207
  }
83208
83208
  readInt8(offset) {
83209
- return this.readUint8(offset) << 24 >> 24;
83209
+ return (this.readUint8(offset) << 24) >> 24;
83210
83210
  }
83211
83211
  readUint8(offset) {
83212
83212
  return this.bytes_[offset];
83213
83213
  }
83214
83214
  readInt16(offset) {
83215
- return this.readUint16(offset) << 16 >> 16;
83215
+ return (this.readUint16(offset) << 16) >> 16;
83216
83216
  }
83217
83217
  readUint16(offset) {
83218
- return this.bytes_[offset] | this.bytes_[offset + 1] << 8;
83218
+ return this.bytes_[offset] | (this.bytes_[offset + 1] << 8);
83219
83219
  }
83220
83220
  readInt32(offset) {
83221
- return this.bytes_[offset] | this.bytes_[offset + 1] << 8 | this.bytes_[offset + 2] << 16 | this.bytes_[offset + 3] << 24;
83221
+ return (this.bytes_[offset] |
83222
+ (this.bytes_[offset + 1] << 8) |
83223
+ (this.bytes_[offset + 2] << 16) |
83224
+ (this.bytes_[offset + 3] << 24));
83222
83225
  }
83223
83226
  readUint32(offset) {
83224
83227
  return this.readInt32(offset) >>> 0;
83225
83228
  }
83226
83229
  readInt64(offset) {
83227
- return BigInt.asIntN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83230
+ return BigInt.asIntN(64, BigInt(this.readUint32(offset)) +
83231
+ (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83228
83232
  }
83229
83233
  readUint64(offset) {
83230
- return BigInt.asUintN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83234
+ return BigInt.asUintN(64, BigInt(this.readUint32(offset)) +
83235
+ (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83231
83236
  }
83232
83237
  readFloat32(offset) {
83233
83238
  int32[0] = this.readInt32(offset);
@@ -83287,11 +83292,11 @@ focus outline in that case.
83287
83292
  * start of a the root vtable).
83288
83293
  */
83289
83294
  getBufferIdentifier() {
83290
- if (this.bytes_.length < this.position_ + SIZEOF_INT +
83291
- FILE_IDENTIFIER_LENGTH) {
83295
+ if (this.bytes_.length <
83296
+ this.position_ + SIZEOF_INT + FILE_IDENTIFIER_LENGTH) {
83292
83297
  throw new Error('FlatBuffers: ByteBuffer is too short to contain an identifier.');
83293
83298
  }
83294
- let result = "";
83299
+ let result = '';
83295
83300
  for (let i = 0; i < FILE_IDENTIFIER_LENGTH; i++) {
83296
83301
  result += String.fromCharCode(this.readInt8(this.position_ + SIZEOF_INT + i));
83297
83302
  }
@@ -83303,7 +83308,9 @@ focus outline in that case.
83303
83308
  */
83304
83309
  __offset(bb_pos, vtable_offset) {
83305
83310
  const vtable = bb_pos - this.readInt32(bb_pos);
83306
- return vtable_offset < this.readInt16(vtable) ? this.readInt16(vtable + vtable_offset) : 0;
83311
+ return vtable_offset < this.readInt16(vtable)
83312
+ ? this.readInt16(vtable + vtable_offset)
83313
+ : 0;
83307
83314
  }
83308
83315
  /**
83309
83316
  * Initialize any Table-derived type to point to the union at the given offset.
@@ -83367,8 +83374,7 @@ focus outline in that case.
83367
83374
  }
83368
83375
  __has_identifier(ident) {
83369
83376
  if (ident.length != FILE_IDENTIFIER_LENGTH) {
83370
- throw new Error('FlatBuffers: file identifier must be length ' +
83371
- FILE_IDENTIFIER_LENGTH);
83377
+ throw new Error('FlatBuffers: file identifier must be length ' + FILE_IDENTIFIER_LENGTH);
83372
83378
  }
83373
83379
  for (let i = 0; i < FILE_IDENTIFIER_LENGTH; i++) {
83374
83380
  if (ident.charCodeAt(i) != this.readInt8(this.position() + SIZEOF_INT + i)) {
@@ -83481,7 +83487,9 @@ focus outline in that case.
83481
83487
  * called finish().
83482
83488
  */
83483
83489
  asUint8Array() {
83484
- return this.bb.bytes().subarray(this.bb.position(), this.bb.position() + this.offset());
83490
+ return this.bb
83491
+ .bytes()
83492
+ .subarray(this.bb.position(), this.bb.position() + this.offset());
83485
83493
  }
83486
83494
  /**
83487
83495
  * Prepare to write an element of `size` after `additional_bytes` have been
@@ -83499,7 +83507,7 @@ focus outline in that case.
83499
83507
  }
83500
83508
  // Find the amount of alignment needed such that `size` is properly
83501
83509
  // aligned after `additional_bytes`
83502
- const align_size = ((~(this.bb.capacity() - this.space + additional_bytes)) + 1) & (size - 1);
83510
+ const align_size = (~(this.bb.capacity() - this.space + additional_bytes) + 1) & (size - 1);
83503
83511
  // Reallocate the buffer if needed.
83504
83512
  while (this.space < align_size + size + additional_bytes) {
83505
83513
  const old_buf_size = this.bb.capacity();
@@ -83514,22 +83522,22 @@ focus outline in that case.
83514
83522
  }
83515
83523
  }
83516
83524
  writeInt8(value) {
83517
- this.bb.writeInt8(this.space -= 1, value);
83525
+ this.bb.writeInt8((this.space -= 1), value);
83518
83526
  }
83519
83527
  writeInt16(value) {
83520
- this.bb.writeInt16(this.space -= 2, value);
83528
+ this.bb.writeInt16((this.space -= 2), value);
83521
83529
  }
83522
83530
  writeInt32(value) {
83523
- this.bb.writeInt32(this.space -= 4, value);
83531
+ this.bb.writeInt32((this.space -= 4), value);
83524
83532
  }
83525
83533
  writeInt64(value) {
83526
- this.bb.writeInt64(this.space -= 8, value);
83534
+ this.bb.writeInt64((this.space -= 8), value);
83527
83535
  }
83528
83536
  writeFloat32(value) {
83529
- this.bb.writeFloat32(this.space -= 4, value);
83537
+ this.bb.writeFloat32((this.space -= 4), value);
83530
83538
  }
83531
83539
  writeFloat64(value) {
83532
- this.bb.writeFloat64(this.space -= 8, value);
83540
+ this.bb.writeFloat64((this.space -= 8), value);
83533
83541
  }
83534
83542
  /**
83535
83543
  * Add an `int8` to the buffer, properly aligned, and grows the buffer (if necessary).
@@ -83677,7 +83685,7 @@ focus outline in that case.
83677
83685
  static growByteBuffer(bb) {
83678
83686
  const old_buf_size = bb.capacity();
83679
83687
  // Ensure we don't grow beyond what fits in an int.
83680
- if (old_buf_size & 0xC0000000) {
83688
+ if (old_buf_size & 0xc0000000) {
83681
83689
  throw new Error('FlatBuffers: cannot grow buffer beyond 2 gigabytes.');
83682
83690
  }
83683
83691
  const new_buf_size = old_buf_size << 1;
@@ -83776,8 +83784,7 @@ focus outline in that case.
83776
83784
  const size_prefix = opt_size_prefix ? SIZE_PREFIX_LENGTH : 0;
83777
83785
  if (opt_file_identifier) {
83778
83786
  const file_identifier = opt_file_identifier;
83779
- this.prep(this.minalign, SIZEOF_INT +
83780
- FILE_IDENTIFIER_LENGTH + size_prefix);
83787
+ this.prep(this.minalign, SIZEOF_INT + FILE_IDENTIFIER_LENGTH + size_prefix);
83781
83788
  if (file_identifier.length != FILE_IDENTIFIER_LENGTH) {
83782
83789
  throw new TypeError('FlatBuffers: file identifier must be length ' +
83783
83790
  FILE_IDENTIFIER_LENGTH);
@@ -83880,7 +83887,7 @@ focus outline in that case.
83880
83887
  }
83881
83888
  this.addInt8(0);
83882
83889
  this.startVector(1, utf8.length, 1);
83883
- this.bb.setPosition(this.space -= utf8.length);
83890
+ this.bb.setPosition((this.space -= utf8.length));
83884
83891
  this.bb.bytes().set(utf8, this.space);
83885
83892
  return this.endVector();
83886
83893
  }
@@ -83895,7 +83902,7 @@ focus outline in that case.
83895
83902
  return 0;
83896
83903
  }
83897
83904
  this.startVector(1, v.length, 1);
83898
- this.bb.setPosition(this.space -= v.length);
83905
+ this.bb.setPosition((this.space -= v.length));
83899
83906
  this.bb.bytes().set(v, this.space);
83900
83907
  return this.endVector();
83901
83908
  }