BytesReader class
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