zhangzengfei
2020-08-07 cc7f28137c5fbd698b02817259f2af1311bbb1b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* eslint-disable */
if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) {
  ArrayBuffer.prototype.slice = function (start, end) {
    var that = new Uint8Array(this);
    if (end === undefined) {
      end = that.length;
    }
    var result = new ArrayBuffer(end - start);
    var resultArray = new Uint8Array(result);
    for (var i = 0; i < resultArray.length; i++) {
      resultArray[i] = that[i + start];
    }
    return result;
  };
}