198 references to Write
illink (1)
Linker\CustomSymbolWriter.cs (1)
76
writer.
Write
((byte) 0);
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
134
writer.
Write
(TokenVersion);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
293
writer.
Write
((byte)0);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
293
writer.
Write
((byte)0);
Microsoft.Build (8)
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1219
binaryWriter.
Write
(b);
1232
binaryWriter.
Write
(*ptr);
Logging\LoggerDescription.cs (2)
307
writer.
Write
((byte)0);
311
writer.
Write
((byte)1);
LogMessagePacketBase.cs (4)
1041
writer.
Write
((byte)0);
1071
writer.
Write
((byte)0);
1100
writer.
Write
((byte)0);
1137
writer.
Write
((byte)0);
Microsoft.Build.Framework (18)
BinaryTranslator.cs (1)
980
_writer.
Write
(value);
BinaryWriterExtensions.cs (9)
21
writer.
Write
((byte)0);
25
writer.
Write
((byte)1);
37
writer.
Write
((byte)0);
41
writer.
Write
((byte)1);
65
writer.
Write
((byte)(v | 0x80));
69
writer.
Write
((byte)v);
78
writer.
Write
((byte)0);
82
writer.
Write
((byte)1);
111
writer.
Write
(*ptr);
BuildException\BuildExceptionBase.cs (2)
99
writer.
Write
((byte)0);
103
writer.
Write
((byte)1);
ProjectStartedEventArgs.cs (6)
358
writer.
Write
((byte)0);
362
writer.
Write
((byte)1);
382
writer.
Write
((byte)0);
390
writer.
Write
((byte)1);
483
writer.
Write
((byte)0);
487
writer.
Write
((byte)1);
Microsoft.CodeAnalysis (4)
CvtRes.cs (4)
461
resWriter.
Write
((BYTE)iconDirEntries[i].bWidth);
462
resWriter.
Write
((BYTE)iconDirEntries[i].bHeight);
463
resWriter.
Write
((BYTE)iconDirEntries[i].bColorCount);
464
resWriter.
Write
((BYTE)iconDirEntries[i].bReserved);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
117
public void WriteByte(byte value) => _writer.
Write
(value);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
117
public void WriteByte(byte value) => _writer.
Write
(value);
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
3045
writer.
Write
(f);
Microsoft.Maui.Resizetizer (4)
WindowsIconGenerator.cs (4)
55
writer.
Write
((byte)dpi.Size.Value.Width);
56
writer.
Write
((byte)dpi.Size.Value.Height);
57
writer.
Write
((byte)0x0); // Specifies number of colors in the color palette
58
writer.
Write
((byte)0x0); // Reserved. Should be 0
Microsoft.ML.Core (7)
Utilities\Stream.cs (7)
60
writer.
Write
((byte)(x ? 1 : 0));
139
writer.
Write
(values[i]);
241
writer.
Write
(values[i] ? (byte)1 : (byte)0);
252
writer.
Write
(values[i] ? (byte)1 : (byte)0);
299
writer.
Write
(v);
414
writer.
Write
((byte)(value | 0x80));
417
writer.
Write
((byte)value);
Microsoft.ML.Data (5)
DataLoadSave\Binary\BinarySaver.cs (2)
333
writer.
Write
((byte)metadataInfos[i].Item3);
522
writer.
Write
((byte)_compression);
DataLoadSave\Binary\Codecs.cs (2)
446
Writer.
Write
(_currentBits);
463
Writer.
Write
(_currentBits);
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
72
public override void Write(Byte a, BinaryWriter writer) { writer.
Write
(a); }
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalRegressionTree.cs (1)
367
writer.
Write
((byte)code);
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (4)
1211
m_bw.
Write
(byt)
1330
m_bw.
Write
(flags)
1331
m_bw.
Write
(sign)
1793
m_bw.
Write
(ByteType.FromObject(obj))
MSBuildTaskHost (10)
BinaryTranslator.cs (1)
980
_writer.
Write
(value);
BinaryWriterExtensions.cs (7)
21
writer.
Write
((byte)0);
25
writer.
Write
((byte)1);
37
writer.
Write
((byte)0);
41
writer.
Write
((byte)1);
65
writer.
Write
((byte)(v | 0x80));
69
writer.
Write
((byte)v);
111
writer.
Write
(*ptr);
BuildExceptionBase.cs (2)
99
writer.
Write
((byte)0);
103
writer.
Write
((byte)1);
PresentationBuildTasks (21)
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\ParserStreamGeometryContext.cs (5)
89
_bw.
Write
(packedByte);
231
_bw.
Write
(packMe);
301
_bw.
Write
((byte) ParserGeometryContextOpCodes.Closed);
647
_bw.
Write
(PackByte(opCode, bool1, bool2, isScaledIntegerX, isScaledIntegerY));
666
_bw.
Write
(packedByte);
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (5)
291
writer.
Write
( (byte) SerializationFloatType.Zero ) ;
295
writer.
Write
( (byte) SerializationFloatType.One ) ;
299
writer.
Write
( (byte) SerializationFloatType.MinusOne ) ;
307
writer.
Write
( (byte) SerializationFloatType.ScaledInteger ) ;
312
writer.
Write
( (byte) SerializationFloatType.Double ) ;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (6)
827
bamlBinaryWriter.
Write
((byte) RecordType);
1074
bamlBinaryWriter.
Write
((byte) RecordType);
2539
bamlBinaryWriter.
Write
((byte)Convert.ChangeType(convertedValue, typeof(byte), TypeConverterHelper.InvariantEnglishUS));
3223
bamlBinaryWriter.
Write
(flags);
3598
bamlBinaryWriter.
Write
(flags);
4591
bamlBinaryWriter.
Write
((Byte)AttributeUsage);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlBrushSerializer.cs (2)
122
writer.
Write
((byte)SerializationBrushType.KnownSolidColor);
135
writer.
Write
((byte)SerializationBrushType.OtherColor);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (3)
130
writer.
Write
( (byte) IntegerCollectionType.Consecutive );
157
writer.
Write
( (byte) type );
166
writer.
Write
( (byte)
PresentationCore (22)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (9)
176
bw.
Write
((byte)0xFF);
177
bw.
Write
((byte)0xFF);
182
bw.
Write
((byte)0);
183
bw.
Write
((byte)0);
204
bw.
Write
(data);
267
bw.
Write
((byte)0xFF);
268
bw.
Write
((byte)0xFF);
273
bw.
Write
((byte)0);
274
bw.
Write
((byte)0);
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
672
bw.
Write
((byte)0x00);
MS\Internal\Media\ParserStreamGeometryContext.cs (5)
89
_bw.
Write
(packedByte);
231
_bw.
Write
(packMe);
301
_bw.
Write
((byte) ParserGeometryContextOpCodes.Closed);
647
_bw.
Write
(PackByte(opCode, bool1, bool2, isScaledIntegerX, isScaledIntegerY));
666
_bw.
Write
(packedByte);
MS\Internal\Media\XamlSerializationHelper.cs (5)
291
writer.
Write
( (byte) SerializationFloatType.Zero ) ;
295
writer.
Write
( (byte) SerializationFloatType.One ) ;
299
writer.
Write
( (byte) SerializationFloatType.MinusOne ) ;
307
writer.
Write
( (byte) SerializationFloatType.ScaledInteger ) ;
312
writer.
Write
( (byte) SerializationFloatType.Double ) ;
System\Windows\Media\SolidColorBrush.cs (2)
89
writer.
Write
((byte)SerializationBrushType.KnownSolidColor);
102
writer.
Write
((byte)SerializationBrushType.OtherColor);
PresentationFramework (26)
System\Windows\Controls\VirtualizingStackPanel.cs (4)
12806
writer.
Write
((byte)1);
12812
writer.
Write
((byte)2);
12821
writer.
Write
((byte)0);
12870
writer.
Write
((byte)_boolFieldStore);
System\Windows\Documents\TextStore.cs (1)
5234
writer.
Write
((byte)EventState);
System\Windows\Markup\BamlRecords.cs (6)
827
bamlBinaryWriter.
Write
((byte) RecordType);
1074
bamlBinaryWriter.
Write
((byte) RecordType);
2539
bamlBinaryWriter.
Write
((byte)Convert.ChangeType(convertedValue, typeof(byte), TypeConverterHelper.InvariantEnglishUS));
3223
bamlBinaryWriter.
Write
(flags);
3598
bamlBinaryWriter.
Write
(flags);
4591
bamlBinaryWriter.
Write
((Byte)AttributeUsage);
System\Windows\Markup\XamlFigureLengthSerializer.cs (6)
82
writer.
Write
((byte)intAmount);
90
writer.
Write
((byte)(0x80 | unitAndFlags));
91
writer.
Write
((byte)intAmount);
99
writer.
Write
((byte)(0xC0 | unitAndFlags));
107
writer.
Write
((byte)(0xA0 | unitAndFlags));
116
writer.
Write
((byte)(0xE0 | unitAndFlags));
System\Windows\Markup\XamlGridLengthSerializer.cs (6)
82
writer.
Write
((byte)intAmount);
90
writer.
Write
((byte)(0x80 | unitAndFlags));
91
writer.
Write
((byte)intAmount);
99
writer.
Write
((byte)(0xC0 | unitAndFlags));
107
writer.
Write
((byte)(0xA0 | unitAndFlags));
116
writer.
Write
((byte)(0xE0 | unitAndFlags));
System\Windows\Markup\XamlInt32CollectionSerializer.cs (3)
130
writer.
Write
( (byte) IntegerCollectionType.Consecutive );
157
writer.
Write
( (byte) type );
166
writer.
Write
( (byte)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
42
writer.
Write
(BinaryWriterMagic); // flag to identify BinaryWriter
System.Private.CoreLib (29)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (4)
485
Write
((byte)(uValue | ~0x7Fu));
489
Write
((byte)uValue);
504
Write
((byte)((uint)uValue | ~0x7Fu));
508
Write
((byte)uValue);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (25)
177
writer.
Write
((byte)CustomAttributeEncoding.Property);
229
writer.
Write
((byte)CustomAttributeEncoding.Field);
286
writer.
Write
((byte)CustomAttributeEncoding.SByte);
289
writer.
Write
((byte)CustomAttributeEncoding.Byte);
292
writer.
Write
((byte)CustomAttributeEncoding.Char);
295
writer.
Write
((byte)CustomAttributeEncoding.Boolean);
298
writer.
Write
((byte)CustomAttributeEncoding.Int16);
301
writer.
Write
((byte)CustomAttributeEncoding.UInt16);
304
writer.
Write
((byte)CustomAttributeEncoding.Int32);
307
writer.
Write
((byte)CustomAttributeEncoding.UInt32);
310
writer.
Write
((byte)CustomAttributeEncoding.Int64);
313
writer.
Write
((byte)CustomAttributeEncoding.UInt64);
316
writer.
Write
((byte)CustomAttributeEncoding.Float);
319
writer.
Write
((byte)CustomAttributeEncoding.Double);
328
writer.
Write
((byte)CustomAttributeEncoding.Enum);
333
writer.
Write
((byte)CustomAttributeEncoding.String);
337
writer.
Write
((byte)CustomAttributeEncoding.Type);
341
writer.
Write
((byte)CustomAttributeEncoding.Array);
347
writer.
Write
((byte)CustomAttributeEncoding.Object);
358
writer.
Write
((byte)length);
381
writer.
Write
((byte)value!);
409
writer.
Write
((byte)0xff);
416
writer.
Write
((byte)0xff);
445
writer.
Write
((byte)value!);
451
writer.
Write
((byte)((bool)value! ? 1 : 0));
System.Private.Windows.Core (22)
System\IO\BinaryReaderExtensions.cs (1)
279
writer.
Write
((byte)(object)values[i]);
System\IO\BinaryWriterExtensions.cs (2)
35
writer.
Write
((byte)memberTypeInfo[i].Type);
44
writer.
Write
((byte)memberTypeInfo[i].Info!);
System\Private\Windows\BinaryFormat\Serializer\ArraySingleObject.cs (1)
30
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\ArraySinglePrimitive.cs (2)
36
writer.
Write
((byte)RecordType);
38
writer.
Write
((byte)PrimitiveType);
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.cs (1)
32
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\BinaryLibrary.cs (1)
32
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\BinaryObjectString.cs (1)
32
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\ClassWithId.cs (1)
49
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\ClassWithMembersAndTypes.cs (1)
45
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\MemberPrimitiveTyped.cs (2)
47
writer.
Write
((byte)RecordType);
48
writer.
Write
((byte)PrimitiveType);
System\Private\Windows\BinaryFormat\Serializer\MemberReference.cs (1)
26
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\MessageEnd.cs (1)
17
internal static void Write(BinaryWriter writer) => writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\NullRecord.ObjectNullMultiple.cs (1)
28
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\NullRecord.ObjectNullMultiple256.cs (2)
28
writer.
Write
((byte)RecordType);
29
writer.
Write
(checked((byte)NullCount));
System\Private\Windows\BinaryFormat\Serializer\ObjectNull.cs (1)
26
internal static void Write(BinaryWriter writer) => writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\Record.cs (1)
31
writer.
Write
((byte)value);
System\Private\Windows\BinaryFormat\Serializer\SerializationHeader.cs (1)
49
writer.
Write
((byte)RecordType);
System\Private\Windows\BinaryFormat\Serializer\SystemClassWithMembersAndTypes.cs (1)
40
writer.
Write
((byte)RecordType);
System.Private.Xml (1)
System\Xml\Xsl\XmlQueryCardinality.cs (1)
302
writer.
Write
((byte)_value);
System.Resources.Extensions (3)
BinaryWriterExtensions.cs (2)
15
writer.
Write
((byte)(v | 0x80));
18
writer.
Write
((byte)v);
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
519
writer.
Write
((byte)value!);
System.Resources.Writer (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
519
writer.
Write
((byte)value!);
System.Security.Cryptography (4)
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (2)
303
bw.
Write
((byte)(isPrivate ? PRIVATEKEYBLOB : PUBLICKEYBLOB)); // BLOBHEADER.bType
304
bw.
Write
((byte)version); // BLOBHEADER.bVersion
System\Security\Cryptography\CapiHelper.Shared.cs (2)
109
bw.
Write
((byte)(isPrivate ? PRIVATEKEYBLOB : PUBLICKEYBLOB)); // BLOBHEADER.bType
110
bw.
Write
((byte)(BLOBHEADER_CURRENT_BVERSION)); // BLOBHEADER.bVersion