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

Method Create

cpp/src/arrow/util/bit_block_counter_test.cc:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37class TestBitBlockCounter : public ::testing::Test {
38 public:
39 void Create(int64_t nbytes, int64_t offset, int64_t length) {
40 ASSERT_OK_AND_ASSIGN(buf_, AllocateBuffer(nbytes));
41 // Start with data zeroed out
42 std::memset(buf_->mutable_data(), 0, nbytes);
43 counter_.reset(new BitBlockCounter(buf_->data(), offset, length));
44 }
45
46 protected:
47 std::shared_ptr<Buffer> buf_;

Callers

nothing calls this directly

Calls 5

ASSERT_OK_AND_ASSIGNFunction · 0.70
AllocateBufferFunction · 0.50
mutable_dataMethod · 0.45
resetMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected