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

Function WriteVectorToWriter

cpp/src/arrow/util/bitmap_test.cc:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template <class BitmapWriter>
46void WriteVectorToWriter(BitmapWriter& writer, const std::vector<int> values) {
47 for (const auto& value : values) {
48 if (value) {
49 writer.Set();
50 } else {
51 writer.Clear();
52 }
53 writer.Next();
54 }
55 writer.Finish();
56}
57
58void BitmapFromVector(const std::vector<int>& values, int64_t bit_offset,
59 std::shared_ptr<Buffer>* out_buffer, int64_t* out_length) {

Callers 2

BitmapFromVectorFunction · 0.85
TESTFunction · 0.85

Calls 4

SetMethod · 0.45
ClearMethod · 0.45
NextMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected