code: function toArrayBuffer(buffer) {
      var length = buffer.length;
      var view = new DataView(new ArrayBuffer(length), 0, length);
      for (var i = 0, l = length; i < l; i++) {
          view.setUint8(i, buffer[i], false);
      }
      return view.buffer;
  }
docs: /* eslint-disable no-undef 
  Buffer转换成ArrayBuffer
  
  @param {Buffer} buffer 缓冲数组
  @return {ArrayBuffer}