public static float Decode(byte[] data) { byte[] temp = new byte[data.Length]; Array.Copy(data, temp, data.Length); XCSharp.Decipher(temp, 0, 3, temp[3]); float value = BitConverter.ToSingle(temp, 0); return(value); }
public static float Decode(byte[] data) { byte[] temp = new byte[data.Length]; Array.Copy(data, temp, data.Length); XCSharp.Decipher(temp, 0, 3, temp[3]); float value = BitConverter.ToSingle(temp, 0); return(value); }