ByteArray class

字节数组

Constructors

ByteArray(Uint8List array)
ByteArray.combine1(Uint8List array, int value)
合并某个值到字节数组,value放到最后
ByteArray.combine2(int value, Uint8List array)
合并某个值到数据,value放到最前
ByteArray.combineArrays(Uint8List array1, Uint8List array2)
合并两个字节
ByteArray.fromByte(int value)
从字节数组中提取数值

Properties

array List<Byte>
bytes in List
no setter
bytes Uint8List
bytes in UInt8List
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

append(int value) Uint8List
添加某个值到字节数组
appendArray(Uint8List array) Uint8List
insert({required int indexStart, required int value}) Uint8List
insertArray({required int indexStart, required Uint8List arrayInsert}) Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove({required int indexStart, required int lengthRemove}) Uint8List
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited