admin管理员组

文章数量:1352869

So I'm trying to invoke a foreign Java method annotated with @CEntryPoint from a Python application. The input to the method should be a C struct generated from a Python dict and the output, a C struct that's parsed into a Python dict for further handling.

I've failed to find any official docs/resources on passing/returning anything other than primitive types or string. How can I modify the method below such that a complex data type can be passed from Python to Java and back? Additionally, is the approach I've described the faster way of communicating between Python and Java and what could be a better alternative?

@CEntryPoint(name = "call_engine")
public static Output callEngine(IsolateThread thread, Input input) {
    final String id = input.getId();
    final Map<String, String> input.getMap();
    ...
}

本文标签: