Create a new ArrowSchema struct with a stable C pointer
| 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) { |
nothing calls this directly
no test coverage detected