Package htsjdk.samtools.cram.io
Class LTF8
- java.lang.Object
-
- htsjdk.samtools.cram.io.LTF8
-
-
Constructor Summary
Constructors Constructor Description LTF8()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
readUnsignedLTF8(InputStream inputStream)
Reads an unsigned long value from the input stream.static int
writeUnsignedLTF8(long value, OutputStream outputStream)
Writes an unsigned long value to the output stream.
-
-
-
Method Detail
-
readUnsignedLTF8
public static long readUnsignedLTF8(InputStream inputStream)
Reads an unsigned long value from the input stream. The sign bit should be interpreted just as other bits in the value.- Parameters:
inputStream
- input stream to be read from- Returns:
- value encoded in the stream as LTF8
-
writeUnsignedLTF8
public static int writeUnsignedLTF8(long value, OutputStream outputStream)
Writes an unsigned long value to the output stream. The sign bit is interpreted just as other bits in the value.- Parameters:
value
- the value to be writtenoutputStream
- the output stream to write to- Returns:
- the number of bits written
-
-