(length)
| 98 | } |
| 99 | }); |
| 100 | function createBuffer(length) { |
| 101 | if (length > K_MAX_LENGTH) { |
| 102 | throw new RangeError('The value "' + length + '" is invalid for option "size"'); |
| 103 | } |
| 104 | // Return an augmented `Uint8Array` instance |
| 105 | var buf = new Uint8Array(length); |
| 106 | Object.setPrototypeOf(buf, Buffer.prototype); |
| 107 | return buf; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * The Buffer constructor returns instances of `Uint8Array` that have their |
no outgoing calls
no test coverage detected
searching dependent graphs…