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

Function ArrowArrayStreamMove

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

Move the C array stream from `src` to `dest` Note `dest` must *not* point to a valid stream already, otherwise there will be a memory leak.

Source from the content-addressed store, hash-verified

141/// Note `dest` must *not* point to a valid stream already, otherwise there
142/// will be a memory leak.
143inline void ArrowArrayStreamMove(struct ArrowArrayStream* src,
144 struct ArrowArrayStream* dest) {
145 assert(dest != src);
146 assert(!ArrowArrayStreamIsReleased(src));
147 memcpy(dest, src, sizeof(struct ArrowArrayStream));
148 ArrowArrayStreamMarkReleased(src);
149}
150
151inline void ArrowDeviceArrayStreamMove(struct ArrowDeviceArrayStream* src,
152 struct ArrowDeviceArrayStream* dest) {

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected