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