lib/utils.js
function dupBuffer(buf){
    var cloned = new Buffer(buf.length);
    buf.copy(cloned);
    return cloned;
}
function dupBuffer(buf){
    var cloned = new Buffer(buf.length);
    buf.copy(cloned);
    return cloned;
}
function dupBuffer ( buf ) { var cloned = new Buffer ( buf . length ) ; buf . copy ( cloned ) ; return cloned ; }
Duplicates a buffer.
@param {Buffer} buf To be duplicated.
@return {Buffer} A new buffer with the exact same size and contents.
Modifying this will NOT modify the original instance.
Duplicates a buffer .