(length)
| 195 | }) |
| 196 | |
| 197 | function createBuffer (length) { |
| 198 | if (length > K_MAX_LENGTH) { |
| 199 | throw new RangeError('Invalid typed array length') |
| 200 | } |
| 201 | // Return an augmented `Uint8Array` instance |
| 202 | var buf = new Uint8Array(length) |
| 203 | buf.__proto__ = Buffer.prototype |
| 204 | return buf |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * The Buffer constructor returns instances of `Uint8Array` that have their |
no outgoing calls
no test coverage detected
searching dependent graphs…