BytesReader class

Constructors

BytesReader.fromIntList(List<int> data)
Create a BytesReader from List<int>
BytesReader.fromUint8List(Uint8List data)
Create a BytesReader from Uint8List

Properties

data Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
position int
no setter
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
readAsString(int length, {Converter<List<int>, String>? encoder}) String
read bytes and decode as string Utf8Decoder as the default decoder
readBool([bool strict = false]) bool
read bool, represented by a single byte if the byte is not 1, it would be false if in strict mode, any value other than 1 or 0 will throw
readByte() int
read one byte from data
readBytes(int length) Uint8List
read bytes from data.
readInt([IntType type = IntType.int32, Endian? endian]) int
read int out of bytes defaults to int32 with the host's endian
readString() String
read bytes_io formatted string
readUntil(int byte) Uint8List
read bytes until a specific byte being seen the specific byte is not included
seek(int position) → void
seek current pointer to an absolute position
seekRelative(int position) → void
seek current pointer to a position relative to the current position
toString() String
A string representation of this object.
inherited

Operators

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