BTW, when allocating a temp array/buffer like this, you are usually better of using `uninitializedArray` (or `minimallyInitilaizedArray`).