| 3803 | } |
| 3804 | |
| 3805 | std::shared_ptr<ArrayData> ReplaceBuffersInChild(const std::shared_ptr<ArrayData>& data, |
| 3806 | const int32_t child_index, |
| 3807 | const std::vector<uint8_t>& child_data) { |
| 3808 | const auto test_data = data->Copy(); |
| 3809 | // assume updating only buffer[1] in child_data |
| 3810 | auto child_array_data = test_data->child_data[child_index]->Copy(); |
| 3811 | child_array_data->buffers[1] = |
| 3812 | std::make_shared<Buffer>(child_data.data(), child_data.size()); |
| 3813 | test_data->child_data[child_index] = child_array_data; |
| 3814 | return test_data; |
| 3815 | } |
| 3816 | |
| 3817 | std::shared_ptr<ArrayData> ReplaceBuffersInDictionary( |
| 3818 | const std::shared_ptr<ArrayData>& data, const int32_t buffer_index, |
no test coverage detected