| 61 | return Blocks.ysize(); |
| 62 | } |
| 63 | int GetBlockIdByOffset(int offset) const { |
| 64 | const auto i = LowerBound(Blocks.cbegin(), Blocks.cend(), offset, TBlockLess()); |
| 65 | if (i == Blocks.cend()) |
| 66 | return Blocks.ysize() - 1; |
| 67 | if (i->Offset == offset) |
| 68 | return (int)(i - Blocks.cbegin()); |
| 69 | return (int)(i - Blocks.cbegin() - 1); |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | ////////////////////////////////////////////////////////////////////////// |
no test coverage detected