bireader 1.0.55 → 1.0.56

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.
package/lib/esm/index.mjs CHANGED
@@ -1251,6 +1251,7 @@ function rint64(_this, unsigned, endian) {
1251
1251
  if ((endian == undefined ? _this.endian : endian) == "little") {
1252
1252
  for (let i = 0; i < 8; i++) {
1253
1253
  value = value | BigInt(_this.data[_this.offset]) << BigInt(8 * i);
1254
+ _this.offset += 1;
1254
1255
  }
1255
1256
  if (unsigned == undefined || unsigned == false) {
1256
1257
  if (value & (BigInt(1) << BigInt(63))) {
@@ -1261,6 +1262,7 @@ function rint64(_this, unsigned, endian) {
1261
1262
  else {
1262
1263
  for (let i = 0; i < 8; i++) {
1263
1264
  value = (value << BigInt(8)) | BigInt(_this.data[_this.offset]);
1265
+ _this.offset += 1;
1264
1266
  }
1265
1267
  if (unsigned == undefined || unsigned == false) {
1266
1268
  if (value & (BigInt(1) << BigInt(63))) {
@@ -1268,7 +1270,6 @@ function rint64(_this, unsigned, endian) {
1268
1270
  }
1269
1271
  }
1270
1272
  }
1271
- _this.offset += 8;
1272
1273
  _this.bitoffset = 0;
1273
1274
  return value;
1274
1275
  }