(that, size)
| 2058 | }; |
| 2059 | |
| 2060 | function allocUnsafe (that, size) { |
| 2061 | assertSize(size); |
| 2062 | that = createBuffer(that, size < 0 ? 0 : checked(size) | 0); |
| 2063 | if (!Buffer.TYPED_ARRAY_SUPPORT) { |
| 2064 | for (var i = 0; i < size; ++i) { |
| 2065 | that[i] = 0; |
| 2066 | } |
| 2067 | } |
| 2068 | return that |
| 2069 | } |
| 2070 | |
| 2071 | /** |
| 2072 | * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. |
no test coverage detected