Lines Matching refs:word_index
165 libtextclassifier3::Status FileBackedBitmap::SetWord(int word_index, in SetWord() argument
167 if (word_index >= NumBits() / kNumWordBits) { in SetWord()
168 ICING_LOG(ERROR) << "word_index: " << word_index in SetWord()
176 bitmap_data[word_index] = word; in SetWord()
182 int word_index) const { in GetWord()
183 if (word_index >= NumBits() / kNumWordBits) { in GetWord()
184 ICING_LOG(ERROR) << "word_index: " << word_index in GetWord()
191 return bitmap_data[word_index]; in GetWord()
216 const int word_index = bit_index / kNumWordBits; in Set() local
219 ICING_ASSIGN_OR_RETURN(Word old_word, GetWord(word_index)); in Set()
222 ICING_RETURN_IF_ERROR(SetWord(word_index, new_word)); in Set()
236 const Word word_index = bit_index / kNumWordBits; in Get() local
239 ICING_ASSIGN_OR_RETURN(Word word, GetWord(word_index)); in Get()
244 const int word_index = num_bits / kNumWordBits; in FileSizeForBits() local
245 size_t new_file_size = kHeaderByteSize + (word_index + 1) * sizeof(Word); in FileSizeForBits()
297 const int word_index = new_num_bits / kNumWordBits; in TruncateTo() local
301 ICING_ASSIGN_OR_RETURN(Word old_word, GetWord(word_index)); in TruncateTo()
303 ICING_RETURN_IF_ERROR(SetWord(word_index, new_word)); in TruncateTo()
307 for (int i = word_index + 1; i < num_words; ++i) { in TruncateTo()