Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs write raw buffer to file

/*
	Using nodejs' fs module you can create a WriteStream
    to handle raw stream of bytes and buffers.
*/

const path = "path/to/the/file";

array = BigInt64Array(0);
buffer = Buffer.from(array.buffer)

fs.createWriteStream(path).write(buffer);
 
PREVIOUS NEXT
Tagged: #nodejs #write #raw #buffer #file
ADD COMMENT
Topic
Name
4+1 =