convert method

  1. @override
List<int> convert(
  1. List<int> input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
List<int> convert(List<int> input) {
  final sink = _Sink(StreamController());
  final output = sink._decode(input, 0, input.length);
  if (sink._state == _State.end) return output;

  throw FormatException('Input ended unexpectedly.', input, input.length);
}