示例#1
0
文件: L_MBS.cs 项目: athree/YSP
 public static int ConvertBS_int(int i)
 {
     byte[] temp = ByteStruct.StructToBytes(i);
     Array.Reverse(temp);
     return((int)ByteStruct.BytesToStruct(temp, typeof(int)));
 }
示例#2
0
文件: L_MBS.cs 项目: athree/YSP
 public static float ConvertBS(float f)
 {
     byte[] temp = ByteStruct.StructToBytes(f);
     Array.Reverse(temp);
     return((float)ByteStruct.BytesToStruct(temp, typeof(float)));
 }