| 3726 | } |
| 3727 | |
| 3728 | std::shared_ptr<ArrayData> ReplaceBuffersInChild(const std::shared_ptr<ArrayData>& data, |
| 3729 | const int32_t child_index, |
| 3730 | const std::vector<uint8_t>& child_data) { |
| 3731 | const auto test_data = data->Copy(); |
| 3732 | // assume updating only buffer[1] in child_data |
| 3733 | auto child_array_data = test_data->child_data[child_index]->Copy(); |
| 3734 | child_array_data->buffers[1] = |
| 3735 | std::make_shared<Buffer>(child_data.data(), child_data.size()); |
| 3736 | test_data->child_data[child_index] = child_array_data; |
| 3737 | return test_data; |
| 3738 | } |
| 3739 | |
| 3740 | std::shared_ptr<ArrayData> ReplaceBuffersInDictionary( |
| 3741 | const std::shared_ptr<ArrayData>& data, const int32_t buffer_index, |
no test coverage detected