lib/buffer.js
function fill(buffer, value) {
    $.checkArgumentType(buffer, 'Buffer', 'buffer');
    $.checkArgumentType(value, 'number', 'value');
    var length = buffer.length;
    for (var i = 0; i < length; i++) {
      buffer[i] = value;
    }
    return buffer;
  }
function fill(buffer, value) {
    $.checkArgumentType(buffer, 'Buffer', 'buffer');
    $.checkArgumentType(value, 'number', 'value');
    var length = buffer.length;
    for (var i = 0; i < length; i++) {
      buffer[i] = value;
    }
    return buffer;
  }
function fill ( buffer , value ) { $ . checkArgumentType ( buffer , 'Buffer' , 'buffer' ) ; $ . checkArgumentType ( value , 'number' , 'value' ) ; var length = buffer . length ; for ( var i = 0 ; i < length ; i ++ ) { buffer [ i ] = value ; } return buffer ; }
Fill a buffer with a value.

@param {Buffer} buffer
@param {number} value
@return {Buffer}
Fill a buffer with a value .