I have a dll with following signature in C++. It is working in c++;
void Decompress(unsigned char *in,int in_len,unsigned char * out,
unsigned *o_len,int *e);
Description of parameter
- *in : It is byte array passed to function.
- in_len : Length of bytes in first parameter.
- *out : This would be the output as byte array.
- *o_len : No of bytes in third parameter
- *e : Error code returned
How c开发者_Go百科an I call it from c#?
What would be the P/Invoke declaration?
static extern void Decompress(
byte[] input,
int in_len,
byte[] output,
ref int o_len,
out int e);
精彩评论