text: /* Copyright 2017 Stephan Hesse <tchakabam@gmail.com> */
  
  function toArrayBuffer(buf) {
      var ab = new ArrayBuffer(buf.length);
      var view = new Uint8Array(ab);
      for (var i = 0; i < buf.length; ++i) {
          view[i] = buf[i];
      }
      return ab;
  }
  
  module.exports = toArrayBuffer;