1 write to _writer
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
92_writer = new BinaryWriter(stream, Encoding.UTF8, leaveOpen);
25 references to _writer
Microsoft.CodeAnalysis.Workspaces (25)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (25)
112_writer.Dispose(); 116public void WriteBoolean(bool value) => _writer.Write(value); 117public void WriteByte(byte value) => _writer.Write(value); 119public void WriteChar(char ch) => _writer.Write((ushort)ch); 120public void WriteDecimal(decimal value) => _writer.Write(value); 121public void WriteDouble(double value) => _writer.Write(value); 122public void WriteSingle(float value) => _writer.Write(value); 123public void WriteInt32(int value) => _writer.Write(value); 124public void WriteInt64(long value) => _writer.Write(value); 125public void WriteSByte(sbyte value) => _writer.Write(value); 126public void WriteInt16(short value) => _writer.Write(value); 127public void WriteUInt32(uint value) => _writer.Write(value); 128public void WriteUInt64(ulong value) => _writer.Write(value); 129public void WriteUInt16(ushort value) => _writer.Write(value); 132public Stream BaseStream => _writer.BaseStream; 139_writer.BaseStream.Position = 0; 141if (_writer.BaseStream is SerializableBytes.ReadWriteStream pooledStream) 150_writer.BaseStream.SetLength(0); 276_writer.Write(((DateTime)value).ToBinary()); 291_writer.Write(array); 318_writer.Write(array, index, count); 331_writer.Write(span); 374write(_writer, buffer, segmentLength); 495_writer.Write(value); 509_writer.Write(bytes);