Class IntDecoder
java.lang.Object
com.compomics.util.experiment.io.mass_spectrometry.mzml.IntDecoder
public class IntDecoder extends Object
Decodes ints from the half bytes in bytes. Lossless reverse of encodeInt.
- Author:
- fgonzalez, jteleman
-
Constructor Summary
Constructors Constructor Description IntDecoder(byte[] bytes, int pos)
Constructor. -
Method Summary
Modifier and Type Method Description long
next()
Returns the next value.
-
Constructor Details
-
IntDecoder
public IntDecoder(byte[] bytes, int pos)Constructor.- Parameters:
bytes
- the bytespos
- the position
-
-
Method Details
-
next
public long next()Returns the next value.- Returns:
- the next value
-