StreamSinkWriter class Null safety

Utility class for writing various data types to a Sink.

Constructors

StreamSinkWriter(Sink<List<int>> _targetSink)

Properties

bytesWritten int
Keeps track of how many bytes have been written so far.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeBytes(List<int> data) → void
Writes the bytes in data to the sink.
writeString(String string) → void
Writes ASCII string to the sink, replacing any non-ASCII characters with whitespace.
writeUint16(int number) → void
Writes number as Uint16 to the sink. If the number is outside valid Uint16 range, it is capped at the appropriate boundary before writing.
writeUint8(int number) → void
Writes number as Uint8 to the sink. If the number is outside valid Uint8 range, it is capped at the appropriate boundary before writing.

Operators

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