如何在没有指针的情况下使用jnative?

时间:2012-12-16 10:16:29

标签: java native

例如

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

?

0 个答案:

没有答案