stream_data_reader library

Classes

BaseDataReader
ByteBufferReader
DataFormatter
Data formatter A class can help you convert byte data to base type or vice versa.
DataReader
Normal Data Reader
StreamReader<T>
Use for get stream element by read StreamReader can get one element from stream by read method

Functions

transformByteStream<T>(Stream<List<int>> rawStream, ByteStreamTransformer<T> builder) Stream<T>
Byte stream builder Use DataReader to handle byte data, and transform to specified type data For example:
transformStream<T, E>(Stream<T> rawStream, StreamTransformer<T, E> builder) Stream<E>
Byte stream builder Use DataReader to handle byte data, and transform to specified type data For example:

Typedefs

ByteStreamTransformer<T> = FutureOr<T> Function(DataReader reader)
StreamTransformer<T, E> = FutureOr<E> Function(StreamReader<T> reader)