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