Пример #1
0
        public INFO(int ckSize, BinaryReader bir, FileStream fis)
        {
            ifil = new iver(); inam = new ZSTR(); isng = new ZSTR();

            long origin = fis.Seek(8,SeekOrigin.Current);
            infoHead = IOHelper.GetString(bir.ReadChars(4));
            Length = bir.ReadInt32();
            long pos = fis.Position;
            nfosub = new Dictionary<long,INFOsub>();
            while (fis.Position < pos+ckSize-4)
            {
                long hand = fis.Position;
                INFOsub inx = new INFOsub(bir,fis,this);
                fis.Seek(hand+inx.Length+8,SeekOrigin.Begin);
            }
        }
Пример #2
0
      public INFO(int ckSize, BinaryReader bir, FileStream fis)
      {
          ifil = new iver(); inam = new ZSTR(); isng = new ZSTR();

          long origin = fis.Seek(8, SeekOrigin.Current);

          infoHead = IOHelper.GetString(bir.ReadChars(4));
          Length   = bir.ReadInt32();
          long pos = fis.Position;

          nfosub = new Dictionary <long, INFOsub>();
          while (fis.Position < pos + ckSize - 4)
          {
              long    hand = fis.Position;
              INFOsub inx  = new INFOsub(bir, fis, this);
              fis.Seek(hand + inx.Length + 8, SeekOrigin.Begin);
          }
      }