24 instantiations of BlobReader
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Test.Utilities (6)
SemanticSearch.BuildTask (1)
System.Reflection.Metadata (13)
237 references to BlobReader
BuildValidator (5)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (76)
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 (32)
99private delegate bool AttributeValueExtractor<T>(out T value, ref BlobReader sigReader);
492internal BlobReader GetMemoryReaderOrThrow(BlobHandle blob)
1298if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1322static (string? urlFormat, string? message) crackUrlFormatAndMessage(IAttributeNamedArgumentDecoder decoder, ref BlobReader sig)
1373if (!info.HasValue || !TryGetAttributeReader(info.Handle, out BlobReader sigReader) || !CrackStringInAttributeValue(out string? featureName, ref sigReader))
1426if (!info.HasValue || info.SignatureIndex != 0 || !TryGetAttributeReader(info.Handle, out BlobReader sigReader))
1533if (TryGetAttributeReader(info.Handle, out BlobReader sigReader) && CrackIntInAttributeValue(out int validOn, ref sigReader))
1774if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1811private bool TryGetAttributeReader(CustomAttributeHandle handle, out BlobReader blobReader)
2030BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2128BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2162private static (string? diagnosticId, string? urlFormat) CrackObsoleteProperties(ref BlobReader sig, IAttributeNamedArgumentDecoder decoder)
2196private static bool CrackDeprecatedAttributeData([NotNullWhen(true)] out ObsoleteAttributeData? value, ref BlobReader sig)
2209private static bool CrackIntAndIntInAttributeValue(out (int, int) value, ref BlobReader sig)
2222private static bool CrackStringAndIntInAttributeValue(out StringAndInt value, ref BlobReader sig)
2230private static bool CrackStringAndStringInAttributeValue(out (string?, string?) value, ref BlobReader sig)
2243internal static bool CrackStringInAttributeValue(out string? value, ref BlobReader sig)
2271internal static bool CrackStringArrayInAttributeValue(out ImmutableArray<string?> value, ref BlobReader sig)
2315private static bool CrackBoolAndStringArrayInAttributeValue(out BoolAndStringArrayData value, ref BlobReader sig)
2328private static bool CrackBoolAndStringInAttributeValue(out BoolAndStringData value, ref BlobReader sig)
2341private static bool CrackBoolAndBoolInAttributeValue(out (bool, bool) value, ref BlobReader sig)
2354private static bool CrackBooleanInAttributeValue(out bool value, ref BlobReader sig)
2366private static bool CrackByteInAttributeValue(out byte value, ref BlobReader sig)
2378private static bool CrackShortInAttributeValue(out short value, ref BlobReader sig)
2390private static bool CrackIntInAttributeValue(out int value, ref BlobReader sig)
2402private static bool CrackLongInAttributeValue(out long value, ref BlobReader sig)
2415private static bool CrackDecimalInDecimalConstantAttribute(out decimal value, ref BlobReader sig)
2437private static bool CrackBoolArrayInAttributeValue(out ImmutableArray<bool> value, ref BlobReader sig)
2466private static bool CrackByteArrayInAttributeValue(out ImmutableArray<byte> value, ref BlobReader sig)
2946BlobReader sig = metadataReader.GetBlobReader(GetMethodSignatureOrThrow(metadataReader, ctor));
3279internal BlobReader GetTypeSpecificationSignatureReaderOrThrow(TypeSpecificationHandle typeSpec)
3722BlobReader reader = MetadataReader.GetBlobReader(constantRow.Value);
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (7)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (7)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.Rebuild (11)
Microsoft.CodeAnalysis.Test.Utilities (29)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Workspaces (5)
SemanticSearch.BuildTask (1)
System.Diagnostics.FileVersionInfo (2)
System.Reflection.Metadata (72)
System.Reflection.MetadataLoadContext (8)