irig-106

How can I generalize the use of these different data structures?

I have an application that reads times from a file. These times can be in three different formats, based on flag bits elsewhere in the file, as shown below: [StructLayout(LayoutKind.Sequential, Pack = 1] public struct IntraPacketTime_RTC { public UInt64 RTC; } [StructLayout(LayoutKind.Sequential, Pack = 1] public struct IntraPacke...