77 references to WriteUInt16
Microsoft.CodeAnalysis (7)
ConstantValue.cs (1)
778writer.WriteUInt16(this.UInt16Value);
PEWriter\MetadataWriter.cs (1)
3609writer.WriteUInt16(0); // padding
PEWriter\NativeResourceWriter.cs (3)
244writer.WriteUInt16(directory.NumberOfNamedEntries); 245writer.WriteUInt16(directory.NumberOfIdEntries); 304dataWriter.WriteUInt16((ushort)name.Length);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
101builder.WriteUInt16((ushort)uc.Count); 105builder.WriteUInt16((ushort)usingCount);
Microsoft.CodeAnalysis.Debugging.Package (2)
CustomDebugInfoEncoder.cs (2)
101builder.WriteUInt16((ushort)uc.Count); 105builder.WriteUInt16((ushort)usingCount);
Microsoft.CodeAnalysis.Features (2)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
101builder.WriteUInt16((ushort)uc.Count); 105builder.WriteUInt16((ushort)usingCount);
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
488spBlobBuilder.WriteUInt16(0);
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
159writer.WriteUInt16(0); // padding
System.Reflection.Metadata (64)
System\Reflection\Metadata\BlobBuilder.cs (3)
851WriteUInt16(unchecked((ushort)value)); 946WriteUInt16((ushort)reference); 1009WriteUInt16(c);
System\Reflection\Metadata\BlobWriterImpl.cs (2)
253writer.WriteUInt16((char)value); 277writer.WriteUInt16((ushort)value);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (2)
117Builder.WriteUInt16(0x0001); 705Builder.WriteUInt16((ushort)count);
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (4)
102builder.WriteUInt16(unchecked((ushort)(dataSize >> 8))); 276Builder.WriteUInt16((ushort)kind); 277Builder.WriteUInt16((ushort)tryOffset); 279Builder.WriteUInt16((ushort)handlerOffset);
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (2)
266Builder.WriteUInt16((ushort)((int)attributes | flags)); 267Builder.WriteUInt16(maxStack);
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (4)
41builder.WriteUInt16(1); 44builder.WriteUInt16(1); 66builder.WriteUInt16(0); 69builder.WriteUInt16((ushort)(5 + (sizes.IsEncDelta ? 1 : 0) + (sizes.IsStandaloneDebugMetadata ? 1 : 0)));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (24)
1927writer.WriteUInt16(_moduleRow.Value.Generation); 1979writer.WriteUInt16(fieldDef.Flags); 1998writer.WriteUInt16(method.ImplFlags); 1999writer.WriteUInt16(method.Flags); 2010writer.WriteUInt16(param.Flags); 2011writer.WriteUInt16(param.Sequence); 2087writer.WriteUInt16(declSecurity.Action); 2097writer.WriteUInt16(classLayout.PackingSize); 2133writer.WriteUInt16(eventRow.EventFlags); 2152writer.WriteUInt16(property.PropFlags); 2166writer.WriteUInt16(methodSemantic.Semantic); 2202writer.WriteUInt16(implMap.MappingFlags); 2224writer.WriteUInt16((ushort)version.Major); 2225writer.WriteUInt16((ushort)version.Minor); 2226writer.WriteUInt16((ushort)version.Build); 2227writer.WriteUInt16((ushort)version.Revision); 2239writer.WriteUInt16((ushort)row.Version.Major); 2240writer.WriteUInt16((ushort)row.Version.Minor); 2241writer.WriteUInt16((ushort)row.Version.Build); 2242writer.WriteUInt16((ushort)row.Version.Revision); 2297writer.WriteUInt16(genericParam.Number); 2298writer.WriteUInt16(genericParam.Flags); 2359writer.WriteUInt16(row.Attributes); 2360writer.WriteUInt16(row.Index);
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (2)
214builder.WriteUInt16(s); 220builder.WriteUInt16(0); // next chunk's RVA
System\Reflection\PortableExecutable\ManagedTextSection.cs (6)
366builder.WriteUInt16(0); // Hint 54|58 379builder.WriteUInt16(0); 398builder.WriteUInt16(majorRuntimeVersion); 399builder.WriteUInt16(minorRuntimeVersion); 448sectionBuilder.WriteUInt16(0); 460sectionBuilder.WriteUInt16(0);
System\Reflection\PortableExecutable\PEBuilder.cs (15)
195builder.WriteUInt16((ushort)(Header.Machine == 0 ? Machine.I386 : Header.Machine)); 198builder.WriteUInt16((ushort)sections.Length); 216builder.WriteUInt16((ushort)PEHeader.Size(Header.Is32Bit)); 219builder.WriteUInt16((ushort)Header.ImageCharacteristics); 224builder.WriteUInt16((ushort)(Header.Is32Bit ? PEMagic.PE32 : PEMagic.PE32Plus)); 260builder.WriteUInt16(Header.MajorOperatingSystemVersion); 261builder.WriteUInt16(Header.MinorOperatingSystemVersion); 262builder.WriteUInt16(Header.MajorImageVersion); 263builder.WriteUInt16(Header.MinorImageVersion); 264builder.WriteUInt16(Header.MajorSubsystemVersion); 265builder.WriteUInt16(Header.MinorSubsystemVersion); 282builder.WriteUInt16((ushort)Header.Subsystem); 283builder.WriteUInt16((ushort)Header.DllCharacteristics); 384builder.WriteUInt16(0); 387builder.WriteUInt16(0);