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