176 references to WriteByte
Microsoft.CodeAnalysis (57)
CodeGen\BasicBlock.cs (2)
533this.Writer.WriteByte((byte)ILOpCode.Pop); 540this.Writer.WriteByte((byte)ILOpCode.Pop);
CodeGen\ILBuilderEmit.cs (3)
789writer.WriteByte((byte)code); 799writer.WriteByte((byte)((ushort)code >> 8)); 800writer.WriteByte((byte)((ushort)code & 0xff));
ConstantValue.cs (1)
769writer.WriteByte(this.ByteValue);
Emit\EditAndContinueMethodDebugInformation.cs (3)
158writer.WriteByte(SyntaxOffsetBaseline); 169writer.WriteByte(0); 183writer.WriteByte(b);
InternalUtilities\BlobBuildingStream.cs (1)
70_builder.WriteByte(value);
PEWriter\MetadataWriter.cs (9)
1238writer.WriteByte((byte)'.'); 3433typeEncoder.Builder.WriteByte((byte)SignatureTypeCode.ByReference); 3618writer.WriteByte(0); 3632writer.WriteByte(0); 3646writer.WriteByte(1); // The parameter number is valid 3651writer.WriteByte(0); // Dummy parameter value emitted so that NumberOfElements can be in a known position 3653writer.WriteByte(0); // The parameter number is not valid 3823encoder.Builder.WriteByte((byte)SignatureTypeCode.TypedReference); 4001encoder.Builder.WriteByte((byte)System.Reflection.Metadata.PrimitiveTypeCode.Void);
PEWriter\MetadataWriter.DynamicAnalysis.cs (7)
239writer.WriteByte((byte)separator[0]); 323writer.WriteByte((byte)'D'); 324writer.WriteByte((byte)'A'); 325writer.WriteByte((byte)'M'); 326writer.WriteByte((byte)'D'); 329writer.WriteByte(0); 330writer.WriteByte(2);
PEWriter\MetadataWriter.PortablePdb.cs (22)
188builder.WriteByte((byte)SignatureTypeKind.ValueType); 195builder.WriteByte((byte)SignatureTypeKind.ValueType); 202builder.WriteByte((byte)ConstantTypeCode.String); 205builder.WriteByte(0xff); 215builder.WriteByte((byte)GetConstantTypeCode(value)); 228builder.WriteByte((byte)SignatureTypeCode.Object); 232builder.WriteByte((byte)(type.IsValueType ? SignatureTypeKind.ValueType : SignatureTypeKind.Class)); 327writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyReference); 341writer.WriteByte((byte)ImportDefinitionKind.ImportXmlNamespace); 353writer.WriteByte((byte)ImportDefinitionKind.AliasType); 359writer.WriteByte((byte)ImportDefinitionKind.ImportType); 371writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyNamespace); 377writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyNamespace); 387writer.WriteByte((byte)ImportDefinitionKind.AliasNamespace); 393writer.WriteByte((byte)ImportDefinitionKind.ImportNamespace); 407writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyReferenceAlias); 571builder.WriteByte(0); 940builder.WriteByte(0); 942builder.WriteByte(0); 980builder.WriteByte(0); 987builder.WriteByte(0); 1000builder.WriteByte(kindAndEmbedInteropTypes);
PEWriter\NativeResourceWriter.cs (2)
235builder.WriteByte(0); 288dataWriter.WriteByte(0);
PEWriter\PeWriter.cs (1)
444builder.WriteByte((byte)value);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (6)
31builder.WriteByte(CustomDebugInfoConstants.Version); 195builder.WriteByte(0); 206builder.WriteByte(0); 217Builder.WriteByte(CustomDebugInfoConstants.Version); 218Builder.WriteByte((byte)kind); 219Builder.WriteByte(0);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (2)
4795builder.WriteByte(0); 4797builder.WriteByte(0);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12666mBlobBuilder.Builder.WriteByte(headerToUseForM.RawValue);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InterceptorsTests.cs (1)
7413builder.WriteByte(0xc0);
Microsoft.CodeAnalysis.Debugging.Package (6)
CustomDebugInfoEncoder.cs (6)
31builder.WriteByte(CustomDebugInfoConstants.Version); 195builder.WriteByte(0); 206builder.WriteByte(0); 217Builder.WriteByte(CustomDebugInfoConstants.Version); 218Builder.WriteByte((byte)kind); 219Builder.WriteByte(0);
Microsoft.CodeAnalysis.Features (6)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (6)
31builder.WriteByte(CustomDebugInfoConstants.Version); 195builder.WriteByte(0); 206builder.WriteByte(0); 217Builder.WriteByte(CustomDebugInfoConstants.Version); 218Builder.WriteByte((byte)kind); 219Builder.WriteByte(0);
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\VisualBasicCompilation.vb (2)
792builder.WriteByte(0) 794builder.WriteByte(0)
System.Reflection.Emit (10)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
298_builder.WriteByte(arg);
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
563importBlob.WriteByte((byte)ImportDefinitionKind.ImportNamespace);
System\Reflection\Emit\PseudoCustomAttributesData.cs (6)
167writer.WriteByte(0); 177writer.WriteByte(0); 189writer.WriteByte(1); // The parameter number is valid 194writer.WriteByte(0); // Dummy parameter value emitted so that NumberOfElements can be in a known position 196writer.WriteByte(0); // The parameter number is not valid 211writer.WriteByte(0);
System\Reflection\Emit\SignatureHelper.cs (2)
191signature.Builder.WriteByte((byte)SignatureTypeCode.ByReference); 237signature.Builder.WriteByte((byte)SignatureTypeCode.Void);
System.Reflection.Metadata (91)
System\Reflection\Metadata\BlobBuilder.cs (4)
818WriteByte((byte)(value ? 1 : 0)); 831WriteByte(unchecked((byte)value)); 1026WriteByte(0xff); 1053WriteByte(BlobUtilities.GetUserStringTrailingByte(value));
System\Reflection\Metadata\BlobWriterImpl.cs (3)
62writer.WriteByte((byte)value); 128writer.WriteByte((byte)n); 249writer.WriteByte((byte)value);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (38)
32Builder.WriteByte((byte)SignatureKind.Field); 60Builder.WriteByte((byte)SignatureKind.MethodSpecification); 88Builder.WriteByte(new SignatureHeader(SignatureKind.Method, convention, attributes).RawValue); 105Builder.WriteByte(new SignatureHeader(SignatureKind.Property, SignatureCallingConvention.Default, (isInstanceProperty ? SignatureAttributes.Instance : 0)).RawValue); 160Builder.WriteByte((byte)SignatureKind.LocalVariables); 189Builder.WriteByte((byte)'.'); 301Builder.WriteByte((byte)SignatureTypeCode.Pinned); 306Builder.WriteByte((byte)SignatureTypeCode.ByReference); 314Builder.WriteByte((byte)SignatureTypeCode.TypedReference); 336Builder.WriteByte((byte)SignatureTypeCode.ByReference); 344Builder.WriteByte((byte)SignatureTypeCode.TypedReference); 436Builder.WriteByte((byte)SignatureTypeCode.ByReference); 444Builder.WriteByte((byte)SignatureTypeCode.TypedReference); 729Builder.WriteByte(isField ? (byte)CustomAttributeNamedArgumentKind.Field : (byte)CustomAttributeNamedArgumentKind.Property); 784Builder.WriteByte((byte)SerializationTypeCode.TaggedObject); 804Builder.WriteByte((byte)SerializationTypeCode.SZArray); 805Builder.WriteByte((byte)SerializationTypeCode.TaggedObject); 810Builder.WriteByte((byte)SerializationTypeCode.SZArray); 826Builder.WriteByte((byte)value); 909Builder.WriteByte((byte)value); 914Builder.WriteByte(isValueType ? (byte)SignatureTypeKind.ValueType : (byte)SignatureTypeKind.Class); 1012Builder.WriteByte((byte)type); 1030Builder.WriteByte((byte)SignatureTypeCode.Array); 1104Builder.WriteByte((byte)SignatureTypeCode.FunctionPointer); 1105Builder.WriteByte(new SignatureHeader(SignatureKind.Method, convention, (SignatureAttributes)attributes).RawValue); 1134Builder.WriteByte((byte)SignatureTypeCode.GenericTypeInstance); 1153Builder.WriteByte((byte)SignatureTypeCode.GenericMethodParameter); 1169Builder.WriteByte((byte)SignatureTypeCode.GenericTypeParameter); 1178Builder.WriteByte((byte)SignatureTypeCode.Pointer); 1187Builder.WriteByte((byte)SignatureTypeCode.Pointer); 1188Builder.WriteByte((byte)SignatureTypeCode.Void); 1196Builder.WriteByte((byte)SignatureTypeCode.SZArray); 1234Builder.WriteByte((byte)SignatureTypeCode.OptionalModifier); 1238Builder.WriteByte((byte)SignatureTypeCode.RequiredModifier); 1344Builder.WriteByte((byte)SignatureTypeCode.ByReference); 1352Builder.WriteByte((byte)SignatureTypeCode.TypedReference); 1357Builder.WriteByte((byte)SignatureTypeCode.Void); 1384Builder.WriteByte((byte)SignatureTypeCode.Sentinel);
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (6)
93builder.WriteByte(EHTableFlag); 94builder.WriteByte(unchecked((byte)dataSize)); 100builder.WriteByte(EHTableFlag | FatFormatFlag); 101builder.WriteByte(unchecked((byte)dataSize)); 278Builder.WriteByte((byte)tryLength); 280Builder.WriteByte((byte)handlerLength);
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (7)
59CodeBuilder.WriteByte((byte)code); 231CodeBuilder.WriteByte((byte)slotIndex); 265CodeBuilder.WriteByte((byte)slotIndex); 291CodeBuilder.WriteByte((byte)slotIndex); 322CodeBuilder.WriteByte((byte)argumentIndex); 348CodeBuilder.WriteByte((byte)argumentIndex); 371CodeBuilder.WriteByte((byte)argumentIndex);
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (1)
247Builder.WriteByte((byte)((codeSize << 2) | TinyFormat));
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (4)
57builder.WriteByte(0); 62builder.WriteByte(0); 108builder.WriteByte((byte)ch); 114builder.WriteByte(0);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (5)
117_userStringBuilder.WriteByte(0); 328resultBuilder.WriteByte((byte)separator); 348resultBuilder.WriteByte(0); 549heapBuilder.WriteByte(0); 567heapBuilder.WriteByte(0);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
1868writer.WriteByte(0); 1910writer.WriteByte(MetadataFormatMajorVersion); 1911writer.WriteByte(MetadataFormatMinorVersion); 1912writer.WriteByte((byte)heapSizes); 1913writer.WriteByte(1); // reserved 2044writer.WriteByte(constant.Type); 2045writer.WriteByte(0);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (6)
146builder.WriteByte((byte)'R'); 147builder.WriteByte((byte)'S'); 148builder.WriteByte((byte)'D'); 149builder.WriteByte((byte)'S'); 159builder.WriteByte(0); 208builder.WriteByte(0);
System\Reflection\PortableExecutable\ManagedTextSection.cs (6)
369builder.WriteByte(0); // 66|70 378builder.WriteByte(0); 449sectionBuilder.WriteByte(0xff); 450sectionBuilder.WriteByte(0x25); //4 461sectionBuilder.WriteByte(0xff); 462sectionBuilder.WriteByte(0x25); //8
System\Reflection\PortableExecutable\PEBuilder.cs (4)
225builder.WriteByte(Header.MajorLinkerVersion); 226builder.WriteByte(Header.MinorLinkerVersion); 364builder.WriteByte((byte)serializedSection.Name[j]); 368builder.WriteByte(0);