PDUtil class

Constructors

PDUtil()

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

binaryToHex(String binary) String
Converts a binary string into a hex string
bytesToInt(List<int> byteArray) int
Get byte array as an integer
bytesToUtf8String(Uint8List bytes) String
Convert byte array to string utf-8
byteToHex(List<int> bytes) String
Converts a Uint8List to a hex string
concat(List<Uint8List?> bytes) Uint8List
Concatenates one or more byte arrays
decodeBigInt(List<int> bytes, {Endian endian = Endian.little}) BigInt
Decode a BigInt from bytes using specified endianness
decodeLength(Uint8List lengthBytes) int
encodeBigInt(BigInt number, {Endian endian = Endian.little}) Uint8List
Encode a BigInt into bytes using specified endianness.
encodeLength(int length) Uint8List
escapeRegex(dynamic string) String
https://github.com/MauroJr/escape-regex/blob/master/index.js
hexToBinary(String hex) String
Converts a hex string to a binary string
hexToBytes(String hex) Uint8List
Converts a hex string to a Uint8List
hmacMd5(Uint8List data, Uint8List key) Uint8List
intToBytes(int inNum) Uint8List
Get integer as byte array
stringToBytesUtf8(String str) Uint8List
Convert string to byte array
switchEndian(String hexString) String
Switch endianness of a hex string