extended-buffer 7.1.0 → 7.1.1
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/ExtendedBuffer.js +0 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/ExtendedBuffer.js
CHANGED
|
@@ -200,7 +200,6 @@ class ExtendedBuffer {
|
|
|
200
200
|
}
|
|
201
201
|
writeIntBE(value, size, unshift) {
|
|
202
202
|
utils.assertInteger(value);
|
|
203
|
-
utils.assertUnsignedInteger(size);
|
|
204
203
|
utils.assertIntegerSize(size);
|
|
205
204
|
if (unshift) {
|
|
206
205
|
this.allocStart(size);
|
|
@@ -216,7 +215,6 @@ class ExtendedBuffer {
|
|
|
216
215
|
}
|
|
217
216
|
writeIntLE(value, size, unshift) {
|
|
218
217
|
utils.assertInteger(value);
|
|
219
|
-
utils.assertUnsignedInteger(size);
|
|
220
218
|
utils.assertIntegerSize(size);
|
|
221
219
|
if (unshift) {
|
|
222
220
|
this.allocStart(size);
|
|
@@ -232,7 +230,6 @@ class ExtendedBuffer {
|
|
|
232
230
|
}
|
|
233
231
|
writeUIntBE(value, size, unshift) {
|
|
234
232
|
utils.assertUnsignedInteger(value);
|
|
235
|
-
utils.assertUnsignedInteger(size);
|
|
236
233
|
utils.assertIntegerSize(size);
|
|
237
234
|
if (unshift) {
|
|
238
235
|
this.allocStart(size);
|
|
@@ -248,7 +245,6 @@ class ExtendedBuffer {
|
|
|
248
245
|
}
|
|
249
246
|
writeUIntLE(value, size, unshift) {
|
|
250
247
|
utils.assertUnsignedInteger(value);
|
|
251
|
-
utils.assertUnsignedInteger(size);
|
|
252
248
|
utils.assertIntegerSize(size);
|
|
253
249
|
if (unshift) {
|
|
254
250
|
this.allocStart(size);
|
|
@@ -376,7 +372,6 @@ class ExtendedBuffer {
|
|
|
376
372
|
return result;
|
|
377
373
|
}
|
|
378
374
|
readIntBE(size) {
|
|
379
|
-
utils.assertUnsignedInteger(size);
|
|
380
375
|
utils.assertIntegerSize(size);
|
|
381
376
|
if (!this.isReadable(size)) {
|
|
382
377
|
throw new errors_1.ExtendedBufferRangeError('SIZE_OUT_OF_RANGE');
|
|
@@ -386,7 +381,6 @@ class ExtendedBuffer {
|
|
|
386
381
|
return result;
|
|
387
382
|
}
|
|
388
383
|
readIntLE(size) {
|
|
389
|
-
utils.assertUnsignedInteger(size);
|
|
390
384
|
utils.assertIntegerSize(size);
|
|
391
385
|
if (!this.isReadable(size)) {
|
|
392
386
|
throw new errors_1.ExtendedBufferRangeError('SIZE_OUT_OF_RANGE');
|
|
@@ -396,7 +390,6 @@ class ExtendedBuffer {
|
|
|
396
390
|
return result;
|
|
397
391
|
}
|
|
398
392
|
readUIntBE(size) {
|
|
399
|
-
utils.assertUnsignedInteger(size);
|
|
400
393
|
utils.assertIntegerSize(size);
|
|
401
394
|
if (!this.isReadable(size)) {
|
|
402
395
|
throw new errors_1.ExtendedBufferRangeError('SIZE_OUT_OF_RANGE');
|
|
@@ -406,7 +399,6 @@ class ExtendedBuffer {
|
|
|
406
399
|
return result;
|
|
407
400
|
}
|
|
408
401
|
readUIntLE(size) {
|
|
409
|
-
utils.assertUnsignedInteger(size);
|
|
410
402
|
utils.assertIntegerSize(size);
|
|
411
403
|
if (!this.isReadable(size)) {
|
|
412
404
|
throw new errors_1.ExtendedBufferRangeError('SIZE_OUT_OF_RANGE');
|