(s)
| 21602 | return (assertSize(s), createBuffer(s < 0 ? 0 : 0 | checked(s))) |
| 21603 | } |
| 21604 | function fromArrayLike(s) { |
| 21605 | const o = s.length < 0 ? 0 : 0 | checked(s.length), |
| 21606 | i = createBuffer(o) |
| 21607 | for (let a = 0; a < o; a += 1) i[a] = 255 & s[a] |
| 21608 | return i |
| 21609 | } |
| 21610 | function fromArrayBuffer(s, o, i) { |
| 21611 | if (o < 0 || s.byteLength < o) |
| 21612 | throw new RangeError('"offset" is outside of buffer bounds') |
no test coverage detected