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

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new AssemblyRow());
            }
        }
Example #2
0
        public AssemblyTable GetAssemblyTable()
        {
            AssemblyTable table = m_heap [AssemblyTable.RId] as AssemblyTable;

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

            table = new AssemblyTable();
            InitializeTable(table);
            return(table);
        }
Example #3
0
        public AssemblyTable GetAssemblyTable()
        {
            int rid = AssemblyTable.RId;

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

            AssemblyTable table = new AssemblyTable();

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

			table = new AssemblyTable ();
			InitializeTable (table);
			return table;
		}
 public override void VisitAssemblyTable(AssemblyTable table)
 {
     int number = m_rows [AssemblyTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new AssemblyRow ());
 }
        public AssemblyTable GetAssemblyTable()
        {
            int rid = AssemblyTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as AssemblyTable;

            AssemblyTable table = new AssemblyTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Example #7
0
		void EncodeAssemblyTable (AssemblyTable table)
		{
			int index = 0;

			foreach (AssemblyRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " AssemblyRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.AssemblyRow).ToString ());
				this.asm.DATA ((uint) row.HashAlgId);
				this.asm.DATA (row.MajorVersion);
				this.asm.DATA (row.MinorVersion);
				this.asm.DATA (row.BuildNumber);
				this.asm.DATA (row.RevisionNumber);
				this.asm.DATA ((uint) row.Flags);
				this.asm.DATA (row.PublicKey);
				this.asm.DATA (row.Name);
				this.asm.DATA (row.Culture);

				++index;
			}

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