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

Function ReplaceBuffers

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

Source from the content-addressed store, hash-verified

3794}
3795
3796std::shared_ptr<ArrayData> ReplaceBuffers(const std::shared_ptr<ArrayData>& data,
3797 const int32_t buffer_index,
3798 const std::vector<uint8_t>& buffer_data) {
3799 const auto test_data = data->Copy();
3800 test_data->buffers[buffer_index] =
3801 std::make_shared<Buffer>(buffer_data.data(), buffer_data.size());
3802 return test_data;
3803}
3804
3805std::shared_ptr<ArrayData> ReplaceBuffersInChild(const std::shared_ptr<ArrayData>& data,
3806 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