(arrayView)
| 248 | return buf; |
| 249 | } |
| 250 | function fromArrayView(arrayView) { |
| 251 | if (isInstance(arrayView, Uint8Array)) { |
| 252 | var copy = new Uint8Array(arrayView); |
| 253 | return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength); |
| 254 | } |
| 255 | return fromArrayLike(arrayView); |
| 256 | } |
| 257 | function fromArrayBuffer(array, byteOffset, length) { |
| 258 | if (byteOffset < 0 || array.byteLength < byteOffset) { |
| 259 | throw new RangeError('"offset" is outside of buffer bounds'); |
no test coverage detected
searching dependent graphs…