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