| 3288 | |
| 3289 | template <size_t BYTE_WIDTH = 16> |
| 3290 | void MakeData(const DecimalVector& input, std::vector<uint8_t>* out) const { |
| 3291 | out->reserve(input.size() * BYTE_WIDTH); |
| 3292 | |
| 3293 | for (const auto& value : input) { |
| 3294 | auto bytes = value.ToBytes(); |
| 3295 | out->insert(out->end(), bytes.cbegin(), bytes.cend()); |
| 3296 | } |
| 3297 | } |
| 3298 | |
| 3299 | template <size_t BYTE_WIDTH = 16> |
| 3300 | std::shared_ptr<Array> TestCreate(int32_t precision, const DecimalVector& draw, |