| 16 | } |
| 17 | |
| 18 | inline size_t GetBlockLen(size_t index) const { |
| 19 | CheckIndex(index); |
| 20 | |
| 21 | if (Version == 0) { |
| 22 | if (index + 1 < Offsets.size()) { |
| 23 | return Offsets[index + 1] - Offsets[index]; |
| 24 | } |
| 25 | |
| 26 | return Size - (Offsets.back() - Offsets.front()); |
| 27 | } |
| 28 | |
| 29 | return Lengths[index]; |
| 30 | } |
| 31 | |
| 32 | TBlob GetBlob(size_t index) const; |
| 33 |