public override void VisitDeclSecurityRow(DeclSecurityRow row)
 {
     row.Action = (Mono.Cecil.SecurityAction)m_binaryReader.ReadInt16();
     row.Parent = Utilities.GetMetadataToken(CodedIndex.HasDeclSecurity,
                                             ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasDeclSecurity)));
     row.PermissionSet = ReadByIndexSize(m_blobHeapIdxSz);
 }
        public DeclSecurityRow CreateDeclSecurityRow(SecurityAction _action, MetadataToken _parent, uint _permissionSet)
        {
            DeclSecurityRow row = new DeclSecurityRow();

            row.Action        = _action;
            row.Parent        = _parent;
            row.PermissionSet = _permissionSet;
            return(row);
        }
Пример #3
0
 public override void VisitDeclSecurityRow(DeclSecurityRow row)
 {
     m_binaryWriter.Write ((short) row.Action);
     WriteMetadataToken (row.Parent, CodedIndex.HasDeclSecurity);
     WriteBlobPointer (row.PermissionSet);
 }
Пример #4
0
 public DeclSecurityRow CreateDeclSecurityRow(SecurityAction _action, MetadataToken _parent, uint _permissionSet)
 {
     DeclSecurityRow row = new DeclSecurityRow ();
     row.Action = _action;
     row.Parent = _parent;
     row.PermissionSet = _permissionSet;
     return row;
 }
 public override void VisitDeclSecurityRow(DeclSecurityRow row)
 {
     m_binaryWriter.Write((short)row.Action);
     WriteMetadataToken(row.Parent, CodedIndex.HasDeclSecurity);
     WriteBlobPointer(row.PermissionSet);
 }
Пример #6
0
 protected SecurityDeclaration BuildSecurityDeclaration(DeclSecurityRow dsRow)
 {
     return BuildSecurityDeclaration (dsRow.Action, m_root.Streams.BlobHeap.Read (dsRow.PermissionSet));
 }
Пример #7
0
 public override void VisitDeclSecurityRow(DeclSecurityRow row)
 {
     row.Action = (Mono.Cecil.SecurityAction) m_binaryReader.ReadInt16 ();
     row.Parent = Utilities.GetMetadataToken (CodedIndex.HasDeclSecurity,
         ReadByIndexSize (GetCodedIndexSize (CodedIndex.HasDeclSecurity)));
     row.PermissionSet = ReadByIndexSize (m_blobHeapIdxSz);
 }