3 instantiations of BlobHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
2583return new BlobHandle((uint)heapOffset); 2589return new BlobHandle(TokenTypeIds.VirtualBit | (uint)(virtualValue << 8) | (uint)virtualIndex); 2619return new BlobHandle(
352 references to BlobHandle
Microsoft.CodeAnalysis (110)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
38public BlobHandle MetadataSignatureHandle
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
68private readonly HeapOrReferenceIndex<BlobHandle> _standAloneSignatureIndex; 129_standAloneSignatureIndex = new HeapOrReferenceIndex<BlobHandle>(this, lastRowId: sizes[(int)TableIndex.StandAloneSig]); 479protected override StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(BlobHandle blobIndex) 484protected override IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles() 880BlobHandle blobIndex = metadata.GetOrAddBlob(writer);
MetadataReader\MetadataDecoder.cs (11)
1141var signatureHandle = Module.MetadataReader.GetStandaloneSignature(handle).Signature; 1181var signature = reader.GetStandaloneSignature(localSignatureHandle).Signature; 1212BlobHandle signature = Module.GetMethodSignatureOrThrow(methodDef); 1259BlobHandle signature = module.GetMethodSignatureOrThrow(methodDef); 1273var signature = Module.GetPropertySignatureOrThrow(handle); 1300var signature = Module.GetPropertySignatureOrThrow(handle); 1743private TypeSymbol[] DecodeMethodSpecTypeArgumentsOrThrow(BlobHandle signature) 1769internal BlobReader DecodeSignatureHeaderOrThrow(BlobHandle signature, out SignatureHeader signatureHeader) 1775internal static BlobReader DecodeSignatureHeaderOrThrow(PEModule module, BlobHandle signature, out SignatureHeader signatureHeader) 1834BlobHandle signature = Module.GetFieldSignatureOrThrow(fieldHandle); 2224BlobHandle instantiation;
MetadataReader\MetadataReaderExtensions.cs (1)
98BlobHandle publicKey,
MetadataReader\PEModule.cs (18)
491internal BlobReader GetMemoryReaderOrThrow(BlobHandle blob) 1788var valueBlob = GetCustomAttributeValueOrThrow(handle); 1997BlobHandle valueBlob = GetCustomAttributeValueOrThrow(handle); 2096BlobHandle valueBlob = GetCustomAttributeValueOrThrow(typeIdentifierInfo.Handle); 3254BlobHandle signature = MetadataReader.GetTypeSpecification(typeSpec).Signature; 3265internal void GetMethodSpecificationOrThrow(MethodSpecificationHandle handle, out EntityHandle method, out BlobHandle instantiation) 3298internal BlobHandle GetMethodSignatureOrThrow(MethodDefinitionHandle methodDef) 3304private static BlobHandle GetMethodSignatureOrThrow(MetadataReader metadataReader, MethodDefinitionHandle methodDef) 3310internal BlobHandle GetMethodSignatureOrThrow(EntityHandle methodDefOrRef) 3316private static BlobHandle GetMethodSignatureOrThrow(MetadataReader metadataReader, EntityHandle methodDefOrRef) 3434internal BlobHandle GetSignatureOrThrow(MemberReferenceHandle memberRef) 3440private static BlobHandle GetSignatureOrThrow(MetadataReader metadataReader, MemberReferenceHandle memberRef) 3497internal BlobHandle GetPropertySignatureOrThrow(PropertyDefinitionHandle propertyDef) 3547internal BlobHandle GetFieldSignatureOrThrow(FieldDefinitionHandle fieldDef) 3615public BlobHandle GetCustomAttributeValueOrThrow(CustomAttributeHandle handle) 3623private BlobHandle GetMarshallingDescriptorHandleOrThrow(EntityHandle fieldOrParameterToken) 3634var blob = GetMarshallingDescriptorHandleOrThrow(fieldOrParameterToken); 3657var blob = GetMarshallingDescriptorHandleOrThrow(fieldOrParameterToken);
MetadataReference\AssemblyIdentityUtils.cs (1)
35BlobHandle publicKeyHandle = assemblyDefinition.PublicKey;
PEWriter\FullMetadataWriter.cs (4)
38private readonly HeapOrReferenceIndex<BlobHandle> _standAloneSignatureIndex; 111_standAloneSignatureIndex = new HeapOrReferenceIndex<BlobHandle>(this); 305protected override StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(BlobHandle blobIndex) 310protected override IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles()
PEWriter\MetadataBuilderExtensions.cs (2)
13internal static BlobHandle GetOrAddBlobAndFree(this MetadataBuilder metadataBuilder, PooledBlobBuilder builder) 15var handle = metadataBuilder.GetOrAddBlob(builder);
PEWriter\MetadataWriter.cs (44)
114_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures 384protected abstract StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(BlobHandle handle); 390protected abstract IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles(); 439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 446private readonly Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>> _signatureIndex; 448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 708private BlobHandle GetCustomAttributeSignatureIndex(ICustomAttribute customAttribute) 710BlobHandle result; 805internal BlobHandle GetFieldSignatureIndex(IFieldReference fieldReference) 807BlobHandle result; 1044internal BlobHandle GetMethodSpecificationSignatureHandle(IGenericMethodInstanceReference methodInstanceReference) 1046BlobHandle result; 1067private BlobHandle GetMarshallingDescriptorHandle(IMarshallingInformation marshallingInformation) 1069BlobHandle result; 1083private BlobHandle GetMarshallingDescriptorHandle(ImmutableArray<byte> descriptor) 1088private BlobHandle GetMemberReferenceSignatureHandle(ITypeMemberReference memberRef) 1098internal BlobHandle GetMethodSignatureHandle(IMethodReference methodReference) 1115private BlobHandle GetMethodSignatureHandleAndBlob(IMethodReference methodReference, out ImmutableArray<byte> signatureBlob) 1117BlobHandle result; 1124KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1149private BlobHandle GetMethodSpecificationBlobHandle(IGenericMethodInstanceReference genericMethodInstanceReference) 1153BlobHandle result = metadata.GetOrAddBlob(writer); 1196BlobHandle blobIndex = metadata.GetOrAddBlob(builder); 1232private BlobHandle GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet) 1235BlobHandle result; 1272private BlobHandle GetPropertySignatureHandle(IPropertyDefinition propertyDef) 1274KeyValuePair<BlobHandle, ImmutableArray<byte>> existing; 1288var result = metadata.GetOrAddBlob(blob); 1643internal BlobHandle GetTypeSpecSignatureIndex(ITypeReference typeReference) 1645BlobHandle result; 1967hashValue: default(BlobHandle)); 2304BlobHandle descriptor = (marshallingInformation != null) 2322BlobHandle descriptor = (marshallingInformation != null) 2898foreach (BlobHandle signature in signatures) 3059BlobHandle blobIndex = metadata.GetOrAddBlob(builder); 3089BlobHandle blobIndex = metadata.GetOrAddBlob(builder);
PEWriter\MetadataWriter.DynamicAnalysis.cs (15)
22public BlobHandle Name; 24public BlobHandle Hash; 29public BlobHandle Spans; 33private readonly Dictionary<ImmutableArray<byte>, BlobHandle> _blobs; 50_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate, ByteSequenceComparer.Instance); 61_blobs.Add(ImmutableArray<byte>.Empty, default(BlobHandle)); 69BlobHandle spanBlob = SerializeSpans(spans, _documentIndex); 76private BlobHandle GetOrAddBlob(BlobBuilder builder) 82private BlobHandle GetOrAddBlob(ImmutableArray<byte> blob) 84BlobHandle index; 124private BlobHandle SerializeSpans( 130return default(BlobHandle); 218Hash = (sourceInfo.Checksum.IsDefault) ? default(BlobHandle) : GetOrAddBlob(sourceInfo.Checksum) 228private BlobHandle SerializeDocumentName(string name) 244BlobHandle partIndex = GetOrAddBlob(ImmutableArray.Create(MetadataWriter.s_utf8Encoding.GetBytes(part)));
PEWriter\MetadataWriter.PortablePdb.cs (7)
71BlobHandle sequencePointsBlob = SerializeSequencePoints(localSignatureHandleOpt, bodyOpt.SequencePoints, _documentIndex, out var singleDocumentHandle); 149value: default(BlobHandle)); 170private BlobHandle SerializeLocalConstantSignature(ILocalDefinition localConstant) 456private BlobHandle SerializeImportsBlob(IImportScope scope) 626private BlobHandle SerializeSequencePoints( 635return default(BlobHandle); 769hash: info.Checksum.IsDefault ? default(BlobHandle) : _debugMetadataOpt.GetOrAddBlob(info.Checksum),
Symbols\IMethodSymbolInternal.cs (1)
56BlobHandle MetadataSignatureHandle { get; }
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35BlobHandle publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
122BlobHandle signatureHandle;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
891public override BlobHandle MetadataSignatureHandle
Symbols\MethodSymbol.cs (1)
1228public virtual BlobHandle MetadataSignatureHandle => default;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12625hashValue: default(BlobHandle)); 12656var parameterlessCtorBlobIndex = metadata.GetOrAddBlob(parameterlessCtorSignature);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\EditAndContinueTestBase.cs (3)
221public static void CheckBlobValue(IList<MetadataReader> readers, BlobHandle valueHandle, byte[] expectedValue) 225var genHandle = (BlobHandle)aggregator.GetGenerationHandle(valueHandle, out int blobGeneration);
Emit\EditAndContinue\EditAndContinueTests.cs (2)
328var b = MetadataTokens.BlobHandle(0); 12507var handle = MetadataTokens.BlobHandle(1);
PDB\TypeDefinitionDocumentTests.cs (1)
490string GetDocumentNames(BlobHandle value)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Portable.cs (1)
240private static string ReadUtf8String(MetadataReader reader, BlobHandle handle)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
249var blob = metadataReader.GetAssemblyDefinition().PublicKey;
Microsoft.CodeAnalysis.Test.Utilities (17)
Metadata\DynamicAnalysisDataReader.cs (12)
23public readonly BlobHandle Name; 25public readonly BlobHandle Hash; 27public DynamicAnalysisDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash) 37public readonly BlobHandle Blob; 39public DynamicAnalysisMethod(BlobHandle blob) 110var name = MetadataTokens.BlobHandle(ReadReference(ref reader, isBlobHeapSmall)); 112var hash = MetadataTokens.BlobHandle(ReadReference(ref reader, isBlobHeapSmall)); 197public ImmutableArray<DynamicAnalysisSpan> GetSpans(BlobHandle handle) 284internal byte[] GetBytes(BlobHandle handle) 290private BlobReader GetBlobReader(BlobHandle handle) 299public string GetDocumentName(BlobHandle handle)
Metadata\MetadataReaderUtils.cs (3)
181private static ImmutableArray<T> ReadArray<T>(this MetadataReader reader, BlobHandle blobHandle, ReadBlobItemDelegate<T> readItem) 196public static ImmutableArray<byte> ReadByteArray(this MetadataReader reader, BlobHandle blobHandle) 201public static ImmutableArray<bool> ReadBoolArray(this MetadataReader reader, BlobHandle blobHandle)
Metadata\MetadataValidation.cs (2)
88BlobHandle descriptor = metadataReader.GetFieldDefinition(fieldDef).GetMarshallingDescriptor(); 121BlobHandle descriptor = metadataReader.GetParameter(paramHandle).GetMarshallingDescriptor();
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
101Dim signatureHandle As BlobHandle
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1047Friend Overrides ReadOnly Property MetadataSignatureHandle As BlobHandle
Symbols\MethodSymbol.vb (1)
276Friend Overridable ReadOnly Property MetadataSignatureHandle As BlobHandle Implements IMethodSymbolInternal.MetadataSignatureHandle
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Emit\EditAndContinue\EditAndContinueTestBase.vb (2)
287Public Shared Sub CheckBlobValue(readers As IList(Of MetadataReader), valueHandle As BlobHandle, expectedValue As Byte()) 291Dim genHandle = CType(aggregator.GetGenerationHandle(valueHandle, generation), BlobHandle)
PDB\TypeDefinitionDocumentTests.vb (1)
373Private Shared Function GetDocumentNames(pdbReader As MetadataReader, value As BlobHandle) As String
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35BlobHandle publicKeyHandle = assemblyDefinition.PublicKey;
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
291BlobHandle signature;
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
446private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature)
System.Reflection.Metadata (198)
System\Reflection\Metadata\BlobReader.cs (2)
627public BlobHandle ReadBlobHandle() 629return BlobHandle.FromOffset(ReadCompressedInteger());
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (5)
17private readonly Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>> _dictionary; 25private unsafe ref KeyValuePair<ImmutableArray<byte>, BlobHandle> GetValueRefOrAddDefault(ReadOnlySpan<byte> key, out bool exists) 43public BlobHandle GetOrAdd(ReadOnlySpan<byte> key, ImmutableArray<byte> immutableKey, BlobHandle value, out bool exists) 106public Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>>.Enumerator GetEnumerator() =>
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (3)
22public CustomAttributeValue<TType> DecodeValue(EntityHandle constructor, BlobHandle value) 24BlobHandle signature; 25BlobHandle attributeOwningTypeSpec = default;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (16)
177internal static int SerializeHandle(BlobHandle handle) => handle.GetHeapOffset(); 187public BlobHandle GetOrAddBlob(BlobBuilder value) 208public BlobHandle GetOrAddBlob(byte[] value) 218private BlobHandle GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default) 220BlobHandle nextHandle = BlobHandle.FromOffset(_blobHeapStartOffset + _blobHeapSize); 221BlobHandle handle = _blobs.GetOrAdd(value, immutableValue, nextHandle, out bool exists); 236public BlobHandle GetOrAddBlob(ImmutableArray<byte> value) 252public unsafe BlobHandle GetOrAddConstantBlob(object? value) 261var result = GetOrAddBlob(builder); 272public BlobHandle GetOrAddBlobUTF16(string value) 286var handle = GetOrAddBlob(builder); 300public BlobHandle GetOrAddBlobUTF8(string value, bool allowUnpairedSurrogates = true) 304var handle = GetOrAddBlob(builder); 318public BlobHandle GetOrAddDocumentName(string value) 358var resultHandle = GetOrAddBlob(resultBuilder);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (41)
17private struct AssemblyRefTableRow { public Version Version; public BlobHandle PublicKeyToken; public StringHandle Name; public StringHandle Culture; public uint Flags; public BlobHandle HashValue; } 19private struct AssemblyRow { public uint HashAlgorithm; public Version Version; public ushort Flags; public BlobHandle AssemblyKey; public StringHandle AssemblyName; public StringHandle AssemblyCulture; } 21private struct ConstantRow { public byte Type; public int Parent; public BlobHandle Value; } 22private struct CustomAttributeRow { public int Parent; public int Type; public BlobHandle Value; } 23private struct DeclSecurityRow { public ushort Action; public int Parent; public BlobHandle PermissionSet; } 30private struct FieldMarshalRow { public int Parent; public BlobHandle NativeType; } 32private struct FieldDefRow { public ushort Flags; public StringHandle Name; public BlobHandle Signature; } 33private struct FileTableRow { public uint Flags; public StringHandle FileName; public BlobHandle HashValue; } 39private struct MemberRefRow { public int Class; public StringHandle Name; public BlobHandle Signature; } 42private struct MethodSpecRow { public int Method; public BlobHandle Instantiation; } 43private struct MethodRow { public int BodyOffset; public ushort ImplFlags; public ushort Flags; public StringHandle Name; public BlobHandle Signature; public int ParamList; } 48private struct PropertyRow { public ushort PropFlags; public StringHandle Name; public BlobHandle Type; } 51private struct TypeSpecRow { public BlobHandle Signature; } 52private struct StandaloneSigRow { public BlobHandle Signature; } 55private struct DocumentRow { public BlobHandle Name; public GuidHandle HashAlgorithm; public BlobHandle Hash; public GuidHandle Language; } 56private struct MethodDebugInformationRow { public int Document; public BlobHandle SequencePoints; } 59private struct LocalConstantRow { public StringHandle Name; public BlobHandle Signature; } 60private struct ImportScopeRow { public int Parent; public BlobHandle Imports; } 62private struct CustomDebugInformationRow { public int Parent; public GuidHandle Kind; public BlobHandle Value; } 391BlobHandle publicKey, 422BlobHandle publicKeyOrToken, 424BlobHandle hashValue) 581public TypeSpecificationHandle AddTypeSpecification(BlobHandle signature) 591public StandaloneSignatureHandle AddStandaloneSignature(BlobHandle signature) 607public PropertyDefinitionHandle AddProperty(PropertyAttributes attributes, StringHandle name, BlobHandle signature) 747public CustomAttributeHandle AddCustomAttribute(EntityHandle parent, EntityHandle constructor, BlobHandle value) 771public MethodSpecificationHandle AddMethodSpecification(EntityHandle method, BlobHandle instantiation) 882BlobHandle signature) 924BlobHandle descriptor) 989BlobHandle signature, 1077BlobHandle signature) 1116BlobHandle hashValue, 1170BlobHandle permissionSet) 1221public DocumentHandle AddDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash, GuidHandle language) 1244public MethodDebugInformationHandle AddMethodDebugInformation(DocumentHandle document, BlobHandle sequencePoints) 1320public LocalConstantHandle AddLocalConstant(StringHandle name, BlobHandle signature) 1338public ImportScopeHandle AddImportScope(ImportScopeHandle parentScope, BlobHandle imports) 1405public CustomDebugInformationHandle AddCustomDebugInformation(EntityHandle parent, GuidHandle kind, BlobHandle value)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
257public static BlobHandle GetNextHandle(this MetadataReader reader, BlobHandle handle)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (3)
159public static int GetHeapOffset(BlobHandle handle) => handle.IsVirtual ? -1 : handle.GetHeapOffset(); 509public static BlobHandle BlobHandle(int offset) 511return Metadata.BlobHandle.FromOffset(offset);
System\Reflection\Metadata\Internal\BlobHeap.cs (19)
23var blobs = new byte[(int)BlobHandle.VirtualIndex.Count][]; 25blobs[(int)BlobHandle.VirtualIndex.ContractPublicKeyToken] = new byte[] 30blobs[(int)BlobHandle.VirtualIndex.ContractPublicKey] = new byte[] 44blobs[(int)BlobHandle.VirtualIndex.AttributeUsage_AllowSingle] = new byte[] 64blobs[(int)BlobHandle.VirtualIndex.AttributeUsage_AllowMultiple] = new byte[] 88internal byte[] GetBytes(BlobHandle handle) 107internal MemoryBlock GetMemoryBlock(BlobHandle handle) 119private MemoryBlock GetVirtualHandleMemoryBlock(BlobHandle handle) 134internal BlobReader GetBlobReader(BlobHandle handle) 139internal BlobHandle GetNextHandle(BlobHandle handle) 143return default(BlobHandle); 149return default(BlobHandle); 155return default(BlobHandle); 158return BlobHandle.FromOffset(nextIndex); 161internal static byte[] GetVirtualBlobBytes(BlobHandle handle, bool unique) 163BlobHandle.VirtualIndex index = handle.GetVirtualIndex(); 168case BlobHandle.VirtualIndex.AttributeUsage_AllowMultiple: 169case BlobHandle.VirtualIndex.AttributeUsage_AllowSingle:
System\Reflection\Metadata\Internal\Tables.cs (30)
361internal BlobHandle GetSignature(FieldDefinitionHandle handle) 364return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 447internal BlobHandle GetSignature(MethodDefinitionHandle handle) 450return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 658internal BlobHandle GetSignature(MemberReferenceHandle handle) 661return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 718internal BlobHandle GetValue(ConstantHandle handle) 721return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _ValueOffset, _IsBlobHeapRefSizeSmall)); 807internal BlobHandle GetValue(CustomAttributeHandle handle) 810return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _ValueOffset, _IsBlobHeapRefSizeSmall)); 899internal BlobHandle GetNativeType(int rowId) 902return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _NativeTypeOffset, _IsBlobHeapRefSizeSmall)); 971internal BlobHandle GetPermissionSet(int rowId) 974return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _PermissionSetOffset, _IsBlobHeapRefSizeSmall)); 1158internal BlobHandle GetSignature(int rowId) 1161return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 1420internal BlobHandle GetSignature(PropertyDefinitionHandle handle) 1423return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 1660internal BlobHandle GetSignature(TypeSpecificationHandle handle) 1663return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall)); 1929internal BlobHandle GetPublicKey() 1932return BlobHandle.FromOffset(this.Block.PeekHeapReference(_PublicKeyOffset, _IsBlobHeapRefSizeSmall)); 2057internal BlobHandle GetPublicKeyOrToken(int rowId) 2060return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _PublicKeyOrTokenOffset, _IsBlobHeapRefSizeSmall)); 2075internal BlobHandle GetHashValue(int rowId) 2078return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _HashValueOffset, _IsBlobHeapRefSizeSmall)); 2163internal BlobHandle GetHashValue(AssemblyFileHandle handle) 2166return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _HashValueOffset, _IsBlobHeapRefSizeSmall)); 2518internal BlobHandle GetInstantiation(MethodSpecificationHandle handle) 2521return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _InstantiationOffset, _IsBlobHeapRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (3)
1076public byte[] GetBlobBytes(BlobHandle handle) 1081public ImmutableArray<byte> GetBlobContent(BlobHandle handle) 1088public BlobReader GetBlobReader(BlobHandle handle)
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
14internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle, BlobHandle publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags)
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
618BlobHandle blob = TypeSpecTable.GetSignature((TypeSpecificationHandle)parent);
System\Reflection\Metadata\PortablePdb\CustomDebugInformation.cs (1)
28public BlobHandle Value => _reader.CustomDebugInformationTable.GetValue(Handle);
System\Reflection\Metadata\PortablePdb\Document.cs (1)
54public BlobHandle Hash => _reader.DocumentTable.GetHash(Handle);
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (5)
12/// <see cref="BlobHandle"/> representing a blob on #Blob heap in Portable PDB 17/// The handle is a specialization of <see cref="BlobHandle"/> and doesn't have a distinct kind. 37public static implicit operator BlobHandle(DocumentNameBlobHandle handle) 39return BlobHandle.FromOffset(handle._heapOffset); 42public static explicit operator DocumentNameBlobHandle(BlobHandle handle)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (5)
11public BlobHandle Alias { get; } 14public BlobHandle TargetNamespace => (BlobHandle)_typeOrNamespace; 20BlobHandle alias = default(BlobHandle),
System\Reflection\Metadata\PortablePdb\ImportScope.cs (1)
33public BlobHandle ImportsBlob => _reader.ImportScopeTable.GetImports(Handle);
System\Reflection\Metadata\PortablePdb\LocalConstant.cs (1)
37public BlobHandle Signature => _reader.LocalConstantTable.GetSignature(Handle);
System\Reflection\Metadata\PortablePdb\MethodDebugInformation.cs (1)
35public BlobHandle SequencePointsBlob => _reader.MethodDebugInformationTable.GetSequencePoints(Handle);
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (10)
54internal BlobHandle GetHash(DocumentHandle handle) 57return BlobHandle.FromOffset(Block.PeekHeapReference(rowOffset + _hashOffset, _isBlobHeapRefSizeSmall)); 103internal BlobHandle GetSequencePoints(MethodDebugInformationHandle handle) 106return BlobHandle.FromOffset(Block.PeekHeapReference(rowOffset + _sequencePointsOffset, _isBlobHeapRefSizeSmall)); 320internal BlobHandle GetSignature(LocalConstantHandle handle) 323return BlobHandle.FromOffset(Block.PeekHeapReference(rowOffset + _signatureOffset, _isBlobHeapRefSizeSmall)); 421internal BlobHandle GetImports(ImportScopeHandle handle) 424return BlobHandle.FromOffset(Block.PeekHeapReference(rowOffset + _importsOffset, _isBlobHeapRefSizeSmall)); 481internal BlobHandle GetValue(CustomDebugInformationHandle handle) 484return BlobHandle.FromOffset(Block.PeekHeapReference(rowOffset + _valueOffset, _isBlobHeapRefSizeSmall));
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
58public BlobHandle PublicKey
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
57public BlobHandle HashValue
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (8)
98public BlobHandle PublicKeyOrToken 111public BlobHandle HashValue 184private BlobHandle GetVirtualPublicKeyOrToken() 196return BlobHandle.FromVirtualIndex(hasFullKey ? BlobHandle.VirtualIndex.ContractPublicKey : BlobHandle.VirtualIndex.ContractPublicKeyToken, 0); 200private static BlobHandle GetVirtualHashValue() 202return default(BlobHandle);
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
52public BlobHandle Value
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (10)
74public BlobHandle Value 98private BlobHandle GetProjectedValue() 118private BlobHandle GetProjectedValue(CustomAttributeValueTreatment treatment) 120BlobHandle.VirtualIndex virtualIndex; 126virtualIndex = BlobHandle.VirtualIndex.AttributeUsage_AllowMultiple; 131virtualIndex = BlobHandle.VirtualIndex.AttributeUsage_AllowMultiple; 136virtualIndex = BlobHandle.VirtualIndex.AttributeUsage_AllowSingle; 142return default(BlobHandle); 149var rawBlob = _reader.CustomAttributeTable.GetValue(Handle); 167return BlobHandle.FromVirtualIndex(virtualIndex, (ushort)projectedValue);
System\Reflection\Metadata\TypeSystem\DeclarativeSecurityAttribute.cs (1)
41public BlobHandle PermissionSet
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (4)
66public BlobHandle Signature 132public BlobHandle GetMarshallingDescriptor() 137return default(BlobHandle); 168private BlobHandle GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (11)
2549public readonly struct BlobHandle : IEquatable<BlobHandle> 2581internal static BlobHandle FromOffset(int heapOffset) 2586internal static BlobHandle FromVirtualIndex(VirtualIndex virtualIndex, ushort virtualValue) 2604public static implicit operator Handle(BlobHandle handle) 2612public static explicit operator BlobHandle(Handle handle) 2655return obj is BlobHandle bh && Equals(bh); 2658public bool Equals(BlobHandle other) 2668public static bool operator ==(BlobHandle left, BlobHandle right) 2673public static bool operator !=(BlobHandle left, BlobHandle right)
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
72public BlobHandle Signature 139private BlobHandle GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (2)
53public BlobHandle Signature 206private BlobHandle GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
45public BlobHandle Signature
System\Reflection\Metadata\TypeSystem\Parameter.cs (2)
58public BlobHandle GetMarshallingDescriptor() 63return default(BlobHandle);
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
47public BlobHandle Signature
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
34public BlobHandle Signature
System\Reflection\Metadata\TypeSystem\TypeSpecification.cs (1)
30public BlobHandle Signature
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
178public static MarshalAsAttribute ToMarshalAsAttribute(this BlobHandle blobHandle, EcmaModule module)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (3)
15public static byte[] GetBlobBytes(this BlobHandle handle, MetadataReader reader) => reader.GetBlobBytes(handle); 16public static ImmutableArray<byte> GetBlobContent(this BlobHandle handle, MetadataReader reader) => reader.GetBlobContent(handle); 17public static BlobReader GetBlobReader(this BlobHandle handle, MetadataReader reader) => reader.GetBlobReader(handle);