Copies buffer data to a new Buffer instance.
Buffer
buffer from which to copy
new Buffer instance
var fromArray = require( `@stdlib/buffer/from-array` ); var b1 = fromArray( [ 1, 2, 3, 4 ] ); // returns <Buffer> var b2 = fromBuffer( b1 ); // returns <Buffer>
Copies buffer data to a new
Buffer
instance.