Lines Matching refs:size_t

54   size_t num;  in Parse()
55 if (!android::base::ParseUint(pieces[0], &num, static_cast<size_t>(INT_MAX))) { in Parse()
73 for (size_t i = 0; i < num; i += 2) { in Parse()
74 size_t first; in Parse()
75 size_t second; in Parse()
76 if (!android::base::ParseUint(pieces[i + 1], &first, static_cast<size_t>(INT_MAX)) || in Parse()
77 !android::base::ParseUint(pieces[i + 2], &second, static_cast<size_t>(INT_MAX))) { in Parse()
90 size_t sz = range.second - range.first; in PushBack()
106 std::vector<RangeSet> RangeSet::Split(size_t groups) const { in Split()
114 size_t mean = blocks_ / groups; in Split()
115 std::vector<size_t> blocks_per_group(groups, mean); in Split()
125 size_t needed = blocks; in Split()
127 size_t range_blocks = range.second - range.first; in Split()
159 size_t RangeSet::GetBlockNumber(size_t idx) const { in GetBlockNumber()
187 std::optional<RangeSet> RangeSet::GetSubRanges(size_t start_index, size_t num_of_blocks) const { in GetSubRanges()
188 size_t end_index = start_index + num_of_blocks; // The index of final block to read plus one in GetSubRanges()
202 size_t current_index = 0; in GetSubRanges()
205 size_t blocks_in_range = range_end - range_start; in GetSubRanges()
212 size_t trimmed_range_start = range_start; in GetSubRanges()
220 size_t trimmed_range_end = range_end - (current_index + blocks_in_range - end_index); in GetSubRanges()
276 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert()
281 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps()
296 size_t SortedRangeSet::GetOffsetInRangeSet(size_t old_offset) const { in GetOffsetInRangeSet()
297 size_t old_block_start = old_offset / kBlockSize; in GetOffsetInRangeSet()
298 size_t new_block_start = 0; in GetOffsetInRangeSet()