Class Method: Buffer.from(array)
array <Array>
Allocates a new Buffer using an array of octets.
const buf = Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]);
// creates a new Buffer containing ASCII bytes
// ['b','u','f','f','e','r']
A TypeError will be thrown if array is not an Array.