日期:2014-05-20  浏览次数:20992 次

unsigned char *ptr
C语言中的函数
get(unsigned   char   *ptr)

如何转化为C#中相对就的方法?


    get(Byte[]   ptr);

还是
    get(ref   Byte[]   ptr);

或者其它?

------解决方案--------------------
get(ref SByte[] ptr);

------解决方案--------------------
[DllImport( "msvcrt.dll ")]
public static extern IntPtr gets(ref IntPtr p);
C里没有get这个函数吧
------解决方案--------------------
get(ref Byte[] ptr);
------解决方案--------------------
get(Byte[] ptr);