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

Function InitWideByteArrayValues

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

Source from the content-addressed store, hash-verified

620}
621
622inline void InitWideByteArrayValues(int num_values, std::vector<ByteArray>& values,
623 std::vector<uint8_t>& buffer, int min_len,
624 int max_len) {
625 int num_bytes = static_cast<int>(max_len + sizeof(uint32_t));
626 size_t nbytes = num_values * num_bytes;
627 buffer.resize(nbytes);
628 random_byte_array(num_values, 0, buffer.data(), values.data(), min_len, max_len);
629}
630
631template <>
632inline 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