Package ghidra.util

Class NumberUtil

java.lang.Object
ghidra.util.NumberUtil

public class NumberUtil extends Object
  • Field Details

  • Constructor Details

    • NumberUtil

      public NumberUtil()
  • Method Details

    • getUnsignedValue

      public static Number getUnsignedValue(Number value)
      Get the unsigned value of a number.
      Parameters:
      value - the value stored in a signed number
      Returns:
      the unsigned value of the number
    • equalsMaxUnsignedValue

      public static boolean equalsMaxUnsignedValue(Number value)
      Compare to the maximum unsigned value that the current number is holding.
      Parameters:
      value - the value stored in a signed number
      Returns:
      true if equal to the maximum and false otherwise