Class UInt32

    • Constructor Detail

      • UInt32

        public UInt32()
        Initializes this value with zero.
    • Method Detail

      • reset

        protected void reset()
        Resets this value to zero.
      • floatValue

        public float floatValue()
        Returns this value interpreted as the bit representation of a float value. This is NOT to be confused with a type conversion of an int value to float!
        Overrides:
        floatValue in class UnsignedInteger
        Returns:
        this value interpreted as the bit representation of a float value
        See Also:
        Float.intBitsToFloat(int)
      • doubleValue

        public double doubleValue()
        Returns this value interpreted as the bit representation of a float value. This is NOT to be confused with a type conversion of an int value to double!
        Overrides:
        doubleValue in class UnsignedInteger
        Returns:
        the same value as floatValue()
        See Also:
        Float.intBitsToFloat(int), floatValue()
      • getAsVersionString

        public String getAsVersionString()
        Returns this value as version string. Example: "2.3" (without the quotes)
        Returns:
        this value as version string
      • readUnsigned32

        public void readUnsigned32​(RandomAccessData randomAccessData)
                            throws RandomAccessDataException
        Sets this value by reading a little endian unsigned 32 bit value from the given data.
        Parameters:
        randomAccessData - the data source to read from
        Throws:
        RandomAccessDataException - if RandomAccessData source is invalid
      • findUnsigned32

        public boolean findUnsigned32​(RandomAccessData randomAccessData,
                                      long unsignedInteger32)
                               throws RandomAccessDataException
        Searches the data source for a 32 bit value. The data source offset will point to the first byte behind the found value by calling RandomAccessData.getCurrentOffset().
        Parameters:
        randomAccessData - the data source to search in
        unsignedInteger32 - the unsigned 32 bit integer value to search for
        Returns:
        true, iff the value was found
        Throws:
        RandomAccessDataException - if an error occurs during data access
        NullPointerException - if randomAccessData is null
        Since:
        2.0