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

Function ReplaceBuffers

cpp/src/arrow/array/array_test.cc:3719–3726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3717}
3718
3719std::shared_ptr<ArrayData> ReplaceBuffers(const std::shared_ptr<ArrayData>& data,
3720 const int32_t buffer_index,
3721 const std::vector<uint8_t>& buffer_data) {
3722 const auto test_data = data->Copy();
3723 test_data->buffers[buffer_index] =
3724 std::make_shared<Buffer>(buffer_data.data(), buffer_data.size());
3725 return test_data;
3726}
3727
3728std::shared_ptr<ArrayData> ReplaceBuffersInChild(const std::shared_ptr<ArrayData>& data,
3729 const int32_t child_index,

Callers 2

array_test.ccFile · 0.85
TESTFunction · 0.85

Calls 3

CopyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected