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

Method toMATLAB

matlab/src/cpp/arrow/matlab/array/proxy/boolean_array.cc:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void BooleanArray::toMATLAB(libmexclass::proxy::method::Context& context) {
61 auto array_length = array->length();
62 auto packed_logical_data_buffer =
63 std::static_pointer_cast<arrow::BooleanArray>(array)->values();
64 auto logical_array_mda =
65 bit::unpack(packed_logical_data_buffer, array_length, array->offset());
66 context.outputs[0] = logical_array_mda;
67}
68} // namespace arrow::matlab::array::proxy

Callers

nothing calls this directly

Calls 4

unpackFunction · 0.50
lengthMethod · 0.45
valuesMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected