Beispiel #1
0
 public static int ConvertBS_int(int i)
 {
     byte[] temp = ByteStruct.StructToBytes(i);
     Array.Reverse(temp);
     return((int)ByteStruct.BytesToStruct(temp, typeof(int)));
 }
Beispiel #2
0
 public static float ConvertBS(float f)
 {
     byte[] temp = ByteStruct.StructToBytes(f);
     Array.Reverse(temp);
     return((float)ByteStruct.BytesToStruct(temp, typeof(float)));
 }