BinaryHelper class

Helper class for binary operations

Constructors

BinaryHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

binaryOf(int n) String
Returns a binary string of bits representing n.
bottomBits(int n, int bits) int
Returns the bottom bits bits from n.
isSet(int n, int bitPosition) bool
Returns true if bit is set in n at bitPosition.
set(int n, int bit) int
Sets a bit in n at bit position bit.
setBottomBits(int? numBits) int
Returns an int with the given numBits set at the bottom.
unset(int n, int bit) int
Unsets a bit in n at bit position bit.