Interface DfsPackFileMidx.VOffsetCalculator

Enclosing class:
DfsPackFileMidx

protected static interface DfsPackFileMidx.VOffsetCalculator
Translates from midx-offset (considering all packs concatenated in midx order) to (pack, offset) pair. This covers the whole midx chain.
Implementation Note:
implementations take care of the encoding and chaining offset calculators.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(long voffset)
    Return the pair of pack and offset from a midx offset
    long
    Max offset for this DfsPackFileMidx
  • Method Details

    • decode

      DfsPackFileMidx.DfsPackOffset decode(long voffset)
      Return the pair of pack and offset from a midx offset
      Parameters:
      voffset - an offset in the midx chain
      Returns:
      the corresponding pack and offset pair
    • getMaxOffset

      long getMaxOffset()
      Max offset for this DfsPackFileMidx
      Returns:
      max offset for this pack (including its parents)