Bytes class Null safety
Utility methods to work with raw bytes data.
Constructors
- Bytes()
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
-
base64UrlDecode(
String b64String) → Uint8List - Decodes url-safe base64 string without padding into bytes.
-
base64UrlEncode(
Uint8List bytes) → String - Encodes bytes to url-safe base64 string without padding.
-
decodeBigInt(
List< int> bytes) → BigInt - Decode a BigInt from bytes in big-endian encoding. Twos compliment. From pointycastle/src/utils
-
encodeBigInt(
BigInt? number) → Uint8List - Encode a BigInt into bytes using big-endian encoding. It encodes the integer to a minimal twos-compliment integer as defined by ASN.1 From pointycastle/src/utils
-
hexEncode(
Uint8List bytes) → String - Encodes bytes to hex
-
memEquals(
Uint8List bytes1, Uint8List bytes2) → bool -
Compares two
Uint8List
s by comparing 8 bytes at a time.