byte[] byteData = new byte[32*1024-1];//getData为delphi的函数 将byteData作为参数进去
//由getData函数完成向byteData里写数据
int intDataLen = getData(strIDs,1,byteData);然后再将byteData作为testFunction()参数
现在有个函数testFunction(ref int intTest);现在的问题是 如何将byteData转换成ref int intTest类型的数据?
谢谢!!
byte[] shi = System.BitConverter.GetBytes(s);
int sh = System.BitConverter.ToInt32(shi,0);