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());
            }
        }
Пример #2
0
        public DeclSecurityTable GetDeclSecurityTable()
        {
            DeclSecurityTable table = m_heap [DeclSecurityTable.RId] as DeclSecurityTable;

            if (table != null)
            {
                return(table);
            }

            table = new DeclSecurityTable();
            InitializeTable(table);
            return(table);
        }
Пример #3
0
        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);
        }
Пример #4
0
		public DeclSecurityTable GetDeclSecurityTable ()
		{
			DeclSecurityTable table = m_heap [DeclSecurityTable.RId] as DeclSecurityTable;
			if (table != null)
				return table;

			table = new DeclSecurityTable ();
			InitializeTable (table);
			return table;
		}
Пример #5
0
 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 ());
 }
Пример #6
0
        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;
        }
Пример #7
0
		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);
		}