buffer: remove unused parameters
This commit is contained in:
parent
6d842897c5
commit
e62d5964de
@ -409,7 +409,7 @@ Buffer.prototype.readUInt16BE = function(offset, noAssert) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function readUInt32(buffer, offset, isBigEndian, noAssert) {
|
function readUInt32(buffer, offset, isBigEndian) {
|
||||||
var val = 0;
|
var val = 0;
|
||||||
if (isBigEndian) {
|
if (isBigEndian) {
|
||||||
val = buffer[offset + 1] << 16;
|
val = buffer[offset + 1] << 16;
|
||||||
@ -430,7 +430,7 @@ Buffer.prototype.readUInt32LE = function(offset, noAssert) {
|
|||||||
offset = ~~offset;
|
offset = ~~offset;
|
||||||
if (!noAssert)
|
if (!noAssert)
|
||||||
checkOffset(offset, 4, this.length);
|
checkOffset(offset, 4, this.length);
|
||||||
return readUInt32(this, offset, false, noAssert);
|
return readUInt32(this, offset, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -438,7 +438,7 @@ Buffer.prototype.readUInt32BE = function(offset, noAssert) {
|
|||||||
offset = ~~offset;
|
offset = ~~offset;
|
||||||
if (!noAssert)
|
if (!noAssert)
|
||||||
checkOffset(offset, 4, this.length);
|
checkOffset(offset, 4, this.length);
|
||||||
return readUInt32(this, offset, true, noAssert);
|
return readUInt32(this, offset, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user