赞
踩
传进来内存参数 IntPtr strNameUtf8,int nStrLen
- public static string Utf8ToUnicode(IntPtr strNameUtf8, int nStrLen)
- {
- byte[] managedArray = new byte[nStrLen];
- Marshal.Copy(strNameUtf8, managedArray, 0, nStrLen);
- return Encoding.UTF8.GetString(managedArray); ;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。