3 instantiations of BlobHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
2583
return new
BlobHandle
((uint)heapOffset);
2589
return new
BlobHandle
(TokenTypeIds.VirtualBit | (uint)(virtualValue << 8) | (uint)virtualIndex);
2619
return new
BlobHandle
(
366 references to BlobHandle
GenerateDocumentationAndConfigFiles (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Metrics (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Metrics.Legacy (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis (110)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
38
public
BlobHandle
MetadataSignatureHandle
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
66
private readonly HeapOrReferenceIndex<
BlobHandle
> _standAloneSignatureIndex;
125
_standAloneSignatureIndex = new HeapOrReferenceIndex<
BlobHandle
>(this, lastRowId: sizes[(int)TableIndex.StandAloneSig]);
489
protected override StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(
BlobHandle
blobIndex)
494
protected override IReadOnlyList<
BlobHandle
> GetStandaloneSignatureBlobHandles()
892
BlobHandle
blobIndex = metadata.GetOrAddBlob(writer);
MetadataReader\MetadataDecoder.cs (11)
1141
var
signatureHandle = Module.MetadataReader.GetStandaloneSignature(handle).Signature;
1181
var
signature = reader.GetStandaloneSignature(localSignatureHandle).Signature;
1212
BlobHandle
signature = Module.GetMethodSignatureOrThrow(methodDef);
1259
BlobHandle
signature = module.GetMethodSignatureOrThrow(methodDef);
1273
var
signature = Module.GetPropertySignatureOrThrow(handle);
1300
var
signature = Module.GetPropertySignatureOrThrow(handle);
1743
private TypeSymbol[] DecodeMethodSpecTypeArgumentsOrThrow(
BlobHandle
signature)
1769
internal BlobReader DecodeSignatureHeaderOrThrow(
BlobHandle
signature, out SignatureHeader signatureHeader)
1775
internal static BlobReader DecodeSignatureHeaderOrThrow(PEModule module,
BlobHandle
signature, out SignatureHeader signatureHeader)
1834
BlobHandle
signature = Module.GetFieldSignatureOrThrow(fieldHandle);
2224
BlobHandle
instantiation;
MetadataReader\MetadataReaderExtensions.cs (1)
98
BlobHandle
publicKey,
MetadataReader\PEModule.cs (18)
492
internal BlobReader GetMemoryReaderOrThrow(
BlobHandle
blob)
1816
var
valueBlob = GetCustomAttributeValueOrThrow(handle);
2025
BlobHandle
valueBlob = GetCustomAttributeValueOrThrow(handle);
2124
BlobHandle
valueBlob = GetCustomAttributeValueOrThrow(typeIdentifierInfo.Handle);
3282
BlobHandle
signature = MetadataReader.GetTypeSpecification(typeSpec).Signature;
3293
internal void GetMethodSpecificationOrThrow(MethodSpecificationHandle handle, out EntityHandle method, out
BlobHandle
instantiation)
3326
internal
BlobHandle
GetMethodSignatureOrThrow(MethodDefinitionHandle methodDef)
3332
private static
BlobHandle
GetMethodSignatureOrThrow(MetadataReader metadataReader, MethodDefinitionHandle methodDef)
3338
internal
BlobHandle
GetMethodSignatureOrThrow(EntityHandle methodDefOrRef)
3344
private static
BlobHandle
GetMethodSignatureOrThrow(MetadataReader metadataReader, EntityHandle methodDefOrRef)
3462
internal
BlobHandle
GetSignatureOrThrow(MemberReferenceHandle memberRef)
3468
private static
BlobHandle
GetSignatureOrThrow(MetadataReader metadataReader, MemberReferenceHandle memberRef)
3525
internal
BlobHandle
GetPropertySignatureOrThrow(PropertyDefinitionHandle propertyDef)
3575
internal
BlobHandle
GetFieldSignatureOrThrow(FieldDefinitionHandle fieldDef)
3643
public
BlobHandle
GetCustomAttributeValueOrThrow(CustomAttributeHandle handle)
3651
private
BlobHandle
GetMarshallingDescriptorHandleOrThrow(EntityHandle fieldOrParameterToken)
3662
var
blob = GetMarshallingDescriptorHandleOrThrow(fieldOrParameterToken);
3685
var
blob = GetMarshallingDescriptorHandleOrThrow(fieldOrParameterToken);
MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
PEWriter\FullMetadataWriter.cs (4)
37
private readonly HeapOrReferenceIndex<
BlobHandle
> _standAloneSignatureIndex;
110
_standAloneSignatureIndex = new HeapOrReferenceIndex<
BlobHandle
>(this);
304
protected override StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(
BlobHandle
blobIndex)
309
protected override IReadOnlyList<
BlobHandle
> GetStandaloneSignatureBlobHandles()
PEWriter\MetadataBuilderExtensions.cs (2)
13
internal static
BlobHandle
GetOrAddBlobAndFree(this MetadataBuilder metadataBuilder, PooledBlobBuilder builder)
15
var
handle = metadataBuilder.GetOrAddBlob(builder);
PEWriter\MetadataWriter.cs (44)
113
_signatureIndex = new SegmentedDictionary<ISignature, KeyValuePair<
BlobHandle
, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures
383
protected abstract StandaloneSignatureHandle GetOrAddStandaloneSignatureHandle(
BlobHandle
handle);
389
protected abstract IReadOnlyList<
BlobHandle
> GetStandaloneSignatureBlobHandles();
438
private readonly Dictionary<ICustomAttribute,
BlobHandle
> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute,
BlobHandle
>();
439
private readonly Dictionary<ITypeReference,
BlobHandle
> _typeSpecSignatureIndex = new Dictionary<ITypeReference,
BlobHandle
>(ReferenceEqualityComparer.Instance);
442
private readonly Dictionary<IFieldReference,
BlobHandle
> _fieldSignatureIndex = new Dictionary<IFieldReference,
BlobHandle
>(ReferenceEqualityComparer.Instance);
445
private readonly SegmentedDictionary<ISignature, KeyValuePair<
BlobHandle
, ImmutableArray<byte>>> _signatureIndex;
447
private readonly Dictionary<IMarshallingInformation,
BlobHandle
> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation,
BlobHandle
>();
449
private readonly Dictionary<IGenericMethodInstanceReference,
BlobHandle
> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference,
BlobHandle
>(ReferenceEqualityComparer.Instance);
707
private
BlobHandle
GetCustomAttributeSignatureIndex(ICustomAttribute customAttribute)
709
BlobHandle
result;
804
internal
BlobHandle
GetFieldSignatureIndex(IFieldReference fieldReference)
806
BlobHandle
result;
1043
internal
BlobHandle
GetMethodSpecificationSignatureHandle(IGenericMethodInstanceReference methodInstanceReference)
1045
BlobHandle
result;
1066
private
BlobHandle
GetMarshallingDescriptorHandle(IMarshallingInformation marshallingInformation)
1068
BlobHandle
result;
1082
private
BlobHandle
GetMarshallingDescriptorHandle(ImmutableArray<byte> descriptor)
1087
private
BlobHandle
GetMemberReferenceSignatureHandle(ITypeMemberReference memberRef)
1097
internal
BlobHandle
GetMethodSignatureHandle(IMethodReference methodReference)
1114
private
BlobHandle
GetMethodSignatureHandleAndBlob(IMethodReference methodReference, out ImmutableArray<byte> signatureBlob)
1116
BlobHandle
result;
1123
KeyValuePair<
BlobHandle
, ImmutableArray<byte>> existing;
1148
private
BlobHandle
GetMethodSpecificationBlobHandle(IGenericMethodInstanceReference genericMethodInstanceReference)
1152
BlobHandle
result = metadata.GetOrAddBlob(writer);
1195
BlobHandle
blobIndex = metadata.GetOrAddBlob(builder);
1231
private
BlobHandle
GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet)
1234
BlobHandle
result;
1271
private
BlobHandle
GetPropertySignatureHandle(IPropertyDefinition propertyDef)
1273
KeyValuePair<
BlobHandle
, ImmutableArray<byte>> existing;
1287
var
result = metadata.GetOrAddBlob(blob);
1642
internal
BlobHandle
GetTypeSpecSignatureIndex(ITypeReference typeReference)
1644
BlobHandle
result;
1972
hashValue: default(
BlobHandle
));
2309
BlobHandle
descriptor = (marshallingInformation != null)
2327
BlobHandle
descriptor = (marshallingInformation != null)
2910
foreach (
BlobHandle
signature in signatures)
3071
BlobHandle
blobIndex = metadata.GetOrAddBlob(builder);
3101
BlobHandle
blobIndex = metadata.GetOrAddBlob(builder);
PEWriter\MetadataWriter.DynamicAnalysis.cs (15)
22
public
BlobHandle
Name;
24
public
BlobHandle
Hash;
29
public
BlobHandle
Spans;
33
private 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
));
69
BlobHandle
spanBlob = SerializeSpans(spans, _documentIndex);
76
private
BlobHandle
GetOrAddBlob(BlobBuilder builder)
82
private
BlobHandle
GetOrAddBlob(ImmutableArray<byte> blob)
84
BlobHandle
index;
124
private
BlobHandle
SerializeSpans(
130
return default(
BlobHandle
);
218
Hash = (sourceInfo.Checksum.IsDefault) ? default(
BlobHandle
) : GetOrAddBlob(sourceInfo.Checksum)
228
private
BlobHandle
SerializeDocumentName(string name)
244
BlobHandle
partIndex = GetOrAddBlob(ImmutableArray.Create(MetadataWriter.s_utf8Encoding.GetBytes(part)));
PEWriter\MetadataWriter.PortablePdb.cs (7)
71
BlobHandle
sequencePointsBlob = SerializeSequencePoints(localSignatureHandleOpt, bodyOpt.SequencePoints, _documentIndex, out var singleDocumentHandle);
149
value: default(
BlobHandle
));
170
private
BlobHandle
SerializeLocalConstantSignature(ILocalDefinition localConstant)
456
private
BlobHandle
SerializeImportsBlob(IImportScope scope)
626
private
BlobHandle
SerializeSequencePoints(
635
return default(
BlobHandle
);
769
hash: info.Checksum.IsDefault ? default(
BlobHandle
) : _debugMetadataOpt.GetOrAddBlob(info.Checksum),
Symbols\IMethodSymbolInternal.cs (1)
56
BlobHandle
MetadataSignatureHandle { get; }
Microsoft.CodeAnalysis.Analyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
122
BlobHandle
signatureHandle;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
891
public override
BlobHandle
MetadataSignatureHandle
Symbols\MethodSymbol.cs (1)
1232
public virtual
BlobHandle
MetadataSignatureHandle => default;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12625
hashValue: default(
BlobHandle
));
12656
var
parameterlessCtorBlobIndex = metadata.GetOrAddBlob(parameterlessCtorSignature);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\EditAndContinueTestBase.cs (3)
221
public static void CheckBlobValue(IList<MetadataReader> readers,
BlobHandle
valueHandle, byte[] expectedValue)
225
var
genHandle = (
BlobHandle
)aggregator.GetGenerationHandle(valueHandle, out int blobGeneration);
Emit\EditAndContinue\EditAndContinueTests.cs (2)
332
var
b = MetadataTokens.BlobHandle(0);
12726
var
handle = MetadataTokens.BlobHandle(1);
PDB\TypeDefinitionDocumentTests.cs (1)
490
string GetDocumentNames(
BlobHandle
value)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Portable.cs (1)
240
private static string ReadUtf8String(MetadataReader reader,
BlobHandle
handle)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
249
var
blob = metadataReader.GetAssemblyDefinition().PublicKey;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.CodeAnalysis.Test.Utilities (17)
Metadata\DynamicAnalysisDataReader.cs (12)
23
public readonly
BlobHandle
Name;
25
public readonly
BlobHandle
Hash;
27
public DynamicAnalysisDocument(
BlobHandle
name, GuidHandle hashAlgorithm,
BlobHandle
hash)
37
public readonly
BlobHandle
Blob;
39
public DynamicAnalysisMethod(
BlobHandle
blob)
110
var
name = MetadataTokens.BlobHandle(ReadReference(ref reader, isBlobHeapSmall));
112
var
hash = MetadataTokens.BlobHandle(ReadReference(ref reader, isBlobHeapSmall));
197
public ImmutableArray<DynamicAnalysisSpan> GetSpans(
BlobHandle
handle)
284
internal byte[] GetBytes(
BlobHandle
handle)
290
private BlobReader GetBlobReader(
BlobHandle
handle)
299
public string GetDocumentName(
BlobHandle
handle)
Metadata\MetadataReaderUtils.cs (3)
182
private static ImmutableArray<T> ReadArray<T>(this MetadataReader reader,
BlobHandle
blobHandle, ReadBlobItemDelegate<T> readItem)
197
public static ImmutableArray<byte> ReadByteArray(this MetadataReader reader,
BlobHandle
blobHandle)
202
public static ImmutableArray<bool> ReadBoolArray(this MetadataReader reader,
BlobHandle
blobHandle)
Metadata\MetadataValidation.cs (2)
88
BlobHandle
descriptor = metadataReader.GetFieldDefinition(fieldDef).GetMarshallingDescriptor();
121
BlobHandle
descriptor = metadataReader.GetParameter(paramHandle).GetMarshallingDescriptor();
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
101
Dim signatureHandle As
BlobHandle
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1099
Friend Overrides ReadOnly Property MetadataSignatureHandle As
BlobHandle
Symbols\MethodSymbol.vb (1)
276
Friend Overridable ReadOnly Property MetadataSignatureHandle As
BlobHandle
Implements IMethodSymbolInternal.MetadataSignatureHandle
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Emit\EditAndContinue\EditAndContinueTestBase.vb (2)
286
Public Shared Sub CheckBlobValue(readers As IList(Of MetadataReader), valueHandle As
BlobHandle
, expectedValue As Byte())
290
Dim genHandle = CType(aggregator.GetGenerationHandle(valueHandle, generation),
BlobHandle
)
PDB\TypeDefinitionDocumentTests.vb (1)
373
Private Shared Function GetDocumentNames(pdbReader As MetadataReader, value As
BlobHandle
) As String
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
219
var
publicKey = metadataReader.GetAssemblyDefinition().PublicKey;
Roslyn.Diagnostics.Analyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
291
BlobHandle
signature;
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
446
private
BlobHandle
PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature)
System.Reflection.Metadata (199)
System\Reflection\Metadata\BlobReader.cs (2)
627
public
BlobHandle
ReadBlobHandle()
629
return
BlobHandle
.FromOffset(ReadCompressedInteger());
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (5)
17
private readonly Dictionary<int, KeyValuePair<ImmutableArray<byte>,
BlobHandle
>> _dictionary;
25
private unsafe ref KeyValuePair<ImmutableArray<byte>,
BlobHandle
> GetValueRefOrAddDefault(ReadOnlySpan<byte> key, out bool exists)
43
public
BlobHandle
GetOrAdd(ReadOnlySpan<byte> key, ImmutableArray<byte> immutableKey,
BlobHandle
value, out bool exists)
106
public Dictionary<int, KeyValuePair<ImmutableArray<byte>,
BlobHandle
>>.Enumerator GetEnumerator() =>
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (3)
22
public CustomAttributeValue<TType> DecodeValue(EntityHandle constructor,
BlobHandle
value)
24
BlobHandle
signature;
25
BlobHandle
attributeOwningTypeSpec = default;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (16)
177
internal static int SerializeHandle(
BlobHandle
handle) => handle.GetHeapOffset();
187
public
BlobHandle
GetOrAddBlob(BlobBuilder value)
208
public
BlobHandle
GetOrAddBlob(byte[] value)
218
private
BlobHandle
GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default)
220
BlobHandle
nextHandle =
BlobHandle
.FromOffset(_blobHeapStartOffset + _blobHeapSize);
221
BlobHandle
handle = _blobs.GetOrAdd(value, immutableValue, nextHandle, out bool exists);
236
public
BlobHandle
GetOrAddBlob(ImmutableArray<byte> value)
252
public
BlobHandle
GetOrAddConstantBlob(object? value)
261
var
result = GetOrAddBlob(builder);
272
public
BlobHandle
GetOrAddBlobUTF16(string value)
286
var
handle = GetOrAddBlob(builder);
300
public
BlobHandle
GetOrAddBlobUTF8(string value, bool allowUnpairedSurrogates = true)
304
var
handle = GetOrAddBlob(builder);
318
public
BlobHandle
GetOrAddDocumentName(string value)
358
var
resultHandle = GetOrAddBlob(resultBuilder);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (41)
17
private struct AssemblyRefTableRow { public Version Version; public
BlobHandle
PublicKeyToken; public StringHandle Name; public StringHandle Culture; public uint Flags; public
BlobHandle
HashValue; }
19
private struct AssemblyRow { public uint HashAlgorithm; public Version Version; public ushort Flags; public
BlobHandle
AssemblyKey; public StringHandle AssemblyName; public StringHandle AssemblyCulture; }
21
private struct ConstantRow { public byte Type; public int Parent; public
BlobHandle
Value; }
22
private struct CustomAttributeRow { public int Parent; public int Type; public
BlobHandle
Value; }
23
private struct DeclSecurityRow { public ushort Action; public int Parent; public
BlobHandle
PermissionSet; }
30
private struct FieldMarshalRow { public int Parent; public
BlobHandle
NativeType; }
32
private struct FieldDefRow { public ushort Flags; public StringHandle Name; public
BlobHandle
Signature; }
33
private struct FileTableRow { public uint Flags; public StringHandle FileName; public
BlobHandle
HashValue; }
39
private struct MemberRefRow { public int Class; public StringHandle Name; public
BlobHandle
Signature; }
42
private struct MethodSpecRow { public int Method; public
BlobHandle
Instantiation; }
43
private struct MethodRow { public int BodyOffset; public ushort ImplFlags; public ushort Flags; public StringHandle Name; public
BlobHandle
Signature; public int ParamList; }
48
private struct PropertyRow { public ushort PropFlags; public StringHandle Name; public
BlobHandle
Type; }
51
private struct TypeSpecRow { public
BlobHandle
Signature; }
52
private struct StandaloneSigRow { public
BlobHandle
Signature; }
55
private struct DocumentRow { public
BlobHandle
Name; public GuidHandle HashAlgorithm; public
BlobHandle
Hash; public GuidHandle Language; }
56
private struct MethodDebugInformationRow { public int Document; public
BlobHandle
SequencePoints; }
59
private struct LocalConstantRow { public StringHandle Name; public
BlobHandle
Signature; }
60
private struct ImportScopeRow { public int Parent; public
BlobHandle
Imports; }
62
private struct CustomDebugInformationRow { public int Parent; public GuidHandle Kind; public
BlobHandle
Value; }
391
BlobHandle
publicKey,
422
BlobHandle
publicKeyOrToken,
424
BlobHandle
hashValue)
581
public TypeSpecificationHandle AddTypeSpecification(
BlobHandle
signature)
591
public StandaloneSignatureHandle AddStandaloneSignature(
BlobHandle
signature)
607
public PropertyDefinitionHandle AddProperty(PropertyAttributes attributes, StringHandle name,
BlobHandle
signature)
747
public CustomAttributeHandle AddCustomAttribute(EntityHandle parent, EntityHandle constructor,
BlobHandle
value)
771
public MethodSpecificationHandle AddMethodSpecification(EntityHandle method,
BlobHandle
instantiation)
882
BlobHandle
signature)
924
BlobHandle
descriptor)
989
BlobHandle
signature,
1077
BlobHandle
signature)
1116
BlobHandle
hashValue,
1170
BlobHandle
permissionSet)
1221
public DocumentHandle AddDocument(
BlobHandle
name, GuidHandle hashAlgorithm,
BlobHandle
hash, GuidHandle language)
1244
public MethodDebugInformationHandle AddMethodDebugInformation(DocumentHandle document,
BlobHandle
sequencePoints)
1320
public LocalConstantHandle AddLocalConstant(StringHandle name,
BlobHandle
signature)
1338
public ImportScopeHandle AddImportScope(ImportScopeHandle parentScope,
BlobHandle
imports)
1405
public CustomDebugInformationHandle AddCustomDebugInformation(EntityHandle parent, GuidHandle kind,
BlobHandle
value)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
257
public static
BlobHandle
GetNextHandle(this MetadataReader reader,
BlobHandle
handle)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (3)
159
public static int GetHeapOffset(
BlobHandle
handle) => handle.IsVirtual ? -1 : handle.GetHeapOffset();
509
public static
BlobHandle
BlobHandle(int offset)
511
return Metadata.
BlobHandle
.FromOffset(offset);
System\Reflection\Metadata\Internal\BlobHeap.cs (19)
23
var blobs = new byte[(int)
BlobHandle
.VirtualIndex.Count][];
25
blobs[(int)
BlobHandle
.VirtualIndex.ContractPublicKeyToken] = new byte[]
30
blobs[(int)
BlobHandle
.VirtualIndex.ContractPublicKey] = new byte[]
44
blobs[(int)
BlobHandle
.VirtualIndex.AttributeUsage_AllowSingle] = new byte[]
64
blobs[(int)
BlobHandle
.VirtualIndex.AttributeUsage_AllowMultiple] = new byte[]
88
internal byte[] GetBytes(
BlobHandle
handle)
107
internal MemoryBlock GetMemoryBlock(
BlobHandle
handle)
119
private MemoryBlock GetVirtualHandleMemoryBlock(
BlobHandle
handle)
134
internal BlobReader GetBlobReader(
BlobHandle
handle)
139
internal
BlobHandle
GetNextHandle(
BlobHandle
handle)
143
return default(
BlobHandle
);
149
return default(
BlobHandle
);
155
return default(
BlobHandle
);
158
return
BlobHandle
.FromOffset(nextIndex);
161
internal static byte[] GetVirtualBlobBytes(
BlobHandle
handle, bool unique)
163
BlobHandle
.VirtualIndex index = handle.GetVirtualIndex();
168
case
BlobHandle
.VirtualIndex.AttributeUsage_AllowMultiple:
169
case
BlobHandle
.VirtualIndex.AttributeUsage_AllowSingle:
System\Reflection\Metadata\Internal\Tables.cs (30)
361
internal
BlobHandle
GetSignature(FieldDefinitionHandle handle)
364
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
447
internal
BlobHandle
GetSignature(MethodDefinitionHandle handle)
450
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
658
internal
BlobHandle
GetSignature(MemberReferenceHandle handle)
661
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
718
internal
BlobHandle
GetValue(ConstantHandle handle)
721
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _ValueOffset, _IsBlobHeapRefSizeSmall));
807
internal
BlobHandle
GetValue(CustomAttributeHandle handle)
810
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _ValueOffset, _IsBlobHeapRefSizeSmall));
899
internal
BlobHandle
GetNativeType(int rowId)
902
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NativeTypeOffset, _IsBlobHeapRefSizeSmall));
971
internal
BlobHandle
GetPermissionSet(int rowId)
974
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _PermissionSetOffset, _IsBlobHeapRefSizeSmall));
1158
internal
BlobHandle
GetSignature(int rowId)
1161
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
1466
internal
BlobHandle
GetSignature(PropertyDefinitionHandle handle)
1469
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
1706
internal
BlobHandle
GetSignature(TypeSpecificationHandle handle)
1709
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _SignatureOffset, _IsBlobHeapRefSizeSmall));
1975
internal
BlobHandle
GetPublicKey()
1978
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(_PublicKeyOffset, _IsBlobHeapRefSizeSmall));
2103
internal
BlobHandle
GetPublicKeyOrToken(int rowId)
2106
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _PublicKeyOrTokenOffset, _IsBlobHeapRefSizeSmall));
2121
internal
BlobHandle
GetHashValue(int rowId)
2124
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _HashValueOffset, _IsBlobHeapRefSizeSmall));
2209
internal
BlobHandle
GetHashValue(AssemblyFileHandle handle)
2212
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _HashValueOffset, _IsBlobHeapRefSizeSmall));
2564
internal
BlobHandle
GetInstantiation(MethodSpecificationHandle handle)
2567
return
BlobHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _InstantiationOffset, _IsBlobHeapRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (3)
1076
public byte[] GetBlobBytes(
BlobHandle
handle)
1081
public ImmutableArray<byte> GetBlobContent(
BlobHandle
handle)
1088
public BlobReader GetBlobReader(
BlobHandle
handle)
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
15
internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle,
BlobHandle
publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags)
49
internal AssemblyNameInfo GetAssemblyNameInfo(StringHandle nameHandle, Version version, StringHandle cultureHandle,
BlobHandle
publicKeyOrTokenHandle, AssemblyFlags flags)
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
618
BlobHandle
blob = TypeSpecTable.GetSignature((TypeSpecificationHandle)parent);
System\Reflection\Metadata\PortablePdb\CustomDebugInformation.cs (1)
28
public
BlobHandle
Value => _reader.CustomDebugInformationTable.GetValue(Handle);
System\Reflection\Metadata\PortablePdb\Document.cs (1)
54
public
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.
37
public static implicit operator
BlobHandle
(DocumentNameBlobHandle handle)
39
return
BlobHandle
.FromOffset(handle._heapOffset);
42
public static explicit operator DocumentNameBlobHandle(
BlobHandle
handle)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (5)
11
public
BlobHandle
Alias { get; }
14
public
BlobHandle
TargetNamespace => (
BlobHandle
)_typeOrNamespace;
20
BlobHandle
alias = default(
BlobHandle
),
System\Reflection\Metadata\PortablePdb\ImportScope.cs (1)
33
public
BlobHandle
ImportsBlob => _reader.ImportScopeTable.GetImports(Handle);
System\Reflection\Metadata\PortablePdb\LocalConstant.cs (1)
37
public
BlobHandle
Signature => _reader.LocalConstantTable.GetSignature(Handle);
System\Reflection\Metadata\PortablePdb\MethodDebugInformation.cs (1)
35
public
BlobHandle
SequencePointsBlob => _reader.MethodDebugInformationTable.GetSequencePoints(Handle);
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (10)
54
internal
BlobHandle
GetHash(DocumentHandle handle)
57
return
BlobHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _hashOffset, _isBlobHeapRefSizeSmall));
103
internal
BlobHandle
GetSequencePoints(MethodDebugInformationHandle handle)
106
return
BlobHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _sequencePointsOffset, _isBlobHeapRefSizeSmall));
320
internal
BlobHandle
GetSignature(LocalConstantHandle handle)
323
return
BlobHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _signatureOffset, _isBlobHeapRefSizeSmall));
421
internal
BlobHandle
GetImports(ImportScopeHandle handle)
424
return
BlobHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _importsOffset, _isBlobHeapRefSizeSmall));
481
internal
BlobHandle
GetValue(CustomDebugInformationHandle handle)
484
return
BlobHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _valueOffset, _isBlobHeapRefSizeSmall));
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
58
public
BlobHandle
PublicKey
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
57
public
BlobHandle
HashValue
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (8)
98
public
BlobHandle
PublicKeyOrToken
111
public
BlobHandle
HashValue
184
private
BlobHandle
GetVirtualPublicKeyOrToken()
196
return
BlobHandle
.FromVirtualIndex(hasFullKey ?
BlobHandle
.VirtualIndex.ContractPublicKey :
BlobHandle
.VirtualIndex.ContractPublicKeyToken, 0);
200
private static
BlobHandle
GetVirtualHashValue()
202
return default(
BlobHandle
);
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
52
public
BlobHandle
Value
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (10)
74
public
BlobHandle
Value
98
private
BlobHandle
GetProjectedValue()
118
private
BlobHandle
GetProjectedValue(CustomAttributeValueTreatment treatment)
120
BlobHandle
.VirtualIndex virtualIndex;
126
virtualIndex =
BlobHandle
.VirtualIndex.AttributeUsage_AllowMultiple;
131
virtualIndex =
BlobHandle
.VirtualIndex.AttributeUsage_AllowMultiple;
136
virtualIndex =
BlobHandle
.VirtualIndex.AttributeUsage_AllowSingle;
142
return default(
BlobHandle
);
149
var
rawBlob = _reader.CustomAttributeTable.GetValue(Handle);
167
return
BlobHandle
.FromVirtualIndex(virtualIndex, (ushort)projectedValue);
System\Reflection\Metadata\TypeSystem\DeclarativeSecurityAttribute.cs (1)
41
public
BlobHandle
PermissionSet
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (4)
66
public
BlobHandle
Signature
135
public
BlobHandle
GetMarshallingDescriptor()
140
return default(
BlobHandle
);
171
private
BlobHandle
GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (11)
2549
public readonly struct BlobHandle : IEquatable<
BlobHandle
>
2581
internal static
BlobHandle
FromOffset(int heapOffset)
2586
internal static
BlobHandle
FromVirtualIndex(VirtualIndex virtualIndex, ushort virtualValue)
2604
public static implicit operator Handle(
BlobHandle
handle)
2612
public static explicit operator
BlobHandle
(Handle handle)
2655
return obj is
BlobHandle
bh && Equals(bh);
2658
public bool Equals(
BlobHandle
other)
2668
public static bool operator ==(
BlobHandle
left,
BlobHandle
right)
2673
public static bool operator !=(
BlobHandle
left,
BlobHandle
right)
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
72
public
BlobHandle
Signature
139
private
BlobHandle
GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (2)
53
public
BlobHandle
Signature
209
private
BlobHandle
GetProjectedSignature()
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
45
public
BlobHandle
Signature
System\Reflection\Metadata\TypeSystem\Parameter.cs (2)
58
public
BlobHandle
GetMarshallingDescriptor()
63
return default(
BlobHandle
);
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
47
public
BlobHandle
Signature
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
34
public
BlobHandle
Signature
System\Reflection\Metadata\TypeSystem\TypeSpecification.cs (1)
30
public
BlobHandle
Signature
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
178
public static MarshalAsAttribute ToMarshalAsAttribute(this
BlobHandle
blobHandle, EcmaModule module)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (3)
15
public static byte[] GetBlobBytes(this
BlobHandle
handle, MetadataReader reader) => reader.GetBlobBytes(handle);
16
public static ImmutableArray<byte> GetBlobContent(this
BlobHandle
handle, MetadataReader reader) => reader.GetBlobContent(handle);
17
public static BlobReader GetBlobReader(this
BlobHandle
handle, MetadataReader reader) => reader.GetBlobReader(handle);
Test.Utilities (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;
Text.Analyzers (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
35
BlobHandle
publicKeyHandle = assemblyDefinition.PublicKey;