private void _read()
 {
     _magic            = m_io.EnsureFixedContents(new byte[] { 199, 113 });
     _deviceNumber     = m_io.ReadU2le();
     _inodeNumber      = m_io.ReadU2le();
     _mode             = m_io.ReadU2le();
     _userId           = m_io.ReadU2le();
     _groupId          = m_io.ReadU2le();
     _numberOfLinks    = m_io.ReadU2le();
     _rDeviceNumber    = m_io.ReadU2le();
     _modificationTime = new FourByteUnsignedInteger(m_io, this, m_root);
     _pathNameSize     = m_io.ReadU2le();
     _fileSize         = new FourByteUnsignedInteger(m_io, this, m_root);
 }
Ejemplo n.º 2
0
 private void _read()
 {
     _magic = m_io.ReadBytes(2);
     if (!((KaitaiStream.ByteArrayCompare(Magic, new byte[] { 199, 113 }) == 0)))
     {
         throw new ValidationNotEqualError(new byte[] { 199, 113 }, Magic, M_Io, "/types/file_header/seq/0");
     }
     _deviceNumber     = m_io.ReadU2le();
     _inodeNumber      = m_io.ReadU2le();
     _mode             = m_io.ReadU2le();
     _userId           = m_io.ReadU2le();
     _groupId          = m_io.ReadU2le();
     _numberOfLinks    = m_io.ReadU2le();
     _rDeviceNumber    = m_io.ReadU2le();
     _modificationTime = new FourByteUnsignedInteger(m_io, this, m_root);
     _pathNameSize     = m_io.ReadU2le();
     _fileSize         = new FourByteUnsignedInteger(m_io, this, m_root);
 }