Static
Readonly
MAX_Static
Readonly
MAX_Static
Readonly
MAX_Static
Readonly
NUMBER_Protected
_An array of bits, representing a binary value.
Accessor for reading the binary value.
Static
fromThis method creates an instance from the given number. Throws an error, if the given number is not an integer.
The number to initialize the new instances value with.
A new instance.
This method checks whethter the current binary value is equal to the given one or not. For comparison, both binary values are converted to strings. Conversion presarves the order of items, which is important for the comparison.
The binary value to compare to.
True, if both binary values are identical, false otherwise.
This method returns the last bits of the binary value. The number of bits returned depends on the argument passed.
This method returns the least significant byte of this value.
The least significant byte.
This method returns the first bits of the binary value. The number of bits returned depends on the argument passed.
This method returns the least significant byte of this value.
The least significant byte.
This method checks whether the current binary value is greater than the given one.
The binary value to compare to.
True, if this value is greater than the one compared to, false otherwise.
This method checks whether this binary value represents a negative number.
True, if the most significant bit is set to 1, false otherwise.
This method checks whether the current binary value is not a binary zero or not.
True, if the binary value is not zero, false otherwise.
This method checks whether this binary value represents a positive number.
True, if the most significant bit is set to 0, false otherwise.
This method checks whether the current binary value is smaller than the given one.
The binary value to compare to.
True, if this value is less than the one compared to, false otherwise.
This method checks whether the current binary value is a binary zero or not.
True, if the binary value is zero, false otherwise.
Converts the binary value into a string representation.
Optional
groupBytes: boolean = falseIf set to true, the string representation of the binary value is grouped into bytes.
The string representation of the binary value.
This class represents a generic doubleword sized binary memory address.
Author
Erik Burmester erik.burmester@nextbeam.net