(length)
| 2685 | }) |
| 2686 | |
| 2687 | function createBuffer (length) { |
| 2688 | if (length > K_MAX_LENGTH) { |
| 2689 | throw new RangeError('The value "' + length + '" is invalid for option "size"') |
| 2690 | } |
| 2691 | // Return an augmented `Uint8Array` instance |
| 2692 | var buf = new Uint8Array(length) |
| 2693 | buf.__proto__ = Buffer.prototype |
| 2694 | return buf |
| 2695 | } |
| 2696 | |
| 2697 | /** |
| 2698 | * The Buffer constructor returns instances of `Uint8Array` that have their |
no outgoing calls
no test coverage detected
searching dependent graphs…