コード例 #1
0
ファイル: INFO.cs プロジェクト: tfwio/modest-smf-vstnet
        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);
          }
      }