Home | History | Annotate | Download | only in core

Lines Matching refs:id

32     const auto id = last_id_;
34 // 0 is never a valid ID. So if we are looking for |id| == N and there are
36 // e.g. if |id| == 4 and size() == 4, the vector will contain IDs 0,1,2,3.
37 if (id >= ids_.size()) {
38 ids_.resize(id + 1);
39 ids_[id] = true;
40 return id;
43 if (!ids_[id]) {
44 ids_[id] = true;
45 return id;
51 void IdAllocatorGeneric::FreeGeneric(uint32_t id) {
52 if (id == 0 || id >= ids_.size() || !ids_[id]) {
56 ids_[id] = false;