title: How to convert a Buffer to an array of ints node.js
body: <p>I have a c# application that converts a double array to a byte array of data to a node.js server which is converted to a Buffer (as convention seems to recommend). I want to convert this buffer into an array of the numbers originally stored in the double array, I've had a look at other questions but they either aren't applicable or just don't work ([...buf], Array.prototype.slice.call(buf, 0) etc.). </p>
  
  <p>Essentially I have a var buf which contains the data, I want this to be an array of integers, is there any way I can do this? </p>
  
  <p>Thank you. </p>