23 instantiations of BlobReader
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Test.Utilities (5)
SemanticSearch.BuildTask (1)
System.Reflection.Metadata (13)
236 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)
98private delegate bool AttributeValueExtractor<T>(out T value, ref BlobReader sigReader);
491internal BlobReader GetMemoryReaderOrThrow(BlobHandle blob)
1276if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1300static (string? urlFormat, string? message) crackUrlFormatAndMessage(IAttributeNamedArgumentDecoder decoder, ref BlobReader sig)
1351if (!info.HasValue || !TryGetAttributeReader(info.Handle, out BlobReader sigReader) || !CrackStringInAttributeValue(out string? featureName, ref sigReader))
1403if (!info.HasValue || info.SignatureIndex != 0 || !TryGetAttributeReader(info.Handle, out BlobReader sigReader))
1510if (TryGetAttributeReader(info.Handle, out BlobReader sigReader) && CrackIntInAttributeValue(out int validOn, ref sigReader))
1751if (!TryGetAttributeReader(attributeInfo.Handle, out var sig))
1788private bool TryGetAttributeReader(CustomAttributeHandle handle, out BlobReader blobReader)
2007BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2105BlobReader reader = MetadataReader.GetBlobReader(valueBlob);
2139private static (string? diagnosticId, string? urlFormat) CrackObsoleteProperties(ref BlobReader sig, IAttributeNamedArgumentDecoder decoder)
2173private static bool CrackDeprecatedAttributeData([NotNullWhen(true)] out ObsoleteAttributeData? value, ref BlobReader sig)
2186private static bool CrackIntAndIntInAttributeValue(out (int, int) value, ref BlobReader sig)
2199private static bool CrackStringAndIntInAttributeValue(out StringAndInt value, ref BlobReader sig)
2207private static bool CrackStringAndStringInAttributeValue(out (string?, string?) value, ref BlobReader sig)
2220internal static bool CrackStringInAttributeValue(out string? value, ref BlobReader sig)
2248internal static bool CrackStringArrayInAttributeValue(out ImmutableArray<string?> value, ref BlobReader sig)
2292private static bool CrackBoolAndStringArrayInAttributeValue(out BoolAndStringArrayData value, ref BlobReader sig)
2305private static bool CrackBoolAndStringInAttributeValue(out BoolAndStringData value, ref BlobReader sig)
2318private static bool CrackBoolAndBoolInAttributeValue(out (bool, bool) value, ref BlobReader sig)
2331private static bool CrackBooleanInAttributeValue(out bool value, ref BlobReader sig)
2343private static bool CrackByteInAttributeValue(out byte value, ref BlobReader sig)
2355private static bool CrackShortInAttributeValue(out short value, ref BlobReader sig)
2367private static bool CrackIntInAttributeValue(out int value, ref BlobReader sig)
2379private static bool CrackLongInAttributeValue(out long value, ref BlobReader sig)
2392private static bool CrackDecimalInDecimalConstantAttribute(out decimal value, ref BlobReader sig)
2414private static bool CrackBoolArrayInAttributeValue(out ImmutableArray<bool> value, ref BlobReader sig)
2443private static bool CrackByteArrayInAttributeValue(out ImmutableArray<byte> value, ref BlobReader sig)
2923BlobReader sig = metadataReader.GetBlobReader(GetMethodSignatureOrThrow(metadataReader, ctor));
3256internal BlobReader GetTypeSpecificationSignatureReaderOrThrow(TypeSpecificationHandle typeSpec)
3699BlobReader 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 (28)
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)