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

Function ReplaceBuffers

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

Source from the content-addressed store, hash-verified

3667}
3668
3669std::shared_ptr<ArrayData> ReplaceBuffers(const std::shared_ptr<ArrayData>& data,
3670 const int32_t buffer_index,
3671 const std::vector<uint8_t>& buffer_data) {
3672 const auto test_data = data->Copy();
3673 test_data->buffers[buffer_index] =
3674 std::make_shared<Buffer>(buffer_data.data(), buffer_data.size());
3675 return test_data;
3676}
3677
3678std::shared_ptr<ArrayData> ReplaceBuffersInChild(const std::shared_ptr<ArrayData>& data,
3679 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