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

Function InitWideByteArrayValues

cpp/src/parquet/test_util.h:629–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629inline void InitWideByteArrayValues(int num_values, std::vector<ByteArray>& values,
630 std::vector<uint8_t>& buffer, int min_len,
631 int max_len) {
632 int num_bytes = static_cast<int>(max_len + sizeof(uint32_t));
633 size_t nbytes = num_values * num_bytes;
634 buffer.resize(nbytes);
635 random_byte_array(num_values, 0, buffer.data(), values.data(), min_len, max_len);
636}
637
638template <>
639inline void InitValues<FLBA>(int num_values, uint32_t seed, std::vector<FLBA>& values,

Callers 1

TEST_FFunction · 0.85

Calls 3

random_byte_arrayFunction · 0.85
resizeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected