Move the C schema from `src` to `dest` Note `dest` must *not* point to a valid schema already, otherwise there will be a memory leak.
| 51 | /// Note `dest` must *not* point to a valid schema already, otherwise there |
| 52 | /// will be a memory leak. |
| 53 | inline void ArrowSchemaMove(struct ArrowSchema* src, struct ArrowSchema* dest) { |
| 54 | assert(dest != src); |
| 55 | assert(!ArrowSchemaIsReleased(src)); |
| 56 | memcpy(dest, src, sizeof(struct ArrowSchema)); |
| 57 | ArrowSchemaMarkReleased(src); |
| 58 | } |
| 59 | |
| 60 | /// Release the C schema, if necessary, by calling its release callback |
| 61 | inline void ArrowSchemaRelease(struct ArrowSchema* schema) { |
nothing calls this directly
no test coverage detected