Lines Matching refs:extents
38 void AppendBlockToExtents(vector<Extent>* extents, uint64_t block) { in AppendBlockToExtents() argument
40 if (!extents->empty()) { in AppendBlockToExtents()
41 Extent& extent = extents->back(); in AppendBlockToExtents()
54 extents->push_back(new_extent); in AppendBlockToExtents()
58 google::protobuf::RepeatedPtrField<Extent>* extents, in ExtendExtents() argument
62 ExtentsToVector(*extents, &extents_vector); in ExtendExtents()
68 extents->Clear(); in ExtendExtents()
69 StoreExtents(extents_vector, extents); in ExtendExtents()
73 void StoreExtents(const vector<Extent>& extents, in StoreExtents() argument
75 for (const Extent& extent : extents) { in StoreExtents()
82 void ExtentsToVector(const google::protobuf::RepeatedPtrField<Extent>& extents, in ExtentsToVector() argument
85 for (int i = 0; i < extents.size(); i++) { in ExtentsToVector()
86 out_vector->push_back(extents.Get(i)); in ExtentsToVector()
90 string ExtentsToString(const vector<Extent>& extents) { in ExtentsToString() argument
92 for (const Extent& e : extents) in ExtentsToString()
99 void NormalizeExtents(vector<Extent>* extents) { in NormalizeExtents() argument
101 for (const Extent& curr_ext : *extents) { in NormalizeExtents()
116 *extents = new_extents; in NormalizeExtents()
119 vector<Extent> ExtentsSublist(const vector<Extent>& extents, in ExtentsSublist() argument
127 for (const Extent& extent : extents) { in ExtentsSublist()