(that, size)
| 45891 | }; |
| 45892 | |
| 45893 | function allocUnsafe(that, size) { |
| 45894 | assertSize(size); |
| 45895 | that = createBuffer(that, size < 0 ? 0 : checked(size) | 0); |
| 45896 | if (!Buffer.TYPED_ARRAY_SUPPORT) { |
| 45897 | for (var i = 0; i < size; ++i) { |
| 45898 | that[i] = 0; |
| 45899 | } |
| 45900 | } |
| 45901 | return that; |
| 45902 | } |
| 45903 | |
| 45904 | /** |
| 45905 | * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. |
no test coverage detected