Lines Matching full:extents
38 void AppendBlockToExtents(vector<Extent>* extents, uint64_t block) {
39 // First try to extend the last extent in |extents|, if any.
40 if (!extents->empty()) {
41 Extent& extent = extents->back();
53 extents->push_back(new_extent);
67 google::protobuf::RepeatedPtrField<Extent>* extents,
71 ExtentsToVector(*extents, &extents_vector);
77 extents->Clear();
78 StoreExtents(extents_vector, extents);
81 // Stores all Extents in 'extents' into 'out'.
82 void StoreExtents(const vector<Extent>& extents,
84 for (const Extent& extent : extents) {
90 // Stores all extents in |extents| into |out_vector|.
91 void ExtentsToVector(const google::protobuf::RepeatedPtrField<Extent>& extents,
94 for (int i = 0; i < extents.size(); i++) {
95 out_vector->push_back(extents.Get(i));
99 string ExtentsToString(const vector<Extent>& extents) {
101 for (const Extent& e : extents)
107 void NormalizeExtents(vector<Extent>* extents) {
109 for (const Extent& curr_ext : *extents) {
117 // If the extents are touching, we want to combine them.
124 *extents = new_extents;
127 vector<Extent> ExtentsSublist(const vector<Extent>& extents,
134 for (const Extent& extent : extents) {
135 // The loop invariant is that if |extents| has enough blocks, there's