stream_data_reader

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

stream data reader

StreamReader #
A library help you control stream, like that fetch data when you read.
Import #
add in pubspec.yaml, like this:
stream_reader: ^1.0.7
copied to clipboard
Usage #

Stream<List<int>> testStream() async* {
yield [0x00, 0x00, 0x01, 0x00];
yield [0x00, 0x00, 0x00, 0x01];
}

void main() async {
final dataReader = DataReader(ByteBufferReader(StreamReader(testStream())));
print(await dataReader.readInt());
transformStream(transformByteStream(dataReader.releaseStream(), (reader) {
return reader.readOneByte();
}), (reader) {
return reader.read();
}).listen(print);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.