Hi I have been working to create a wrapper for dll of a third party C library to be used in C#.
Suppose I have C function from the library:
void functionA(byte data[16], byte buffer[8]);
Is it correct for the following code to be used to wrap the code above ?:
[DllImport("C.dll",CallingConvention=CallingConvention.Cdecl)]
static extern void functionA(byte[] data, byte[] buffer)