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

Function WriteVectorToWriter

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

Source from the content-addressed store, hash-verified

45
46template <class BitmapWriter>
47void WriteVectorToWriter(BitmapWriter& writer, const std::vector<int> values) {
48 for (const auto& value : values) {
49 if (value) {
50 writer.Set();
51 } else {
52 writer.Clear();
53 }
54 writer.Next();
55 }
56 writer.Finish();
57}
58
59void BitmapFromVector(const std::vector<int>& values, int64_t bit_offset,
60 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