public override void VisitTypeDefTable(TypeDefTable table)
        {
            int number = m_rows [TypeDefTable.RId];

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new TypeDefRow());
            }
        }
Exemplo n.º 2
0
        public TypeDefTable GetTypeDefTable()
        {
            TypeDefTable table = m_heap [TypeDefTable.RId] as TypeDefTable;

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

            table = new TypeDefTable();
            InitializeTable(table);
            return(table);
        }
Exemplo n.º 3
0
        public TypeDefTable GetTypeDefTable()
        {
            int rid = TypeDefTable.RId;

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

            TypeDefTable table = new TypeDefTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Exemplo n.º 4
0
		public TypeDefTable GetTypeDefTable ()
		{
			TypeDefTable table = m_heap [TypeDefTable.RId] as TypeDefTable;
			if (table != null)
				return table;

			table = new TypeDefTable ();
			InitializeTable (table);
			return table;
		}
Exemplo n.º 5
0
 public override void VisitTypeDefTable(TypeDefTable table)
 {
     int number = m_rows [TypeDefTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new TypeDefRow ());
 }
Exemplo n.º 6
0
        public TypeDefTable GetTypeDefTable()
        {
            int rid = TypeDefTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as TypeDefTable;

            TypeDefTable table = new TypeDefTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Exemplo n.º 7
0
		void EncodeTypeDefTable (TypeDefTable table)
		{
			int index = 0;

			foreach (TypeDefRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " TypeDefRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.TypeDefRow).ToString ());

				this.asm.DATA ((uint) row.Flags);
				this.asm.DATA (row.Name);
				this.asm.DATA (row.Namespace);
				this.asm.DATA (row.Extends.ToUInt ());
				this.asm.DATA (row.FieldList);
				this.asm.DATA (row.MethodList);

				++index;
			}

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