buffer-more-ints.js
function check_bounds(buf, offset, len) {
    if (offset < 0 || offset + len > buf.length) {
        throw new RangeError("Index out of range");
    }
}
function check_bounds(buf, offset, len) {
    if (offset < 0 || offset + len > buf.length) {
        throw new RangeError("Index out of range");
    }
}
function check_bounds ( buf , offset , len ) { if ( offset < 0 || offset + len > buf . length ) { throw new RangeError ( "Index out of range" ) ; } }
Check that something is within the Buffer bounds
Check that something is within the Buffer bounds