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

Method AddChild

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

Create a new ArrowSchema struct with a stable C pointer

Source from the content-addressed store, hash-verified

1821
1822 // Create a new ArrowSchema struct with a stable C pointer
1823 struct ArrowSchema* AddChild() {
1824 auto& result = nested_structs_.emplace_back();
1825 memset(&result, 0, sizeof(result));
1826 result.release = NoOpSchemaRelease;
1827 return &result;
1828 }
1829
1830 // Create a stable C pointer to the N last structs in nested_structs_
1831 struct ArrowSchema** NLastChildren(int64_t n_children, struct ArrowSchema* parent) {

Callers

nothing calls this directly

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected