Esempio n. 1
0
File: L_MBS.cs Progetto: athree/YSP
 public static int ConvertBS_int(int i)
 {
     byte[] temp = ByteStruct.StructToBytes(i);
     Array.Reverse(temp);
     return((int)ByteStruct.BytesToStruct(temp, typeof(int)));
 }
Esempio n. 2
0
File: L_MBS.cs Progetto: athree/YSP
 public static float ConvertBS(float f)
 {
     byte[] temp = ByteStruct.StructToBytes(f);
     Array.Reverse(temp);
     return((float)ByteStruct.BytesToStruct(temp, typeof(float)));
 }