| 143 | } |
| 144 | |
| 145 | int64_t |
| 146 | Range::firstBlockFor(int64_t const blocksize) const |
| 147 | { |
| 148 | if (0 < blocksize && isValid()) { |
| 149 | return std::max(static_cast<int64_t>(0), m_beg / blocksize); |
| 150 | } else { |
| 151 | return -1; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | int64_t |
| 156 | Range::lastBlockFor(int64_t const blocksize) const |
no outgoing calls
no test coverage detected