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

Function ArrowArrayMove

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

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.

Source from the content-addressed store, hash-verified

87/// Note `dest` must *not* point to a valid array already, otherwise there
88/// will be a memory leak.
89inline 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
96inline void ArrowDeviceArrayMove(struct ArrowDeviceArray* src,
97 struct ArrowDeviceArray* dest) {

Callers 4

ImportMethod · 0.85

Calls 2

ArrowArrayIsReleasedFunction · 0.85
ArrowArrayMarkReleasedFunction · 0.85