Lines Matching refs:extents
32 // into an arbitrary place in the extents.
33 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
38 std::vector<uint64_t> ExpandExtents(const T& extents) {
40 for (const auto& extent : extents) {
53 // Stores all Extents in 'extents' into 'out'.
54 void StoreExtents(const std::vector<Extent>& extents,
57 // Stores all extents in |extents| into |out_vector|.
58 void ExtentsToVector(const google::protobuf::RepeatedPtrField<Extent>& extents,
61 // Returns a string representing all extents in |extents|.
62 std::string ExtentsToString(const std::vector<Extent>& extents);
64 // Takes a pointer to extents |extents| and extents |extents_to_add|, and
65 // merges them by adding |extents_to_add| to |extents| and normalizing.
67 google::protobuf::RepeatedPtrField<Extent>* extents,
70 // Takes a vector of extents and normalizes those extents. Expects the extents
71 // to be sorted by start block. E.g. if |extents| is [(1, 2), (3, 5), (10, 2)]
72 // then |extents| will be changed to [(1, 7), (10, 2)].
73 void NormalizeExtents(std::vector<Extent>* extents);
76 // blocks |extents| and the return value are expressed as a list of Extent, not
78 // |extents| and cotains |block_count| blocks (or less if |extents| is shorter).
79 std::vector<Extent> ExtentsSublist(const std::vector<Extent>& extents,