private void _read() { _text = System.Text.Encoding.GetEncoding("utf-8").GetString(m_io.ReadBytes(64)); _signature = m_io.EnsureFixedContents(new byte[] { 127, 16, 218, 190 }); _version = new Version(m_io, this, m_root); if (SubheaderSizeIsDynamic) { _headerSizeOptional = m_io.ReadU4le(); } __raw_headerMain = m_io.ReadBytes(HeaderSize); var io___raw_headerMain = new KaitaiStream(__raw_headerMain); _headerMain = new HeaderMain(io___raw_headerMain, this, m_root); }
private void _read() { _text = System.Text.Encoding.GetEncoding("utf-8").GetString(m_io.ReadBytes(64)); _signature = m_io.ReadBytes(4); if (!((KaitaiStream.ByteArrayCompare(Signature, new byte[] { 127, 16, 218, 190 }) == 0))) { throw new ValidationNotEqualError(new byte[] { 127, 16, 218, 190 }, Signature, M_Io, "/types/header/seq/1"); } _version = new Version(m_io, this, m_root); if (SubheaderSizeIsDynamic) { _headerSizeOptional = m_io.ReadU4le(); } __raw_headerMain = m_io.ReadBytes(HeaderSize); var io___raw_headerMain = new KaitaiStream(__raw_headerMain); _headerMain = new HeaderMain(io___raw_headerMain, this, m_root); }