コード例 #1
0
        public override void VisitInterfaceImplTable(InterfaceImplTable table)
        {
            int number = m_rows [InterfaceImplTable.RId];

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new InterfaceImplRow());
            }
        }
コード例 #2
0
        public InterfaceImplTable GetInterfaceImplTable()
        {
            InterfaceImplTable table = m_heap [InterfaceImplTable.RId] as InterfaceImplTable;

            if (table != null)
            {
                return(table);
            }

            table = new InterfaceImplTable();
            InitializeTable(table);
            return(table);
        }
コード例 #3
0
        public InterfaceImplTable GetInterfaceImplTable()
        {
            int rid = InterfaceImplTable.RId;

            if (m_heap.HasTable(rid))
            {
                return(m_heap [rid] as InterfaceImplTable);
            }

            InterfaceImplTable table = new InterfaceImplTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
コード例 #4
0
ファイル: MetadataTableWriter.cs プロジェクト: nobled/mono
		public InterfaceImplTable GetInterfaceImplTable ()
		{
			InterfaceImplTable table = m_heap [InterfaceImplTable.RId] as InterfaceImplTable;
			if (table != null)
				return table;

			table = new InterfaceImplTable ();
			InitializeTable (table);
			return table;
		}
コード例 #5
0
 public override void VisitInterfaceImplTable(InterfaceImplTable table)
 {
     int number = m_rows [InterfaceImplTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new InterfaceImplRow ());
 }
コード例 #6
0
        public InterfaceImplTable GetInterfaceImplTable()
        {
            int rid = InterfaceImplTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as InterfaceImplTable;

            InterfaceImplTable table = new InterfaceImplTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
コード例 #7
0
ファイル: Metadata.cs プロジェクト: sharpos/SharpOS
		void EncodeInterfaceImplTable (InterfaceImplTable table)
		{
			int index = 0;

			foreach (InterfaceImplRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " InterfaceImplRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.InterfaceImplRow).ToString ());
				this.asm.DATA (row.Class);
				this.asm.DATA (row.Interface.ToUInt ());
				++index;
			}

			this.MetadataArray ("InterfaceImpl", table);
		}