bireader 3.1.2 → 3.1.4

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.
@@ -2247,7 +2247,7 @@ class BiBase {
2247
2247
  *
2248
2248
  * Does not change current read position.
2249
2249
  *
2250
- * @param {number} value - Number to search for.
2250
+ * @param {BigValue} value - Number to search for.
2251
2251
  * @param {boolean} unsigned - If the number is unsigned (default true)
2252
2252
  * @param {endian} endian - endianness of value (default set endian).
2253
2253
  */
@@ -3417,7 +3417,7 @@ class BiBase {
3417
3417
  *
3418
3418
  * @param {boolean} unsigned - if value is unsigned or not
3419
3419
  * @param {endian?} endian - ``big`` or ``little``
3420
- * @returns {number}
3420
+ * @returns {bigint}
3421
3421
  */
3422
3422
  readInt64(unsigned, endian) {
3423
3423
  return rint64(this, unsigned, endian);
@@ -3425,7 +3425,7 @@ class BiBase {
3425
3425
  /**
3426
3426
  * Write 64 bit integer.
3427
3427
  *
3428
- * @param {number} value - value as int
3428
+ * @param {BigValue} value - value as int
3429
3429
  * @param {boolean} unsigned - if the value is unsigned
3430
3430
  * @param {endian} endian - ``big`` or ``little``
3431
3431
  */
@@ -3435,7 +3435,7 @@ class BiBase {
3435
3435
  /**
3436
3436
  * Write unsigned 64 bit integer.
3437
3437
  *
3438
- * @param {number} value - value as int
3438
+ * @param {BigValue} value - value as int
3439
3439
  * @param {endian} endian - ``big`` or ``little``
3440
3440
  */
3441
3441
  writeUInt64(value, endian) {
@@ -3444,7 +3444,7 @@ class BiBase {
3444
3444
  /**
3445
3445
  * Write signed 64 bit integer.
3446
3446
  *
3447
- * @param {number} value - value as int
3447
+ * @param {BigValue} value - value as int
3448
3448
  */
3449
3449
  writeInt64LE(value) {
3450
3450
  return this.writeInt64(value, false, "little");
@@ -3452,7 +3452,7 @@ class BiBase {
3452
3452
  /**
3453
3453
  * Write unsigned 64 bit integer.
3454
3454
  *
3455
- * @param {number} value - value as int
3455
+ * @param {BigValue} value - value as int
3456
3456
  */
3457
3457
  writeUInt64LE(value) {
3458
3458
  return this.writeInt64(value, true, "little");
@@ -3460,7 +3460,7 @@ class BiBase {
3460
3460
  /**
3461
3461
  * Write signed 64 bit integer.
3462
3462
  *
3463
- * @param {number} value - value as int
3463
+ * @param {BigValue} value - value as int
3464
3464
  */
3465
3465
  writeInt64BE(value) {
3466
3466
  return this.writeInt64(value, false, "big");
@@ -3468,7 +3468,7 @@ class BiBase {
3468
3468
  /**
3469
3469
  * Write unsigned 64 bit integer.
3470
3470
  *
3471
- * @param {number} value - value as int
3471
+ * @param {BigValue} value - value as int
3472
3472
  */
3473
3473
  writeUInt64BE(value) {
3474
3474
  return this.writeInt64(value, true, "big");
@@ -3476,7 +3476,7 @@ class BiBase {
3476
3476
  /**
3477
3477
  * Read unsigned 64 bit integer.
3478
3478
  *
3479
- * @returns {number}
3479
+ * @returns {bigint}
3480
3480
  */
3481
3481
  readUInt64() {
3482
3482
  return this.readInt64(true);
@@ -3484,7 +3484,7 @@ class BiBase {
3484
3484
  /**
3485
3485
  * Read signed 64 bit integer.
3486
3486
  *
3487
- * @returns {number}
3487
+ * @returns {bigint}
3488
3488
  */
3489
3489
  readInt64BE() {
3490
3490
  return this.readInt64(false, "big");
@@ -3492,7 +3492,7 @@ class BiBase {
3492
3492
  /**
3493
3493
  * Read unsigned 64 bit integer.
3494
3494
  *
3495
- * @returns {number}
3495
+ * @returns {bigint}
3496
3496
  */
3497
3497
  readUInt64BE() {
3498
3498
  return this.readInt64(true, "big");
@@ -3500,7 +3500,7 @@ class BiBase {
3500
3500
  /**
3501
3501
  * Read signed 64 bit integer.
3502
3502
  *
3503
- * @returns {number}
3503
+ * @returns {bigint}
3504
3504
  */
3505
3505
  readInt64LE() {
3506
3506
  return this.readInt64(false, "little");
@@ -3508,7 +3508,7 @@ class BiBase {
3508
3508
  /**
3509
3509
  * Read unsigned 64 bit integer.
3510
3510
  *
3511
- * @returns {number}
3511
+ * @returns {bigint}
3512
3512
  */
3513
3513
  readUInt64LE() {
3514
3514
  return this.readInt64(true, "little");
@@ -6055,7 +6055,7 @@ function applyBinaryAliasReader(Base) {
6055
6055
  /**
6056
6056
  * Read signed 64 bit integer
6057
6057
  *
6058
- * @returns {number}
6058
+ * @returns {bigint}
6059
6059
  */
6060
6060
  get int64() {
6061
6061
  return this.readInt64();
@@ -6063,7 +6063,7 @@ function applyBinaryAliasReader(Base) {
6063
6063
  /**
6064
6064
  * Read signed 64 bit integer.
6065
6065
  *
6066
- * @returns {number}
6066
+ * @returns {bigint}
6067
6067
  */
6068
6068
  get bigint() {
6069
6069
  return this.readInt64();
@@ -6071,7 +6071,7 @@ function applyBinaryAliasReader(Base) {
6071
6071
  /**
6072
6072
  * Read signed 64 bit integer.
6073
6073
  *
6074
- * @returns {number}
6074
+ * @returns {bigint}
6075
6075
  */
6076
6076
  get quad() {
6077
6077
  return this.readInt64();
@@ -6079,7 +6079,7 @@ function applyBinaryAliasReader(Base) {
6079
6079
  /**
6080
6080
  * Read unsigned 64 bit integer.
6081
6081
  *
6082
- * @returns {number}
6082
+ * @returns {bigint}
6083
6083
  */
6084
6084
  get uint64() {
6085
6085
  return this.readInt64(true);
@@ -6087,7 +6087,7 @@ function applyBinaryAliasReader(Base) {
6087
6087
  /**
6088
6088
  * Read unsigned 64 bit integer.
6089
6089
  *
6090
- * @returns {number}
6090
+ * @returns {bigint}
6091
6091
  */
6092
6092
  get ubigint() {
6093
6093
  return this.readInt64(true);
@@ -6095,7 +6095,7 @@ function applyBinaryAliasReader(Base) {
6095
6095
  /**
6096
6096
  * Read unsigned 64 bit integer.
6097
6097
  *
6098
- * @returns {number}
6098
+ * @returns {bigint}
6099
6099
  */
6100
6100
  get uquad() {
6101
6101
  return this.readInt64(true);
@@ -6103,7 +6103,7 @@ function applyBinaryAliasReader(Base) {
6103
6103
  /**
6104
6104
  * Read signed 64 bit integer.
6105
6105
  *
6106
- * @returns {number}
6106
+ * @returns {bigint}
6107
6107
  */
6108
6108
  get int64be() {
6109
6109
  return this.readInt64(false, "big");
@@ -6111,7 +6111,7 @@ function applyBinaryAliasReader(Base) {
6111
6111
  /**
6112
6112
  * Read signed 64 bit integer.
6113
6113
  *
6114
- * @returns {number}
6114
+ * @returns {bigint}
6115
6115
  */
6116
6116
  get bigintbe() {
6117
6117
  return this.readInt64(false, "big");
@@ -6119,7 +6119,7 @@ function applyBinaryAliasReader(Base) {
6119
6119
  /**
6120
6120
  * Read signed 64 bit integer.
6121
6121
  *
6122
- * @returns {number}
6122
+ * @returns {bigint}
6123
6123
  */
6124
6124
  get quadbe() {
6125
6125
  return this.readInt64(false, "big");
@@ -6127,7 +6127,7 @@ function applyBinaryAliasReader(Base) {
6127
6127
  /**
6128
6128
  * Read unsigned 64 bit integer.
6129
6129
  *
6130
- * @returns {number}
6130
+ * @returns {bigint}
6131
6131
  */
6132
6132
  get uint64be() {
6133
6133
  return this.readInt64(true, "big");
@@ -6135,7 +6135,7 @@ function applyBinaryAliasReader(Base) {
6135
6135
  /**
6136
6136
  * Read unsigned 64 bit integer.
6137
6137
  *
6138
- * @returns {number}
6138
+ * @returns {bigint}
6139
6139
  */
6140
6140
  get ubigintbe() {
6141
6141
  return this.readInt64(true, "big");
@@ -6143,7 +6143,7 @@ function applyBinaryAliasReader(Base) {
6143
6143
  /**
6144
6144
  * Read unsigned 64 bit integer.
6145
6145
  *
6146
- * @returns {number}
6146
+ * @returns {bigint}
6147
6147
  */
6148
6148
  get uquadbe() {
6149
6149
  return this.readInt64(true, "big");
@@ -6151,7 +6151,7 @@ function applyBinaryAliasReader(Base) {
6151
6151
  /**
6152
6152
  * Read signed 64 bit integer.
6153
6153
  *
6154
- * @returns {number}
6154
+ * @returns {bigint}
6155
6155
  */
6156
6156
  get int64le() {
6157
6157
  return this.readInt64(false, "little");
@@ -6159,7 +6159,7 @@ function applyBinaryAliasReader(Base) {
6159
6159
  /**
6160
6160
  * Read signed 64 bit integer.
6161
6161
  *
6162
- * @returns {number}
6162
+ * @returns {bigint}
6163
6163
  */
6164
6164
  get bigintle() {
6165
6165
  return this.readInt64(false, "little");
@@ -6167,7 +6167,7 @@ function applyBinaryAliasReader(Base) {
6167
6167
  /**
6168
6168
  * Read signed 64 bit integer.
6169
6169
  *
6170
- * @returns {number}
6170
+ * @returns {bigint}
6171
6171
  */
6172
6172
  get quadle() {
6173
6173
  return this.readInt64(false, "little");
@@ -6175,7 +6175,7 @@ function applyBinaryAliasReader(Base) {
6175
6175
  /**
6176
6176
  * Read unsigned 64 bit integer.
6177
6177
  *
6178
- * @returns {number}
6178
+ * @returns {bigint}
6179
6179
  */
6180
6180
  get uint64le() {
6181
6181
  return this.readInt64(true, "little");
@@ -6183,7 +6183,7 @@ function applyBinaryAliasReader(Base) {
6183
6183
  /**
6184
6184
  * Read unsigned 64 bit integer.
6185
6185
  *
6186
- * @returns {number}
6186
+ * @returns {bigint}
6187
6187
  */
6188
6188
  get ubigintle() {
6189
6189
  return this.readInt64(true, "little");
@@ -6191,7 +6191,7 @@ function applyBinaryAliasReader(Base) {
6191
6191
  /**
6192
6192
  * Read unsigned 64 bit integer.
6193
6193
  *
6194
- * @returns {number}
6194
+ * @returns {bigint}
6195
6195
  */
6196
6196
  get uquadle() {
6197
6197
  return this.readInt64(true, "little");
@@ -10056,7 +10056,7 @@ function applyBinaryAliasWriter(Base) {
10056
10056
  /**
10057
10057
  * Write 64 bit integer.
10058
10058
  *
10059
- * @param {number} value - value as int
10059
+ * @param {number|bigint} value - value as int
10060
10060
  */
10061
10061
  set int64(value) {
10062
10062
  this.writeInt64(value);
@@ -10064,7 +10064,7 @@ function applyBinaryAliasWriter(Base) {
10064
10064
  /**
10065
10065
  * Write 64 bit integer.
10066
10066
  *
10067
- * @param {number} value - value as int
10067
+ * @param {number|bigint} value - value as int
10068
10068
  */
10069
10069
  set quad(value) {
10070
10070
  this.writeInt64(value);
@@ -10072,7 +10072,7 @@ function applyBinaryAliasWriter(Base) {
10072
10072
  /**
10073
10073
  * Write 64 bit integer.
10074
10074
  *
10075
- * @param {number} value - value as int
10075
+ * @param {number|bigint} value - value as int
10076
10076
  */
10077
10077
  set bigint(value) {
10078
10078
  this.writeInt64(value);
@@ -10080,7 +10080,7 @@ function applyBinaryAliasWriter(Base) {
10080
10080
  /**
10081
10081
  * Write unsigned 64 bit integer.
10082
10082
  *
10083
- * @param {number} value - value as int
10083
+ * @param {number|bigint} value - value as int
10084
10084
  */
10085
10085
  set uint64(value) {
10086
10086
  this.writeInt64(value, true);
@@ -10088,7 +10088,7 @@ function applyBinaryAliasWriter(Base) {
10088
10088
  /**
10089
10089
  * Write unsigned 64 bit integer.
10090
10090
  *
10091
- * @param {number} value - value as int
10091
+ * @param {number|bigint} value - value as int
10092
10092
  */
10093
10093
  set ubigint(value) {
10094
10094
  this.writeInt64(value, true);
@@ -10096,7 +10096,7 @@ function applyBinaryAliasWriter(Base) {
10096
10096
  /**
10097
10097
  * Write unsigned 64 bit integer.
10098
10098
  *
10099
- * @param {number} value - value as int
10099
+ * @param {number|bigint} value - value as int
10100
10100
  */
10101
10101
  set uquad(value) {
10102
10102
  this.writeInt64(value, true);
@@ -10104,7 +10104,7 @@ function applyBinaryAliasWriter(Base) {
10104
10104
  /**
10105
10105
  * Write signed 64 bit integer.
10106
10106
  *
10107
- * @param {number} value - value as int
10107
+ * @param {number|bigint} value - value as int
10108
10108
  */
10109
10109
  set int64le(value) {
10110
10110
  this.writeInt64(value, false, "little");
@@ -10112,7 +10112,7 @@ function applyBinaryAliasWriter(Base) {
10112
10112
  /**
10113
10113
  * Write signed 64 bit integer.
10114
10114
  *
10115
- * @param {number} value - value as int
10115
+ * @param {number|bigint} value - value as int
10116
10116
  */
10117
10117
  set bigintle(value) {
10118
10118
  this.writeInt64(value, false, "little");
@@ -10120,7 +10120,7 @@ function applyBinaryAliasWriter(Base) {
10120
10120
  /**
10121
10121
  * Write signed 64 bit integer.
10122
10122
  *
10123
- * @param {number} value - value as int
10123
+ * @param {number|bigint} value - value as int
10124
10124
  */
10125
10125
  set quadle(value) {
10126
10126
  this.writeInt64(value, false, "little");
@@ -10128,7 +10128,7 @@ function applyBinaryAliasWriter(Base) {
10128
10128
  /**
10129
10129
  * Write unsigned 64 bit integer.
10130
10130
  *
10131
- * @param {number} value - value as int
10131
+ * @param {number|bigint} value - value as int
10132
10132
  */
10133
10133
  set uint64le(value) {
10134
10134
  this.writeInt64(value, true, "little");
@@ -10136,7 +10136,7 @@ function applyBinaryAliasWriter(Base) {
10136
10136
  /**
10137
10137
  * Write unsigned 64 bit integer.
10138
10138
  *
10139
- * @param {number} value - value as int
10139
+ * @param {number|bigint} value - value as int
10140
10140
  */
10141
10141
  set ubigintle(value) {
10142
10142
  this.writeInt64(value, true, "little");
@@ -10144,7 +10144,7 @@ function applyBinaryAliasWriter(Base) {
10144
10144
  /**
10145
10145
  * Write unsigned 64 bit integer.
10146
10146
  *
10147
- * @param {number} value - value as int
10147
+ * @param {number|bigint} value - value as int
10148
10148
  */
10149
10149
  set uquadle(value) {
10150
10150
  this.writeInt64(value, true, "little");
@@ -10152,7 +10152,7 @@ function applyBinaryAliasWriter(Base) {
10152
10152
  /**
10153
10153
  * Write signed 64 bit integer.
10154
10154
  *
10155
- * @param {number} value - value as int
10155
+ * @param {number|bigint} value - value as int
10156
10156
  */
10157
10157
  set int64be(value) {
10158
10158
  this.writeInt64(value, false, "big");
@@ -10160,7 +10160,7 @@ function applyBinaryAliasWriter(Base) {
10160
10160
  /**
10161
10161
  * Write signed 64 bit integer.
10162
10162
  *
10163
- * @param {number} value - value as int
10163
+ * @param {number|bigint} value - value as int
10164
10164
  */
10165
10165
  set bigintbe(value) {
10166
10166
  this.writeInt64(value, false, "big");
@@ -10168,7 +10168,7 @@ function applyBinaryAliasWriter(Base) {
10168
10168
  /**
10169
10169
  * Write signed 64 bit integer.
10170
10170
  *
10171
- * @param {number} value - value as int
10171
+ * @param {number|bigint} value - value as int
10172
10172
  */
10173
10173
  set quadbe(value) {
10174
10174
  this.writeInt64(value, false, "big");
@@ -10176,7 +10176,7 @@ function applyBinaryAliasWriter(Base) {
10176
10176
  /**
10177
10177
  * Write unsigned 64 bit integer.
10178
10178
  *
10179
- * @param {number} value - value as int
10179
+ * @param {number|bigint} value - value as int
10180
10180
  */
10181
10181
  set uint64be(value) {
10182
10182
  this.writeInt64(value, true, "big");
@@ -10184,7 +10184,7 @@ function applyBinaryAliasWriter(Base) {
10184
10184
  /**
10185
10185
  * Write unsigned 64 bit integer.
10186
10186
  *
10187
- * @param {number} value - value as int
10187
+ * @param {number|bigint} value - value as int
10188
10188
  */
10189
10189
  set ubigintbe(value) {
10190
10190
  this.writeInt64(value, true, "big");
@@ -10192,7 +10192,7 @@ function applyBinaryAliasWriter(Base) {
10192
10192
  /**
10193
10193
  * Write unsigned 64 bit integer.
10194
10194
  *
10195
- * @param {number} value - value as int
10195
+ * @param {number|bigint} value - value as int
10196
10196
  */
10197
10197
  set uquadbe(value) {
10198
10198
  this.writeInt64(value, true, "big");