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

Method CheckNumBuffers

cpp/src/arrow/c/bridge.cc:1830–1837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828 }
1829
1830 Status CheckNumBuffers(int64_t n_buffers) {
1831 if (n_buffers != c_struct_->n_buffers) {
1832 return Status::Invalid("Expected ", n_buffers, " buffers for imported type ",
1833 type_->ToString(), ", ArrowArray struct has ",
1834 c_struct_->n_buffers);
1835 }
1836 return Status::OK();
1837 }
1838
1839 Status CheckNoNulls() {
1840 if (c_struct_->null_count != 0) {

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected