I have been trying to get a Float64Array to work with an array buffer but node will just not have it. When I do this....
var ab = new ArrayBuffer(buffer.length);
var view = new Uint8Array(ab);
console.log(view.length);//prints 3204
But when I do this...
var ab = new ArrayBuffer(buffer.length);
var view = new Float64Array(ab);
console.log(view.length);//prints nothing
I have also tried...
var view = new Float64Array(ab,0,buffer.length);
And still doesn't work.
Can anybody shed a light on why I cant access this 64 bit array? The buffer was just read from a file which is meant to be 64 bit array of floating point numbers. I just need to get access to it.
buffer.length? (oh; 3200 duhh)