Uint8List encodeFunction(String name, List<Object> args) { final f = findFunctionByName(name); if (f == null) { throw Exception('Function does not exist'); } return f.encode(args); }