Uint8ListDataExtension extension
Data Extension for Uint8List.
- on
Properties
- bits → String
-
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as String of bits.no setter - bits8 → String
-
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as 8 bits String.no setter - bits16 → String
-
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as 16 bits String.no setter - bits32 → String
-
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as 32 bits String.no setter - bits64 → String
-
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as 64 bits String.no setter
Methods
-
asByteData(
) → ByteData -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns a ByteData ofthis
buffer with the respective offset and length. -
bitsPadded(
int width) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns this bytes as String of bits of lengthwidth
. -
bytesHashCode(
) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns a hashcode of this bytes. -
convertToUint16List(
[Endian endian = Endian.big]) → Uint16List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this instance to an Uint16List. -
convertToUint32List(
[Endian endian = Endian.big]) → Uint32List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this instance to an Uint32List. -
convertToUint64List(
[Endian endian = Endian.big]) → Uint64List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this instance to an Uint64List. -
copy(
) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns a copy ofthis
instance. -
copyAsUnmodifiable(
) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns an unmodifiable copy ofthis
instance. -
equals(
Uint8List other) → bool -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returnstrue
ofother
elements are equals. -
getInt16(
[int byteOffset = 0]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aInt16
atbyteOffset
of this bytes buffer (reads 2 bytes). -
getInt32(
[int byteOffset = 0]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aInt32
atbyteOffset
of this bytes buffer (reads 4 bytes). -
getInt64(
[int byteOffset = 0]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aInt64
atbyteOffset
of this bytes buffer (reads 8 bytes). -
getInt8(
[int byteOffset = 0]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aInt8
atbyteOffset
of this bytes buffer (reads 1 byte). -
getUint16(
[int byteOffset = 0, Endian endian = Endian.big]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aUint16
atbyteOffset
of this bytes buffer (reads 2 bytes). -
getUint32(
[int byteOffset = 0, Endian endian = Endian.big]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aUint32
atbyteOffset
of this bytes buffer (reads 4 bytes). -
getUint64(
[int byteOffset = 0, Endian endian = Endian.big]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aUint64
atbyteOffset
of this bytes buffer (reads 8 bytes). -
getUint8(
[int byteOffset = 0]) → int -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returns aUint8
atbyteOffset
of this bytes buffer (reads 1 byte). -
group(
Uint8List other) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Groupsthis
instance withother
. -
merge(
Uint8List other, int merger(int a, int b, int index)) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Mergesthis
instance withother
using themerger
Function for each byte. -
readBigInt(
[int offset = 0]) → MapEntry< int, BigInt> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads a BigInt atoffset
. SeeBigIntExtension.toBytes
for encoding description. -
readBlock16(
[int offset = 0]) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads a bytes block, using a Uint16 prefix (2 bytes of length prefix). -
readBlock32(
[int offset = 0]) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads a bytes block, using a Uint32 prefix (4 bytes of length prefix). -
readBytes(
[int offset = 0, int? length]) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads bytes (Uint8List) oflength
atoffset
. -
readDateTime(
[int offset = 0]) → DateTime -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads a DateTime atoffset
. It's encoded as a Uint64 of DateTime.millisecondsSinceEpoch. -
readWritables<
W extends Writable> (W reader(BytesBuffer input)) → List< W> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Reads a list of Writable using thereader
function to instantiate theW
elements. -
reverseBytes(
) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Returnsthis
instance in a reversed order. -
setInt16(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aInt16
atbyteOffset
. -
setInt32(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aInt32
atbyteOffset
. -
setInt64(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aInt64
atbyteOffset
. -
setInt8(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aInt8
atbyteOffset
. -
setUint16(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aUint16
atbyteOffset
. -
setUint32(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aUint32
atbyteOffset
. -
setUint64(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aUint64
atbyteOffset
. -
setUint8(
int n, [int byteOffset = 0]) → void -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Setsn
as aUint8
atbyteOffset
. -
subView(
[int offset = 0, int? length]) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
A subUint8List
view of region. -
subViewTail(
int tailLength) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
A subUint8List
view of the tail. -
tail(
int length) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
The tail of this Uint8List instance. -
toBigInt(
{Endian endian = Endian.big}) → BigInt -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Convertsthis
bytes to a BigInt (through toHex). -
toBytesBuffer(
{int offset = 0, int? length, int? bufferLength, bool copyBuffer = false}) → BytesBuffer -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Instantiates a BytesBuffer from this Uint8List instance. -
toHex(
{Endian endian = Endian.big}) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Convertsthis
bytes to HEX. -
toHexBigEndian(
) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Convertsthis
bytes to HEX (big-endian). -
toHexLittleEndian(
) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Convertsthis
bytes to HEX (little-endian). -
toListOfInt16(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofInt16
. -
toListOfInt32(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofInt32
. -
toListOfInt64(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofInt64
. -
toListOfInt8(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofInt8
. -
toListOfUint16(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofUint16
. -
toListOfUint32(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofUint32
. -
toListOfUint64(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofUint64
. -
toListOfUint8(
) → List< int> -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Converts this bytes to a List ofUint8
. -
toStringLatin1(
) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Decodesthis
bytes as aLATIN-1
String. -
toStringUTF8(
) → String -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Decodesthis
bytes as aUTF-8
String.
Operators
-
operator &(
Uint8List other) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Mergesthis
instance withother
using theAND
logical operator. -
operator ^(
Uint8List other) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Mergesthis
instance withother
using theXOR
logical operator. -
operator |(
Uint8List other) → Uint8List -
Available on Uint8List, provided by the Uint8ListDataExtension extension
Mergesthis
instance withother
using theOR
logical operator.