(arrayView)
| 113016 | return buf; |
| 113017 | } |
| 113018 | function fromArrayView(arrayView) { |
| 113019 | if (isInstance(arrayView, Uint8Array)) { |
| 113020 | var copy = new Uint8Array(arrayView); |
| 113021 | return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength); |
| 113022 | } |
| 113023 | return fromArrayLike(arrayView); |
| 113024 | } |
| 113025 | function fromArrayBuffer(array, byteOffset, length) { |
| 113026 | if (byteOffset < 0 || array.byteLength < byteOffset) throw new RangeError('"offset" is outside of buffer bounds'); |
| 113027 | if (array.byteLength < byteOffset + (length || 0)) throw new RangeError('"length" is outside of buffer bounds'); |
no test coverage detected