Packages

o

fm.common

BitUtils

object BitUtils

Source
BitUtils.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getLower(int: Int): Short

    Get the lower 16 bits of the int

  10. def getLower(long: Long): Int

    Get the lower 32 bits of the long

  11. def getLower24Bits(int: Int): Int

    Get the lower 24 bits of the int

  12. def getLower8Bits(int: Int): Short

    Get the lower 8 bits of the int

  13. def getUpper(int: Int): Short

    Get the upper 16 bits of the int

  14. def getUpper(long: Long): Int

    Get the upper 32 bits of the long

  15. def getUpper24Bits(int: Int): Int

    Get the upper 24 bits of the int

  16. def getUpper8Bits(int: Int): Short

    Get the upper 8 bits of the int

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def makeInt(a: Short, b: Short): Int
  20. def makeIntWithLower24Bits(a: Short, b: Int): Int

    Makes an int that combines an upper 8 bits (from a short) with the lower 24 bits (from an int)

    Makes an int that combines an upper 8 bits (from a short) with the lower 24 bits (from an int)

    a

    The upper 8 bits

    b

    The lower 24 bits

    returns

    The combined int

  21. def makeIntWithUpper24Bits(a: Int, b: Short): Int

    Makes an int that combines an upper 24 bits (from an int) with the lower 8 bits (from a short)

    Makes an int that combines an upper 24 bits (from an int) with the lower 8 bits (from a short)

    a

    The upper 24 bits

    b

    The lower 8 bits

    returns

    The combined int

  22. def makeLong(a: Int, b: Int): Long

    Create a long out of 2 ints such that the first int is the upper 32 bits of the long and the second int is the lower 32 bits of the long.

    Create a long out of 2 ints such that the first int is the upper 32 bits of the long and the second int is the lower 32 bits of the long.

    [a - upper 32 bits][b - lower 32 bits]

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def splitInt(int: Int): (Short, Short)

    Split an int into 2 shorts (the reverse of makeInt())

  27. def splitLong(long: Long): (Int, Int)

    Split a long into 2 ints (the reverse of makeLong())

  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped