Zdexby TheHolyOneZ
49,743 classes
Class

MetadataReader

: Object
System.Reflection.Metadata.MetadataReader, Sentry.System.Reflection.Metadata 0x0938 (2,360 B) inherited 0x0010 Sentry.System.Reflection.Metadata.dll
0x00x0938

Members 77

OffsetSizeNameTypeFlagsDefault
0x08NamespaceCacheNamespaceCache2 flags—
0x10BlockMemoryBlock2 flags—
0x04WinMDMscorlibRefint2 flags—
0x002C0x04padding / unreflected
0x08_memoryOwnerObjobjectPrivate+1 flags—
0x04_optionsMetadataReaderOptionsPrivate+1 flags—
0x003C0x04padding / unreflected
0x08_lazyNestedTypesMapDictionary<System.Reflection.Metadata.TypeDefinitionHandlePrivate—
0x08_versionStringstringPrivate+1 flags—
0x04_metadataKindMetadataKindPrivate+1 flags—
0x04_metadataStreamKindMetadataStreamKindPrivate+1 flags—
0x08_debugMetadataHeaderDebugMetadataHeaderPrivate+1 flags—
0x18StringHeapStringHeap1 flags—
0x18BlobHeapBlobHeap1 flags—
0x10GuidHeapGuidHeap1 flags—
0x10UserStringHeapUserStringHeap1 flags—
0x01IsMinimalDeltabool1 flags—
0x00B10x07padding / unreflected
0x08_sortedTablesTableMaskPrivate+1 flags—
0x08TableRowCountsint[]1 flags—
0x30ModuleTableModuleTableReader1 flags—
0x28TypeRefTableTypeRefTableReader1 flags—
0x38TypeDefTableTypeDefTableReader1 flags—
0x20FieldPtrTableFieldPtrTableReader1 flags—
0x28FieldTableFieldTableReader1 flags—
0x20MethodPtrTableMethodPtrTableReader1 flags—
0x38MethodDefTableMethodTableReader1 flags—
0x20ParamPtrTableParamPtrTableReader1 flags—
0x28ParamTableParamTableReader1 flags—
0x28InterfaceImplTableInterfaceImplTableReader1 flags—
0x28MemberRefTableMemberRefTableReader1 flags—
0x28ConstantTableConstantTableReader1 flags—
0x30CustomAttributeTableCustomAttributeTableReader1 flags—
0x28FieldMarshalTableFieldMarshalTableReader1 flags—
0x28DeclSecurityTableDeclSecurityTableReader1 flags—
0x28ClassLayoutTableClassLayoutTableReader1 flags—
0x28FieldLayoutTableFieldLayoutTableReader1 flags—
0x20StandAloneSigTableStandAloneSigTableReader1 flags—
0x28EventMapTableEventMapTableReader1 flags—
0x20EventPtrTableEventPtrTableReader1 flags—
0x28EventTableEventTableReader1 flags—
0x28PropertyMapTablePropertyMapTableReader1 flags—
0x20PropertyPtrTablePropertyPtrTableReader1 flags—
0x28PropertyTablePropertyTableReader1 flags—
0x28MethodSemanticsTableMethodSemanticsTableReader1 flags—
0x28MethodImplTableMethodImplTableReader1 flags—
0x20ModuleRefTableModuleRefTableReader1 flags—
0x20TypeSpecTableTypeSpecTableReader1 flags—
0x30ImplMapTableImplMapTableReader1 flags—
0x28FieldRvaTableFieldRVATableReader1 flags—
0x20EncLogTableEnCLogTableReader1 flags—
0x20EncMapTableEnCMapTableReader1 flags—
0x40AssemblyTableAssemblyTableReader1 flags—
0x20AssemblyProcessorTableAssemblyProcessorTableReader1 flags—
0x28AssemblyOSTableAssemblyOSTableReader1 flags—
0x48AssemblyRefTableAssemblyRefTableReader1 flags—
0x28AssemblyRefProcessorTableAssemblyRefProcessorTableReader1 flags—
0x30AssemblyRefOSTableAssemblyRefOSTableReader1 flags—
0x28FileTableFileTableReader1 flags—
0x30ExportedTypeTableExportedTypeTableReader1 flags—
0x30ManifestResourceTableManifestResourceTableReader1 flags—
0x28NestedClassTableNestedClassTableReader1 flags—
0x30GenericParamTableGenericParamTableReader1 flags—
0x28MethodSpecTableMethodSpecTableReader1 flags—
0x28GenericParamConstraintTableGenericParamConstraintTableReader1 flags—
0x28DocumentTableDocumentTableReader1 flags—
0x20MethodDebugInformationTableMethodDebugInformationTableReader1 flags—
0x30LocalScopeTableLocalScopeTableReader1 flags—
0x28LocalVariableTableLocalVariableTableReader1 flags—
0x20LocalConstantTableLocalConstantTableReader1 flags—
0x20ImportScopeTableImportScopeTableReader1 flags—
0x20StateMachineMethodTableStateMachineMethodTableReader1 flags—
0x28CustomDebugInformationTableCustomDebugInformationTableReader1 flags—
—0x04SmallIndexSizeintPrivateStatic+1 flags324521408
—0x04LargeIndexSizeintPrivateStatic+1 flags324521408
0x08<UTF8Decoder>k__BackingFieldMetadataStringDecoderPrivate+1 flags—
—0x08ClrPrefixstringStatic+2 flags2006074248640
0x08WinRTPrefixbyte[]Static+2 flags—
0x08s_projectedTypeNamesstring[]PrivateStatic—
0x08s_projectionInfosProjectionInfo[]PrivateStatic—

Functions 146

SignatureFlagsNativeParams
AssemblyName GetAssemblyName(const StringHandle& nameHandle, Version version, const StringHandle& cultureHandle, const BlobHandle& publicKeyOrTokenHandle, const AssemblyHashAlgorithm& assemblyHashAlgorithm, const AssemblyFlags& flags)1 flags0x08
AssemblyNameFlags GetAssemblyNameFlags(const AssemblyFlags& flags)Private0x04
AssemblyContentType GetContentTypeFromAssemblyFlags(const AssemblyFlags& flags)Private0x04
void .ctor(const Byte*& metadata, int length)Public+1 flags0x04
void .ctor(const Byte*& metadata, int length, const MetadataReaderOptions& options)Public+1 flags0x04
void .ctor(const Byte*& metadata, int length, const MetadataReaderOptions& options, MetadataStringDecoder utf8Decoder)Public+1 flags0x08
void .ctor(const Byte*& metadata, int length, const MetadataReaderOptions& options, MetadataStringDecoder utf8Decoder, object memoryOwner)2 flags0x08
void ReadMetadataHeader(ref BlobReader& memReader, ref string& versionString)Private0x20
MetadataKind GetMetadataKind(const string& versionString)Private0x08
StreamHeader[] ReadStreamHeaders(ref BlobReader& memReader)Private0x20
void InitializeStreamReaders(ref MemoryBlock& metadataRoot, const StreamHeader[]& streamHeaders, ref MetadataStreamKind& metadataStreamKind, ref MemoryBlock& metadataTableStream, ref MemoryBlock& standalonePdbStream)Private0x10
void ReadMetadataTableHeader(ref BlobReader& reader, ref HeapSizes& heapSizes, ref int[]& metadataTableRowCounts, ref TableMask& sortedTables)Private0x20
int[] ReadMetadataTableRowCounts(ref BlobReader& memReader, ulong presentTableMask)PrivateStatic0x20
void ReadStandalonePortablePdbStream(const MemoryBlock& pdbStreamBlock, int pdbStreamOffset, ref DebugMetadataHeader& debugMetadataHeader, ref int[]& externalTableRowCounts)Static+1 flags0x10
int GetReferenceSize(const int[]& rowCounts, const TableIndex& index)Private0x08
void InitializeTableReaders(const MemoryBlock& metadataTablesMemoryBlock, const HeapSizes& heapSizes, const int[]& rowCounts, const int[]& externalRowCountsOpt)Private0x10
int[] CombineRowCounts(const int[]& local, const int[]& external, const TableIndex& firstLocalTableIndex)PrivateStatic0x08
int ComputeCodedTokenSize(int largeRowSize, const int[]& rowCounts, const TableMask& tablesReferenced)Private0x08
bool IsDeclaredSorted(const TableMask& index)Private0x08
bool get_UseFieldPtrTable()2 flags0x01
bool get_UseMethodPtrTable()2 flags0x01
bool get_UseParamPtrTable()2 flags0x01
bool get_UseEventPtrTable()2 flags0x01
bool get_UsePropertyPtrTable()2 flags0x01
void GetFieldRange(const TypeDefinitionHandle& typeDef, ref int& firstFieldRowId, ref int& lastFieldRowId)1 flags0x04
void GetMethodRange(const TypeDefinitionHandle& typeDef, ref int& firstMethodRowId, ref int& lastMethodRowId)1 flags0x04
void GetEventRange(const TypeDefinitionHandle& typeDef, ref int& firstEventRowId, ref int& lastEventRowId)1 flags0x04
void GetPropertyRange(const TypeDefinitionHandle& typeDef, ref int& firstPropertyRowId, ref int& lastPropertyRowId)1 flags0x04
void GetParameterRange(const MethodDefinitionHandle& methodDef, ref int& firstParamRowId, ref int& lastParamRowId)1 flags0x04
void GetLocalVariableRange(const LocalScopeHandle& scope, ref int& firstVariableRowId, ref int& lastVariableRowId)1 flags0x04
void GetLocalConstantRange(const LocalScopeHandle& scope, ref int& firstConstantRowId, ref int& lastConstantRowId)1 flags0x04
Byte* get_MetadataPointer()Public+1 flags0x00
int get_MetadataLength()Public+1 flags0x04
MetadataReaderOptions get_Options()Public+1 flags0x04
string get_MetadataVersion()Public+1 flags0x08
DebugMetadataHeader get_DebugMetadataHeader()Public+1 flags0x08
MetadataKind get_MetadataKind()Public+1 flags0x04
MetadataStringComparer get_StringComparer()Public+1 flags0x08
MetadataStringDecoder get_UTF8Decoder()Public+1 flags0x08
bool get_IsAssembly()Public+1 flags0x01
AssemblyReferenceHandleCollection get_AssemblyReferences()Public+1 flags0x08
TypeDefinitionHandleCollection get_TypeDefinitions()Public+1 flags0x04
TypeReferenceHandleCollection get_TypeReferences()Public+1 flags0x04
CustomAttributeHandleCollection get_CustomAttributes()Public+1 flags0x10
DeclarativeSecurityAttributeHandleCollection get_DeclarativeSecurityAttributes()Public+1 flags0x10
MemberReferenceHandleCollection get_MemberReferences()Public+1 flags0x04
ManifestResourceHandleCollection get_ManifestResources()Public+1 flags0x04
AssemblyFileHandleCollection get_AssemblyFiles()Public+1 flags0x04
ExportedTypeHandleCollection get_ExportedTypes()Public+1 flags0x04
MethodDefinitionHandleCollection get_MethodDefinitions()Public+1 flags0x10
FieldDefinitionHandleCollection get_FieldDefinitions()Public+1 flags0x10
EventDefinitionHandleCollection get_EventDefinitions()Public+1 flags0x10
PropertyDefinitionHandleCollection get_PropertyDefinitions()Public+1 flags0x10
DocumentHandleCollection get_Documents()Public+1 flags0x10
MethodDebugInformationHandleCollection get_MethodDebugInformation()Public+1 flags0x10
LocalScopeHandleCollection get_LocalScopes()Public+1 flags0x10
LocalVariableHandleCollection get_LocalVariables()Public+1 flags0x10
LocalConstantHandleCollection get_LocalConstants()Public+1 flags0x10
ImportScopeCollection get_ImportScopes()Public+1 flags0x10
CustomDebugInformationHandleCollection get_CustomDebugInformation()Public+1 flags0x10
AssemblyDefinition GetAssemblyDefinition()Public0x08
string GetString(const StringHandle& handle)Public0x08
string GetString(const NamespaceDefinitionHandle& handle)Public0x08
byte[] GetBlobBytes(const BlobHandle& handle)Public0x08
ImmutableArray<System.Byte> GetBlobContent(const BlobHandle& handle)Public0x08
BlobReader GetBlobReader(const BlobHandle& handle)Public0x20
BlobReader GetBlobReader(const StringHandle& handle)Public0x20
string GetUserString(const UserStringHandle& handle)Public0x08
Guid GetGuid(const GuidHandle& handle)Public0x10
ModuleDefinition GetModuleDefinition()Public0x08
AssemblyReference GetAssemblyReference(const AssemblyReferenceHandle& handle)Public0x10
TypeDefinition GetTypeDefinition(const TypeDefinitionHandle& handle)Public0x10
NamespaceDefinition GetNamespaceDefinitionRoot()Public0x08
NamespaceDefinition GetNamespaceDefinition(const NamespaceDefinitionHandle& handle)Public0x08
uint GetTypeDefTreatmentAndRowId(const TypeDefinitionHandle& handle)Private0x04
TypeReference GetTypeReference(const TypeReferenceHandle& handle)Public0x10
uint GetTypeRefTreatmentAndRowId(const TypeReferenceHandle& handle)Private0x04
ExportedType GetExportedType(const ExportedTypeHandle& handle)Public0x10
CustomAttributeHandleCollection GetCustomAttributes(const EntityHandle& handle)Public0x10
CustomAttribute GetCustomAttribute(const CustomAttributeHandle& handle)Public0x10
uint GetCustomAttributeTreatmentAndRowId(const CustomAttributeHandle& handle)Private0x04
DeclarativeSecurityAttribute GetDeclarativeSecurityAttribute(const DeclarativeSecurityAttributeHandle& handle)Public0x10
Constant GetConstant(const ConstantHandle& handle)Public0x10
MethodDefinition GetMethodDefinition(const MethodDefinitionHandle& handle)Public0x10
uint GetMethodDefTreatmentAndRowId(const MethodDefinitionHandle& handle)Private0x04
FieldDefinition GetFieldDefinition(const FieldDefinitionHandle& handle)Public0x10
uint GetFieldDefTreatmentAndRowId(const FieldDefinitionHandle& handle)Private0x04
PropertyDefinition GetPropertyDefinition(const PropertyDefinitionHandle& handle)Public0x10
EventDefinition GetEventDefinition(const EventDefinitionHandle& handle)Public0x10
MethodImplementation GetMethodImplementation(const MethodImplementationHandle& handle)Public0x10
MemberReference GetMemberReference(const MemberReferenceHandle& handle)Public0x10
uint GetMemberRefTreatmentAndRowId(const MemberReferenceHandle& handle)Private0x04
MethodSpecification GetMethodSpecification(const MethodSpecificationHandle& handle)Public0x10
Parameter GetParameter(const ParameterHandle& handle)Public0x10
GenericParameter GetGenericParameter(const GenericParameterHandle& handle)Public0x10
GenericParameterConstraint GetGenericParameterConstraint(const GenericParameterConstraintHandle& handle)Public0x10
ManifestResource GetManifestResource(const ManifestResourceHandle& handle)Public0x10
AssemblyFile GetAssemblyFile(const AssemblyFileHandle& handle)Public0x10
StandaloneSignature GetStandaloneSignature(const StandaloneSignatureHandle& handle)Public0x10
TypeSpecification GetTypeSpecification(const TypeSpecificationHandle& handle)Public0x10
ModuleReference GetModuleReference(const ModuleReferenceHandle& handle)Public0x10
InterfaceImplementation GetInterfaceImplementation(const InterfaceImplementationHandle& handle)Public0x10
TypeDefinitionHandle GetDeclaringType(const MethodDefinitionHandle& methodDef)1 flags0x04
TypeDefinitionHandle GetDeclaringType(const FieldDefinitionHandle& fieldDef)1 flags0x04
string GetString(const DocumentNameBlobHandle& handle)Public0x08
Document GetDocument(const DocumentHandle& handle)Public0x10
MethodDebugInformation GetMethodDebugInformation(const MethodDebugInformationHandle& handle)Public0x10
MethodDebugInformation GetMethodDebugInformation(const MethodDefinitionHandle& handle)Public0x10
LocalScope GetLocalScope(const LocalScopeHandle& handle)Public0x10
LocalVariable GetLocalVariable(const LocalVariableHandle& handle)Public0x10
LocalConstant GetLocalConstant(const LocalConstantHandle& handle)Public0x10
ImportScope GetImportScope(const ImportScopeHandle& handle)Public0x10
CustomDebugInformation GetCustomDebugInformation(const CustomDebugInformationHandle& handle)Public0x10
CustomDebugInformationHandleCollection GetCustomDebugInformation(const EntityHandle& handle)Public0x10
LocalScopeHandleCollection GetLocalScopes(const MethodDefinitionHandle& handle)Public0x10
LocalScopeHandleCollection GetLocalScopes(const MethodDebugInformationHandle& handle)Public0x10
void InitializeNestedTypesMap()Private0x00
ImmutableArray<System.Reflection.Metadata.TypeDefinitionHandle> GetNestedTypes(const TypeDefinitionHandle& typeDef)1 flags0x08
TypeDefTreatment GetWellKnownTypeDefinitionTreatment(const TypeDefinitionHandle& typeDef)Private0x04
int GetProjectionIndexForTypeReference(const TypeReferenceHandle& typeRef, ref bool& isIDisposable)Private0x04
AssemblyReferenceHandle GetProjectedAssemblyRef(int projectionIndex)Static+1 flags0x04
StringHandle GetProjectedName(int projectionIndex)Static+1 flags0x04
StringHandle GetProjectedNamespace(int projectionIndex)Static+1 flags0x04
TypeRefSignatureTreatment GetProjectedSignatureTreatment(int projectionIndex)Static+1 flags0x04
void InitializeProjectedTypes()PrivateStatic0x00
void AssertSorted(const string[]& keys)PrivateStatic0x08
string[] GetProjectedTypeNames()Static+1 flags0x08
uint TreatmentAndRowId(byte treatment, int rowId)PrivateStatic0x04
uint CalculateTypeDefTreatmentAndRowId(const TypeDefinitionHandle& handle)1 flags0x04
bool IsClrImplementationType(const TypeDefinitionHandle& typeDef)Private0x04
uint CalculateTypeRefTreatmentAndRowId(const TypeReferenceHandle& handle)1 flags0x04
TypeRefTreatment GetSpecialTypeRefTreatment(const TypeReferenceHandle& handle)Private0x04
bool IsSystemAttribute(const TypeReferenceHandle& handle)Private0x04
bool NeedsWinRTPrefix(const TypeAttributes& flags, const EntityHandle& extends)Private0x04
uint CalculateMethodDefTreatmentAndRowId(const MethodDefinitionHandle& methodDef)Private0x04
MethodDefTreatment GetMethodTreatmentFromCustomAttributes(const MethodDefinitionHandle& methodDef)Private0x04
uint CalculateFieldDefTreatmentAndRowId(const FieldDefinitionHandle& handle)Private0x04
uint CalculateMemberRefTreatmentAndRowId(const MemberReferenceHandle& handle)Private0x04
bool ImplementsRedirectedInterface(const MemberReferenceHandle& memberRef, ref bool& isIDisposable)Private0x04
int FindMscorlibAssemblyRefNoProjection()Private0x04
CustomAttributeValueTreatment CalculateCustomAttributeValueTreatment(const CustomAttributeHandle& handle)1 flags0x04
bool IsWindowsAttributeUsageAttribute(const EntityHandle& targetType, const CustomAttributeHandle& attributeHandle)Private0x04
bool HasAttribute(const EntityHandle& token, const string& asciiNamespaceName, const string& asciiTypeName)Private0x08
bool GetAttributeTypeNameRaw(const CustomAttributeHandle& caHandle, ref StringHandle& namespaceName, ref StringHandle& typeName)Private0x04
EntityHandle GetAttributeTypeRaw(const CustomAttributeHandle& handle)Private0x04
void .cctor()PrivateStatic+1 flags0x00

Used by 83

types with a member, parameter or interface of this type
<GetEditAndContinueLogEntries>d__10<GetEditAndContinueMapEntries>d__11<GetTypesWithEvents>d__13<GetTypesWithProperties>d__12AssemblyDefinitionAssemblyFileAssemblyReferenceAssemblyReferenceHandleCollectionChildrenEnumeratorConstantCustomAttributeCustomAttributeDecoder`1CustomAttributeHandleCollectionCustomDebugInformationCustomDebugInformationHandleCollectionDeclarativeSecurityAttributeDeclarativeSecurityAttributeHandleCollectionDocumentDocumentHandleCollectionEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEnumeratorEventDefinitionEventDefinitionHandleCollectionExportedTypeFieldDefinitionFieldDefinitionHandleCollectionGenericParameterGenericParameterConstraintImportScopeImportScopeCollectionInterfaceImplementationInterfaceImplementationHandleCollectionIReadOnlyList`1ISignatureTypeProvider`2ISimpleTypeProvider`1LocalConstantLocalConstantHandleCollectionLocalScopeLocalScopeHandleCollectionLocalVariableLocalVariableHandleCollectionManifestResourceMemberReferenceMetadataAggregatorMetadataReaderExtensionsMetadataReaderProviderMetadataStringComparerMetadataTokensMethodDebugInformationMethodDebugInformationHandleCollectionMethodDefinitionMethodDefinitionHandleCollectionMethodImplementationMethodImplementationHandleCollectionMethodSpecificationModuleDefinitionModuleReferenceNamespaceCacheParameterParameterHandleCollectionPEReaderExtensionsPortablePdbReaderPropertyDefinitionPropertyDefinitionHandleCollectionSignatureDecoder`2StandaloneSignature+3 more