private void _read() { _signature = m_io.EnsureFixedContents(new byte[] { 71, 77, 66, 85 }); _versionMinor = m_io.ReadU1(); _versionMajor = m_io.ReadU1(); _macType = ((Linktype)m_io.ReadU2le()); _timeCaptureStart = new WindowsSystemtime(m_io); _frameTableOfs = m_io.ReadU4le(); _frameTableLen = m_io.ReadU4le(); _userDataOfs = m_io.ReadU4le(); _userDataLen = m_io.ReadU4le(); _commentOfs = m_io.ReadU4le(); _commentLen = m_io.ReadU4le(); _statisticsOfs = m_io.ReadU4le(); _statisticsLen = m_io.ReadU4le(); _networkInfoOfs = m_io.ReadU4le(); _networkInfoLen = m_io.ReadU4le(); _conversationStatsOfs = m_io.ReadU4le(); _conversationStatsLen = m_io.ReadU4le(); }
private void _read() { _signature = m_io.ReadBytes(4); if (!((KaitaiStream.ByteArrayCompare(Signature, new byte[] { 71, 77, 66, 85 }) == 0))) { throw new ValidationNotEqualError(new byte[] { 71, 77, 66, 85 }, Signature, M_Io, "/seq/0"); } _versionMinor = m_io.ReadU1(); _versionMajor = m_io.ReadU1(); _macType = ((Linktype)m_io.ReadU2le()); _timeCaptureStart = new WindowsSystemtime(m_io); _frameTableOfs = m_io.ReadU4le(); _frameTableLen = m_io.ReadU4le(); _userDataOfs = m_io.ReadU4le(); _userDataLen = m_io.ReadU4le(); _commentOfs = m_io.ReadU4le(); _commentLen = m_io.ReadU4le(); _statisticsOfs = m_io.ReadU4le(); _statisticsLen = m_io.ReadU4le(); _networkInfoOfs = m_io.ReadU4le(); _networkInfoLen = m_io.ReadU4le(); _conversationStatsOfs = m_io.ReadU4le(); _conversationStatsLen = m_io.ReadU4le(); }
public WindowsSystemtime(KaitaiStream p__io, KaitaiStruct p__parent = null, WindowsSystemtime p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }