Pointer<Float> getPointer() { final ptr = malloc.allocate<Float>(length * 4); final typedList = ptr.asTypedList(length); typedList.setAll(0, this); return ptr.cast(); }