namespace MillTracking.Shared.Models.Telegrams;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public readonly record struct EndOfBarTelegram
{
public static readonly string Key = nameof(EndOfBarTelegram);
public readonly uint MessageLength;
public readonly uint MessageId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 2)]
public readonly string ProfileType;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 30)]
public readonly string ProfileName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
public readonly string BloomId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public readonly string TimeIn;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public readonly string TimeOut;
public readonly float BarLength;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public readonly float[] Mean;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public readonly float[] Max;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public readonly float[] Min;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public readonly float[] DefectLength;
}