Move the C array from `src` to `dest` Note `dest` must *not* point to a valid array already, otherwise there will be a memory leak.
| 87 | /// Note `dest` must *not* point to a valid array already, otherwise there |
| 88 | /// will be a memory leak. |
| 89 | inline void ArrowArrayMove(struct ArrowArray* src, struct ArrowArray* dest) { |
| 90 | assert(dest != src); |
| 91 | assert(!ArrowArrayIsReleased(src)); |
| 92 | memcpy(dest, src, sizeof(struct ArrowArray)); |
| 93 | ArrowArrayMarkReleased(src); |
| 94 | } |
| 95 | |
| 96 | inline void ArrowDeviceArrayMove(struct ArrowDeviceArray* src, |
| 97 | struct ArrowDeviceArray* dest) { |