(that, array)
| 533 | } |
| 534 | |
| 535 | function fromArrayLike (that, array) { |
| 536 | var length = array.length < 0 ? 0 : checked(array.length) | 0 |
| 537 | that = createBuffer(that, length) |
| 538 | for (var i = 0; i < length; i += 1) { |
| 539 | that[i] = array[i] & 255 |
| 540 | } |
| 541 | return that |
| 542 | } |
| 543 | |
| 544 | function fromArrayBuffer (that, array, byteOffset, length) { |
| 545 | array.byteLength // this throws if `array` is not a valid ArrayBuffer |
no test coverage detected