public override void VisitExportedTypeTable(ExportedTypeTable table) { int number = m_rows [ExportedTypeTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new ExportedTypeRow()); } }
public ExportedTypeTable GetExportedTypeTable() { ExportedTypeTable table = m_heap [ExportedTypeTable.RId] as ExportedTypeTable; if (table != null) { return(table); } table = new ExportedTypeTable(); InitializeTable(table); return(table); }
public ExportedTypeTable GetExportedTypeTable() { int rid = ExportedTypeTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as ExportedTypeTable); } ExportedTypeTable table = new ExportedTypeTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public ExportedTypeTable GetExportedTypeTable () { ExportedTypeTable table = m_heap [ExportedTypeTable.RId] as ExportedTypeTable; if (table != null) return table; table = new ExportedTypeTable (); InitializeTable (table); return table; }
public override void VisitExportedTypeTable(ExportedTypeTable table) { int number = m_rows [ExportedTypeTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new ExportedTypeRow ()); }
public ExportedTypeTable GetExportedTypeTable() { int rid = ExportedTypeTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as ExportedTypeTable; ExportedTypeTable table = new ExportedTypeTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeExportedTypeTable (ExportedTypeTable table) { int index = 0; foreach (ExportedTypeRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " ExportedTypeRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.ExportedTypeRow).ToString ()); this.asm.DATA ((uint) row.Flags); this.asm.DATA (row.TypeDefId); this.asm.DATA (row.TypeName); this.asm.DATA (row.TypeNamespace); this.asm.DATA (row.Implementation.ToUInt ()); ++index; } this.MetadataArray ("ExportedType", table); }