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

Method generate_packed_bitmap

cpp/src/arrow/util/bit_util_test.cc:212–217  ·  view source on GitHub ↗

Helper functions to generate the source bitmap and expected destination arrays.

Source from the content-addressed store, hash-verified

210 // Helper functions to generate the source bitmap and expected destination
211 // arrays.
212 static PackedBitmapType generate_packed_bitmap() {
213 PackedBitmapType bitmap;
214 // Assign random values into the source array.
215 random_bytes(kBitmapSizeInBytes, 0, bitmap.data());
216 return bitmap;
217 }
218
219 static UnpackedBitmapType generate_unpacked_bitmap(PackedBitmapType bitmap) {
220 // Use a BitmapReader (tested earlier) to populate the expected

Callers

nothing calls this directly

Calls 2

random_bytesFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected