var buf = Buffer.allocUnsafe(15); /*The value of an unsafe buffer is not emptied, and can contain data from older buffers:*/ console.log(buf); /*Empty the buffer:*/ buf.fill(0); /*The buffer is now zero-filled:*/ console.log(buf);