add<T> method

void add<T>(
  1. ConstructType<T> type,
  2. Uint8List buf
)

Implementation

void add<T>(ConstructType<T> type, Uint8List buf) {
  final idx = _typs.length;
  _idx.putIfAbsent(type.name, () => idx);
  _typs.add(buf);
}