例如
C ++代码
extern "C" __declspec(dllexport) void __cdecl test(unsigned char *inputBytes,int inputLEN, const unsigned char **outputBytes,int &outputLEN) {............................}
C#NATIVE
[DllImport("xxx.dll", EntryPoint = "test", CallingConvention = CallingConvention.Cdecl)]
private static extern void test(IntPtr inputBytes, int inputLEN,out IntPtr outputBytes,out int outputLEN);
Java JNative
?