24 instantiations of BlobReader
ILAssembler (1)
ILCompiler.ReadyToRun (3)
Microsoft.CodeAnalysis (4)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Microsoft.Diagnostics.DataContractReader.Legacy (2)
System.Reflection.Metadata (13)
328 references to BlobReader
dotnet-sourcelink (2)
ILAssembler (1)
ILCompiler.Compiler (18)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (4)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
49BlobReader resourceDataBlob = peFile.GetSectionData(checked((int)resourceData.OffsetToData)).GetReader(0, checked((int)resourceData.Size));
64private static void DoResourceDirectoryRead(BlobReader resourceReaderExternal, uint startOffset, Action<object, uint, bool> entry)
67BlobReader resourceReader = resourceReaderExternal;
ILCompiler.MetadataTransform (11)
ILCompiler.ReadyToRun (44)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (4)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
49BlobReader resourceDataBlob = peFile.GetSectionData(checked((int)resourceData.OffsetToData)).GetReader(0, checked((int)resourceData.Size));
64private static void DoResourceDirectoryRead(BlobReader resourceReaderExternal, uint startOffset, Action<object, uint, bool> entry)
67BlobReader resourceReader = resourceReaderExternal;
ILCompiler.TypeSystem (18)
Microsoft.Build.Tasks.Core (3)
Microsoft.CodeAnalysis (77)
MetadataReader\MetadataDecoder.cs (35)
108(KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) DecodeCustomAttributeNamedArgumentOrThrow(ref BlobReader argReader);
178BlobReader memoryReader = this.Module.GetTypeSpecificationSignatureReaderOrThrow(typeSpec);
197private TypeSymbol DecodeTypeOrThrow(ref BlobReader ppSig, out bool refersToNoPiaLocalType)
205private TypeSymbol DecodeTypeOrThrow(ref BlobReader ppSig, SignatureTypeCode typeCode, out bool refersToNoPiaLocalType)
384private TypeSymbol DecodeGenericTypeInstanceOrThrow(ref BlobReader ppSig, out bool refersToNoPiaLocalType)
732ref BlobReader signatureReader,
769private TypeSymbol DecodeModifierTypeOrThrow(ref BlobReader signatureReader)
799BlobReader memoryReader = this.Module.GetTypeSpecificationSignatureReaderOrThrow((TypeSpecificationHandle)token);
850internal ImmutableArray<LocalInfo<TypeSymbol>> DecodeLocalSignatureOrThrow(ref BlobReader signatureReader)
915var memoryReader = this.Module.GetTypeSpecificationSignatureReaderOrThrow((TypeSpecificationHandle)token);
940internal LocalInfo<TypeSymbol> DecodeLocalVariableOrThrow(ref BlobReader signatureReader)
987internal void DecodeLocalConstantBlobOrThrow(ref BlobReader sigReader, out TypeSymbol type, out ConstantValue value)
1057private static ConstantValue DecodePrimitiveConstantValue(ref BlobReader sigReader, SignatureTypeCode typeCode, out bool isEnumTypeCode)
1142var signatureReader = Module.MetadataReader.GetBlobReader(signatureHandle);
1158var blobReader = new BlobReader(ptr, signature.Length);
1182var blobReader = reader.GetBlobReader(signature);
1187private void DecodeParameterOrThrow(ref BlobReader signatureReader, /*out*/ ref ParamInfo<TypeSymbol> info)
1213BlobReader signatureReader = DecodeSignatureHeaderOrThrow(signature, out signatureHeader);
1261BlobReader signatureReader = DecodeSignatureHeaderOrThrow(module, signature, out signatureHeader);
1274BlobReader signatureReader = DecodeSignatureHeaderOrThrow(signature, out signatureHeader);
1318private void DecodeCustomAttributeFieldOrPropTypeOrThrow(ref BlobReader argReader, out SerializationTypeCode typeCode, out TypeSymbol type, out SerializationTypeCode elementTypeCode, out TypeSymbol elementType, bool isElementType)
1402private TypedConstant DecodeCustomAttributeFixedArgumentOrThrow(ITypeSymbolInternal type, ref BlobReader argReader)
1437private TypedConstant DecodeCustomAttributeElementOrThrow(ref BlobReader argReader, SerializationTypeCode typeCode, TypeSymbol type)
1457private TypedConstant DecodeCustomAttributeElementArrayOrThrow(ref BlobReader argReader, SerializationTypeCode elementTypeCode, TypeSymbol elementType, TypeSymbol arrayType)
1484private TypedConstant DecodeCustomAttributePrimitiveElementOrThrow(ref BlobReader argReader, SerializationTypeCode typeCode, TypeSymbol type)
1554public (KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) DecodeCustomAttributeNamedArgumentOrThrow(ref BlobReader argReader)
1637BlobReader argsReader = Module.GetMemoryReaderOrThrow(Module.GetCustomAttributeValueOrThrow(handle));
1746var signatureReader = DecodeSignatureHeaderOrThrow(signature, out signatureHeader);
1769internal BlobReader DecodeSignatureHeaderOrThrow(BlobHandle signature, out SignatureHeader signatureHeader)
1775internal static BlobReader DecodeSignatureHeaderOrThrow(PEModule module, BlobHandle signature, out SignatureHeader signatureHeader)
1777BlobReader reader = module.GetMemoryReaderOrThrow(signature);
1783protected ParamInfo<TypeSymbol>[] DecodeSignatureParametersOrThrow(ref BlobReader signatureReader, SignatureHeader signatureHeader, out int typeParameterCount, bool shouldProcessAllBytes = true, bool isFunctionPointerSignature = false)
1821private static void GetSignatureCountsOrThrow(ref BlobReader signatureReader, SignatureHeader signatureHeader, out int parameterCount, out int typeParameterCount)
1837BlobReader signatureReader = DecodeSignatureHeaderOrThrow(signature, out signatureHeader);
1855protected FieldInfo<TypeSymbol> DecodeFieldSignature(ref BlobReader signatureReader)
MetadataReader\PEModule.cs (31)
99private delegate bool AttributeValueExtractor<T>(out T value, ref BlobReader sigReader);
492internal BlobReader GetMemoryReaderOrThrow(BlobHandle blob)
1324if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1348static (string? urlFormat, string? message) crackUrlFormatAndMessage(IAttributeNamedArgumentDecoder decoder, ref BlobReader sig)
1399if (!info.HasValue || !TryGetAttributeReader(info.Handle, out BlobReader sigReader) || !CrackStringInAttributeValue(out string? featureName, ref sigReader))
1453if (!info.HasValue || info.SignatureIndex != 0 || !TryGetAttributeReader(info.Handle, out BlobReader sigReader))
1560if (TryGetAttributeReader(info.Handle, out BlobReader sigReader) && CrackIntInAttributeValue(out int validOn, ref sigReader))
1801if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1838private bool TryGetAttributeReader(CustomAttributeHandle handle, out BlobReader blobReader)
2057BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2155BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2189private static (string? diagnosticId, string? urlFormat) CrackObsoleteProperties(ref BlobReader sig, IAttributeNamedArgumentDecoder decoder)
2223private static bool CrackDeprecatedAttributeData([NotNullWhen(true)] out ObsoleteAttributeData? value, ref BlobReader sig)
2236private static bool CrackIntAndIntInAttributeValue(out (int, int) value, ref BlobReader sig)
2249private static bool CrackStringAndIntInAttributeValue(out StringAndInt value, ref BlobReader sig)
2257private static bool CrackStringAndStringInAttributeValue(out (string?, string?) value, ref BlobReader sig)
2270internal static bool CrackStringInAttributeValue(out string? value, ref BlobReader sig)
2298internal static bool CrackStringArrayInAttributeValue(out ImmutableArray<string?> value, ref BlobReader sig)
2342private static bool CrackBoolAndStringArrayInAttributeValue(out BoolAndStringArrayData value, ref BlobReader sig)
2355private static bool CrackBoolAndStringInAttributeValue(out BoolAndStringData value, ref BlobReader sig)
2368private static bool CrackBooleanInAttributeValue(out bool value, ref BlobReader sig)
2380private static bool CrackByteInAttributeValue(out byte value, ref BlobReader sig)
2392private static bool CrackShortInAttributeValue(out short value, ref BlobReader sig)
2404private static bool CrackIntInAttributeValue(out int value, ref BlobReader sig)
2416private static bool CrackLongInAttributeValue(out long value, ref BlobReader sig)
2429private static bool CrackDecimalInDecimalConstantAttribute(out decimal value, ref BlobReader sig)
2451private static bool CrackBoolArrayInAttributeValue(out ImmutableArray<bool> value, ref BlobReader sig)
2480private static bool CrackByteArrayInAttributeValue(out ImmutableArray<byte> value, ref BlobReader sig)
2960BlobReader sig = metadataReader.GetBlobReader(GetMethodSignatureOrThrow(metadataReader, ctor));
3293internal BlobReader GetTypeSpecificationSignatureReaderOrThrow(TypeSpecificationHandle typeSpec)
3736BlobReader reader = MetadataReader.GetBlobReader(constantRow.Value);
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Rebuild (11)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.Diagnostics.DataContractReader.Contracts (16)
Microsoft.Diagnostics.DataContractReader.Legacy (23)
Microsoft.NET.HostModel (8)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (4)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
49BlobReader resourceDataBlob = peFile.GetSectionData(checked((int)resourceData.OffsetToData)).GetReader(0, checked((int)resourceData.Size));
64private static void DoResourceDirectoryRead(BlobReader resourceReaderExternal, uint startOffset, Action<object, uint, bool> entry)
67BlobReader resourceReader = resourceReaderExternal;
Microsoft.VisualStudio.TestPlatform.Common (1)
System.Diagnostics.FileVersionInfo (2)
System.Reflection.Metadata (72)
System.Reflection.MetadataLoadContext (8)