(that, size)
| 78565 | } |
| 78566 | |
| 78567 | function allocUnsafe (that, size) { |
| 78568 | assertSize(size) |
| 78569 | that = createBuffer(that, size < 0 ? 0 : checked(size) | 0) |
| 78570 | if (!Buffer.TYPED_ARRAY_SUPPORT) { |
| 78571 | for (var i = 0; i < size; ++i) { |
| 78572 | that[i] = 0 |
| 78573 | } |
| 78574 | } |
| 78575 | return that |
| 78576 | } |
| 78577 | |
| 78578 | /** |
| 78579 | * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. |
no test coverage detected