Class RangeDecode

java.lang.Object
htsjdk.samtools.cram.compression.range.RangeDecode

public class RangeDecode extends Object
Decoder for the CRAM 3.1 arithmetic (range) codec. This is an adaptive, byte-wise compression codec for use with data streams that have a varying byte/symbol probability distribution. Significantly more expensive than rAns.
  • Constructor Details

    • RangeDecode

      public RangeDecode()
  • Method Details

    • uncompress

      public ByteBuffer uncompress(ByteBuffer inBuffer)
      Decompress data that was compressed with the CRAM 3.1 arithmetic (range) codec. The input buffer is consumed (position advanced to limit) and the returned buffer is rewound.
      Parameters:
      inBuffer - compressed input data (position to limit is decompressed)
      Returns:
      a rewound ByteBuffer containing the decompressed data