deserialize static method

EntryFunction deserialize(
  1. Deserializer deserializer
)

Implementation

static EntryFunction deserialize(Deserializer deserializer) {
  final moduleName = ModuleId.deserialize(deserializer);
  final functionName = Identifier.deserialize(deserializer);
  final typeArgs = deserializeVector<TypeTag>(deserializer, TypeTag.deserialize);

  final length = deserializer.deserializeUleb128AsU32();
  final list = <Uint8List>[];
  for (int i = 0; i < length; i += 1) {
    list.add(deserializer.deserializeBytes());
  }

  final args = list;
  return EntryFunction(moduleName, functionName, typeArgs, args);
}