Packages

sealed abstract class Number[T <: Number[T]] extends NetworkElement with Ordered[T] with BasicArithmetic[T]

This abstract class is meant to represent a signed and unsigned number in C This is useful for dealing with codebases/protocols that rely on C's unsigned integer types

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Number
  2. BasicArithmetic
  3. Ordered
  4. Comparable
  5. NetworkElement
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type A = BigInt

Abstract Value Members

  1. abstract def andMask: BigInt

    This is used to determine the valid amount of bytes in a number for instance a UInt8 has an andMask of 0xff a UInt32 has an andMask of 0xffffffff

  2. abstract def apply: (A) => T

    Factory function to create the underlying T, for instance a UInt32.

    Factory function to create the underlying T, for instance a UInt32. This method must check if the parameter is in the required range.

  3. abstract def bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    NetworkElement
  4. abstract def isSigned: Boolean
  5. abstract def underlying: A

    The underlying scala number used to to hold the number

    The underlying scala number used to to hold the number

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(num: T): T
  4. def *(num: T): T
    Definition Classes
    NumberBasicArithmetic
  5. def *(factor: BigInt): T
    Definition Classes
    NumberBasicArithmetic
  6. def +(num: T): T
    Definition Classes
    NumberBasicArithmetic
  7. def -(num: T): T
    Definition Classes
    NumberBasicArithmetic
  8. def /(num: T): T
  9. def <(that: T): Boolean
    Definition Classes
    Ordered
  10. def <<(num: T): T
  11. def <<(num: Int): T
  12. def <=(that: T): Boolean
    Definition Classes
    Ordered
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def >(that: T): Boolean
    Definition Classes
    Ordered
  15. def >=(that: T): Boolean
    Definition Classes
    Ordered
  16. def >>(num: T): T
  17. def >>(num: Int): T
  18. def ^(num: Long): T
  19. def ^(num: T): T
  20. def addSafe(n: T): Try[T]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the + operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  23. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  24. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  25. def compare(num: T): Int
    Definition Classes
    Number → Ordered
  26. def compareTo(that: T): Int
    Definition Classes
    Ordered → Comparable
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  30. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  33. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def multiplySafe(factor: T): Try[T]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  36. def multiplySafe(factor: BigInt): Try[T]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def subtractSafe(n: T): Try[T]

    Some classes have restrictions on lower bounds for it's underlying value.

    Some classes have restrictions on lower bounds for it's underlying value. This might cause the - operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toBigInt: BigInt
  43. def toByte: Byte
  44. def toInt: Int
  45. def toLong: Long
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. def truncatedBytes: ByteVector
  48. def unary_-: T
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def xor(num: Long): T
  53. def xor(num: T): T
  54. def |(num: T): T

Inherited from BasicArithmetic[T]

Inherited from Ordered[T]

Inherited from Comparable[T]

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped