public override void VisitManifestResourceTable(ManifestResourceTable table) { int number = m_rows [ManifestResourceTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new ManifestResourceRow()); } }
public ManifestResourceTable GetManifestResourceTable() { ManifestResourceTable table = m_heap [ManifestResourceTable.RId] as ManifestResourceTable; if (table != null) { return(table); } table = new ManifestResourceTable(); InitializeTable(table); return(table); }
public ManifestResourceTable GetManifestResourceTable() { int rid = ManifestResourceTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as ManifestResourceTable); } ManifestResourceTable table = new ManifestResourceTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public ManifestResourceTable GetManifestResourceTable () { ManifestResourceTable table = m_heap [ManifestResourceTable.RId] as ManifestResourceTable; if (table != null) return table; table = new ManifestResourceTable (); InitializeTable (table); return table; }
public override void VisitManifestResourceTable(ManifestResourceTable table) { int number = m_rows [ManifestResourceTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new ManifestResourceRow ()); }
public ManifestResourceTable GetManifestResourceTable() { int rid = ManifestResourceTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as ManifestResourceTable; ManifestResourceTable table = new ManifestResourceTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeManifestResourceTable (ManifestResourceTable table) { int index = 0; foreach (ManifestResourceRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " ManifestResourceRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.ManifestResourceRow).ToString ()); this.asm.DATA (row.Offset); this.asm.DATA ((uint) row.Flags); this.asm.DATA (row.Name); this.asm.DATA (row.Implementation.ToUInt ()); ++index; } this.MetadataArray ("ManifestResource", table); }