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

Function packValid

matlab/src/cpp/arrow/matlab/bit/pack.cc:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35arrow::Result<std::shared_ptr<arrow::Buffer>> packValid(
36 const ::matlab::data::TypedArray<bool> matlab_logical_array) {
37 const auto unpacked_buffer_length = matlab_logical_array.getNumberOfElements();
38 if (unpacked_buffer_length > 0) {
39 return arrow::matlab::bit::pack(matlab_logical_array);
40 } else {
41 return nullptr;
42 }
43}
44
45// Pack an unpacked MATLAB logical array into a bit-packed arrow::Buffer.
46arrow::Result<std::shared_ptr<arrow::Buffer>> pack(

Callers

nothing calls this directly

Calls 1

packFunction · 0.85

Tested by

no test coverage detected