lib/type/hash.js
function getValueBuffer(key, req, stringify) {
  var val = this.getKey(key, req);
  // should have buffer, string or number
  if(val !== undefined) {
    if(typeof val === 'number' && !stringify) val = new Buffer([val]);
    val = (val instanceof Buffer) ? val : new Buffer('' + val);
  }
  return val;
}
function getValueBuffer(key, req, stringify) {
  var val = this.getKey(key, req);
  // should have buffer, string or number
  if(val !== undefined) {
    if(typeof val === 'number' && !stringify) val = new Buffer([val]);
    val = (val instanceof Buffer) ? val : new Buffer('' + val);
  }
  return val;
}
function getValueBuffer ( key , req , stringify ) { var val = this . getKey ( key , req ) ; // should have buffer, string or number if ( val !== undefined ) { if ( typeof val === 'number' && ! stringify ) val = new Buffer ( [ val ] ) ; val = ( val instanceof Buffer ) ? val : new Buffer ( '' + val ) ; } return val ; }
Get the value for a key as a buffer regardless of it being
a string, number or existing buffer.

@param key The key.
@param req The request object.
@param stringify Convert numbers to strings then buffer.
Get the value for a key as a buffer regardless of it being a string number or existing buffer .