| 3238 | |
| 3239 | template <size_t BYTE_WIDTH = 16> |
| 3240 | void MakeData(const DecimalVector& input, std::vector<uint8_t>* out) const { |
| 3241 | out->reserve(input.size() * BYTE_WIDTH); |
| 3242 | |
| 3243 | for (const auto& value : input) { |
| 3244 | auto bytes = value.ToBytes(); |
| 3245 | out->insert(out->end(), bytes.cbegin(), bytes.cend()); |
| 3246 | } |
| 3247 | } |
| 3248 | |
| 3249 | template <size_t BYTE_WIDTH = 16> |
| 3250 | std::shared_ptr<Array> TestCreate(int32_t precision, const DecimalVector& draw, |