MCPcopy Create free account
hub / github.com/apache/arrow / ArrowSchemaMove

Function ArrowSchemaMove

cpp/src/arrow/c/helpers.h:53–58  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

51/// Note `dest` must *not* point to a valid schema already, otherwise there
52/// will be a memory leak.
53inline 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
61inline void ArrowSchemaRelease(struct ArrowSchema* schema) {

Callers

nothing calls this directly

Calls 2

ArrowSchemaIsReleasedFunction · 0.85
ArrowSchemaMarkReleasedFunction · 0.85

Tested by

no test coverage detected