Upsilon-VsCode/Client/node_modules/vinyl/lib/cloneBuffer.js

8 lines
143 B
JavaScript
Executable File

var Buffer = require('buffer').Buffer;
module.exports = function(buf) {
var out = new Buffer(buf.length);
buf.copy(out);
return out;
};