代码之家  ›  专栏  ›  技术社区  ›  Manjoor

C:-P/调用签名

  •  3
  • Manjoor  · 技术社区  · 15 年前

    我有一个在C++中有以下签名的DLL。它是在C++中工作的;

        void Decompress(unsigned char *in,int in_len,unsigned char * out,
    unsigned *o_len,int *e);
    

    参数说明

    1. *in :它是传递给的字节数组 功能。
    2. 英伦 :第一个参数中的字节长度。
    3. *出 :这将作为字节数组输出。
    4. 奥奥伦 :第三个参数中的字节数
    5. *e :返回错误代码

    我怎么称呼它C?

    P/Invoke声明是什么?

    1 回复  |  直到 11 年前
        1
  •  5
  •   leppie    15 年前
    static extern void Decompress(
                    byte[] input, 
                    int in_len,
                    byte[] output, 
                    ref int o_len,
                    out int e);