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

Method getNumBytes

matlab/src/cpp/arrow/matlab/buffer/proxy/buffer.cc:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43std::shared_ptr<arrow::Buffer> Buffer::unwrap() { return buffer; }
44
45void Buffer::getNumBytes(libmexclass::proxy::method::Context& context) {
46 namespace mda = ::matlab::data;
47 mda::ArrayFactory factory;
48 auto num_bytes_mda = factory.createScalar(buffer->size());
49 context.outputs[0] = num_bytes_mda;
50}
51
52void Buffer::isEqual(libmexclass::proxy::method::Context& context) {
53 namespace mda = ::matlab::data;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected