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