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. It uses the second parameter as an indicator whether to convert the integer value into a signed or unsigned binary value. This parameter is needed, because not all values in the context of a CPU can be treated as signed binary values. For example a memory address can never be a negative value. Therefore, such a binary value should always be considered unsigned. Depending on the second parameter, the range of allowed values is slightly different. This method throws an error, if the value to be converted is too large or too small.
The number to initialize the new instances value with.
A new instance.
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, when 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.
Converts the binary value into a string representation.
This class represents a byte sized binary value.
Author
Erik Burmester erik.burmester@nextbeam.net