Class ValueGetter

    • Field Detail

      • endian

        public final byte endian
    • Constructor Detail

      • ValueGetter

        public ValueGetter​(ByteGetter data,
                           byte endian)
    • Method Detail

      • getByte

        public byte getByte()
        Get a byte, should be equal for all endians
        Returns:
        the byte value
      • getInt

        public int getInt()
      • getLong

        public long getLong()
      • getInt

        protected abstract int getInt​(int index)
        Get a 32-Bit integer
        Parameters:
        index - the index to get the value from
        Returns:
        the int value
      • getLong

        protected abstract long getLong​(int index)
        Get a long value. This is not needed directly, but as a nice side-effect from GetDouble.
        Parameters:
        index - the index to get the value from
        Returns:
        the long value
      • getDouble

        public double getDouble()
        Get a double.
        Returns:
        the double value