(buf)
| 6189 | if (currentBufferPtr) { |
| 6190 | llhttp.free(currentBufferPtr); |
| 6191 | } |
| 6192 | currentBufferSize = Math.ceil(data.length / 4096) * 4096; |
| 6193 | currentBufferPtr = llhttp.malloc(currentBufferSize); |
| 6194 | } |
| 6195 | new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data); |
| 6196 | try { |