public override void VisitDeclSecurityTable(DeclSecurityTable table) { int number = m_rows [DeclSecurityTable.RId]; table.Rows = new RowCollection(number); for (int i = 0; i < number; i++) { table.Rows.Add(new DeclSecurityRow()); } }
public DeclSecurityTable GetDeclSecurityTable() { DeclSecurityTable table = m_heap [DeclSecurityTable.RId] as DeclSecurityTable; if (table != null) { return(table); } table = new DeclSecurityTable(); InitializeTable(table); return(table); }
public DeclSecurityTable GetDeclSecurityTable() { int rid = DeclSecurityTable.RId; if (m_heap.HasTable(rid)) { return(m_heap [rid] as DeclSecurityTable); } DeclSecurityTable table = new DeclSecurityTable(); table.Rows = new RowCollection(); m_heap.Valid |= 1L << rid; m_heap.Tables.Add(table); return(table); }
public DeclSecurityTable GetDeclSecurityTable () { DeclSecurityTable table = m_heap [DeclSecurityTable.RId] as DeclSecurityTable; if (table != null) return table; table = new DeclSecurityTable (); InitializeTable (table); return table; }
public override void VisitDeclSecurityTable(DeclSecurityTable table) { int number = m_rows [DeclSecurityTable.RId]; table.Rows = new RowCollection (number); for (int i = 0; i < number; i++) table.Rows.Add (new DeclSecurityRow ()); }
public DeclSecurityTable GetDeclSecurityTable() { int rid = DeclSecurityTable.RId; if (m_heap.HasTable (rid)) return m_heap [rid] as DeclSecurityTable; DeclSecurityTable table = new DeclSecurityTable (); table.Rows = new RowCollection (); m_heap.Valid |= 1L << rid; m_heap.Tables.Add (table); return table; }
void EncodeDeclSecurityTable (DeclSecurityTable table) { int index = 0; foreach (DeclSecurityRow row in table.Rows) { this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT); this.asm.LABEL (moduleName + " DeclSecurityRow#" + index); this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.DeclSecurityRow).ToString ()); this.asm.DATA ((ushort) row.Action); this.asm.DATA (row.Parent.ToUInt ()); this.asm.DATA (row.PermissionSet); ++index; } this.MetadataArray ("DeclSecurity", table); }