smtlib.common

Hexadecimal

class Hexadecimal extends AnyRef

Hexadecimal number value

This provides a type safe way to manipulate hexadecimal number. The main constructor is private, but the companion object provides a number of way to produce an Hexadecimal representation, from a string or from any integer type.

An hexadecimal number value really depends on the context in which it is considered. It can always be interpreted as an unsigned, infinite precision integer, or as a negative number in two-complement. A value like 'F' could either be 16 or -1, depending if it is interpreted as an unsigned value on an integral type of more than 4 bits, or if it is sign extended in the corresponding integral representation. You should consider the Hexadecimal as a concise syntax to represent a sequence of bytes, with convenient methods to convert to and from integers, and not as an actual number.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hexadecimal
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(that: Any): Boolean

    Definition Classes
    Hexadecimal → AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    Hexadecimal → AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. val repr: String

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toBinary: List[Boolean]

  20. def toInt: Int

    extract the Int represented by this hexadecimal

    extract the Int represented by this hexadecimal

    Returns the Int value represented by this hexadecimal number. Assumes the hexadecimal represents 32 bits, by padding 0 in front if necessary, and by ignoring extra digits.

    It returns the Int encoded with the exact 32 bits, meaning it could return negative number.

  21. def toString(): String

    Definition Classes
    Hexadecimal → AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped