Package htsjdk.samtools.cram.encoding
Class GolombIntegerEncoding
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.GolombIntegerEncoding
-
-
Constructor Summary
Constructors Constructor Description GolombIntegerEncoding()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BitCodec<Integer>buildCodec(Map<Integer,InputStream> inputMap, Map<Integer,ExposedByteArrayOutputStream> outputMap)voidfromByteArray(byte[] data)EncodingIDid()byte[]toByteArray()static EncodingParamstoParam(int m)static EncodingParamstoParam(int m, int offset)
-
-
-
Method Detail
-
id
public EncodingID id()
-
toParam
public static EncodingParams toParam(int m)
-
toParam
public static EncodingParams toParam(int m, int offset)
-
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArrayin interfaceEncoding<Integer>
-
fromByteArray
public void fromByteArray(byte[] data)
- Specified by:
fromByteArrayin interfaceEncoding<Integer>
-
buildCodec
public BitCodec<Integer> buildCodec(Map<Integer,InputStream> inputMap, Map<Integer,ExposedByteArrayOutputStream> outputMap)
- Specified by:
buildCodecin interfaceEncoding<Integer>
-
-