How to overwrite or fill buffers with data in Node.js?
Originally posted here!
To fill or overwrite a buffer space with some content or data, we can use the fill() method in the Buffer instance in Node.js.
Let's say we have a Buffer with 10 bytes of memory allocated like this,
// create buffer
const buf...
melvingeorge-me.hashnode.dev3 min read