ByteUtil class abstract
provide bytes util
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
-
clone(
Uint8List origin) → Uint8List - clone bytes array
-
combine(
{required Uint8List arrayFirst, required Uint8List arraySecond}) → Uint8List -
extract(
{required Uint8List origin, required int indexStart, required int length}) → Uint8List? -
fromBase64(
String base64) → Uint8List - convert base64 string to bytes array
-
fromReadable(
String? readable, {Radix radix = Radix.hex}) → Uint8List? - covnert readable string to bytes array. byte splitted by space or comma, e.g. '0xaa ff 01 02 ,03 ,00 A0' default radix is hex,or specified radix
-
insert(
{required Uint8List origin, required int indexStart, required Uint8List arrayInsert}) → Uint8List -
remove(
{required Uint8List origin, required int indexStart, required int lengthRemove}) → Uint8List -
same(
Uint8List bytes1, Uint8List bytes2) → bool -
toBase64(
Uint8List buffer) → String - convert bytes array to base64 string
-
toReadable(
Uint8List? buffer, {Radix radix = Radix.hex}) → String - convert byytes array to readable string. default radix is hex ,or specified radix