Can you have Node.js read a file as binary into a specific slot of memory somehow?
let buffer = new Uint8Array
let location = 0
let path = 'foo.binary'
fs.readIntoMemoryLocation(path, buffer, location)
Is something like that possible?
I am wondering because I have a bunch of stuff to process in one array buffer, and would like to add a file to it, rather than the file being its own buffer. Without copying the file from one place to another either. If not in Node.js, then the browser somehow?