public override void VisitEventRow(EventRow row) { row.EventFlags = (Mono.Cecil.EventAttributes)m_binaryReader.ReadUInt16(); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); row.EventType = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef))); }
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 override void VisitTypeRefRow(TypeRefRow row) { row.ResolutionScope = Utilities.GetMetadataToken(CodedIndex.ResolutionScope, ReadByIndexSize(GetCodedIndexSize(CodedIndex.ResolutionScope))); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); row.Namespace = ReadByIndexSize(m_stringsHeapIdxSz); }
public override void VisitConstantRow(ConstantRow row) { row.Type = (Mono.Cecil.Metadata.ElementType)m_binaryReader.ReadUInt16(); row.Parent = Utilities.GetMetadataToken(CodedIndex.HasConstant, ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasConstant))); row.Value = ReadByIndexSize(m_blobHeapIdxSz); }
public override void VisitMethodSemanticsRow(MethodSemanticsRow row) { row.Semantics = (Mono.Cecil.MethodSemanticsAttributes)m_binaryReader.ReadUInt16(); row.Method = ReadByIndexSize(GetIndexSize(MethodTable.RId)); row.Association = Utilities.GetMetadataToken(CodedIndex.HasSemantics, ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasSemantics))); }
public override void VisitMemberRefRow(MemberRefRow row) { row.Class = Utilities.GetMetadataToken(CodedIndex.MemberRefParent, ReadByIndexSize(GetCodedIndexSize(CodedIndex.MemberRefParent))); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); row.Signature = ReadByIndexSize(m_blobHeapIdxSz); }
public override void VisitImplMapRow(ImplMapRow row) { row.MappingFlags = (Mono.Cecil.PInvokeAttributes)m_binaryReader.ReadUInt16(); row.MemberForwarded = Utilities.GetMetadataToken(CodedIndex.MemberForwarded, ReadByIndexSize(GetCodedIndexSize(CodedIndex.MemberForwarded))); row.ImportName = ReadByIndexSize(m_stringsHeapIdxSz); row.ImportScope = ReadByIndexSize(GetIndexSize(ModuleRefTable.RId)); }
public override void VisitMethodImplRow(MethodImplRow row) { row.Class = ReadByIndexSize(GetIndexSize(TypeDefTable.RId)); row.MethodBody = Utilities.GetMetadataToken(CodedIndex.MethodDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.MethodDefOrRef))); row.MethodDeclaration = Utilities.GetMetadataToken(CodedIndex.MethodDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.MethodDefOrRef))); }
public override void VisitCustomAttributeRow(CustomAttributeRow row) { row.Parent = Utilities.GetMetadataToken(CodedIndex.HasCustomAttribute, ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasCustomAttribute))); row.Type = Utilities.GetMetadataToken(CodedIndex.CustomAttributeType, ReadByIndexSize(GetCodedIndexSize(CodedIndex.CustomAttributeType))); row.Value = ReadByIndexSize(m_blobHeapIdxSz); }
public override void VisitManifestResourceRow(ManifestResourceRow row) { row.Offset = m_binaryReader.ReadUInt32(); row.Flags = (Mono.Cecil.ManifestResourceAttributes)m_binaryReader.ReadUInt32(); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); row.Implementation = Utilities.GetMetadataToken(CodedIndex.Implementation, ReadByIndexSize(GetCodedIndexSize(CodedIndex.Implementation))); }
public override void VisitGenericParamRow(GenericParamRow row) { row.Number = m_binaryReader.ReadUInt16(); row.Flags = (Mono.Cecil.GenericParameterAttributes)m_binaryReader.ReadUInt16(); row.Owner = Utilities.GetMetadataToken(CodedIndex.TypeOrMethodDef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeOrMethodDef))); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); }
public override void VisitExportedTypeRow(ExportedTypeRow row) { row.Flags = (Mono.Cecil.TypeAttributes)m_binaryReader.ReadUInt32(); row.TypeDefId = m_binaryReader.ReadUInt32(); row.TypeName = ReadByIndexSize(m_stringsHeapIdxSz); row.TypeNamespace = ReadByIndexSize(m_stringsHeapIdxSz); row.Implementation = Utilities.GetMetadataToken(CodedIndex.Implementation, ReadByIndexSize(GetCodedIndexSize(CodedIndex.Implementation))); }
public override void VisitTypeDefRow(TypeDefRow row) { row.Flags = (Mono.Cecil.TypeAttributes)m_binaryReader.ReadUInt32(); row.Name = ReadByIndexSize(m_stringsHeapIdxSz); row.Namespace = ReadByIndexSize(m_stringsHeapIdxSz); row.Extends = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef))); row.FieldList = ReadByIndexSize(GetIndexSize(FieldTable.RId)); row.MethodList = ReadByIndexSize(GetIndexSize(MethodTable.RId)); }
public override void VisitMethodSpecRow(MethodSpecRow row) { row.Method = Utilities.GetMetadataToken(CodedIndex.MethodDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.MethodDefOrRef))); row.Instantiation = ReadByIndexSize(m_blobHeapIdxSz); }
public override void VisitInterfaceImplRow(InterfaceImplRow row) { row.Class = ReadByIndexSize(GetIndexSize(TypeDefTable.RId)); row.Interface = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef))); }
public override void VisitGenericParamConstraintRow(GenericParamConstraintRow row) { row.Owner = ReadByIndexSize(GetIndexSize(GenericParamTable.RId)); row.Constraint = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef, ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef))); }
public override void VisitFieldMarshalRow(FieldMarshalRow row) { row.Parent = Utilities.GetMetadataToken(CodedIndex.HasFieldMarshal, ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasFieldMarshal))); row.NativeType = ReadByIndexSize(m_blobHeapIdxSz); }