コード例 #1
0
ファイル: FCodePrinter.cs プロジェクト: nomit007/f4
        //////////////////////////////////////////////////////////////////////////
        // Write
        //////////////////////////////////////////////////////////////////////////
        public void code(FBuf code)
        {
            try
              {
            this.m_code = code;
            this.m_input = new DataReader(new MemoryStream(m_code.m_buf, 0, m_code.m_len));

            /*
            if (false)
            {
              int c;
              while ((c = m_input.Read()) >= 0)
            WriteLine("  0x" + c);
              return;
            }
            */

            int op;
            while ((op = m_input.Read()) >= 0)
            {
              m_n++;
              this.op(op);
            }
              }
              catch (IOException e)
              {
            Err.dumpStack(e);
              }

              Flush();

              this.m_code  = null;
              this.m_input = null;
        }