StreamSinkWriter class

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.
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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