We need to integrate some C file functions from java android code. Each c function accepts some raw binary data (byte stream) as input parameter, processes and returns pointer to c struct (union struct) that is defined in c file. Is it possible to create some java structure and bind it to c struct? Currently, extraction of returned data (returned c structs) is performed extracting byte by byte in java code, not by accessing struct members directly.
Share
I’m not sure of the specifics, but I think the Java Native Interface is your best bet.