BytesConvert extension

Extension to convert Uint8List (Bytes) to other types.

on

Methods

toBigInt() BigInt

Available on Uint8List, provided by the BytesConvert extension

Converts bytes to a BigInt.
toHexString() String

Available on Uint8List, provided by the BytesConvert extension

Converts bytes to a hex string.
toInt({Endianness endianness = Endianness.Big}) int

Available on Uint8List, provided by the BytesConvert extension

Converts bytes to an integer with the specified endianness.
toReverse() Uint8List

Available on Uint8List, provided by the BytesConvert extension

Returns a reversed copy of the bytes.