6 instantiations of ObjectWriter
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
167using (var writer = new ObjectWriter(gzipStream, leaveOpen: true))
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
66using (var writer = new ObjectWriter(stream, leaveOpen: true))
Serialization\SerializerService_Reference.cs (2)
67using (var writer = new ObjectWriter(stream, leaveOpen: true)) 195using (var writer = new ObjectWriter(stream, leaveOpen: true))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
89/// <inheritdoc cref="ObjectWriter(Stream, bool)"/>
Workspace\Solution\Checksum_Factory.cs (1)
62using (var objectWriter = new ObjectWriter(stream, leaveOpen: true))
91 references to ObjectWriter
Microsoft.CodeAnalysis.Remote.Workspaces (1)
RemoteHostAssetWriter.cs (1)
39/// <para/> When writing/reading the data-segment, we use an the <see cref="ObjectWriter"/>/<see cref="ObjectReader"/>
Microsoft.CodeAnalysis.Workspaces (90)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
167using (var writer = new ObjectWriter(gzipStream, leaveOpen: true)) 186public abstract void WriteTo(ObjectWriter writer);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (2)
66using (var writer = new ObjectWriter(stream, leaveOpen: true)) 106public void WriteTo(ObjectWriter writer)
FindSymbols\SyntaxTree\SyntaxTreeIndex.ContextInfo.cs (1)
174public void WriteTo(ObjectWriter writer)
FindSymbols\SyntaxTree\SyntaxTreeIndex.IdentifierInfo.cs (1)
40public void WriteTo(ObjectWriter writer)
FindSymbols\SyntaxTree\SyntaxTreeIndex.LiteralInfo.cs (1)
28public void WriteTo(ObjectWriter writer)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
25public override void WriteTo(ObjectWriter writer)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
179internal void WriteTo(ObjectWriter writer)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
18public void WriteTo(ObjectWriter writer)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
46public void WriteTo(ObjectWriter writer)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (1)
21public override void WriteTo(ObjectWriter writer)
Remote\ISerializerService.cs (1)
13void Serialize(object value, ObjectWriter writer, CancellationToken cancellationToken);
Serialization\AbstractOptionsSerializationService.cs (4)
18public abstract void WriteTo(CompilationOptions options, ObjectWriter writer, CancellationToken cancellationToken); 19public abstract void WriteTo(ParseOptions options, ObjectWriter writer); 24protected static void WriteCompilationOptionsTo(CompilationOptions options, ObjectWriter writer, CancellationToken cancellationToken) 191protected static void WriteParseOptionsTo(ParseOptions options, ObjectWriter writer)
Serialization\IOptionsSerializationService.cs (2)
18void WriteTo(CompilationOptions options, ObjectWriter writer, CancellationToken cancellationToken); 19void WriteTo(ParseOptions options, ObjectWriter writer);
Serialization\SerializableSourceText.cs (1)
147public void Serialize(ObjectWriter writer, CancellationToken cancellationToken)
Serialization\SerializerService.cs (2)
84public void Serialize(object value, ObjectWriter writer, CancellationToken cancellationToken) 163private static void Write(ObjectWriter writer, ImmutableDictionary<string, StructuredAnalyzerConfigOptions> optionsByLanguage)
Serialization\SerializerService_Asset.cs (6)
18private static void SerializeSourceText(SerializableSourceText text, ObjectWriter writer, CancellationToken cancellationToken) 23private void SerializeCompilationOptions(CompilationOptions options, ObjectWriter writer, CancellationToken cancellationToken) 46public void SerializeParseOptions(ParseOptions options, ObjectWriter writer) 67private static void SerializeProjectReference(ProjectReference reference, ObjectWriter writer) 85private void SerializeMetadataReference(MetadataReference reference, ObjectWriter writer) 91private void SerializeAnalyzerReference(AnalyzerReference reference, ObjectWriter writer)
Serialization\SerializerService_Reference.cs (15)
67using (var writer = new ObjectWriter(stream, leaveOpen: true)) 90protected virtual void WriteMetadataReferenceTo(MetadataReference reference, ObjectWriter writer) 116protected virtual void WriteAnalyzerReferenceTo(AnalyzerReference reference, ObjectWriter writer) 177PortableExecutableReference reference, SerializationKinds kind, ObjectWriter writer) 185private static void WritePortableExecutableReferencePropertiesTo(PortableExecutableReference reference, ObjectWriter writer) 195using (var writer = new ObjectWriter(stream, leaveOpen: true)) 205private static void WriteMvidsTo(Metadata? metadata, ObjectWriter writer) 250private static void WriteMvidTo(ModuleMetadata metadata, ObjectWriter writer) 265PortableExecutableReference reference, ObjectWriter writer) 305private static void WriteTo(MetadataReferenceProperties properties, ObjectWriter writer) 321private static void WriteTo(Metadata? metadata, ObjectWriter writer) 354ObjectWriter writer) 474private static void WriteTo(ModuleMetadata metadata, ObjectWriter writer) 480private static unsafe void WriteTo(MetadataReader reader, ObjectWriter writer) 485private static void WriteUnresolvedAnalyzerReferenceTo(AnalyzerReference reference, ObjectWriter writer)
Shared\Extensions\SourceTextExtensions.cs (2)
176public static void WriteTo(this SourceText sourceText, ObjectWriter writer, CancellationToken cancellationToken) 194private static void WriteChunksTo(SourceText sourceText, ObjectWriter writer, int length, CancellationToken cancellationToken)
Shared\Utilities\BloomFilter_Serialization.cs (2)
17public void WriteTo(ObjectWriter writer) 25private static void WriteBitArray(ObjectWriter writer, BitArray bitArray)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (2)
14public static void WriteArray<T>(this ObjectWriter writer, ImmutableArray<T> values, Action<ObjectWriter, T> write)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
481public void WriteTo(ObjectWriter writer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
54public void WriteTo(ObjectWriter writer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
227public void WriteTo(ObjectWriter writer) 406public void WriteTo(ObjectWriter writer) 534public void WriteTo(ObjectWriter writer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (9)
14using TypeCode = ObjectWriter.TypeCode; 40/// <param name="leaveOpen">True to leave the <paramref name="stream"/> open after the <see cref="ObjectWriter"/> is disposed.</param> 98/// cref="ObjectWriter.WriteValidationBytes"/> should be checked immediately at the stream's current 146var accessor = new ObjectWriter.GuidAccessor 280var marker = (byte)(info & ObjectWriter.ByteMarkerMask); 281var byte0 = (byte)(info & ~ObjectWriter.ByteMarkerMask); 283if (marker == ObjectWriter.Byte1Marker) 288if (marker == ObjectWriter.Byte2Marker) 294if (marker == ObjectWriter.Byte4Marker)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
24/// An <see cref="ObjectWriter"/> that serializes objects to a byte stream. 80/// Creates a new instance of a <see cref="ObjectWriter"/>. 83/// <param name="leaveOpen">True to leave the <paramref name="stream"/> open after the <see cref="ObjectWriter"/> is disposed.</param>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Edge.cs (1)
18internal void WriteTo(ObjectWriter writer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Node.cs (1)
27internal void WriteTo(ObjectWriter writer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Serialization.cs (1)
12internal void WriteTo(ObjectWriter writer)
Utilities\SpellChecker.cs (1)
39public void WriteTo(ObjectWriter writer)
Workspace\Host\TemporaryStorage\TemporaryStorageIdentifier.cs (1)
24public void WriteTo(ObjectWriter writer)
Workspace\Solution\Checksum.cs (1)
80public void WriteTo(ObjectWriter writer)
Workspace\Solution\Checksum_Factory.cs (2)
58public static Checksum Create<T>(T @object, Action<T, ObjectWriter> writeObject) 62using (var objectWriter = new ObjectWriter(stream, leaveOpen: true))
Workspace\Solution\ChecksumCollection.cs (1)
111public void WriteTo(ObjectWriter writer)
Workspace\Solution\ChecksumsAndIds.cs (2)
32public void WriteTo(ObjectWriter writer) 87public void WriteTo(ObjectWriter writer)
Workspace\Solution\CompilationOutputInfo.cs (1)
80internal void WriteTo(ObjectWriter writer)
Workspace\Solution\DocumentId.cs (1)
89internal void WriteTo(ObjectWriter writer)
Workspace\Solution\DocumentInfo.cs (1)
232public void WriteTo(ObjectWriter writer)
Workspace\Solution\ProjectId.cs (1)
93internal void WriteTo(ObjectWriter writer)
Workspace\Solution\ProjectInfo.cs (1)
603public void WriteTo(ObjectWriter writer)
Workspace\Solution\SolutionId.cs (1)
80internal void WriteTo(ObjectWriter writer)
Workspace\Solution\SolutionInfo.cs (1)
161public void WriteTo(ObjectWriter writer)
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
75public void WriteTo(ObjectWriter writer)
Workspace\Solution\SourceGeneratorExecutionVersion.cs (2)
38public void WriteTo(ObjectWriter writer) 80public void WriteTo(ObjectWriter writer)
Workspace\Solution\StateChecksums.cs (3)
71public void Serialize(ObjectWriter writer) 251public void Serialize(ObjectWriter writer) 414public void Serialize(ObjectWriter writer)