bireader 3.1.1 → 3.1.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.
- package/README.md +1 -1
- package/dist/aliases/BinaryAliasReader.d.ts +36 -36
- package/dist/aliases/BinaryAliasWriter.d.ts +72 -72
- package/dist/core/BiBase.d.ts +58 -68
- package/dist/core/BiBaseStream.d.ts +30 -30
- package/dist/index.browser.d.ts +112 -81
- package/dist/index.browser.js +145 -95
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.d.ts +196 -165
- package/dist/index.cjs.js +204 -171
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +196 -165
- package/dist/index.esm.d.ts +196 -165
- package/dist/index.esm.js +204 -171
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -15
package/dist/index.browser.js
CHANGED
|
@@ -1727,9 +1727,9 @@ class BiBase {
|
|
|
1727
1727
|
this.errorDump = true;
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Current buffer data.
|
|
1730
|
-
* @type {Buffer|Uint8Array}
|
|
1730
|
+
* @type {Buffer|Uint8Array|null}
|
|
1731
1731
|
*/
|
|
1732
|
-
this.data =
|
|
1732
|
+
this.data = null;
|
|
1733
1733
|
/**
|
|
1734
1734
|
* When the data buffer needs to be extended while strict mode is ``false``, this will be the amount it extends.
|
|
1735
1735
|
*
|
|
@@ -1740,10 +1740,14 @@ class BiBase {
|
|
|
1740
1740
|
* NOTE: Using ``BiWriter.get`` or ``BiWriter.return`` will now remove all data after the current write position. Use ``BiWriter.data`` to get the full buffer instead.
|
|
1741
1741
|
*/
|
|
1742
1742
|
this.extendBufferSize = 0;
|
|
1743
|
+
this.fd = null;
|
|
1744
|
+
this.filePath = "";
|
|
1745
|
+
this.fsMode = "";
|
|
1743
1746
|
/**
|
|
1744
1747
|
* The settings that used when using the .str getter / setter
|
|
1745
1748
|
*/
|
|
1746
1749
|
this.strDefaults = { stringType: "utf-8", terminateValue: 0x0 };
|
|
1750
|
+
this.maxFileSize = null;
|
|
1747
1751
|
}
|
|
1748
1752
|
/**
|
|
1749
1753
|
* Settings for when using .str
|
|
@@ -1760,12 +1764,67 @@ class BiBase {
|
|
|
1760
1764
|
this.strDefaults.stripNull = settings.stripNull;
|
|
1761
1765
|
this.strDefaults.terminateValue = settings.terminateValue;
|
|
1762
1766
|
}
|
|
1763
|
-
|
|
1764
|
-
|
|
1767
|
+
/**
|
|
1768
|
+
* Enables expanding in reader (changes strict)
|
|
1769
|
+
*
|
|
1770
|
+
* @param {boolean} mode - Enable expanding in reader (changes strict)
|
|
1771
|
+
*/
|
|
1772
|
+
writeMode(mode) {
|
|
1773
|
+
if (mode) {
|
|
1774
|
+
this.strict = false;
|
|
1775
|
+
return;
|
|
1776
|
+
}
|
|
1777
|
+
else {
|
|
1778
|
+
this.strict = true;
|
|
1779
|
+
return;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Dummy function, not needed on Non-Stream
|
|
1784
|
+
*/
|
|
1785
|
+
open() {
|
|
1786
|
+
return this.size;
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Dummy function, not needed on Non-Stream
|
|
1790
|
+
*/
|
|
1791
|
+
updateSize() {
|
|
1792
|
+
this.return;
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* removes data.
|
|
1796
|
+
*/
|
|
1797
|
+
close() {
|
|
1798
|
+
this.data = undefined;
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Dummy function, not needed on Non-Stream
|
|
1802
|
+
*/
|
|
1803
|
+
read(start, length, consume = false) {
|
|
1804
|
+
return this.lift(start, start + length, consume);
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* Dummy function, not needed on Non-Stream
|
|
1808
|
+
*/
|
|
1809
|
+
write(start, data, consume = false) {
|
|
1810
|
+
this.insert(data, consume, start);
|
|
1811
|
+
return data.length;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Dummy function, not needed on Non-Stream
|
|
1815
|
+
*/
|
|
1816
|
+
commit(consume = true) {
|
|
1817
|
+
return consume ? 0 : 1;
|
|
1765
1818
|
}
|
|
1766
1819
|
extendArray(to_padd) {
|
|
1767
1820
|
return extendarray(this, to_padd);
|
|
1768
1821
|
}
|
|
1822
|
+
isBufferOrUint8Array(obj) {
|
|
1823
|
+
return arraybuffcheck(obj);
|
|
1824
|
+
}
|
|
1825
|
+
///////////////////////////////
|
|
1826
|
+
// ENDIANNESS //
|
|
1827
|
+
///////////////////////////////
|
|
1769
1828
|
/**
|
|
1770
1829
|
*
|
|
1771
1830
|
* Change endian, defaults to little.
|
|
@@ -1819,6 +1878,9 @@ class BiBase {
|
|
|
1819
1878
|
le() {
|
|
1820
1879
|
this.endianness("little");
|
|
1821
1880
|
}
|
|
1881
|
+
///////////////////////////////
|
|
1882
|
+
// SIZE //
|
|
1883
|
+
///////////////////////////////
|
|
1822
1884
|
/**
|
|
1823
1885
|
* Size in bytes of the current buffer.
|
|
1824
1886
|
*
|
|
@@ -1867,9 +1929,9 @@ class BiBase {
|
|
|
1867
1929
|
get lenb() {
|
|
1868
1930
|
return this.sizeB;
|
|
1869
1931
|
}
|
|
1870
|
-
|
|
1871
|
-
//
|
|
1872
|
-
|
|
1932
|
+
///////////////////////////////
|
|
1933
|
+
// POSITION //
|
|
1934
|
+
///////////////////////////////
|
|
1873
1935
|
/**
|
|
1874
1936
|
* Get the current byte position.
|
|
1875
1937
|
*
|
|
@@ -2030,9 +2092,9 @@ class BiBase {
|
|
|
2030
2092
|
get row() {
|
|
2031
2093
|
return Math.abs(Math.floor((this.offset - 1) / 16));
|
|
2032
2094
|
}
|
|
2033
|
-
|
|
2034
|
-
//
|
|
2035
|
-
|
|
2095
|
+
///////////////////////////////
|
|
2096
|
+
// FINISHING //
|
|
2097
|
+
///////////////////////////////
|
|
2036
2098
|
/**
|
|
2037
2099
|
* Returns current data.
|
|
2038
2100
|
*
|
|
@@ -2088,9 +2150,9 @@ class BiBase {
|
|
|
2088
2150
|
errorDumpOn() {
|
|
2089
2151
|
this.errorDump = true;
|
|
2090
2152
|
}
|
|
2091
|
-
|
|
2092
|
-
//
|
|
2093
|
-
|
|
2153
|
+
///////////////////////////////
|
|
2154
|
+
// STRICTMODE //
|
|
2155
|
+
///////////////////////////////
|
|
2094
2156
|
/**
|
|
2095
2157
|
* Disallows extending data if position is outside of max size.
|
|
2096
2158
|
*/
|
|
@@ -2109,12 +2171,6 @@ class BiBase {
|
|
|
2109
2171
|
end() {
|
|
2110
2172
|
this.data = undefined;
|
|
2111
2173
|
}
|
|
2112
|
-
/**
|
|
2113
|
-
* removes data.
|
|
2114
|
-
*/
|
|
2115
|
-
close() {
|
|
2116
|
-
this.data = undefined;
|
|
2117
|
-
}
|
|
2118
2174
|
/**
|
|
2119
2175
|
* removes data.
|
|
2120
2176
|
*/
|
|
@@ -2127,9 +2183,9 @@ class BiBase {
|
|
|
2127
2183
|
finished() {
|
|
2128
2184
|
this.data = undefined;
|
|
2129
2185
|
}
|
|
2130
|
-
|
|
2131
|
-
//
|
|
2132
|
-
|
|
2186
|
+
///////////////////////////////
|
|
2187
|
+
// FIND //
|
|
2188
|
+
///////////////////////////////
|
|
2133
2189
|
/**
|
|
2134
2190
|
* Searches for byte position of string from current read position.
|
|
2135
2191
|
*
|
|
@@ -2191,7 +2247,7 @@ class BiBase {
|
|
|
2191
2247
|
*
|
|
2192
2248
|
* Does not change current read position.
|
|
2193
2249
|
*
|
|
2194
|
-
* @param {number} value - Number to search for.
|
|
2250
|
+
* @param {number|bigint} value - Number to search for.
|
|
2195
2251
|
* @param {boolean} unsigned - If the number is unsigned (default true)
|
|
2196
2252
|
* @param {endian} endian - endianness of value (default set endian).
|
|
2197
2253
|
*/
|
|
@@ -2237,9 +2293,9 @@ class BiBase {
|
|
|
2237
2293
|
findDoubleFloat(value, endian) {
|
|
2238
2294
|
return fDoubleFloat(this, value, endian);
|
|
2239
2295
|
}
|
|
2240
|
-
|
|
2241
|
-
//
|
|
2242
|
-
|
|
2296
|
+
///////////////////////////////
|
|
2297
|
+
// MOVE TO //
|
|
2298
|
+
///////////////////////////////
|
|
2243
2299
|
/**
|
|
2244
2300
|
* Aligns current byte position.
|
|
2245
2301
|
*
|
|
@@ -2260,9 +2316,6 @@ class BiBase {
|
|
|
2260
2316
|
alignRev(number) {
|
|
2261
2317
|
return alignRev(this, number);
|
|
2262
2318
|
}
|
|
2263
|
-
//
|
|
2264
|
-
// directly set current position
|
|
2265
|
-
//
|
|
2266
2319
|
/**
|
|
2267
2320
|
* Offset current byte or bit position.
|
|
2268
2321
|
*
|
|
@@ -2340,9 +2393,6 @@ class BiBase {
|
|
|
2340
2393
|
warp(byte, bit) {
|
|
2341
2394
|
return this.goto(byte, bit);
|
|
2342
2395
|
}
|
|
2343
|
-
//
|
|
2344
|
-
// go to start
|
|
2345
|
-
//
|
|
2346
2396
|
/**
|
|
2347
2397
|
* Set byte and bit position to start of data.
|
|
2348
2398
|
*/
|
|
@@ -2377,9 +2427,9 @@ class BiBase {
|
|
|
2377
2427
|
this.offset = this.size;
|
|
2378
2428
|
this.bitoffset = 0;
|
|
2379
2429
|
}
|
|
2380
|
-
|
|
2381
|
-
//
|
|
2382
|
-
|
|
2430
|
+
///////////////////////////////
|
|
2431
|
+
// REMOVE //
|
|
2432
|
+
///////////////////////////////
|
|
2383
2433
|
/**
|
|
2384
2434
|
* Deletes part of data from start to current byte position unless supplied, returns removed.
|
|
2385
2435
|
*
|
|
@@ -2461,9 +2511,9 @@ class BiBase {
|
|
|
2461
2511
|
overwrite(data, consume, offset) {
|
|
2462
2512
|
return addData(this, data, consume || false, offset || this.offset, true);
|
|
2463
2513
|
}
|
|
2464
|
-
|
|
2465
|
-
//
|
|
2466
|
-
|
|
2514
|
+
///////////////////////////////
|
|
2515
|
+
// COPY OUT //
|
|
2516
|
+
///////////////////////////////
|
|
2467
2517
|
/**
|
|
2468
2518
|
* Returns part of data from current byte position to end of data unless supplied.
|
|
2469
2519
|
*
|
|
@@ -2524,9 +2574,9 @@ class BiBase {
|
|
|
2524
2574
|
wrap(length, consume) {
|
|
2525
2575
|
return remove(this, this.offset, this.offset + (length || 0), consume || false, false);
|
|
2526
2576
|
}
|
|
2527
|
-
|
|
2528
|
-
//
|
|
2529
|
-
|
|
2577
|
+
///////////////////////////////
|
|
2578
|
+
// INSERT //
|
|
2579
|
+
///////////////////////////////
|
|
2530
2580
|
/**
|
|
2531
2581
|
* Inserts data into data.
|
|
2532
2582
|
*
|
|
@@ -2595,9 +2645,9 @@ class BiBase {
|
|
|
2595
2645
|
append(data, consume) {
|
|
2596
2646
|
return addData(this, data, consume || false, this.size, false);
|
|
2597
2647
|
}
|
|
2598
|
-
|
|
2599
|
-
//
|
|
2600
|
-
|
|
2648
|
+
///////////////////////////////
|
|
2649
|
+
// MATH //
|
|
2650
|
+
///////////////////////////////
|
|
2601
2651
|
/**
|
|
2602
2652
|
* XOR data.
|
|
2603
2653
|
*
|
|
@@ -2893,9 +2943,9 @@ class BiBase {
|
|
|
2893
2943
|
}
|
|
2894
2944
|
return RSHIFT(this, lShiftKey, this.offset, this.offset + Length, consume || false);
|
|
2895
2945
|
}
|
|
2896
|
-
|
|
2897
|
-
//
|
|
2898
|
-
|
|
2946
|
+
///////////////////////////////
|
|
2947
|
+
// BIT READER //
|
|
2948
|
+
///////////////////////////////
|
|
2899
2949
|
/**
|
|
2900
2950
|
*
|
|
2901
2951
|
* Write bits, must have at least value and number of bits.
|
|
@@ -3367,7 +3417,7 @@ class BiBase {
|
|
|
3367
3417
|
*
|
|
3368
3418
|
* @param {boolean} unsigned - if value is unsigned or not
|
|
3369
3419
|
* @param {endian?} endian - ``big`` or ``little``
|
|
3370
|
-
* @returns {
|
|
3420
|
+
* @returns {bigint}
|
|
3371
3421
|
*/
|
|
3372
3422
|
readInt64(unsigned, endian) {
|
|
3373
3423
|
return rint64(this, unsigned, endian);
|
|
@@ -3375,7 +3425,7 @@ class BiBase {
|
|
|
3375
3425
|
/**
|
|
3376
3426
|
* Write 64 bit integer.
|
|
3377
3427
|
*
|
|
3378
|
-
* @param {number} value - value as int
|
|
3428
|
+
* @param {number|bigint} value - value as int
|
|
3379
3429
|
* @param {boolean} unsigned - if the value is unsigned
|
|
3380
3430
|
* @param {endian} endian - ``big`` or ``little``
|
|
3381
3431
|
*/
|
|
@@ -3385,7 +3435,7 @@ class BiBase {
|
|
|
3385
3435
|
/**
|
|
3386
3436
|
* Write unsigned 64 bit integer.
|
|
3387
3437
|
*
|
|
3388
|
-
* @param {number} value - value as int
|
|
3438
|
+
* @param {number|bigint} value - value as int
|
|
3389
3439
|
* @param {endian} endian - ``big`` or ``little``
|
|
3390
3440
|
*/
|
|
3391
3441
|
writeUInt64(value, endian) {
|
|
@@ -3394,7 +3444,7 @@ class BiBase {
|
|
|
3394
3444
|
/**
|
|
3395
3445
|
* Write signed 64 bit integer.
|
|
3396
3446
|
*
|
|
3397
|
-
* @param {number} value - value as int
|
|
3447
|
+
* @param {number|bigint} value - value as int
|
|
3398
3448
|
*/
|
|
3399
3449
|
writeInt64LE(value) {
|
|
3400
3450
|
return this.writeInt64(value, false, "little");
|
|
@@ -3402,7 +3452,7 @@ class BiBase {
|
|
|
3402
3452
|
/**
|
|
3403
3453
|
* Write unsigned 64 bit integer.
|
|
3404
3454
|
*
|
|
3405
|
-
* @param {number} value - value as int
|
|
3455
|
+
* @param {number|bigint} value - value as int
|
|
3406
3456
|
*/
|
|
3407
3457
|
writeUInt64LE(value) {
|
|
3408
3458
|
return this.writeInt64(value, true, "little");
|
|
@@ -3410,7 +3460,7 @@ class BiBase {
|
|
|
3410
3460
|
/**
|
|
3411
3461
|
* Write signed 64 bit integer.
|
|
3412
3462
|
*
|
|
3413
|
-
* @param {number} value - value as int
|
|
3463
|
+
* @param {number|bigint} value - value as int
|
|
3414
3464
|
*/
|
|
3415
3465
|
writeInt64BE(value) {
|
|
3416
3466
|
return this.writeInt64(value, false, "big");
|
|
@@ -3418,7 +3468,7 @@ class BiBase {
|
|
|
3418
3468
|
/**
|
|
3419
3469
|
* Write unsigned 64 bit integer.
|
|
3420
3470
|
*
|
|
3421
|
-
* @param {number} value - value as int
|
|
3471
|
+
* @param {number|bigint} value - value as int
|
|
3422
3472
|
*/
|
|
3423
3473
|
writeUInt64BE(value) {
|
|
3424
3474
|
return this.writeInt64(value, true, "big");
|
|
@@ -3426,7 +3476,7 @@ class BiBase {
|
|
|
3426
3476
|
/**
|
|
3427
3477
|
* Read unsigned 64 bit integer.
|
|
3428
3478
|
*
|
|
3429
|
-
* @returns {
|
|
3479
|
+
* @returns {bigint}
|
|
3430
3480
|
*/
|
|
3431
3481
|
readUInt64() {
|
|
3432
3482
|
return this.readInt64(true);
|
|
@@ -3434,7 +3484,7 @@ class BiBase {
|
|
|
3434
3484
|
/**
|
|
3435
3485
|
* Read signed 64 bit integer.
|
|
3436
3486
|
*
|
|
3437
|
-
* @returns {
|
|
3487
|
+
* @returns {bigint}
|
|
3438
3488
|
*/
|
|
3439
3489
|
readInt64BE() {
|
|
3440
3490
|
return this.readInt64(false, "big");
|
|
@@ -3442,7 +3492,7 @@ class BiBase {
|
|
|
3442
3492
|
/**
|
|
3443
3493
|
* Read unsigned 64 bit integer.
|
|
3444
3494
|
*
|
|
3445
|
-
* @returns {
|
|
3495
|
+
* @returns {bigint}
|
|
3446
3496
|
*/
|
|
3447
3497
|
readUInt64BE() {
|
|
3448
3498
|
return this.readInt64(true, "big");
|
|
@@ -3450,7 +3500,7 @@ class BiBase {
|
|
|
3450
3500
|
/**
|
|
3451
3501
|
* Read signed 64 bit integer.
|
|
3452
3502
|
*
|
|
3453
|
-
* @returns {
|
|
3503
|
+
* @returns {bigint}
|
|
3454
3504
|
*/
|
|
3455
3505
|
readInt64LE() {
|
|
3456
3506
|
return this.readInt64(false, "little");
|
|
@@ -3458,7 +3508,7 @@ class BiBase {
|
|
|
3458
3508
|
/**
|
|
3459
3509
|
* Read unsigned 64 bit integer.
|
|
3460
3510
|
*
|
|
3461
|
-
* @returns {
|
|
3511
|
+
* @returns {bigint}
|
|
3462
3512
|
*/
|
|
3463
3513
|
readUInt64LE() {
|
|
3464
3514
|
return this.readInt64(true, "little");
|
|
@@ -6005,7 +6055,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6005
6055
|
/**
|
|
6006
6056
|
* Read signed 64 bit integer
|
|
6007
6057
|
*
|
|
6008
|
-
* @returns {
|
|
6058
|
+
* @returns {bigint}
|
|
6009
6059
|
*/
|
|
6010
6060
|
get int64() {
|
|
6011
6061
|
return this.readInt64();
|
|
@@ -6013,7 +6063,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6013
6063
|
/**
|
|
6014
6064
|
* Read signed 64 bit integer.
|
|
6015
6065
|
*
|
|
6016
|
-
* @returns {
|
|
6066
|
+
* @returns {bigint}
|
|
6017
6067
|
*/
|
|
6018
6068
|
get bigint() {
|
|
6019
6069
|
return this.readInt64();
|
|
@@ -6021,7 +6071,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6021
6071
|
/**
|
|
6022
6072
|
* Read signed 64 bit integer.
|
|
6023
6073
|
*
|
|
6024
|
-
* @returns {
|
|
6074
|
+
* @returns {bigint}
|
|
6025
6075
|
*/
|
|
6026
6076
|
get quad() {
|
|
6027
6077
|
return this.readInt64();
|
|
@@ -6029,7 +6079,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6029
6079
|
/**
|
|
6030
6080
|
* Read unsigned 64 bit integer.
|
|
6031
6081
|
*
|
|
6032
|
-
* @returns {
|
|
6082
|
+
* @returns {bigint}
|
|
6033
6083
|
*/
|
|
6034
6084
|
get uint64() {
|
|
6035
6085
|
return this.readInt64(true);
|
|
@@ -6037,7 +6087,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6037
6087
|
/**
|
|
6038
6088
|
* Read unsigned 64 bit integer.
|
|
6039
6089
|
*
|
|
6040
|
-
* @returns {
|
|
6090
|
+
* @returns {bigint}
|
|
6041
6091
|
*/
|
|
6042
6092
|
get ubigint() {
|
|
6043
6093
|
return this.readInt64(true);
|
|
@@ -6045,7 +6095,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6045
6095
|
/**
|
|
6046
6096
|
* Read unsigned 64 bit integer.
|
|
6047
6097
|
*
|
|
6048
|
-
* @returns {
|
|
6098
|
+
* @returns {bigint}
|
|
6049
6099
|
*/
|
|
6050
6100
|
get uquad() {
|
|
6051
6101
|
return this.readInt64(true);
|
|
@@ -6053,7 +6103,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6053
6103
|
/**
|
|
6054
6104
|
* Read signed 64 bit integer.
|
|
6055
6105
|
*
|
|
6056
|
-
* @returns {
|
|
6106
|
+
* @returns {bigint}
|
|
6057
6107
|
*/
|
|
6058
6108
|
get int64be() {
|
|
6059
6109
|
return this.readInt64(false, "big");
|
|
@@ -6061,7 +6111,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6061
6111
|
/**
|
|
6062
6112
|
* Read signed 64 bit integer.
|
|
6063
6113
|
*
|
|
6064
|
-
* @returns {
|
|
6114
|
+
* @returns {bigint}
|
|
6065
6115
|
*/
|
|
6066
6116
|
get bigintbe() {
|
|
6067
6117
|
return this.readInt64(false, "big");
|
|
@@ -6069,7 +6119,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6069
6119
|
/**
|
|
6070
6120
|
* Read signed 64 bit integer.
|
|
6071
6121
|
*
|
|
6072
|
-
* @returns {
|
|
6122
|
+
* @returns {bigint}
|
|
6073
6123
|
*/
|
|
6074
6124
|
get quadbe() {
|
|
6075
6125
|
return this.readInt64(false, "big");
|
|
@@ -6077,7 +6127,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6077
6127
|
/**
|
|
6078
6128
|
* Read unsigned 64 bit integer.
|
|
6079
6129
|
*
|
|
6080
|
-
* @returns {
|
|
6130
|
+
* @returns {bigint}
|
|
6081
6131
|
*/
|
|
6082
6132
|
get uint64be() {
|
|
6083
6133
|
return this.readInt64(true, "big");
|
|
@@ -6085,7 +6135,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6085
6135
|
/**
|
|
6086
6136
|
* Read unsigned 64 bit integer.
|
|
6087
6137
|
*
|
|
6088
|
-
* @returns {
|
|
6138
|
+
* @returns {bigint}
|
|
6089
6139
|
*/
|
|
6090
6140
|
get ubigintbe() {
|
|
6091
6141
|
return this.readInt64(true, "big");
|
|
@@ -6093,7 +6143,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6093
6143
|
/**
|
|
6094
6144
|
* Read unsigned 64 bit integer.
|
|
6095
6145
|
*
|
|
6096
|
-
* @returns {
|
|
6146
|
+
* @returns {bigint}
|
|
6097
6147
|
*/
|
|
6098
6148
|
get uquadbe() {
|
|
6099
6149
|
return this.readInt64(true, "big");
|
|
@@ -6101,7 +6151,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6101
6151
|
/**
|
|
6102
6152
|
* Read signed 64 bit integer.
|
|
6103
6153
|
*
|
|
6104
|
-
* @returns {
|
|
6154
|
+
* @returns {bigint}
|
|
6105
6155
|
*/
|
|
6106
6156
|
get int64le() {
|
|
6107
6157
|
return this.readInt64(false, "little");
|
|
@@ -6109,7 +6159,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6109
6159
|
/**
|
|
6110
6160
|
* Read signed 64 bit integer.
|
|
6111
6161
|
*
|
|
6112
|
-
* @returns {
|
|
6162
|
+
* @returns {bigint}
|
|
6113
6163
|
*/
|
|
6114
6164
|
get bigintle() {
|
|
6115
6165
|
return this.readInt64(false, "little");
|
|
@@ -6117,7 +6167,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6117
6167
|
/**
|
|
6118
6168
|
* Read signed 64 bit integer.
|
|
6119
6169
|
*
|
|
6120
|
-
* @returns {
|
|
6170
|
+
* @returns {bigint}
|
|
6121
6171
|
*/
|
|
6122
6172
|
get quadle() {
|
|
6123
6173
|
return this.readInt64(false, "little");
|
|
@@ -6125,7 +6175,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6125
6175
|
/**
|
|
6126
6176
|
* Read unsigned 64 bit integer.
|
|
6127
6177
|
*
|
|
6128
|
-
* @returns {
|
|
6178
|
+
* @returns {bigint}
|
|
6129
6179
|
*/
|
|
6130
6180
|
get uint64le() {
|
|
6131
6181
|
return this.readInt64(true, "little");
|
|
@@ -6133,7 +6183,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6133
6183
|
/**
|
|
6134
6184
|
* Read unsigned 64 bit integer.
|
|
6135
6185
|
*
|
|
6136
|
-
* @returns {
|
|
6186
|
+
* @returns {bigint}
|
|
6137
6187
|
*/
|
|
6138
6188
|
get ubigintle() {
|
|
6139
6189
|
return this.readInt64(true, "little");
|
|
@@ -6141,7 +6191,7 @@ function applyBinaryAliasReader(Base) {
|
|
|
6141
6191
|
/**
|
|
6142
6192
|
* Read unsigned 64 bit integer.
|
|
6143
6193
|
*
|
|
6144
|
-
* @returns {
|
|
6194
|
+
* @returns {bigint}
|
|
6145
6195
|
*/
|
|
6146
6196
|
get uquadle() {
|
|
6147
6197
|
return this.readInt64(true, "little");
|
|
@@ -10006,7 +10056,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10006
10056
|
/**
|
|
10007
10057
|
* Write 64 bit integer.
|
|
10008
10058
|
*
|
|
10009
|
-
* @param {number} value - value as int
|
|
10059
|
+
* @param {number|bigint} value - value as int
|
|
10010
10060
|
*/
|
|
10011
10061
|
set int64(value) {
|
|
10012
10062
|
this.writeInt64(value);
|
|
@@ -10014,7 +10064,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10014
10064
|
/**
|
|
10015
10065
|
* Write 64 bit integer.
|
|
10016
10066
|
*
|
|
10017
|
-
* @param {number} value - value as int
|
|
10067
|
+
* @param {number|bigint} value - value as int
|
|
10018
10068
|
*/
|
|
10019
10069
|
set quad(value) {
|
|
10020
10070
|
this.writeInt64(value);
|
|
@@ -10022,7 +10072,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10022
10072
|
/**
|
|
10023
10073
|
* Write 64 bit integer.
|
|
10024
10074
|
*
|
|
10025
|
-
* @param {number} value - value as int
|
|
10075
|
+
* @param {number|bigint} value - value as int
|
|
10026
10076
|
*/
|
|
10027
10077
|
set bigint(value) {
|
|
10028
10078
|
this.writeInt64(value);
|
|
@@ -10030,7 +10080,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10030
10080
|
/**
|
|
10031
10081
|
* Write unsigned 64 bit integer.
|
|
10032
10082
|
*
|
|
10033
|
-
* @param {number} value - value as int
|
|
10083
|
+
* @param {number|bigint} value - value as int
|
|
10034
10084
|
*/
|
|
10035
10085
|
set uint64(value) {
|
|
10036
10086
|
this.writeInt64(value, true);
|
|
@@ -10038,7 +10088,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10038
10088
|
/**
|
|
10039
10089
|
* Write unsigned 64 bit integer.
|
|
10040
10090
|
*
|
|
10041
|
-
* @param {number} value - value as int
|
|
10091
|
+
* @param {number|bigint} value - value as int
|
|
10042
10092
|
*/
|
|
10043
10093
|
set ubigint(value) {
|
|
10044
10094
|
this.writeInt64(value, true);
|
|
@@ -10046,7 +10096,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10046
10096
|
/**
|
|
10047
10097
|
* Write unsigned 64 bit integer.
|
|
10048
10098
|
*
|
|
10049
|
-
* @param {number} value - value as int
|
|
10099
|
+
* @param {number|bigint} value - value as int
|
|
10050
10100
|
*/
|
|
10051
10101
|
set uquad(value) {
|
|
10052
10102
|
this.writeInt64(value, true);
|
|
@@ -10054,7 +10104,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10054
10104
|
/**
|
|
10055
10105
|
* Write signed 64 bit integer.
|
|
10056
10106
|
*
|
|
10057
|
-
* @param {number} value - value as int
|
|
10107
|
+
* @param {number|bigint} value - value as int
|
|
10058
10108
|
*/
|
|
10059
10109
|
set int64le(value) {
|
|
10060
10110
|
this.writeInt64(value, false, "little");
|
|
@@ -10062,7 +10112,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10062
10112
|
/**
|
|
10063
10113
|
* Write signed 64 bit integer.
|
|
10064
10114
|
*
|
|
10065
|
-
* @param {number} value - value as int
|
|
10115
|
+
* @param {number|bigint} value - value as int
|
|
10066
10116
|
*/
|
|
10067
10117
|
set bigintle(value) {
|
|
10068
10118
|
this.writeInt64(value, false, "little");
|
|
@@ -10070,7 +10120,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10070
10120
|
/**
|
|
10071
10121
|
* Write signed 64 bit integer.
|
|
10072
10122
|
*
|
|
10073
|
-
* @param {number} value - value as int
|
|
10123
|
+
* @param {number|bigint} value - value as int
|
|
10074
10124
|
*/
|
|
10075
10125
|
set quadle(value) {
|
|
10076
10126
|
this.writeInt64(value, false, "little");
|
|
@@ -10078,7 +10128,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10078
10128
|
/**
|
|
10079
10129
|
* Write unsigned 64 bit integer.
|
|
10080
10130
|
*
|
|
10081
|
-
* @param {number} value - value as int
|
|
10131
|
+
* @param {number|bigint} value - value as int
|
|
10082
10132
|
*/
|
|
10083
10133
|
set uint64le(value) {
|
|
10084
10134
|
this.writeInt64(value, true, "little");
|
|
@@ -10086,7 +10136,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10086
10136
|
/**
|
|
10087
10137
|
* Write unsigned 64 bit integer.
|
|
10088
10138
|
*
|
|
10089
|
-
* @param {number} value - value as int
|
|
10139
|
+
* @param {number|bigint} value - value as int
|
|
10090
10140
|
*/
|
|
10091
10141
|
set ubigintle(value) {
|
|
10092
10142
|
this.writeInt64(value, true, "little");
|
|
@@ -10094,7 +10144,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10094
10144
|
/**
|
|
10095
10145
|
* Write unsigned 64 bit integer.
|
|
10096
10146
|
*
|
|
10097
|
-
* @param {number} value - value as int
|
|
10147
|
+
* @param {number|bigint} value - value as int
|
|
10098
10148
|
*/
|
|
10099
10149
|
set uquadle(value) {
|
|
10100
10150
|
this.writeInt64(value, true, "little");
|
|
@@ -10102,7 +10152,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10102
10152
|
/**
|
|
10103
10153
|
* Write signed 64 bit integer.
|
|
10104
10154
|
*
|
|
10105
|
-
* @param {number} value - value as int
|
|
10155
|
+
* @param {number|bigint} value - value as int
|
|
10106
10156
|
*/
|
|
10107
10157
|
set int64be(value) {
|
|
10108
10158
|
this.writeInt64(value, false, "big");
|
|
@@ -10110,7 +10160,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10110
10160
|
/**
|
|
10111
10161
|
* Write signed 64 bit integer.
|
|
10112
10162
|
*
|
|
10113
|
-
* @param {number} value - value as int
|
|
10163
|
+
* @param {number|bigint} value - value as int
|
|
10114
10164
|
*/
|
|
10115
10165
|
set bigintbe(value) {
|
|
10116
10166
|
this.writeInt64(value, false, "big");
|
|
@@ -10118,7 +10168,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10118
10168
|
/**
|
|
10119
10169
|
* Write signed 64 bit integer.
|
|
10120
10170
|
*
|
|
10121
|
-
* @param {number} value - value as int
|
|
10171
|
+
* @param {number|bigint} value - value as int
|
|
10122
10172
|
*/
|
|
10123
10173
|
set quadbe(value) {
|
|
10124
10174
|
this.writeInt64(value, false, "big");
|
|
@@ -10126,7 +10176,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10126
10176
|
/**
|
|
10127
10177
|
* Write unsigned 64 bit integer.
|
|
10128
10178
|
*
|
|
10129
|
-
* @param {number} value - value as int
|
|
10179
|
+
* @param {number|bigint} value - value as int
|
|
10130
10180
|
*/
|
|
10131
10181
|
set uint64be(value) {
|
|
10132
10182
|
this.writeInt64(value, true, "big");
|
|
@@ -10134,7 +10184,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10134
10184
|
/**
|
|
10135
10185
|
* Write unsigned 64 bit integer.
|
|
10136
10186
|
*
|
|
10137
|
-
* @param {number} value - value as int
|
|
10187
|
+
* @param {number|bigint} value - value as int
|
|
10138
10188
|
*/
|
|
10139
10189
|
set ubigintbe(value) {
|
|
10140
10190
|
this.writeInt64(value, true, "big");
|
|
@@ -10142,7 +10192,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10142
10192
|
/**
|
|
10143
10193
|
* Write unsigned 64 bit integer.
|
|
10144
10194
|
*
|
|
10145
|
-
* @param {number} value - value as int
|
|
10195
|
+
* @param {number|bigint} value - value as int
|
|
10146
10196
|
*/
|
|
10147
10197
|
set uquadbe(value) {
|
|
10148
10198
|
this.writeInt64(value, true, "big");
|