class Unsigned16 extends AnyRef
An unsigned 16 byte integer class that supports addition, multiplication, and left shifts.
- Alphabetic
- By Inheritance
- Unsigned16
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Unsigned16(s: String)
Parse a hex string
Parse a hex string
- s
the hex string
- new Unsigned16(other: Unsigned16)
- new Unsigned16(l: Long)
- new Unsigned16()
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(o: Any): Boolean
- Definition Classes
- Unsigned16 → AnyRef → Any
- Annotations
- @Override()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
getHigh8(): Long
Get the high 8 bytes as a long.
-
def
getLow8(): Long
Get the low 8 bytes as a long.
-
def
hashCode(): Int
- Definition Classes
- Unsigned16 → AnyRef → Any
- Annotations
- @Override()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
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
NumberFormatExceptionif the number is invalid
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Return the number as a hex string.
Return the number as a hex string.
- Definition Classes
- Unsigned16 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()