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

Method AddChild

cpp/src/arrow/c/bridge_test.cc:2621–2627  ·  view source on GitHub ↗

Create a new ArrowArray struct with a stable C pointer

Source from the content-addressed store, hash-verified

2619
2620 // Create a new ArrowArray struct with a stable C pointer
2621 struct ArrowArray* AddChild() {
2622 nested_structs_.emplace_back();
2623 struct ArrowArray* result = &nested_structs_.back();
2624 memset(result, 0, sizeof(*result));
2625 result->release = NoOpArrayRelease;
2626 return result;
2627 }
2628
2629 // Create a stable C pointer to the N last structs in nested_structs_
2630 struct ArrowArray** NLastChildren(int64_t n_children, struct ArrowArray* parent) {

Callers 1

TEST_FFunction · 0.45

Calls 2

emplace_backMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected