decodeValue method

  1. @override
List<T> decodeValue(
  1. Pipe x,
  2. CType t
)
override

Implementation

@override
List<T> decodeValue(Pipe x, CType t) {
  final vec = checkType(t);
  if (vec is VecClass) {
    final len = lebDecode(x).toInt();
    final rets = <T>[];
    for (int i = 0; i < len; i++) {
      rets.add(_type.decodeValue(x, vec.type));
    }
    return rets;
  }
  throw TypeError();
}