public override void VisitCustomAttributeTable(CustomAttributeTable table) { int number = m_rows [CustomAttributeTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new CustomAttributeRow()); } }
public CustomAttributeTable GetCustomAttributeTable() { CustomAttributeTable table = m_heap [CustomAttributeTable.RId] as CustomAttributeTable; if (table != null) { return(table); } table = new CustomAttributeTable(); InitializeTable(table); return(table); }
public CustomAttributeTable GetCustomAttributeTable() { int rid = CustomAttributeTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as CustomAttributeTable); } CustomAttributeTable table = new CustomAttributeTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public CustomAttributeTable GetCustomAttributeTable () { CustomAttributeTable table = m_heap [CustomAttributeTable.RId] as CustomAttributeTable; if (table != null) return table; table = new CustomAttributeTable (); InitializeTable (table); return table; }
public override void VisitCustomAttributeTable(CustomAttributeTable table) { int number = m_rows [CustomAttributeTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new CustomAttributeRow ()); }
public CustomAttributeTable GetCustomAttributeTable() { int rid = CustomAttributeTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as CustomAttributeTable; CustomAttributeTable table = new CustomAttributeTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeCustomAttributeTable (CustomAttributeTable table) { int index = 0; foreach (CustomAttributeRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " CustomAttributeRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.CustomAttributeRow).ToString ()); this.asm.DATA (row.Parent.ToUInt ()); this.asm.DATA (row.Type.ToUInt ()); this.asm.DATA (row.Value); ++index; } this.MetadataArray ("CustomAttribute", table); }