2 instantiations of ObjectReader
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (2)
83return new ObjectReader(stream, leaveOpen); 103var reader = new ObjectReader(stream, leaveOpen);
102 references to ObjectReader
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\BloomFilterTests.cs (2)
142using var reader = ObjectReader.TryGetReader(stream); 160using var reader = ObjectReader.TryGetReader(stream);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
296using var reader = ObjectReader.TryGetReader(stream);
Microsoft.CodeAnalysis.Remote.Workspaces (2)
RemoteHostAssetReader.cs (1)
55using var objectReader = ObjectReader.GetReader(pipeReaderStream, leaveOpen: true, checkValidationBytes: false);
RemoteHostAssetWriter.cs (1)
39/// <para/> When writing/reading the data-segment, we use an the <see cref="ObjectWriter"/>/<see cref="ObjectReader"/>
Microsoft.CodeAnalysis.Workspaces (83)
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
18protected delegate TIndex? IndexReader(StringTable stringTable, ObjectReader reader, Checksum? checksum);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
79using var reader = ObjectReader.TryGetReader(gzipStream);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (4)
98using var reader = ObjectReader.TryGetReader(stream); 192ObjectReader? reader, Checksum checksum) 274public static SymbolTreeInfo? ReadSymbolTreeInfo(ObjectReader reader, Checksum checksum)
FindSymbols\SyntaxTree\SyntaxTreeIndex.ContextInfo.cs (1)
188public static ContextInfo? TryReadFrom(ObjectReader reader)
FindSymbols\SyntaxTree\SyntaxTreeIndex.IdentifierInfo.cs (1)
46public static IdentifierInfo? TryReadFrom(ObjectReader reader)
FindSymbols\SyntaxTree\SyntaxTreeIndex.LiteralInfo.cs (1)
31public static LiteralInfo? TryReadFrom(ObjectReader reader)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
57StringTable stringTable, ObjectReader reader, Checksum? checksum)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
191internal static DeclaredSymbolInfo ReadFrom_ThrowsOnFailure(StringTable stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
21public static DeclarationInfo? TryReadFrom(StringTable stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
57public static ExtensionMethodInfo? TryReadFrom(ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (1)
28StringTable stringTable, ObjectReader reader, Checksum? checksum)
Remote\ISerializerService.cs (1)
14object Deserialize(WellKnownSynchronizationKind kind, ObjectReader reader, CancellationToken cancellationToken);
Serialization\AbstractOptionsSerializationService.cs (4)
21public abstract CompilationOptions ReadCompilationOptionsFrom(ObjectReader reader, CancellationToken cancellationToken); 22public abstract ParseOptions ReadParseOptionsFrom(ObjectReader reader, CancellationToken cancellationToken); 102ObjectReader reader, 207ObjectReader reader,
Serialization\IOptionsSerializationService.cs (2)
21CompilationOptions ReadCompilationOptionsFrom(ObjectReader reader, CancellationToken cancellationToken); 22ParseOptions ReadParseOptionsFrom(ObjectReader reader, CancellationToken cancellationToken);
Serialization\SerializableSourceText.cs (1)
172ObjectReader reader,
Serialization\SerializerService.cs (2)
197private static ImmutableDictionary<string, StructuredAnalyzerConfigOptions> ReadFallbackAnalyzerOptions(ObjectReader reader) 235public object Deserialize(WellKnownSynchronizationKind kind, ObjectReader reader, CancellationToken cancellationToken)
Serialization\SerializerService_Asset.cs (5)
36private CompilationOptions DeserializeCompilationOptions(ObjectReader reader, CancellationToken cancellationToken) 57private ParseOptions DeserializeParseOptions(ObjectReader reader, CancellationToken cancellationToken) 74private static ProjectReference DeserializeProjectReference(ObjectReader reader, CancellationToken cancellationToken) 88private MetadataReference DeserializeMetadataReference(ObjectReader reader) 94private AnalyzerReference DeserializeAnalyzerReference(ObjectReader reader)
Serialization\SerializerService_Reference.cs (7)
107protected virtual MetadataReference ReadMetadataReferenceFrom(ObjectReader reader) 156protected virtual AnalyzerReference ReadAnalyzerReferenceFrom(ObjectReader reader) 273private PortableExecutableReference ReadPortableExecutableReferenceFrom(ObjectReader reader) 312private static MetadataReferenceProperties ReadMetadataReferencePropertiesFrom(ObjectReader reader) 373ObjectReader reader, SerializationKinds kind) 413ObjectReader reader, SerializationKinds kind) 467private static void CopyByteArrayToStream(ObjectReader reader, Stream stream)
Shared\Extensions\SourceTextExtensions.cs (2)
225public static SourceText ReadFrom(ITextFactoryService textService, ObjectReader reader, Encoding? encoding, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken) 245public static TextReader CreateFromObjectReader(ObjectReader reader)
Shared\Utilities\BloomFilter_Serialization.cs (2)
55public static BloomFilter ReadFrom(ObjectReader reader) 69private static BitArray ReadBitArray(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (4)
24public static ImmutableArray<T> ReadArray<T>(this ObjectReader reader, Func<ObjectReader, T> read) 27public static ImmutableArray<T> ReadArray<T, TArg>(this ObjectReader reader, Func<ObjectReader, TArg, T> read, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
491public static NamingStyle ReadFrom(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
51public static SerializableNamingRule ReadFrom(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
236public static SymbolSpecification ReadFrom(ObjectReader reader) 417public static SymbolKindOrTypeKind ReadFrom(ObjectReader reader) 546public static ModifierKind ReadFrom(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (8)
17/// An <see cref="ObjectReader"/> that deserializes objects from a byte stream. 37/// Creates a new instance of a <see cref="ObjectReader"/>. 52/// Attempts to create a <see cref="ObjectReader"/> from the provided <paramref name="stream"/>. 56public static ObjectReader? TryGetReader(Stream? stream, bool leaveOpen = false) 87/// Creates an <see cref="ObjectReader"/> from the provided <paramref name="stream"/>. Unlike <see 92public static ObjectReader GetReader(Stream stream, bool leaveOpen) 101public static ObjectReader GetReader(Stream stream, bool leaveOpen, bool checkValidationBytes) 103var reader = new ObjectReader(stream, leaveOpen);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
101/// <see cref="ObjectReader"/> to be able to easily detect if it is being improperly used, or if the stream is 106WriteByte(ObjectReader.VersionByte1); 107WriteByte(ObjectReader.VersionByte2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Edge.cs (1)
24internal static Edge ReadFrom(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Node.cs (1)
35internal static Node ReadFrom(ObjectReader reader)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Serialization.cs (1)
19internal static BKTree? ReadFrom(ObjectReader reader)
Utilities\SpellChecker.cs (1)
45internal static SpellChecker? TryReadFrom(ObjectReader reader)
Workspace\Host\TemporaryStorage\TemporaryStorageIdentifier.cs (1)
18public static TemporaryStorageIdentifier ReadFrom(ObjectReader reader)
Workspace\Solution\Checksum.cs (1)
99public static Checksum ReadFrom(ObjectReader reader)
Workspace\Solution\ChecksumCollection.cs (1)
114public static ChecksumCollection ReadFrom(ObjectReader reader)
Workspace\Solution\ChecksumsAndIds.cs (2)
38public static ProjectChecksumsAndIds ReadFrom(ObjectReader reader) 94public static DocumentChecksumsAndIds ReadFrom(ObjectReader reader)
Workspace\Solution\CompilationOutputInfo.cs (1)
86internal static CompilationOutputInfo ReadFrom(ObjectReader reader)
Workspace\Solution\DocumentId.cs (1)
97internal static DocumentId ReadFrom(ObjectReader reader)
Workspace\Solution\DocumentInfo.cs (1)
244public static DocumentAttributes ReadFrom(ObjectReader reader)
Workspace\Solution\ProjectId.cs (1)
99internal static ProjectId ReadFrom(ObjectReader reader)
Workspace\Solution\ProjectInfo.cs (1)
629public static ProjectAttributes ReadFrom(ObjectReader reader)
Workspace\Solution\SolutionId.cs (1)
86internal static SolutionId ReadFrom(ObjectReader reader)
Workspace\Solution\SolutionInfo.cs (1)
173public static SolutionAttributes ReadFrom(ObjectReader reader)
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
87internal static SourceGeneratedDocumentIdentity ReadFrom(ObjectReader reader)
Workspace\Solution\SourceGeneratorExecutionVersion.cs (2)
44public static SourceGeneratorExecutionVersion ReadFrom(ObjectReader reader) 92public static SourceGeneratorExecutionVersionMap Deserialize(ObjectReader reader)
Workspace\Solution\StateChecksums.cs (3)
88public static SolutionCompilationStateChecksums Deserialize(ObjectReader reader) 264public static SolutionStateChecksums Deserialize(ObjectReader reader) 431public static ProjectStateChecksums Deserialize(ObjectReader reader)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Fakes\SimpleAssetSource.cs (1)
35using var reader = ObjectReader.GetReader(stream, leaveOpen: true);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
FindAllDeclarationsTests.cs (1)
680using var reader = ObjectReader.TryGetReader(readerStream);
ObjectSerializationTests.cs (5)
31var reader = ObjectReader.TryGetReader(stream); 45using var reader = ObjectReader.TryGetReader(stream); 65using var reader = ObjectReader.TryGetReader(stream); 664using var reader = ObjectReader.TryGetReader(stream); 704using var reader = ObjectReader.GetReader(stream, leaveOpen: true, checkValidationBytes: false);
UtilityTest\SourceTextSerializationTests.cs (1)
43using var reader = ObjectReader.TryGetReader(stream);
Roslyn.VisualStudio.Next.UnitTests (6)
Remote\SerializationValidator.cs (1)
102using var reader = ObjectReader.TryGetReader(stream);
Remote\SnapshotSerializationTests.cs (4)
618using var objectReader = ObjectReader.TryGetReader(stream); 636using var objectReader = ObjectReader.TryGetReader(stream); 664using var objectReader = ObjectReader.TryGetReader(stream); 683using var reader = ObjectReader.TryGetReader(stream);
Services\AssetProviderTests.cs (1)
213using var reader = ObjectReader.GetReader(stream, leaveOpen: true);