Beispiel #1
0
 private void _read()
 {
     _id          = System.Text.Encoding.GetEncoding("ASCII").GetString(m_io.ReadBytes(4));
     _size        = new U4beSynchsafe(m_io, this, m_root);
     _flagsStatus = new FlagsStatus(m_io, this, m_root);
     _flagsFormat = new FlagsFormat(m_io, this, m_root);
     _data        = m_io.ReadBytes(Size.Value);
 }
 private void _read()
 {
     _magic           = m_io.EnsureFixedContents(new byte[] { 51, 68, 73 });
     _versionMajor    = m_io.ReadU1();
     _versionRevision = m_io.ReadU1();
     _flags           = new Flags(m_io, this, m_root);
     _size            = new U4beSynchsafe(m_io, this, m_root);
 }
Beispiel #3
0
 private void _read()
 {
     _magic = m_io.ReadBytes(3);
     if (!((KaitaiStream.ByteArrayCompare(Magic, new byte[] { 73, 68, 51 }) == 0)))
     {
         throw new ValidationNotEqualError(new byte[] { 73, 68, 51 }, Magic, M_Io, "/types/header/seq/0");
     }
     _versionMajor    = m_io.ReadU1();
     _versionRevision = m_io.ReadU1();
     _flags           = new Flags(m_io, this, m_root);
     _size            = new U4beSynchsafe(m_io, this, m_root);
 }
Beispiel #4
0
 private void _read()
 {
     _size    = new U4beSynchsafe(m_io, this, m_root);
     _flagsEx = new FlagsEx(m_io, this, m_root);
     _data    = m_io.ReadBytes((Size.Value - 5));
 }