mirror of
https://github.com/SDRSharpR/SDRSharper.git
synced 2026-01-01 14:10:02 +01:00
17 lines
228 B
C#
17 lines
228 B
C#
namespace SDRSharp.Radio
|
|
{
|
|
public struct Int24
|
|
{
|
|
public byte C;
|
|
|
|
public byte B;
|
|
|
|
public sbyte A;
|
|
|
|
public static implicit operator float(Int24 i)
|
|
{
|
|
return (float)((i.C << 8 | i.B << 16 | i.A << 24) >> 8);
|
|
}
|
|
}
|
|
}
|