Asynchronously closes the input stream.
@override Future<void> close() async { buffer = <int>[]; _length = 0; }