SSPC-Tester/Driver/PCIE8586/Pcie8586Probe/Models/SampleBlock.cs

13 lines
310 B
C#

namespace Pcie8586Probe.Models;
public sealed record SampleBlock(
double[][] Channels,
double SampleRateHz,
long StartSampleIndex,
DateTimeOffset Timestamp)
{
public int ChannelCount => Channels.Length;
public int SamplesPerChannel => Channels.Length == 0 ? 0 : Channels[0].Length;
}