(that, array)
| 2106 | } |
| 2107 | |
| 2108 | function fromArrayLike (that, array) { |
| 2109 | var length = array.length < 0 ? 0 : checked(array.length) | 0; |
| 2110 | that = createBuffer(that, length); |
| 2111 | for (var i = 0; i < length; i += 1) { |
| 2112 | that[i] = array[i] & 255; |
| 2113 | } |
| 2114 | return that |
| 2115 | } |
| 2116 | |
| 2117 | function fromArrayBuffer (that, array, byteOffset, length) { |
| 2118 | array.byteLength; // this throws if `array` is not a valid ArrayBuffer |
no test coverage detected