| 33 | |
| 34 | template <typename T> |
| 35 | TArrayRef<const T> GetRegion(size_t index) const { |
| 36 | size_t len = GetBlockLen(index); |
| 37 | Y_ENSURE(len % sizeof(T) == 0, "wrong data padding"); |
| 38 | return TArrayRef<const T>(reinterpret_cast<const T*>(GetBlock(index)), len / sizeof(T)); |
| 39 | } |
| 40 | |
| 41 | inline size_t GetBlocksCount() const { |
| 42 | return Offsets.size(); |
nothing calls this directly
no test coverage detected