(arrayView)
| 263 | } |
| 264 | |
| 265 | function fromArrayView (arrayView) { |
| 266 | if (isInstance(arrayView, Uint8Array)) { |
| 267 | const copy = new Uint8Array(arrayView) |
| 268 | return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength) |
| 269 | } |
| 270 | return fromArrayLike(arrayView) |
| 271 | } |
| 272 | |
| 273 | function fromArrayBuffer (array, byteOffset, length) { |
| 274 | if (byteOffset < 0 || array.byteLength < byteOffset) { |
no test coverage detected
searching dependent graphs…