BinaryOps class
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
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.