bireader 3.1.4 → 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/aliases/BinaryAliasWriter.d.ts +73 -73
- package/dist/core/BiBase.d.ts +8 -0
- package/dist/core/BiBaseStream.d.ts +20 -0
- package/dist/index.browser.d.ts +61 -37
- package/dist/index.browser.js +49 -19
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.d.ts +100 -72
- package/dist/index.cjs.js +58 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +100 -72
- package/dist/index.esm.d.ts +100 -72
- package/dist/index.esm.js +58 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/indexBrowser.d.ts +16 -0
- package/package.json +10 -8
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
|
*/
|
|
@@ -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
|