2018年9月27日

难度计算 c#

摘要: unsafe static bool CalcDiff(byte[] target ) { UInt64 m_target = 0; if (target.Length <= 8) { uint tmp = 0; byte[] str = target; fixed (byte* in_char = 阅读全文

posted @ 2018-09-27 15:27 五人月饼 阅读(114) 评论(0) 推荐(0)

类型对照表

摘要: 类型对照表: Win32 Types CLR Type char, INT8, SBYTE, CHAR System.SByte short, short int, INT16, SHORT System.Int16 int, long, long int, INT32, LONG32, BOOL  阅读全文

posted @ 2018-09-27 15:25 五人月饼 阅读(115) 评论(0) 推荐(0)

C# 指针使用

摘要: 在调用DLL中的方法的时候,我们一般要对照函数说明来把C/C++中的类型转换为.NET中相对应的类型,而且方法必须声明为静态外部函数,即加上public extern static声明头.如果不加public ,函数默认为私有函数,调用就会出错。 [DllImport("COM DLL path/f 阅读全文

posted @ 2018-09-27 15:24 五人月饼 阅读(207) 评论(0) 推荐(0)

C#中char[]与string之间的转换

摘要: string 转换成 Char[] string ss = "abcdefg"; char[] cc = ss.ToCharArray(); Char[] 转换成string string s = new string(cc); 此外,byte[] 与 string 之间的装换 byte[] bb 阅读全文

posted @ 2018-09-27 15:23 五人月饼 阅读(131) 评论(0) 推荐(0)

导航