171 references to ReadByte
BinaryFormatTests (1)
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
152PrimitiveType.Byte => reader.ReadByte(),
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.Build (5)
Logging\LoggerDescription.cs (5)
323_loggerClassName = reader.ReadByte() == 0 ? null : reader.ReadString(); 324_loggerSwitchParameters = reader.ReadByte() == 0 ? null : reader.ReadString(); 326if (reader.ReadByte() == 0) 332string assemblyFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 333string assemblyName = reader.ReadByte() == 0 ? null : reader.ReadString();
Microsoft.Build.Framework (36)
BinaryReaderExtensions.cs (4)
16return reader.ReadByte() == 0 ? null : reader.ReadString(); 22return reader.ReadByte() == 0 ? null : reader.ReadInt32(); 43b = reader.ReadByte(); 62if (reader.ReadByte() == 0)
BinaryTranslator.cs (1)
159value = _reader.ReadByte();
BuildErrorEventArgs.cs (5)
315subcategory = reader.ReadByte() == 0 ? null : reader.ReadString(); 316code = reader.ReadByte() == 0 ? null : reader.ReadString(); 317file = reader.ReadByte() == 0 ? null : reader.ReadString(); 321projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 335helpLink = reader.ReadByte() == 0 ? null : reader.ReadString();
BuildEventArgs.cs (1)
227if (reader.ReadByte() == 0)
BuildException\BuildExceptionBase.cs (1)
132if (reader.ReadByte() == 1)
BuildMessageEventArgs.cs (4)
315subcategory = reader.ReadByte() == 0 ? null : reader.ReadString(); 316code = reader.ReadByte() == 0 ? null : reader.ReadString(); 317file = reader.ReadByte() == 0 ? null : reader.ReadString(); 318projectFile = reader.ReadByte() == 0 ? null : reader.ReadString();
BuildWarningEventArgs.cs (5)
221subcategory = reader.ReadByte() == 0 ? null : reader.ReadString(); 222code = reader.ReadByte() == 0 ? null : reader.ReadString(); 223file = reader.ReadByte() == 0 ? null : reader.ReadString(); 227projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 237helpLink = reader.ReadByte() == 0 ? null : reader.ReadString();
ProjectFinishedEventArgs.cs (1)
93projectFile = reader.ReadByte() == 0 ? null : reader.ReadString();
ProjectStartedEventArgs.cs (4)
416if (reader.ReadByte() == 0) 439projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 445if (reader.ReadByte() == 0) 497if (reader.ReadByte() == 0)
TargetFinishedEventArgs.cs (3)
138projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 139targetFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 140targetName = reader.ReadByte() == 0 ? null : reader.ReadString();
TargetStartedEventArgs.cs (4)
137targetName = reader.ReadByte() == 0 ? null : reader.ReadString(); 138projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 139targetFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 143parentTarget = reader.ReadByte() == 0 ? null : reader.ReadString();
TaskFinishedEventArgs.cs (3)
110taskName = reader.ReadByte() == 0 ? null : reader.ReadString(); 111projectFile = reader.ReadByte() == 0 ? null : reader.ReadString(); 112taskFile = reader.ReadByte() == 0 ? null : reader.ReadString();
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyInformation.cs (1)
1185if (b != r.ReadByte())
Microsoft.CodeAnalysis (4)
CvtRes.cs (4)
336iconDirEntries[i].bWidth = iconReader.ReadByte(); 337iconDirEntries[i].bHeight = iconReader.ReadByte(); 338iconDirEntries[i].bColorCount = iconReader.ReadByte(); 339iconDirEntries[i].bReserved = iconReader.ReadByte();
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Microsoft.DotNet.SignCheckLibrary (4)
Interop\PortableExecutable\ImageOptionalHeader.cs (4)
308MajorLinkerVersion = reader.ReadByte(), 309MinorLinkerVersion = reader.ReadByte(), 377MajorLinkerVersion = reader.ReadByte(), 378MinorLinkerVersion = reader.ReadByte(),
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
3483byte b = reader.ReadByte();
Microsoft.DotNet.StrongName (5)
Signing.cs (2)
317byte bType = br.ReadByte(); // BLOBHEADER.bType: Expected to be 0x6 (PUBLICKEYBLOB) or 0x7 (PRIVATEKEYBLOB), though there's no check for backward compat reasons. 318byte bVersion = br.ReadByte(); // BLOBHEADER.bVersion: Expected to be 0x2, though there's no check for backward compat reasons.
Utils.cs (3)
39var publicKey = blobReader.ReadByte(); 182byte bType = br.ReadByte(); // BLOBHEADER.bType: Expected to be 0x6 (PUBLICKEYBLOB) or 0x7 (PRIVATEKEYBLOB), though there's no check for backward compat reasons. 183byte bVersion = br.ReadByte(); // BLOBHEADER.bVersion: Expected to be 0x2, though there's no check for backward compat reasons.
Microsoft.Maui.Graphics (4)
PlatformImage.cs (4)
122 reader.ReadByte(); 123 byte type = reader.ReadByte(); 142 int lenHi = reader.ReadByte(); 143 int lenLo = reader.ReadByte();
Microsoft.ML.Core (2)
Utilities\Stream.cs (2)
457byte b = reader.ReadByte(); 779b = reader.ReadByte();
Microsoft.ML.Data (12)
DataLoadSave\Binary\BinaryLoader.cs (2)
343CompressionKind compression = (CompressionKind)reader.ReadByte(); 1109CompressionKind compression = (CompressionKind)_reader.ReadByte();
DataLoadSave\Binary\Codecs.cs (1)
493_currentBits = Reader.ReadByte();
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
73public override Byte Read(BinaryReader reader) { return reader.ReadByte(); }
DataLoadSave\Database\DatabaseLoader.cs (1)
569var kind = (InternalDataKind)ctx.Reader.ReadByte();
DataLoadSave\Text\TextLoader.cs (1)
934var kind = (InternalDataKind)ctx.Reader.ReadByte();
Transforms\ColumnSelecting.cs (2)
344var hiddenOption = (HiddenColumnOption)ctx.Reader.ReadByte(); 360var colHiddenOption = (HiddenColumnOption)ctx.Reader.ReadByte();
Transforms\Normalizer.cs (2)
439InternalDataKind itemKindOld = (InternalDataKind)ctx.Reader.ReadByte(); 453InternalDataKind itemKind = (InternalDataKind)ctx.Reader.ReadByte();
Transforms\TypeConverting.cs (1)
264byte b = ctx.Reader.ReadByte();
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
518MapType mtype = (MapType)ctx.Reader.ReadByte();
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalRegressionTree.cs (1)
420TreeType code = (TreeType)ctx.Reader.ReadByte();
Microsoft.ML.ImageAnalytics (6)
ImagePixelExtractor.cs (2)
708ColorsToExtract = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte(); 715OrderOfExtraction = (ImagePixelExtractingEstimator.ColorsOrder)ctx.Reader.ReadByte();
ImageResizer.cs (2)
206var scale = (ImageResizingEstimator.ResizingKind)ctx.Reader.ReadByte(); 208var anchor = (ImageResizingEstimator.Anchor)ctx.Reader.ReadByte();
VectorToImageTransform.cs (2)
546Colors = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte(); 561Order = (ImagePixelExtractingEstimator.ColorsOrder)ctx.Reader.ReadByte();
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
372OutputFormula outputFormula = (OutputFormula)ctx.Reader.ReadByte();
Microsoft.ML.TimeSeries (10)
AdaptiveSingularSpectrumSequenceModeler.cs (1)
383temp = ctx.Reader.ReadByte();
SequentialAnomalyDetectionTransformBase.cs (3)
210temp = ctx.Reader.ReadByte(); 214temp = ctx.Reader.ReadByte(); 221temp = ctx.Reader.ReadByte();
SlidingWindowTransformBase.cs (1)
91byte r = ctx.Reader.ReadByte();
SrCnnTransformBase.cs (4)
94temp = ctx.Reader.ReadByte(); 98temp = ctx.Reader.ReadByte(); 102temp = ctx.Reader.ReadByte(); 106temp = ctx.Reader.ReadByte();
SsaAnomalyDetectionBase.cs (1)
232temp = ctx.Reader.ReadByte();
Microsoft.ML.Transforms (2)
GcnTransform.cs (1)
845byte normKindVal = ctx.Reader.ReadByte();
Text\TextNormalizing.cs (1)
163_caseMode = (TextNormalizingEstimator.CaseMode)ctx.Reader.ReadByte();
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (4)
1580b = m_br.ReadByte() 1621flags = m_br.ReadByte() 1622sign = m_br.ReadByte() 1987obj = m_br.ReadByte()
MSBuildTaskHost (4)
BackEnd\BinaryReaderExtensions.cs (2)
11=> reader.ReadByte() == 0 ? null : reader.ReadString(); 14=> reader.ReadByte() == 0 ? null : reader.ReadInt32();
BackEnd\BinaryTranslator.cs (1)
107=> value = Reader.ReadByte();
Exceptions\BuildExceptionBase.cs (1)
130if (reader.ReadByte() == 1)
PresentationCore (5)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
656return br.ReadByte();
MS\Internal\Media\ParserStreamGeometryContext.cs (2)
312currentByte = br.ReadByte(); 494byte packedByte = br.ReadByte();
MS\Internal\Media\XamlSerializationHelper.cs (1)
325SerializationFloatType type = ( SerializationFloatType ) reader.ReadByte();
System\Windows\Media\SolidColorBrush.cs (1)
129SerializationBrushType brushType = (SerializationBrushType)reader.ReadByte();
PresentationFramework (21)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (8)
812byte flags = _binaryReader.ReadByte(); 864byte flags = _binaryReader.ReadByte(); 985byte flags = _binaryReader.ReadByte(); 1302byte flags = _binaryReader.ReadByte(); 1432(System.Windows.Markup.XamlInt32CollectionSerializer.IntegerCollectionType)reader.ReadByte(); 1444ints.Add(reader.ReadByte()); 2214byte usage = _binaryReader.ReadByte(); 2281byte value = _binaryReader.ReadByte();
System\Windows\Markup\BamlRecordReader.cs (3)
211BamlRecordType recordType = (BamlRecordType)BinaryReader.ReadByte(); 249BamlRecordType recordType = (BamlRecordType)BinaryReader.ReadByte(); 300BamlRecordType nextRecordType = (BamlRecordType)BinaryReader.ReadByte();
System\Windows\Markup\BamlRecords.cs (4)
2758byte boolByte = reader.ReadByte(); 3213byte flags = bamlBinaryReader.ReadByte(); 3579byte flags = bamlBinaryReader.ReadByte(); 4580AttributeUsage = (BamlAttributeUsage)bamlBinaryReader.ReadByte();
System\Windows\Markup\XamlFigureLengthSerializer.cs (2)
138byte unitAndFlags = reader.ReadByte(); 152unitValue = (double)reader.ReadByte();
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
138byte unitAndFlags = reader.ReadByte(); 152unitValue = (double)reader.ReadByte();
System\Windows\Markup\XamlInt32CollectionSerializer.cs (2)
268type = (IntegerCollectionType) reader.ReadByte(); 298theCollection.Add( (int) reader.ReadByte());
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
System.Formats.Nrbf (10)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
261values.Add((T)(object)reader.ReadByte());
System\Formats\Nrbf\ClassWithIdRecord.cs (1)
56MemberPrimitiveTypedRecord<byte> => Create(reader.ReadByte()),
System\Formats\Nrbf\NrbfDecoder.cs (1)
246PrimitiveType.Byte => new MemberPrimitiveTypedRecord<byte>(reader.ReadByte()),
System\Formats\Nrbf\ObjectNullMultiple256Record.cs (1)
26byte count = reader.ReadByte();
System\Formats\Nrbf\SystemClassWithMembersAndTypesRecord.cs (1)
58(PrimitiveType.Byte, "System.Byte", "m_value") => Create(reader.ReadByte()),
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (5)
21byte nextByte = reader.ReadByte(); 39byte arrayType = reader.ReadByte(); 57byte binaryType = reader.ReadByte(); 68byte primitiveType = reader.ReadByte(); 84PrimitiveType.Byte => reader.ReadByte(),
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (4)
553byteReadJustNow = ReadByte(); 566byteReadJustNow = ReadByte(); 593byteReadJustNow = ReadByte(); 606byteReadJustNow = ReadByte();
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
575return _store.ReadByte(); 661return _store.ReadByte(); 884_store.ReadByte();
System.Private.Xml (2)
System\Xml\Xsl\XmlQueryCardinality.cs (1)
308public XmlQueryCardinality(BinaryReader reader) : this(reader.ReadByte())
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
1195switch (reader.ReadByte())
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEBinaryReader.cs (1)
54return _reader.ReadByte();
System.Resources.Extensions (4)
BinaryReaderExtensions.cs (1)
25b = reader.ReadByte();
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
575return _store.ReadByte(); 661return _store.ReadByte(); 884_store.ReadByte();
System.Security.Cryptography (4)
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (2)
280br.ReadByte(); // BLOBHEADER.bType: Expected to be 0x6 (PUBLICKEYBLOB) or 0x7 (PRIVATEKEYBLOB), though there's no check for backward compat reasons. 281bVersion = br.ReadByte(); // BLOBHEADER.bVersion: Expected to be 0x2 or 0x3, though there's no check for backward compat reasons.
System\Security\Cryptography\CapiHelper.Shared.cs (2)
163br.ReadByte(); // BLOBHEADER.bType: Expected to be 0x6 (PUBLICKEYBLOB) or 0x7 (PRIVATEKEYBLOB), though there's no check for backward compat reasons. 164br.ReadByte(); // BLOBHEADER.bVersion: Expected to be 0x2, though there's no check for backward compat reasons.
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
127public byte ReadByte() => _reader.ReadByte();