BinaryOps class

Constructors

BinaryOps()

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 Properties

maskBig16 → BigInt
final
maskBig32 → BigInt
final
maskBig64 → BigInt
final
maskBig8 → BigInt
final
maxI128 → BigInt
final
maxInt64 → BigInt
final
maxU128 → BigInt
final
maxU256 → BigInt
final
maxU64 → BigInt
final
minI128 → BigInt
final
minInt64 → BigInt
final

Static Methods

add32(int x, int y) → int
Adds two 32-bit integers and applies a mask to ensure the result fits within 32 bits.
readUint16LE(List<int> array, [int offset = 0]) → int
readUint32BE(List<int> array, [int offset = 0]) → int
Reads a 32-bit unsigned integer value in big-endian byte order from a list.
readUint32LE(List<int> array, [int offset = 0]) → int
Reads a 32-bit unsigned integer value in little-endian byte order from a list.
rotl32(int val, int shift) → int
Rotates a 32-bit integer left by a specified number of bits.
rotr32(int val, int shift) → int
Rotates a 32-bit integer right by a specified number of bits.
shr16(int x) → int
Right-shifts a 32-bit integer by 16 bits and applies a mask to ensure the result fits within 16 bits.
writeUint16BE(int value, List<int> out, [int offset = 0]) → void
writeUint16LE(int value, List<int> out, [int offset = 0]) → void
Writes a 16-bit unsigned integer value in little-endian byte order to a list.
writeUint32BE(int value, List<int> out, [int offset = 0]) → void
Writes a 32-bit unsigned integer value in big-endian byte order to a list.
writeUint32LE(int value, List<int> out, [int offset = 0]) → void
Writes a 32-bit unsigned integer value in little-endian byte order to a list.
writeUint64LE(int value, [List<int>? out, int offset = 0]) → List<int>
Writes a 64-bit unsigned integer value in little-endian byte order to a list.
zero(List<int> array) → void
Sets all elements in a list to zero.

Constants

mask8 → const int
A constant representing an 8-bit mask with all bits set to 1.
mask13 → const int
A constant representing a 13-bit mask with all relevant bits set to 1.
mask16 → const int
A constant representing a 16-bit mask with all bits set to 1.
mask24 → const int
A constant representing a 32-bit mask with all bits set to 1.
mask32 → const int
A constant representing a 32-bit mask with all bits set to 1.
maxInt32 → const int
maxUint32 → const int
minInt32 → const int
safeInt → const int
safeUint → const int