mol_crypto_lib 0.1.1263 → 0.1.1265
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/node.js +18 -18
- package/node.js.map +1 -1
- package/node.mjs +18 -18
- package/node.test.js +18 -18
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +18 -18
- package/web.js.map +1 -1
- package/web.mjs +18 -18
package/node.js
CHANGED
@@ -1160,62 +1160,62 @@ var $;
|
|
1160
1160
|
}
|
1161
1161
|
int16(offset, next) {
|
1162
1162
|
if (next === undefined)
|
1163
|
-
return this.getInt16(offset,
|
1163
|
+
return this.getInt16(offset, true);
|
1164
1164
|
if (next >= -(2 ** 15) && next < 2 ** 15)
|
1165
|
-
return this.setInt16(offset, next,
|
1165
|
+
return this.setInt16(offset, next, true), next;
|
1166
1166
|
$mol_fail(new Error(`Wrong int16 value ${next}`));
|
1167
1167
|
}
|
1168
1168
|
uint16(offset, next) {
|
1169
1169
|
if (next === undefined)
|
1170
|
-
return this.getUint16(offset,
|
1170
|
+
return this.getUint16(offset, true);
|
1171
1171
|
if (next >= 0 && next < 2 ** 16)
|
1172
|
-
return this.setUint16(offset, next,
|
1172
|
+
return this.setUint16(offset, next, true), next;
|
1173
1173
|
$mol_fail(new Error(`Wrong uint16 value ${next}`));
|
1174
1174
|
}
|
1175
1175
|
int32(offset, next) {
|
1176
1176
|
if (next === undefined)
|
1177
|
-
return this.getInt32(offset,
|
1177
|
+
return this.getInt32(offset, true);
|
1178
1178
|
if (next >= -(2 ** 31) && next < 2 ** 31)
|
1179
|
-
return this.setInt32(offset, next,
|
1179
|
+
return this.setInt32(offset, next, true), next;
|
1180
1180
|
$mol_fail(new Error(`Wrong int32 value ${next}`));
|
1181
1181
|
}
|
1182
1182
|
uint32(offset, next) {
|
1183
1183
|
if (next === undefined)
|
1184
|
-
return this.getUint32(offset,
|
1184
|
+
return this.getUint32(offset, true);
|
1185
1185
|
if (next >= 0 && next < 2 ** 32)
|
1186
|
-
return this.setUint32(offset, next,
|
1186
|
+
return this.setUint32(offset, next, true), next;
|
1187
1187
|
$mol_fail(new Error(`Wrong uint32 value ${next}`));
|
1188
1188
|
}
|
1189
1189
|
uint48(offset, next) {
|
1190
1190
|
if (next === undefined)
|
1191
|
-
return this.getUint48(offset,
|
1191
|
+
return this.getUint48(offset, true);
|
1192
1192
|
if (next >= 0 && next < 2 ** 48)
|
1193
|
-
return this.setUint48(offset, next,
|
1193
|
+
return this.setUint48(offset, next, true), next;
|
1194
1194
|
$mol_fail(new Error(`Wrong uint48 value ${next}`));
|
1195
1195
|
}
|
1196
1196
|
int64(offset, next) {
|
1197
1197
|
if (next === undefined)
|
1198
|
-
return this.getBigInt64(offset,
|
1198
|
+
return this.getBigInt64(offset, true);
|
1199
1199
|
if (next >= -(2 ** 63) && next < 2 ** 63)
|
1200
|
-
return this.setBigInt64(offset, next,
|
1200
|
+
return this.setBigInt64(offset, next, true), next;
|
1201
1201
|
$mol_fail(new Error(`Wrong int64 value ${next}`));
|
1202
1202
|
}
|
1203
1203
|
uint64(offset, next) {
|
1204
1204
|
if (next === undefined)
|
1205
|
-
return this.getBigUint64(offset,
|
1205
|
+
return this.getBigUint64(offset, true);
|
1206
1206
|
if (next >= 0 && next < 2 ** 64)
|
1207
|
-
return this.setBigUint64(offset, next,
|
1207
|
+
return this.setBigUint64(offset, next, true), next;
|
1208
1208
|
$mol_fail(new Error(`Wrong uint64 value ${next}`));
|
1209
1209
|
}
|
1210
1210
|
float32(offset, next) {
|
1211
1211
|
if (next !== undefined)
|
1212
|
-
this.setFloat32(offset, next,
|
1213
|
-
return this.getFloat32(offset,
|
1212
|
+
this.setFloat32(offset, next, true);
|
1213
|
+
return this.getFloat32(offset, true);
|
1214
1214
|
}
|
1215
1215
|
float64(offset, next) {
|
1216
1216
|
if (next !== undefined)
|
1217
|
-
this.setFloat64(offset, next,
|
1218
|
-
return this.getFloat64(offset,
|
1217
|
+
this.setFloat64(offset, next, true);
|
1218
|
+
return this.getFloat64(offset, true);
|
1219
1219
|
}
|
1220
1220
|
asArray() {
|
1221
1221
|
return new Uint8Array(this.buffer, this.byteOffset, this.byteLength);
|