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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new GenericParamRow());
            }
        }
예제 #2
0
        public GenericParamTable GetGenericParamTable()
        {
            GenericParamTable table = m_heap [GenericParamTable.RId] as GenericParamTable;

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

            table = new GenericParamTable();
            InitializeTable(table);
            return(table);
        }
예제 #3
0
        public GenericParamTable GetGenericParamTable()
        {
            int rid = GenericParamTable.RId;

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

            GenericParamTable table = new GenericParamTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
예제 #4
0
		public GenericParamTable GetGenericParamTable ()
		{
			GenericParamTable table = m_heap [GenericParamTable.RId] as GenericParamTable;
			if (table != null)
				return table;

			table = new GenericParamTable ();
			InitializeTable (table);
			return table;
		}
예제 #5
0
 public override void VisitGenericParamTable(GenericParamTable table)
 {
     int number = m_rows [GenericParamTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new GenericParamRow ());
 }
예제 #6
0
        public GenericParamTable GetGenericParamTable()
        {
            int rid = GenericParamTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as GenericParamTable;

            GenericParamTable table = new GenericParamTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
예제 #7
0
파일: Metadata.cs 프로젝트: sharpos/SharpOS
		void EncodeGenericParamTable (GenericParamTable table)
		{
			int index = 0;

			foreach (GenericParamRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " GenericParamRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.GenericParamRow).ToString ());
				this.asm.DATA (row.Number);
				this.asm.DATA ((ushort) row.Flags);
				this.asm.DATA (row.Owner.ToUInt ());
				this.asm.DATA (row.Name);
				++index;
			}

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