(e, t, n, r)
| 650 | return c(this, e, t, n) |
| 651 | } |
| 652 | function c(e, t, n, r) { |
| 653 | if ("number" == typeof t) |
| 654 | throw new TypeError('"value" argument must not be a number'); |
| 655 | return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function(e, t, n, r) { |
| 656 | if (t.byteLength, |
| 657 | n < 0 || t.byteLength < n) |
| 658 | throw new RangeError("'offset' is out of bounds"); |
| 659 | if (t.byteLength < n + (r || 0)) |
| 660 | throw new RangeError("'length' is out of bounds"); |
| 661 | return t = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t,n) : new Uint8Array(t,n,r), |
| 662 | u.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = u.prototype : e = d(e, t), |
| 663 | e |
| 664 | }(e, t, n, r) : "string" == typeof t ? function(e, t, n) { |
| 665 | if ("string" == typeof n && "" !== n || (n = "utf8"), |
| 666 | !u.isEncoding(n)) |
| 667 | throw new TypeError('"encoding" must be a valid string encoding'); |
| 668 | var r = 0 | p(t, n) |
| 669 | , i = (e = s(e, r)).write(t, n); |
| 670 | return i !== r && (e = e.slice(0, i)), |
| 671 | e |
| 672 | }(e, t, n) : function(e, t) { |
| 673 | if (u.isBuffer(t)) { |
| 674 | var n = 0 | h(t.length); |
| 675 | return 0 === (e = s(e, n)).length || t.copy(e, 0, 0, n), |
| 676 | e |
| 677 | } |
| 678 | if (t) { |
| 679 | if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length"in t) |
| 680 | return "number" != typeof t.length || function(e) { |
| 681 | return e != e |
| 682 | }(t.length) ? s(e, 0) : d(e, t); |
| 683 | if ("Buffer" === t.type && o(t.data)) |
| 684 | return d(e, t.data) |
| 685 | } |
| 686 | throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") |
| 687 | }(e, t) |
| 688 | } |
| 689 | function l(e) { |
| 690 | if ("number" != typeof e) |
| 691 | throw new TypeError('"size" argument must be a number'); |
no test coverage detected