convert method

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

Converts input and returns the result of the conversion.

Implementation

@override
Object? convert(List<int> input) {
  _input = ListQueue.from(input);
  try {
    return _readObject();
  } catch (e) {
    if (e is FormatException) {
      rethrow;
    } else if (e is StateError) {
      throw FormatException('Malformed rencode ', input);
    } else {
      rethrow;
    }
  }
}