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