MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / initValid

Method initValid

pj_datastore/src/buffer.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58// ---------------------------------------------------------------------------
59
60void BitVector::initValid(std::size_t num_bits) {
61 bit_count_ = num_bits;
62 bytes_.resize(bytesForBits(num_bits));
63 if (!bytes_.empty()) {
64 std::memset(bytes_.data(), 0xFF, bytes_.size());
65 }
66}
67
68void BitVector::ensureSize(std::size_t num_bits) {
69 if (num_bits > bit_count_) {

Callers 2

TESTFunction · 0.80

Calls 4

resizeMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64