object BitUtils
- Source
- BitUtils.scala
- Alphabetic
- By Inheritance
- BitUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getLower(int: Int): Short
Get the lower 16 bits of the int
- def getLower(long: Long): Int
Get the lower 32 bits of the long
- def getLower24Bits(int: Int): Int
Get the lower 24 bits of the int
- def getLower8Bits(int: Int): Short
Get the lower 8 bits of the int
- def getUpper(int: Int): Short
Get the upper 16 bits of the int
- def getUpper(long: Long): Int
Get the upper 32 bits of the long
- def getUpper24Bits(int: Int): Int
Get the upper 24 bits of the int
- def getUpper8Bits(int: Int): Short
Get the upper 8 bits of the int
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeInt(a: Short, b: Short): Int
- 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
- 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
- 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]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def splitInt(int: Int): (Short, Short)
Split an int into 2 shorts (the reverse of makeInt())
- def splitLong(long: Long): (Int, Int)
Split a long into 2 ints (the reverse of makeLong())
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])