MCPcopy Create free account
hub / github.com/apache/arrow / MakeData

Method MakeData

cpp/src/arrow/array/array_test.cc:3367–3374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 7

ToBytesMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected