Searched refs:bits_ (Results 1 – 2 of 2) sorted by relevance
50 Keychords::Mask::Mask(size_t bit) : bits_((bit + sizeof(mask_t) - 1) / sizeof(mask_t), 0) {} in Mask()54 if (idx >= bits_.size()) return; in SetBit()56 bits_[idx] |= mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t))); in SetBit()58 bits_[idx] &= ~(mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in SetBit()64 return bits_[idx] & (mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in GetBit()68 return bits_.size() * sizeof(mask_t); in bytesize()72 return bits_.data(); in data()76 return bits_.size() * sizeof(mask_t) * kBitsPerByte; in size()81 if (idx >= bits_.size()) { in resize()82 bits_.resize(idx + 1, 0); in resize()[all …]
64 std::vector<mask_t> bits_; variable