Count GSE frames.
All checks were successful
🚀 Pack skyscraper8 / make-zip (push) Successful in 55s

This commit is contained in:
fey 2026-07-29 21:03:03 +02:00
parent 4038e65c38
commit 3796e6f60f

View File

@ -16,9 +16,11 @@ internal class GseReader : IMisHandler
private GseLabel lastLabel; private GseLabel lastLabel;
private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name); private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name);
public GsContextDto Context { get; set; } public GsContextDto Context { get; set; }
public uint NumFrame { get; private set; }
public void PushFrame(BBHeader bbHeader, ReadOnlySpan<byte> readOnlySpan) public void PushFrame(BBHeader bbHeader, ReadOnlySpan<byte> readOnlySpan)
{ {
NumFrame++;
MemoryStream ms = new MemoryStream(readOnlySpan.ToArray()); MemoryStream ms = new MemoryStream(readOnlySpan.ToArray());
while (ms.Position < ms.Length) while (ms.Position < ms.Length)