Packages

class Unsigned16 extends AnyRef

An unsigned 16 byte integer class that supports addition, multiplication, and left shifts.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Unsigned16
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Unsigned16(s: String)

    Parse a hex string

    Parse a hex string

    s

    the hex string

  2. new Unsigned16(other: Unsigned16)
  3. new Unsigned16(l: Long)
  4. new Unsigned16()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(b: Unsigned16): Unit

    Add the given number into the current number.

    Add the given number into the current number.

    b

    the other number

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(o: Any): Boolean
    Definition Classes
    Unsigned16 → AnyRef → Any
    Annotations
    @Override()
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def getByte(b: Int): Byte

    Get a given byte from the number.

    Get a given byte from the number.

    b

    the byte to get with 0 meaning the most significant byte

    returns

    the byte or 0 if b is outside of 0..15

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getHexDigit(p: Int): Char

    Get the hexadecimal digit at the given position.

    Get the hexadecimal digit at the given position.

    p

    the digit position to get with 0 meaning the most significant

    returns

    the character or '0' if p is outside of 0..31

  13. def getHigh8(): Long

    Get the high 8 bytes as a long.

  14. def getLow8(): Long

    Get the low 8 bytes as a long.

  15. def hashCode(): Int
    Definition Classes
    Unsigned16 → AnyRef → Any
    Annotations
    @Override()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def set(l: Long): Unit

    Set the number to a given long.

    Set the number to a given long.

    l

    the new value, which is treated as an unsigned number

  21. def set(s: String): Unit

    Set the number from a hex string

    Set the number from a hex string

    s

    the number in hexadecimal

    Exceptions thrown

    NumberFormatException if the number is invalid

  22. def shiftLeft(bits: Int): Unit

    Shift the number a given number of bit positions.

    Shift the number a given number of bit positions. The number is the low order bits of the result.

    bits

    the bit positions to shift by

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String

    Return the number as a hex string.

    Return the number as a hex string.

    Definition Classes
    Unsigned16 → AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped