bireader 3.1.3 → 3.1.5
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 +18 -5
- package/dist/BiWriter.d.ts +19 -19
- package/dist/BiWriterStream.d.ts +19 -19
- package/dist/aliases/BinaryAliasWriter.d.ts +73 -73
- package/dist/common.d.ts +1 -0
- package/dist/core/BiBase.d.ts +23 -15
- package/dist/core/BiBaseStream.d.ts +35 -15
- package/dist/index.browser.d.ts +94 -69
- package/dist/index.browser.js +56 -26
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.d.ts +165 -136
- package/dist/index.cjs.js +72 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +165 -136
- package/dist/index.esm.d.ts +165 -136
- package/dist/index.esm.js +72 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/indexBrowser.d.ts +16 -0
- package/package.json +10 -8
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
type endian = "little" | "big";
|
|
3
|
+
type BigValue = number | bigint;
|
|
3
4
|
type BiOptions = {
|
|
4
5
|
/**
|
|
5
6
|
* Byte offset to start writer, default is 0
|
|
@@ -172,6 +173,14 @@ declare class BiBase {
|
|
|
172
173
|
* Dummy function, not needed on Non-Stream
|
|
173
174
|
*/
|
|
174
175
|
write(start: number, data: Buffer, consume?: boolean): number;
|
|
176
|
+
/**
|
|
177
|
+
* Dummy function, not needed on Non-Stream
|
|
178
|
+
*/
|
|
179
|
+
renameFile(): void;
|
|
180
|
+
/**
|
|
181
|
+
* Dummy function, not needed on Non-Stream
|
|
182
|
+
*/
|
|
183
|
+
deleteFile(): void;
|
|
175
184
|
/**
|
|
176
185
|
* Dummy function, not needed on Non-Stream
|
|
177
186
|
*/
|
|
@@ -479,11 +488,11 @@ declare class BiBase {
|
|
|
479
488
|
*
|
|
480
489
|
* Does not change current read position.
|
|
481
490
|
*
|
|
482
|
-
* @param {
|
|
491
|
+
* @param {BigValue} value - Number to search for.
|
|
483
492
|
* @param {boolean} unsigned - If the number is unsigned (default true)
|
|
484
493
|
* @param {endian} endian - endianness of value (default set endian).
|
|
485
494
|
*/
|
|
486
|
-
findInt64(value:
|
|
495
|
+
findInt64(value: BigValue, unsigned?: boolean, endian?: endian): number;
|
|
487
496
|
/**
|
|
488
497
|
* Searches for half float value position from current read position.
|
|
489
498
|
*
|
|
@@ -1281,42 +1290,42 @@ declare class BiBase {
|
|
|
1281
1290
|
/**
|
|
1282
1291
|
* Write 64 bit integer.
|
|
1283
1292
|
*
|
|
1284
|
-
* @param {
|
|
1293
|
+
* @param {BigValue} value - value as int
|
|
1285
1294
|
* @param {boolean} unsigned - if the value is unsigned
|
|
1286
1295
|
* @param {endian} endian - ``big`` or ``little``
|
|
1287
1296
|
*/
|
|
1288
|
-
writeInt64(value:
|
|
1297
|
+
writeInt64(value: BigValue, unsigned?: boolean, endian?: endian): void;
|
|
1289
1298
|
/**
|
|
1290
1299
|
* Write unsigned 64 bit integer.
|
|
1291
1300
|
*
|
|
1292
|
-
* @param {
|
|
1301
|
+
* @param {BigValue} value - value as int
|
|
1293
1302
|
* @param {endian} endian - ``big`` or ``little``
|
|
1294
1303
|
*/
|
|
1295
|
-
writeUInt64(value:
|
|
1304
|
+
writeUInt64(value: BigValue, endian?: endian): void;
|
|
1296
1305
|
/**
|
|
1297
1306
|
* Write signed 64 bit integer.
|
|
1298
1307
|
*
|
|
1299
|
-
* @param {
|
|
1308
|
+
* @param {BigValue} value - value as int
|
|
1300
1309
|
*/
|
|
1301
|
-
writeInt64LE(value:
|
|
1310
|
+
writeInt64LE(value: BigValue): void;
|
|
1302
1311
|
/**
|
|
1303
1312
|
* Write unsigned 64 bit integer.
|
|
1304
1313
|
*
|
|
1305
|
-
* @param {
|
|
1314
|
+
* @param {BigValue} value - value as int
|
|
1306
1315
|
*/
|
|
1307
|
-
writeUInt64LE(value:
|
|
1316
|
+
writeUInt64LE(value: BigValue): void;
|
|
1308
1317
|
/**
|
|
1309
1318
|
* Write signed 64 bit integer.
|
|
1310
1319
|
*
|
|
1311
|
-
* @param {
|
|
1320
|
+
* @param {BigValue} value - value as int
|
|
1312
1321
|
*/
|
|
1313
|
-
writeInt64BE(value:
|
|
1322
|
+
writeInt64BE(value: BigValue): void;
|
|
1314
1323
|
/**
|
|
1315
1324
|
* Write unsigned 64 bit integer.
|
|
1316
1325
|
*
|
|
1317
|
-
* @param {
|
|
1326
|
+
* @param {BigValue} value - value as int
|
|
1318
1327
|
*/
|
|
1319
|
-
writeUInt64BE(value:
|
|
1328
|
+
writeUInt64BE(value: BigValue): void;
|
|
1320
1329
|
/**
|
|
1321
1330
|
* Read unsigned 64 bit integer.
|
|
1322
1331
|
*
|
|
@@ -6027,111 +6036,111 @@ interface BinaryAliasWriter extends BiBase {
|
|
|
6027
6036
|
/**
|
|
6028
6037
|
* Write 64 bit integer.
|
|
6029
6038
|
*
|
|
6030
|
-
* @param {
|
|
6039
|
+
* @param {BigValue} value - value as int
|
|
6031
6040
|
*/
|
|
6032
|
-
set int64(value:
|
|
6041
|
+
set int64(value: BigValue);
|
|
6033
6042
|
/**
|
|
6034
6043
|
* Write 64 bit integer.
|
|
6035
6044
|
*
|
|
6036
|
-
* @param {
|
|
6045
|
+
* @param {BigValue} value - value as int
|
|
6037
6046
|
*/
|
|
6038
|
-
set quad(value:
|
|
6047
|
+
set quad(value: BigValue);
|
|
6039
6048
|
/**
|
|
6040
6049
|
* Write 64 bit integer.
|
|
6041
6050
|
*
|
|
6042
|
-
* @param {
|
|
6051
|
+
* @param {BigValue} value - value as int
|
|
6043
6052
|
*/
|
|
6044
|
-
set bigint(value:
|
|
6053
|
+
set bigint(value: BigValue);
|
|
6045
6054
|
/**
|
|
6046
6055
|
* Write unsigned 64 bit integer.
|
|
6047
6056
|
*
|
|
6048
|
-
* @param {
|
|
6057
|
+
* @param {BigValue} value - value as int
|
|
6049
6058
|
*/
|
|
6050
|
-
set uint64(value:
|
|
6059
|
+
set uint64(value: BigValue);
|
|
6051
6060
|
/**
|
|
6052
6061
|
* Write unsigned 64 bit integer.
|
|
6053
6062
|
*
|
|
6054
|
-
* @param {
|
|
6063
|
+
* @param {BigValue} value - value as int
|
|
6055
6064
|
*/
|
|
6056
|
-
set ubigint(value:
|
|
6065
|
+
set ubigint(value: BigValue);
|
|
6057
6066
|
/**
|
|
6058
6067
|
* Write unsigned 64 bit integer.
|
|
6059
6068
|
*
|
|
6060
|
-
* @param {
|
|
6069
|
+
* @param {BigValue} value - value as int
|
|
6061
6070
|
*/
|
|
6062
|
-
set uquad(value:
|
|
6071
|
+
set uquad(value: BigValue);
|
|
6063
6072
|
/**
|
|
6064
6073
|
* Write signed 64 bit integer.
|
|
6065
6074
|
*
|
|
6066
|
-
* @param {
|
|
6075
|
+
* @param {BigValue} value - value as int
|
|
6067
6076
|
*/
|
|
6068
|
-
set int64le(value:
|
|
6077
|
+
set int64le(value: BigValue);
|
|
6069
6078
|
/**
|
|
6070
6079
|
* Write signed 64 bit integer.
|
|
6071
6080
|
*
|
|
6072
|
-
* @param {
|
|
6081
|
+
* @param {BigValue} value - value as int
|
|
6073
6082
|
*/
|
|
6074
|
-
set bigintle(value:
|
|
6083
|
+
set bigintle(value: BigValue);
|
|
6075
6084
|
/**
|
|
6076
6085
|
* Write signed 64 bit integer.
|
|
6077
6086
|
*
|
|
6078
|
-
* @param {
|
|
6087
|
+
* @param {BigValue} value - value as int
|
|
6079
6088
|
*/
|
|
6080
|
-
set quadle(value:
|
|
6089
|
+
set quadle(value: BigValue);
|
|
6081
6090
|
/**
|
|
6082
6091
|
* Write unsigned 64 bit integer.
|
|
6083
6092
|
*
|
|
6084
|
-
* @param {
|
|
6093
|
+
* @param {BigValue} value - value as int
|
|
6085
6094
|
*/
|
|
6086
|
-
set uint64le(value:
|
|
6095
|
+
set uint64le(value: BigValue);
|
|
6087
6096
|
/**
|
|
6088
6097
|
* Write unsigned 64 bit integer.
|
|
6089
6098
|
*
|
|
6090
|
-
* @param {
|
|
6099
|
+
* @param {BigValue} value - value as int
|
|
6091
6100
|
*/
|
|
6092
|
-
set ubigintle(value:
|
|
6101
|
+
set ubigintle(value: BigValue);
|
|
6093
6102
|
/**
|
|
6094
6103
|
* Write unsigned 64 bit integer.
|
|
6095
6104
|
*
|
|
6096
|
-
* @param {
|
|
6105
|
+
* @param {BigValue} value - value as int
|
|
6097
6106
|
*/
|
|
6098
|
-
set uquadle(value:
|
|
6107
|
+
set uquadle(value: BigValue);
|
|
6099
6108
|
/**
|
|
6100
6109
|
* Write signed 64 bit integer.
|
|
6101
6110
|
*
|
|
6102
|
-
* @param {
|
|
6111
|
+
* @param {BigValue} value - value as int
|
|
6103
6112
|
*/
|
|
6104
|
-
set int64be(value:
|
|
6113
|
+
set int64be(value: BigValue);
|
|
6105
6114
|
/**
|
|
6106
6115
|
* Write signed 64 bit integer.
|
|
6107
6116
|
*
|
|
6108
|
-
* @param {
|
|
6117
|
+
* @param {BigValue} value - value as int
|
|
6109
6118
|
*/
|
|
6110
|
-
set bigintbe(value:
|
|
6119
|
+
set bigintbe(value: BigValue);
|
|
6111
6120
|
/**
|
|
6112
6121
|
* Write signed 64 bit integer.
|
|
6113
6122
|
*
|
|
6114
|
-
* @param {
|
|
6123
|
+
* @param {BigValue} value - value as int
|
|
6115
6124
|
*/
|
|
6116
|
-
set quadbe(value:
|
|
6125
|
+
set quadbe(value: BigValue);
|
|
6117
6126
|
/**
|
|
6118
6127
|
* Write unsigned 64 bit integer.
|
|
6119
6128
|
*
|
|
6120
|
-
* @param {
|
|
6129
|
+
* @param {BigValue} value - value as int
|
|
6121
6130
|
*/
|
|
6122
|
-
set uint64be(value:
|
|
6131
|
+
set uint64be(value: BigValue);
|
|
6123
6132
|
/**
|
|
6124
6133
|
* Write unsigned 64 bit integer.
|
|
6125
6134
|
*
|
|
6126
|
-
* @param {
|
|
6135
|
+
* @param {BigValue} value - value as int
|
|
6127
6136
|
*/
|
|
6128
|
-
set ubigintbe(value:
|
|
6137
|
+
set ubigintbe(value: BigValue);
|
|
6129
6138
|
/**
|
|
6130
6139
|
* Write unsigned 64 bit integer.
|
|
6131
6140
|
*
|
|
6132
|
-
* @param {
|
|
6141
|
+
* @param {BigValue} value - value as int
|
|
6133
6142
|
*/
|
|
6134
|
-
set uquadbe(value:
|
|
6143
|
+
set uquadbe(value: BigValue);
|
|
6135
6144
|
/**
|
|
6136
6145
|
* Writes double float.
|
|
6137
6146
|
*
|
|
@@ -6690,24 +6699,24 @@ declare class BiWriter extends BiWriterBase implements BinaryAliasWriter {
|
|
|
6690
6699
|
set float(value: number);
|
|
6691
6700
|
set floatle(value: number);
|
|
6692
6701
|
set floatbe(value: number);
|
|
6693
|
-
set int64(value:
|
|
6694
|
-
set quad(value:
|
|
6695
|
-
set bigint(value:
|
|
6696
|
-
set uint64(value:
|
|
6697
|
-
set ubigint(value:
|
|
6698
|
-
set uquad(value:
|
|
6699
|
-
set int64le(value:
|
|
6700
|
-
set bigintle(value:
|
|
6701
|
-
set quadle(value:
|
|
6702
|
-
set uint64le(value:
|
|
6703
|
-
set ubigintle(value:
|
|
6704
|
-
set uquadle(value:
|
|
6705
|
-
set int64be(value:
|
|
6706
|
-
set bigintbe(value:
|
|
6707
|
-
set quadbe(value:
|
|
6708
|
-
set uint64be(value:
|
|
6709
|
-
set ubigintbe(value:
|
|
6710
|
-
set uquadbe(value:
|
|
6702
|
+
set int64(value: BigValue);
|
|
6703
|
+
set quad(value: BigValue);
|
|
6704
|
+
set bigint(value: BigValue);
|
|
6705
|
+
set uint64(value: BigValue);
|
|
6706
|
+
set ubigint(value: BigValue);
|
|
6707
|
+
set uquad(value: BigValue);
|
|
6708
|
+
set int64le(value: BigValue);
|
|
6709
|
+
set bigintle(value: BigValue);
|
|
6710
|
+
set quadle(value: BigValue);
|
|
6711
|
+
set uint64le(value: BigValue);
|
|
6712
|
+
set ubigintle(value: BigValue);
|
|
6713
|
+
set uquadle(value: BigValue);
|
|
6714
|
+
set int64be(value: BigValue);
|
|
6715
|
+
set bigintbe(value: BigValue);
|
|
6716
|
+
set quadbe(value: BigValue);
|
|
6717
|
+
set uint64be(value: BigValue);
|
|
6718
|
+
set ubigintbe(value: BigValue);
|
|
6719
|
+
set uquadbe(value: BigValue);
|
|
6711
6720
|
set doublefloat(value: number);
|
|
6712
6721
|
set dfloat(value: number);
|
|
6713
6722
|
set dfloatbe(value: number);
|
|
@@ -6749,6 +6758,22 @@ declare class BiWriter extends BiWriterBase implements BinaryAliasWriter {
|
|
|
6749
6758
|
wpstring4be(string: string): void;
|
|
6750
6759
|
}
|
|
6751
6760
|
|
|
6761
|
+
/**
|
|
6762
|
+
* Isn't usable in browser.
|
|
6763
|
+
* @since 3.0
|
|
6764
|
+
* @deprecated Use ``BiReader`` instead.
|
|
6765
|
+
*/
|
|
6766
|
+
declare class BiReaderStream {
|
|
6767
|
+
constructor();
|
|
6768
|
+
}
|
|
6769
|
+
/**
|
|
6770
|
+
* Isn't usable in browser.
|
|
6771
|
+
* @since 3.0
|
|
6772
|
+
* @deprecated Use ``BiWriter`` instead.
|
|
6773
|
+
*/
|
|
6774
|
+
declare class BiWriterStream {
|
|
6775
|
+
constructor();
|
|
6776
|
+
}
|
|
6752
6777
|
/**
|
|
6753
6778
|
* Not in use anymore.
|
|
6754
6779
|
* @since 3.0
|
|
@@ -6766,4 +6791,4 @@ declare class biwriter {
|
|
|
6766
6791
|
constructor();
|
|
6767
6792
|
}
|
|
6768
6793
|
|
|
6769
|
-
export { BiReader, BiWriter, bireader, biwriter, hexdump };
|
|
6794
|
+
export { BiReader, BiReaderStream, BiWriter, BiWriterStream, bireader, biwriter, hexdump };
|
package/dist/index.browser.js
CHANGED
|
@@ -1810,6 +1810,16 @@ class BiBase {
|
|
|
1810
1810
|
this.insert(data, consume, start);
|
|
1811
1811
|
return data.length;
|
|
1812
1812
|
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Dummy function, not needed on Non-Stream
|
|
1815
|
+
*/
|
|
1816
|
+
renameFile() {
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* Dummy function, not needed on Non-Stream
|
|
1820
|
+
*/
|
|
1821
|
+
deleteFile() {
|
|
1822
|
+
}
|
|
1813
1823
|
/**
|
|
1814
1824
|
* Dummy function, not needed on Non-Stream
|
|
1815
1825
|
*/
|
|
@@ -2247,7 +2257,7 @@ class BiBase {
|
|
|
2247
2257
|
*
|
|
2248
2258
|
* Does not change current read position.
|
|
2249
2259
|
*
|
|
2250
|
-
* @param {
|
|
2260
|
+
* @param {BigValue} value - Number to search for.
|
|
2251
2261
|
* @param {boolean} unsigned - If the number is unsigned (default true)
|
|
2252
2262
|
* @param {endian} endian - endianness of value (default set endian).
|
|
2253
2263
|
*/
|
|
@@ -3425,7 +3435,7 @@ class BiBase {
|
|
|
3425
3435
|
/**
|
|
3426
3436
|
* Write 64 bit integer.
|
|
3427
3437
|
*
|
|
3428
|
-
* @param {
|
|
3438
|
+
* @param {BigValue} value - value as int
|
|
3429
3439
|
* @param {boolean} unsigned - if the value is unsigned
|
|
3430
3440
|
* @param {endian} endian - ``big`` or ``little``
|
|
3431
3441
|
*/
|
|
@@ -3435,7 +3445,7 @@ class BiBase {
|
|
|
3435
3445
|
/**
|
|
3436
3446
|
* Write unsigned 64 bit integer.
|
|
3437
3447
|
*
|
|
3438
|
-
* @param {
|
|
3448
|
+
* @param {BigValue} value - value as int
|
|
3439
3449
|
* @param {endian} endian - ``big`` or ``little``
|
|
3440
3450
|
*/
|
|
3441
3451
|
writeUInt64(value, endian) {
|
|
@@ -3444,7 +3454,7 @@ class BiBase {
|
|
|
3444
3454
|
/**
|
|
3445
3455
|
* Write signed 64 bit integer.
|
|
3446
3456
|
*
|
|
3447
|
-
* @param {
|
|
3457
|
+
* @param {BigValue} value - value as int
|
|
3448
3458
|
*/
|
|
3449
3459
|
writeInt64LE(value) {
|
|
3450
3460
|
return this.writeInt64(value, false, "little");
|
|
@@ -3452,7 +3462,7 @@ class BiBase {
|
|
|
3452
3462
|
/**
|
|
3453
3463
|
* Write unsigned 64 bit integer.
|
|
3454
3464
|
*
|
|
3455
|
-
* @param {
|
|
3465
|
+
* @param {BigValue} value - value as int
|
|
3456
3466
|
*/
|
|
3457
3467
|
writeUInt64LE(value) {
|
|
3458
3468
|
return this.writeInt64(value, true, "little");
|
|
@@ -3460,7 +3470,7 @@ class BiBase {
|
|
|
3460
3470
|
/**
|
|
3461
3471
|
* Write signed 64 bit integer.
|
|
3462
3472
|
*
|
|
3463
|
-
* @param {
|
|
3473
|
+
* @param {BigValue} value - value as int
|
|
3464
3474
|
*/
|
|
3465
3475
|
writeInt64BE(value) {
|
|
3466
3476
|
return this.writeInt64(value, false, "big");
|
|
@@ -3468,7 +3478,7 @@ class BiBase {
|
|
|
3468
3478
|
/**
|
|
3469
3479
|
* Write unsigned 64 bit integer.
|
|
3470
3480
|
*
|
|
3471
|
-
* @param {
|
|
3481
|
+
* @param {BigValue} value - value as int
|
|
3472
3482
|
*/
|
|
3473
3483
|
writeUInt64BE(value) {
|
|
3474
3484
|
return this.writeInt64(value, true, "big");
|
|
@@ -10056,7 +10066,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10056
10066
|
/**
|
|
10057
10067
|
* Write 64 bit integer.
|
|
10058
10068
|
*
|
|
10059
|
-
* @param {
|
|
10069
|
+
* @param {BigValue} value - value as int
|
|
10060
10070
|
*/
|
|
10061
10071
|
set int64(value) {
|
|
10062
10072
|
this.writeInt64(value);
|
|
@@ -10064,7 +10074,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10064
10074
|
/**
|
|
10065
10075
|
* Write 64 bit integer.
|
|
10066
10076
|
*
|
|
10067
|
-
* @param {
|
|
10077
|
+
* @param {BigValue} value - value as int
|
|
10068
10078
|
*/
|
|
10069
10079
|
set quad(value) {
|
|
10070
10080
|
this.writeInt64(value);
|
|
@@ -10072,7 +10082,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10072
10082
|
/**
|
|
10073
10083
|
* Write 64 bit integer.
|
|
10074
10084
|
*
|
|
10075
|
-
* @param {
|
|
10085
|
+
* @param {BigValue} value - value as int
|
|
10076
10086
|
*/
|
|
10077
10087
|
set bigint(value) {
|
|
10078
10088
|
this.writeInt64(value);
|
|
@@ -10080,7 +10090,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10080
10090
|
/**
|
|
10081
10091
|
* Write unsigned 64 bit integer.
|
|
10082
10092
|
*
|
|
10083
|
-
* @param {
|
|
10093
|
+
* @param {BigValue} value - value as int
|
|
10084
10094
|
*/
|
|
10085
10095
|
set uint64(value) {
|
|
10086
10096
|
this.writeInt64(value, true);
|
|
@@ -10088,7 +10098,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10088
10098
|
/**
|
|
10089
10099
|
* Write unsigned 64 bit integer.
|
|
10090
10100
|
*
|
|
10091
|
-
* @param {
|
|
10101
|
+
* @param {BigValue} value - value as int
|
|
10092
10102
|
*/
|
|
10093
10103
|
set ubigint(value) {
|
|
10094
10104
|
this.writeInt64(value, true);
|
|
@@ -10096,7 +10106,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10096
10106
|
/**
|
|
10097
10107
|
* Write unsigned 64 bit integer.
|
|
10098
10108
|
*
|
|
10099
|
-
* @param {
|
|
10109
|
+
* @param {BigValue} value - value as int
|
|
10100
10110
|
*/
|
|
10101
10111
|
set uquad(value) {
|
|
10102
10112
|
this.writeInt64(value, true);
|
|
@@ -10104,7 +10114,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10104
10114
|
/**
|
|
10105
10115
|
* Write signed 64 bit integer.
|
|
10106
10116
|
*
|
|
10107
|
-
* @param {
|
|
10117
|
+
* @param {BigValue} value - value as int
|
|
10108
10118
|
*/
|
|
10109
10119
|
set int64le(value) {
|
|
10110
10120
|
this.writeInt64(value, false, "little");
|
|
@@ -10112,7 +10122,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10112
10122
|
/**
|
|
10113
10123
|
* Write signed 64 bit integer.
|
|
10114
10124
|
*
|
|
10115
|
-
* @param {
|
|
10125
|
+
* @param {BigValue} value - value as int
|
|
10116
10126
|
*/
|
|
10117
10127
|
set bigintle(value) {
|
|
10118
10128
|
this.writeInt64(value, false, "little");
|
|
@@ -10120,7 +10130,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10120
10130
|
/**
|
|
10121
10131
|
* Write signed 64 bit integer.
|
|
10122
10132
|
*
|
|
10123
|
-
* @param {
|
|
10133
|
+
* @param {BigValue} value - value as int
|
|
10124
10134
|
*/
|
|
10125
10135
|
set quadle(value) {
|
|
10126
10136
|
this.writeInt64(value, false, "little");
|
|
@@ -10128,7 +10138,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10128
10138
|
/**
|
|
10129
10139
|
* Write unsigned 64 bit integer.
|
|
10130
10140
|
*
|
|
10131
|
-
* @param {
|
|
10141
|
+
* @param {BigValue} value - value as int
|
|
10132
10142
|
*/
|
|
10133
10143
|
set uint64le(value) {
|
|
10134
10144
|
this.writeInt64(value, true, "little");
|
|
@@ -10136,7 +10146,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10136
10146
|
/**
|
|
10137
10147
|
* Write unsigned 64 bit integer.
|
|
10138
10148
|
*
|
|
10139
|
-
* @param {
|
|
10149
|
+
* @param {BigValue} value - value as int
|
|
10140
10150
|
*/
|
|
10141
10151
|
set ubigintle(value) {
|
|
10142
10152
|
this.writeInt64(value, true, "little");
|
|
@@ -10144,7 +10154,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10144
10154
|
/**
|
|
10145
10155
|
* Write unsigned 64 bit integer.
|
|
10146
10156
|
*
|
|
10147
|
-
* @param {
|
|
10157
|
+
* @param {BigValue} value - value as int
|
|
10148
10158
|
*/
|
|
10149
10159
|
set uquadle(value) {
|
|
10150
10160
|
this.writeInt64(value, true, "little");
|
|
@@ -10152,7 +10162,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10152
10162
|
/**
|
|
10153
10163
|
* Write signed 64 bit integer.
|
|
10154
10164
|
*
|
|
10155
|
-
* @param {
|
|
10165
|
+
* @param {BigValue} value - value as int
|
|
10156
10166
|
*/
|
|
10157
10167
|
set int64be(value) {
|
|
10158
10168
|
this.writeInt64(value, false, "big");
|
|
@@ -10160,7 +10170,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10160
10170
|
/**
|
|
10161
10171
|
* Write signed 64 bit integer.
|
|
10162
10172
|
*
|
|
10163
|
-
* @param {
|
|
10173
|
+
* @param {BigValue} value - value as int
|
|
10164
10174
|
*/
|
|
10165
10175
|
set bigintbe(value) {
|
|
10166
10176
|
this.writeInt64(value, false, "big");
|
|
@@ -10168,7 +10178,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10168
10178
|
/**
|
|
10169
10179
|
* Write signed 64 bit integer.
|
|
10170
10180
|
*
|
|
10171
|
-
* @param {
|
|
10181
|
+
* @param {BigValue} value - value as int
|
|
10172
10182
|
*/
|
|
10173
10183
|
set quadbe(value) {
|
|
10174
10184
|
this.writeInt64(value, false, "big");
|
|
@@ -10176,7 +10186,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10176
10186
|
/**
|
|
10177
10187
|
* Write unsigned 64 bit integer.
|
|
10178
10188
|
*
|
|
10179
|
-
* @param {
|
|
10189
|
+
* @param {BigValue} value - value as int
|
|
10180
10190
|
*/
|
|
10181
10191
|
set uint64be(value) {
|
|
10182
10192
|
this.writeInt64(value, true, "big");
|
|
@@ -10184,7 +10194,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10184
10194
|
/**
|
|
10185
10195
|
* Write unsigned 64 bit integer.
|
|
10186
10196
|
*
|
|
10187
|
-
* @param {
|
|
10197
|
+
* @param {BigValue} value - value as int
|
|
10188
10198
|
*/
|
|
10189
10199
|
set ubigintbe(value) {
|
|
10190
10200
|
this.writeInt64(value, true, "big");
|
|
@@ -10192,7 +10202,7 @@ function applyBinaryAliasWriter(Base) {
|
|
|
10192
10202
|
/**
|
|
10193
10203
|
* Write unsigned 64 bit integer.
|
|
10194
10204
|
*
|
|
10195
|
-
* @param {
|
|
10205
|
+
* @param {BigValue} value - value as int
|
|
10196
10206
|
*/
|
|
10197
10207
|
set uquadbe(value) {
|
|
10198
10208
|
this.writeInt64(value, true, "big");
|
|
@@ -11582,6 +11592,26 @@ class BiWriter extends BiWriterBase {
|
|
|
11582
11592
|
}
|
|
11583
11593
|
}
|
|
11584
11594
|
|
|
11595
|
+
/**
|
|
11596
|
+
* Isn't usable in browser.
|
|
11597
|
+
* @since 3.0
|
|
11598
|
+
* @deprecated Use ``BiReader`` instead.
|
|
11599
|
+
*/
|
|
11600
|
+
class BiReaderStream {
|
|
11601
|
+
constructor() {
|
|
11602
|
+
throw new Error("BiReaderStream isn't usable in browser. Use BiReader instead.");
|
|
11603
|
+
}
|
|
11604
|
+
}
|
|
11605
|
+
/**
|
|
11606
|
+
* Isn't usable in browser.
|
|
11607
|
+
* @since 3.0
|
|
11608
|
+
* @deprecated Use ``BiWriter`` instead.
|
|
11609
|
+
*/
|
|
11610
|
+
class BiWriterStream {
|
|
11611
|
+
constructor() {
|
|
11612
|
+
throw new Error("BiReaderStream isn't usable in browser. Use BiReader instead.");
|
|
11613
|
+
}
|
|
11614
|
+
}
|
|
11585
11615
|
/**
|
|
11586
11616
|
* Not in use anymore.
|
|
11587
11617
|
* @since 3.0
|
|
@@ -11603,5 +11633,5 @@ class biwriter {
|
|
|
11603
11633
|
}
|
|
11604
11634
|
}
|
|
11605
11635
|
|
|
11606
|
-
export { BiReader, BiWriter, bireader, biwriter, hexdump };
|
|
11636
|
+
export { BiReader, BiReaderStream, BiWriter, BiWriterStream, bireader, biwriter, hexdump };
|
|
11607
11637
|
//# sourceMappingURL=index.browser.js.map
|