| 55 | return Blocks.ysize(); |
| 56 | } |
| 57 | int GetBlockIdByOffset(int offset) const { |
| 58 | TBlockVector::const_iterator i = LowerBound(Blocks.begin(), Blocks.end(), offset, TBlockLess()); |
| 59 | if (i == Blocks.end()) |
| 60 | return Blocks.ysize() - 1; |
| 61 | if (i->Offset == offset) |
| 62 | return (int)(i - Blocks.begin()); |
| 63 | return (int)(i - Blocks.begin() - 1); |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | ////////////////////////////////////////////////////////////////////////// |
no test coverage detected