uint64_t offset;
uint64_t size;
uint32_t flags;
- friend std::ostream &operator<<(std::ostream &lhs, const ec_align_t &rhs) {
- return lhs << rhs.offset << ","
- << rhs.size << ","
- << rhs.flags;
- }
ec_align_t(std::pair<uint64_t, uint64_t> p, uint32_t flags)
: offset(p.first), size(p.second), flags(flags) {}
ec_align_t(uint64_t offset, uint64_t size, uint32_t flags)
: offset(offset), size(size), flags(flags) {}
bool operator==(const ec_align_t &other) const;
+ void print(std::ostream &os) const {
+ os << offset << "," << size << "," << flags;
+ }
};
struct raw_shard_id_t {