IntegerByteListStreamTransformer class

Transform a stream of bytes lists into an integer stream

Constructors

IntegerByteListStreamTransformer(Endian endian, IntType type, {bool sync = false, bool cancelOnError = false})
A class that transforms a stream of byte lists into a stream of the integer equivalents for the bytes. This is useful if your stream contains ints that are less than 64 bits or you need to control the endianness of the bytes.
IntegerByteListStreamTransformer.broadcast(Endian endian, IntType type, {bool sync = false, bool cancelOnError = false})
A class that transforms a stream of byte lists into a broadcast stream of the integer equivalents for the bytes. This is useful if your stream contains ints that are less than 64 bits or you need to control the endianness of the bytes.

Properties

bytesPerElement int
finalinherited
cancelOnError bool
finalinherited
endian Endian
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type IntType
final

Methods

bind(Stream<List<int>> stream) Stream<int>
Transforms the provided stream.
inherited
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onData(List<int> data) → void
Receive new data from the parent stream
inherited
toString() String
A string representation of this object.
inherited

Operators

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