ByteUtils class

Utility class to play with raw bytes

Constructors

ByteUtils()

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

bigIntToBytes(BigInt? value, int length, {dynamic endianness = Endianness.Big}) Uint8List
boolToInt(bool value) int
bytesEqual(Uint8List? bytes1, Uint8List? bytes2) bool
bytesToBigInt(Uint8List bytes, {Endianness endianness = Endianness.Big}) BigInt
bytesToHexString(Uint8List? bytes) String
Convert bytes to HexString, return a string of length 0 when bytes is null/of length 0
bytesToInt(Uint8List? bytes, {Endianness endianness = Endianness.Big}) int
byteToHexString(int value) String
hexStringToBytes(String hex) Uint8List
intToBytes(int value, int length, {Endianness endianness = Endianness.Big}) Uint8List
intToHexString(int value, int length, {Endianness endianness = Endianness.Big}) String