| 3365 | |
| 3366 | template <size_t BYTE_WIDTH = 16> |
| 3367 | void MakeData(const DecimalVector& input, std::vector<uint8_t>* out) const { |
| 3368 | out->reserve(input.size() * BYTE_WIDTH); |
| 3369 | |
| 3370 | for (const auto& value : input) { |
| 3371 | auto bytes = value.ToBytes(); |
| 3372 | out->insert(out->end(), bytes.cbegin(), bytes.cend()); |
| 3373 | } |
| 3374 | } |
| 3375 | |
| 3376 | template <size_t BYTE_WIDTH = 16> |
| 3377 | std::shared_ptr<Array> TestCreate(int32_t precision, const DecimalVector& draw, |