Buffer.prototype.readInt32LE = function(offset, noAssert) {
if (!noAssert)
- checkOffset(offset, 2, this.length);
+ checkOffset(offset, 4, this.length);
return readInt32(this, offset, false);
};
Buffer.prototype.readInt32BE = function(offset, noAssert) {
if (!noAssert)
- checkOffset(offset, 2, this.length);
+ checkOffset(offset, 4, this.length);
return readInt32(this, offset, true);
};