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.
- package/dist/BiWriter.d.ts +19 -19
- package/dist/BiWriterStream.d.ts +19 -19
- package/dist/aliases/BinaryAliasReader.d.ts +36 -36
- package/dist/aliases/BinaryAliasWriter.d.ts +72 -72
- package/dist/common.d.ts +1 -0
- package/dist/core/BiBase.d.ts +21 -21
- package/dist/core/BiBaseStream.d.ts +21 -21
- package/dist/index.browser.d.ts +93 -92
- package/dist/index.browser.js +49 -49
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.d.ts +185 -184
- package/dist/index.cjs.js +62 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +185 -184
- package/dist/index.esm.d.ts +185 -184
- package/dist/index.esm.js +62 -62
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2250,7 +2250,7 @@ class BiBase {
|
|
|
2250
2250
|
*
|
|
2251
2251
|
* Does not change current read position.
|
|
2252
2252
|
*
|
|
2253
|
-
* @param {
|
|
2253
|
+
* @param {BigValue} value - Number to search for.
|
|
2254
2254
|
* @param {boolean} unsigned - If the number is unsigned (default true)
|
|
2255
2255
|
* @param {endian} endian - endianness of value (default set endian).
|
|
2256
2256
|
*/
|
|
@@ -3420,7 +3420,7 @@ class BiBase {
|
|
|
3420
3420
|
*
|
|
3421
3421
|
* @param {boolean} unsigned - if value is unsigned or not
|
|
3422
3422
|
* @param {endian?} endian - ``big`` or ``little``
|
|
3423
|
-
* @returns {
|
|
3423
|
+
* @returns {bigint}
|
|
3424
3424
|
*/
|
|
3425
3425
|
readInt64(unsigned, endian) {
|
|
3426
3426
|
return rint64$1(this, unsigned, endian);
|
|
@@ -3428,7 +3428,7 @@ class BiBase {
|
|
|
3428
3428
|
/**
|
|
3429
3429
|
* Write 64 bit integer.
|
|
3430
3430
|
*
|
|
3431
|
-
* @param {
|
|
3431
|
+
* @param {BigValue} value - value as int
|
|
3432
3432
|
* @param {boolean} unsigned - if the value is unsigned
|
|
3433
3433
|
* @param {endian} endian - ``big`` or ``little``
|
|
3434
3434
|
*/
|
|
@@ -3438,7 +3438,7 @@ class BiBase {
|
|
|
3438
3438
|
/**
|
|
3439
3439
|
* Write unsigned 64 bit integer.
|
|
3440
3440
|
*
|
|
3441
|
-
* @param {
|
|
3441
|
+
* @param {BigValue} value - value as int
|
|
3442
3442
|
* @param {endian} endian - ``big`` or ``little``
|
|
3443
3443
|
*/
|
|
3444
3444
|
writeUInt64(value, endian) {
|
|
@@ -3447,7 +3447,7 @@ class BiBase {
|
|
|
3447
3447
|
/**
|
|
3448
3448
|
* Write signed 64 bit integer.
|
|
3449
3449
|
*
|
|
3450
|
-
* @param {
|
|
3450
|
+
* @param {BigValue} value - value as int
|
|
3451
3451
|
*/
|
|
3452
3452
|
writeInt64LE(value) {
|
|
3453
3453
|
return this.writeInt64(value, false, "little");
|
|
@@ -3455,7 +3455,7 @@ class BiBase {
|
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Write unsigned 64 bit integer.
|
|
3457
3457
|
*
|
|
3458
|
-
* @param {
|
|
3458
|
+
* @param {BigValue} value - value as int
|
|
3459
3459
|
*/
|
|
3460
3460
|
writeUInt64LE(value) {
|
|
3461
3461
|
return this.writeInt64(value, true, "little");
|
|
@@ -3463,7 +3463,7 @@ class BiBase {
|
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Write signed 64 bit integer.
|
|
3465
3465
|
*
|
|
3466
|
-
* @param {
|
|
3466
|
+
* @param {BigValue} value - value as int
|
|
3467
3467
|
*/
|
|
3468
3468
|
writeInt64BE(value) {
|
|
3469
3469
|
return this.writeInt64(value, false, "big");
|
|
@@ -3471,7 +3471,7 @@ class BiBase {
|
|
|
3471
3471
|
/**
|
|
3472
3472
|
* Write unsigned 64 bit integer.
|
|
3473
3473
|
*
|
|
3474
|
-
* @param {
|
|
3474
|
+
* @param {BigValue} value - value as int
|
|
3475
3475
|
*/
|
|
3476
3476
|
writeUInt64BE(value) {
|
|
3477
3477
|
return this.writeInt64(value, true, "big");
|
|
@@ -3479,7 +3479,7 @@ class BiBase {
|
|
|
3479
3479
|
/**
|
|
3480
3480
|
* Read unsigned 64 bit integer.
|
|
3481
3481
|
*
|
|
3482
|
-
* @returns {
|
|
3482
|
+
* @returns {bigint}
|
|
3483
3483
|
*/
|
|
3484
3484
|
readUInt64() {
|
|
3485
3485
|
return this.readInt64(true);
|
|
@@ -3487,7 +3487,7 @@ class BiBase {
|
|
|
3487
3487
|
/**
|
|
3488
3488
|
* Read signed 64 bit integer.
|
|
3489
3489
|
*
|
|
3490
|
-
* @returns {
|
|
3490
|
+
* @returns {bigint}
|
|
3491
3491
|
*/
|
|
3492
3492
|
readInt64BE() {
|
|
3493
3493
|
return this.readInt64(false, "big");
|
|
@@ -3495,7 +3495,7 @@ class BiBase {
|
|
|
3495
3495
|
/**
|
|
3496
3496
|
* Read unsigned 64 bit integer.
|
|
3497
3497
|
*
|
|
3498
|
-
* @returns {
|
|
3498
|
+
* @returns {bigint}
|
|
3499
3499
|
*/
|
|
3500
3500
|
readUInt64BE() {
|
|
3501
3501
|
return this.readInt64(true, "big");
|
|
@@ -3503,7 +3503,7 @@ class BiBase {
|
|
|
3503
3503
|
/**
|
|
3504
3504
|
* Read signed 64 bit integer.
|
|
3505
3505
|
*
|
|
3506
|
-
* @returns {
|
|
3506
|
+
* @returns {bigint}
|
|
3507
3507
|
*/
|
|
3508
3508
|
readInt64LE() {
|
|
3509
3509
|
return this.readInt64(false, "little");
|
|
@@ -3511,7 +3511,7 @@ class BiBase {
|
|
|
3511
3511
|
/**
|
|
3512
3512
|
* Read unsigned 64 bit integer.
|
|
3513
3513
|
*
|
|
3514
|
-
* @returns {
|
|
3514
|
+
* @returns {bigint}
|
|
3515
3515
|
*/
|
|
3516
3516
|
readUInt64LE() {
|
|
3517
3517
|
return this.readInt64(true, "little");
|
|
@@ -6058,7 +6058,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6058
6058
|
/**
|
|
6059
6059
|
* Read signed 64 bit integer
|
|
6060
6060
|
*
|
|
6061
|
-
* @returns {
|
|
6061
|
+
* @returns {bigint}
|
|
6062
6062
|
*/
|
|
6063
6063
|
get int64() {
|
|
6064
6064
|
return this.readInt64();
|
|
@@ -6066,7 +6066,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6066
6066
|
/**
|
|
6067
6067
|
* Read signed 64 bit integer.
|
|
6068
6068
|
*
|
|
6069
|
-
* @returns {
|
|
6069
|
+
* @returns {bigint}
|
|
6070
6070
|
*/
|
|
6071
6071
|
get bigint() {
|
|
6072
6072
|
return this.readInt64();
|
|
@@ -6074,7 +6074,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6074
6074
|
/**
|
|
6075
6075
|
* Read signed 64 bit integer.
|
|
6076
6076
|
*
|
|
6077
|
-
* @returns {
|
|
6077
|
+
* @returns {bigint}
|
|
6078
6078
|
*/
|
|
6079
6079
|
get quad() {
|
|
6080
6080
|
return this.readInt64();
|
|
@@ -6082,7 +6082,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6082
6082
|
/**
|
|
6083
6083
|
* Read unsigned 64 bit integer.
|
|
6084
6084
|
*
|
|
6085
|
-
* @returns {
|
|
6085
|
+
* @returns {bigint}
|
|
6086
6086
|
*/
|
|
6087
6087
|
get uint64() {
|
|
6088
6088
|
return this.readInt64(true);
|
|
@@ -6090,7 +6090,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6090
6090
|
/**
|
|
6091
6091
|
* Read unsigned 64 bit integer.
|
|
6092
6092
|
*
|
|
6093
|
-
* @returns {
|
|
6093
|
+
* @returns {bigint}
|
|
6094
6094
|
*/
|
|
6095
6095
|
get ubigint() {
|
|
6096
6096
|
return this.readInt64(true);
|
|
@@ -6098,7 +6098,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Read unsigned 64 bit integer.
|
|
6100
6100
|
*
|
|
6101
|
-
* @returns {
|
|
6101
|
+
* @returns {bigint}
|
|
6102
6102
|
*/
|
|
6103
6103
|
get uquad() {
|
|
6104
6104
|
return this.readInt64(true);
|
|
@@ -6106,7 +6106,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6106
6106
|
/**
|
|
6107
6107
|
* Read signed 64 bit integer.
|
|
6108
6108
|
*
|
|
6109
|
-
* @returns {
|
|
6109
|
+
* @returns {bigint}
|
|
6110
6110
|
*/
|
|
6111
6111
|
get int64be() {
|
|
6112
6112
|
return this.readInt64(false, "big");
|
|
@@ -6114,7 +6114,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6114
6114
|
/**
|
|
6115
6115
|
* Read signed 64 bit integer.
|
|
6116
6116
|
*
|
|
6117
|
-
* @returns {
|
|
6117
|
+
* @returns {bigint}
|
|
6118
6118
|
*/
|
|
6119
6119
|
get bigintbe() {
|
|
6120
6120
|
return this.readInt64(false, "big");
|
|
@@ -6122,7 +6122,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6122
6122
|
/**
|
|
6123
6123
|
* Read signed 64 bit integer.
|
|
6124
6124
|
*
|
|
6125
|
-
* @returns {
|
|
6125
|
+
* @returns {bigint}
|
|
6126
6126
|
*/
|
|
6127
6127
|
get quadbe() {
|
|
6128
6128
|
return this.readInt64(false, "big");
|
|
@@ -6130,7 +6130,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6130
6130
|
/**
|
|
6131
6131
|
* Read unsigned 64 bit integer.
|
|
6132
6132
|
*
|
|
6133
|
-
* @returns {
|
|
6133
|
+
* @returns {bigint}
|
|
6134
6134
|
*/
|
|
6135
6135
|
get uint64be() {
|
|
6136
6136
|
return this.readInt64(true, "big");
|
|
@@ -6138,7 +6138,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6138
6138
|
/**
|
|
6139
6139
|
* Read unsigned 64 bit integer.
|
|
6140
6140
|
*
|
|
6141
|
-
* @returns {
|
|
6141
|
+
* @returns {bigint}
|
|
6142
6142
|
*/
|
|
6143
6143
|
get ubigintbe() {
|
|
6144
6144
|
return this.readInt64(true, "big");
|
|
@@ -6146,7 +6146,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6146
6146
|
/**
|
|
6147
6147
|
* Read unsigned 64 bit integer.
|
|
6148
6148
|
*
|
|
6149
|
-
* @returns {
|
|
6149
|
+
* @returns {bigint}
|
|
6150
6150
|
*/
|
|
6151
6151
|
get uquadbe() {
|
|
6152
6152
|
return this.readInt64(true, "big");
|
|
@@ -6154,7 +6154,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6154
6154
|
/**
|
|
6155
6155
|
* Read signed 64 bit integer.
|
|
6156
6156
|
*
|
|
6157
|
-
* @returns {
|
|
6157
|
+
* @returns {bigint}
|
|
6158
6158
|
*/
|
|
6159
6159
|
get int64le() {
|
|
6160
6160
|
return this.readInt64(false, "little");
|
|
@@ -6162,7 +6162,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6162
6162
|
/**
|
|
6163
6163
|
* Read signed 64 bit integer.
|
|
6164
6164
|
*
|
|
6165
|
-
* @returns {
|
|
6165
|
+
* @returns {bigint}
|
|
6166
6166
|
*/
|
|
6167
6167
|
get bigintle() {
|
|
6168
6168
|
return this.readInt64(false, "little");
|
|
@@ -6170,7 +6170,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6170
6170
|
/**
|
|
6171
6171
|
* Read signed 64 bit integer.
|
|
6172
6172
|
*
|
|
6173
|
-
* @returns {
|
|
6173
|
+
* @returns {bigint}
|
|
6174
6174
|
*/
|
|
6175
6175
|
get quadle() {
|
|
6176
6176
|
return this.readInt64(false, "little");
|
|
@@ -6178,7 +6178,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6178
6178
|
/**
|
|
6179
6179
|
* Read unsigned 64 bit integer.
|
|
6180
6180
|
*
|
|
6181
|
-
* @returns {
|
|
6181
|
+
* @returns {bigint}
|
|
6182
6182
|
*/
|
|
6183
6183
|
get uint64le() {
|
|
6184
6184
|
return this.readInt64(true, "little");
|
|
@@ -6186,7 +6186,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6186
6186
|
/**
|
|
6187
6187
|
* Read unsigned 64 bit integer.
|
|
6188
6188
|
*
|
|
6189
|
-
* @returns {
|
|
6189
|
+
* @returns {bigint}
|
|
6190
6190
|
*/
|
|
6191
6191
|
get ubigintle() {
|
|
6192
6192
|
return this.readInt64(true, "little");
|
|
@@ -6194,7 +6194,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6194
6194
|
/**
|
|
6195
6195
|
* Read unsigned 64 bit integer.
|
|
6196
6196
|
*
|
|
6197
|
-
* @returns {
|
|
6197
|
+
* @returns {bigint}
|
|
6198
6198
|
*/
|
|
6199
6199
|
get uquadle() {
|
|
6200
6200
|
return this.readInt64(true, "little");
|
|
@@ -10059,7 +10059,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10059
10059
|
/**
|
|
10060
10060
|
* Write 64 bit integer.
|
|
10061
10061
|
*
|
|
10062
|
-
* @param {number} value - value as int
|
|
10062
|
+
* @param {number|bigint} value - value as int
|
|
10063
10063
|
*/
|
|
10064
10064
|
set int64(value) {
|
|
10065
10065
|
this.writeInt64(value);
|
|
@@ -10067,7 +10067,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10067
10067
|
/**
|
|
10068
10068
|
* Write 64 bit integer.
|
|
10069
10069
|
*
|
|
10070
|
-
* @param {number} value - value as int
|
|
10070
|
+
* @param {number|bigint} value - value as int
|
|
10071
10071
|
*/
|
|
10072
10072
|
set quad(value) {
|
|
10073
10073
|
this.writeInt64(value);
|
|
@@ -10075,7 +10075,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10075
10075
|
/**
|
|
10076
10076
|
* Write 64 bit integer.
|
|
10077
10077
|
*
|
|
10078
|
-
* @param {number} value - value as int
|
|
10078
|
+
* @param {number|bigint} value - value as int
|
|
10079
10079
|
*/
|
|
10080
10080
|
set bigint(value) {
|
|
10081
10081
|
this.writeInt64(value);
|
|
@@ -10083,7 +10083,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10083
10083
|
/**
|
|
10084
10084
|
* Write unsigned 64 bit integer.
|
|
10085
10085
|
*
|
|
10086
|
-
* @param {number} value - value as int
|
|
10086
|
+
* @param {number|bigint} value - value as int
|
|
10087
10087
|
*/
|
|
10088
10088
|
set uint64(value) {
|
|
10089
10089
|
this.writeInt64(value, true);
|
|
@@ -10091,7 +10091,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10091
10091
|
/**
|
|
10092
10092
|
* Write unsigned 64 bit integer.
|
|
10093
10093
|
*
|
|
10094
|
-
* @param {number} value - value as int
|
|
10094
|
+
* @param {number|bigint} value - value as int
|
|
10095
10095
|
*/
|
|
10096
10096
|
set ubigint(value) {
|
|
10097
10097
|
this.writeInt64(value, true);
|
|
@@ -10099,7 +10099,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10099
10099
|
/**
|
|
10100
10100
|
* Write unsigned 64 bit integer.
|
|
10101
10101
|
*
|
|
10102
|
-
* @param {number} value - value as int
|
|
10102
|
+
* @param {number|bigint} value - value as int
|
|
10103
10103
|
*/
|
|
10104
10104
|
set uquad(value) {
|
|
10105
10105
|
this.writeInt64(value, true);
|
|
@@ -10107,7 +10107,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10107
10107
|
/**
|
|
10108
10108
|
* Write signed 64 bit integer.
|
|
10109
10109
|
*
|
|
10110
|
-
* @param {number} value - value as int
|
|
10110
|
+
* @param {number|bigint} value - value as int
|
|
10111
10111
|
*/
|
|
10112
10112
|
set int64le(value) {
|
|
10113
10113
|
this.writeInt64(value, false, "little");
|
|
@@ -10115,7 +10115,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10115
10115
|
/**
|
|
10116
10116
|
* Write signed 64 bit integer.
|
|
10117
10117
|
*
|
|
10118
|
-
* @param {number} value - value as int
|
|
10118
|
+
* @param {number|bigint} value - value as int
|
|
10119
10119
|
*/
|
|
10120
10120
|
set bigintle(value) {
|
|
10121
10121
|
this.writeInt64(value, false, "little");
|
|
@@ -10123,7 +10123,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10123
10123
|
/**
|
|
10124
10124
|
* Write signed 64 bit integer.
|
|
10125
10125
|
*
|
|
10126
|
-
* @param {number} value - value as int
|
|
10126
|
+
* @param {number|bigint} value - value as int
|
|
10127
10127
|
*/
|
|
10128
10128
|
set quadle(value) {
|
|
10129
10129
|
this.writeInt64(value, false, "little");
|
|
@@ -10131,7 +10131,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10131
10131
|
/**
|
|
10132
10132
|
* Write unsigned 64 bit integer.
|
|
10133
10133
|
*
|
|
10134
|
-
* @param {number} value - value as int
|
|
10134
|
+
* @param {number|bigint} value - value as int
|
|
10135
10135
|
*/
|
|
10136
10136
|
set uint64le(value) {
|
|
10137
10137
|
this.writeInt64(value, true, "little");
|
|
@@ -10139,7 +10139,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10139
10139
|
/**
|
|
10140
10140
|
* Write unsigned 64 bit integer.
|
|
10141
10141
|
*
|
|
10142
|
-
* @param {number} value - value as int
|
|
10142
|
+
* @param {number|bigint} value - value as int
|
|
10143
10143
|
*/
|
|
10144
10144
|
set ubigintle(value) {
|
|
10145
10145
|
this.writeInt64(value, true, "little");
|
|
@@ -10147,7 +10147,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10147
10147
|
/**
|
|
10148
10148
|
* Write unsigned 64 bit integer.
|
|
10149
10149
|
*
|
|
10150
|
-
* @param {number} value - value as int
|
|
10150
|
+
* @param {number|bigint} value - value as int
|
|
10151
10151
|
*/
|
|
10152
10152
|
set uquadle(value) {
|
|
10153
10153
|
this.writeInt64(value, true, "little");
|
|
@@ -10155,7 +10155,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10155
10155
|
/**
|
|
10156
10156
|
* Write signed 64 bit integer.
|
|
10157
10157
|
*
|
|
10158
|
-
* @param {number} value - value as int
|
|
10158
|
+
* @param {number|bigint} value - value as int
|
|
10159
10159
|
*/
|
|
10160
10160
|
set int64be(value) {
|
|
10161
10161
|
this.writeInt64(value, false, "big");
|
|
@@ -10163,7 +10163,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10163
10163
|
/**
|
|
10164
10164
|
* Write signed 64 bit integer.
|
|
10165
10165
|
*
|
|
10166
|
-
* @param {number} value - value as int
|
|
10166
|
+
* @param {number|bigint} value - value as int
|
|
10167
10167
|
*/
|
|
10168
10168
|
set bigintbe(value) {
|
|
10169
10169
|
this.writeInt64(value, false, "big");
|
|
@@ -10171,7 +10171,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10171
10171
|
/**
|
|
10172
10172
|
* Write signed 64 bit integer.
|
|
10173
10173
|
*
|
|
10174
|
-
* @param {number} value - value as int
|
|
10174
|
+
* @param {number|bigint} value - value as int
|
|
10175
10175
|
*/
|
|
10176
10176
|
set quadbe(value) {
|
|
10177
10177
|
this.writeInt64(value, false, "big");
|
|
@@ -10179,7 +10179,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10179
10179
|
/**
|
|
10180
10180
|
* Write unsigned 64 bit integer.
|
|
10181
10181
|
*
|
|
10182
|
-
* @param {number} value - value as int
|
|
10182
|
+
* @param {number|bigint} value - value as int
|
|
10183
10183
|
*/
|
|
10184
10184
|
set uint64be(value) {
|
|
10185
10185
|
this.writeInt64(value, true, "big");
|
|
@@ -10187,7 +10187,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10187
10187
|
/**
|
|
10188
10188
|
* Write unsigned 64 bit integer.
|
|
10189
10189
|
*
|
|
10190
|
-
* @param {number} value - value as int
|
|
10190
|
+
* @param {number|bigint} value - value as int
|
|
10191
10191
|
*/
|
|
10192
10192
|
set ubigintbe(value) {
|
|
10193
10193
|
this.writeInt64(value, true, "big");
|
|
@@ -10195,7 +10195,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10195
10195
|
/**
|
|
10196
10196
|
* Write unsigned 64 bit integer.
|
|
10197
10197
|
*
|
|
10198
|
-
* @param {number} value - value as int
|
|
10198
|
+
* @param {number|bigint} value - value as int
|
|
10199
10199
|
*/
|
|
10200
10200
|
set uquadbe(value) {
|
|
10201
10201
|
this.writeInt64(value, true, "big");
|
|
@@ -14036,7 +14036,7 @@ class BiBaseStreamer {
|
|
|
14036
14036
|
*
|
|
14037
14037
|
* Does not change current read position.
|
|
14038
14038
|
*
|
|
14039
|
-
* @param {
|
|
14039
|
+
* @param {BigValue} value - Number to search for.
|
|
14040
14040
|
* @param {boolean} unsigned - If the number is unsigned (default true)
|
|
14041
14041
|
* @param {endian} endian - endianness of value (default set endian).
|
|
14042
14042
|
*/
|
|
@@ -15206,7 +15206,7 @@ class BiBaseStreamer {
|
|
|
15206
15206
|
*
|
|
15207
15207
|
* @param {boolean} unsigned - if value is unsigned or not
|
|
15208
15208
|
* @param {endian?} endian - ``big`` or ``little``
|
|
15209
|
-
* @returns {
|
|
15209
|
+
* @returns {bigint}
|
|
15210
15210
|
*/
|
|
15211
15211
|
readInt64(unsigned, endian) {
|
|
15212
15212
|
return rint64(this, unsigned, endian);
|
|
@@ -15214,7 +15214,7 @@ class BiBaseStreamer {
|
|
|
15214
15214
|
/**
|
|
15215
15215
|
* Write 64 bit integer.
|
|
15216
15216
|
*
|
|
15217
|
-
* @param {
|
|
15217
|
+
* @param {BigValue} value - value as int
|
|
15218
15218
|
* @param {boolean} unsigned - if the value is unsigned
|
|
15219
15219
|
* @param {endian} endian - ``big`` or ``little``
|
|
15220
15220
|
*/
|
|
@@ -15224,7 +15224,7 @@ class BiBaseStreamer {
|
|
|
15224
15224
|
/**
|
|
15225
15225
|
* Write unsigned 64 bit integer.
|
|
15226
15226
|
*
|
|
15227
|
-
* @param {
|
|
15227
|
+
* @param {BigValue} value - value as int
|
|
15228
15228
|
* @param {endian} endian - ``big`` or ``little``
|
|
15229
15229
|
*/
|
|
15230
15230
|
writeUInt64(value, endian) {
|
|
@@ -15233,7 +15233,7 @@ class BiBaseStreamer {
|
|
|
15233
15233
|
/**
|
|
15234
15234
|
* Write signed 64 bit integer.
|
|
15235
15235
|
*
|
|
15236
|
-
* @param {
|
|
15236
|
+
* @param {BigValue} value - value as int
|
|
15237
15237
|
*/
|
|
15238
15238
|
writeInt64LE(value) {
|
|
15239
15239
|
return this.writeInt64(value, false, "little");
|
|
@@ -15241,7 +15241,7 @@ class BiBaseStreamer {
|
|
|
15241
15241
|
/**
|
|
15242
15242
|
* Write unsigned 64 bit integer.
|
|
15243
15243
|
*
|
|
15244
|
-
* @param {
|
|
15244
|
+
* @param {BigValue} value - value as int
|
|
15245
15245
|
*/
|
|
15246
15246
|
writeUInt64LE(value) {
|
|
15247
15247
|
return this.writeInt64(value, true, "little");
|
|
@@ -15249,7 +15249,7 @@ class BiBaseStreamer {
|
|
|
15249
15249
|
/**
|
|
15250
15250
|
* Write signed 64 bit integer.
|
|
15251
15251
|
*
|
|
15252
|
-
* @param {
|
|
15252
|
+
* @param {BigValue} value - value as int
|
|
15253
15253
|
*/
|
|
15254
15254
|
writeInt64BE(value) {
|
|
15255
15255
|
return this.writeInt64(value, false, "big");
|
|
@@ -15257,7 +15257,7 @@ class BiBaseStreamer {
|
|
|
15257
15257
|
/**
|
|
15258
15258
|
* Write unsigned 64 bit integer.
|
|
15259
15259
|
*
|
|
15260
|
-
* @param {
|
|
15260
|
+
* @param {BigValue} value - value as int
|
|
15261
15261
|
*/
|
|
15262
15262
|
writeUInt64BE(value) {
|
|
15263
15263
|
return this.writeInt64(value, true, "big");
|
|
@@ -15265,7 +15265,7 @@ class BiBaseStreamer {
|
|
|
15265
15265
|
/**
|
|
15266
15266
|
* Read unsigned 64 bit integer.
|
|
15267
15267
|
*
|
|
15268
|
-
* @returns {
|
|
15268
|
+
* @returns {bigint}
|
|
15269
15269
|
*/
|
|
15270
15270
|
readUInt64() {
|
|
15271
15271
|
return this.readInt64(true);
|
|
@@ -15273,7 +15273,7 @@ class BiBaseStreamer {
|
|
|
15273
15273
|
/**
|
|
15274
15274
|
* Read signed 64 bit integer.
|
|
15275
15275
|
*
|
|
15276
|
-
* @returns {
|
|
15276
|
+
* @returns {bigint}
|
|
15277
15277
|
*/
|
|
15278
15278
|
readInt64BE() {
|
|
15279
15279
|
return this.readInt64(false, "big");
|
|
@@ -15281,7 +15281,7 @@ class BiBaseStreamer {
|
|
|
15281
15281
|
/**
|
|
15282
15282
|
* Read unsigned 64 bit integer.
|
|
15283
15283
|
*
|
|
15284
|
-
* @returns {
|
|
15284
|
+
* @returns {bigint}
|
|
15285
15285
|
*/
|
|
15286
15286
|
readUInt64BE() {
|
|
15287
15287
|
return this.readInt64(true, "big");
|
|
@@ -15289,7 +15289,7 @@ class BiBaseStreamer {
|
|
|
15289
15289
|
/**
|
|
15290
15290
|
* Read signed 64 bit integer.
|
|
15291
15291
|
*
|
|
15292
|
-
* @returns {
|
|
15292
|
+
* @returns {bigint}
|
|
15293
15293
|
*/
|
|
15294
15294
|
readInt64LE() {
|
|
15295
15295
|
return this.readInt64(false, "little");
|
|
@@ -15297,7 +15297,7 @@ class BiBaseStreamer {
|
|
|
15297
15297
|
/**
|
|
15298
15298
|
* Read unsigned 64 bit integer.
|
|
15299
15299
|
*
|
|
15300
|
-
* @returns {
|
|
15300
|
+
* @returns {bigint}
|
|
15301
15301
|
*/
|
|
15302
15302
|
readUInt64LE() {
|
|
15303
15303
|
return this.readInt64(true, "little");
|