137 references to WriteUInt32
Microsoft.CodeAnalysis (24)
CodeGen\ILBuilder.cs (1)
923
writer.
WriteUInt32
(switchBlock.BranchesCount);
CodeGen\ILBuilderEmit.cs (6)
46
this.GetCurrentWriter().
WriteUInt32
(token);
56
this.GetCurrentWriter().
WriteUInt32
(token);
62
this.GetCurrentWriter().
WriteUInt32
(token);
68
this.GetCurrentWriter().
WriteUInt32
(token);
74
this.GetCurrentWriter().
WriteUInt32
(Cci.MetadataWriter.ModuleVersionIdStringToken);
80
this.GetCurrentWriter().
WriteUInt32
(token);
ConstantValue.cs (1)
790
writer.
WriteUInt32
(this.UInt32Value);
PEWriter\MetadataWriter.cs (1)
1702
ilBuilder.
WriteUInt32
(0);
PEWriter\MetadataWriter.PortablePdb.cs (5)
585
writer.
WriteUInt32
((uint)((long)asyncInfo.CatchHandlerOffset + 1));
589
writer.
WriteUInt32
((uint)asyncInfo.YieldOffsets[i]);
590
writer.
WriteUInt32
((uint)asyncInfo.ResumeOffsets[i]);
612
writer.
WriteUInt32
((uint)scope.StartOffset);
613
writer.
WriteUInt32
((uint)scope.Length);
PEWriter\NativeResourceWriter.cs (10)
241
writer.
WriteUInt32
(0); // Characteristics
242
writer.
WriteUInt32
(0); // Timestamp
243
writer.
WriteUInt32
(0); // Version
280
dataWriter.
WriteUInt32
((uint)(virtualAddressBase + sizeOfDirectoryTree + 16 + dataWriter.Count));
282
dataWriter.
WriteUInt32
((uint)data.Length);
283
dataWriter.
WriteUInt32
(r.CodePage);
284
dataWriter.
WriteUInt32
(0);
303
writer.
WriteUInt32
(nameOffset | 0x80000000);
310
writer.
WriteUInt32
(directoryOffset | 0x80000000);
314
writer.
WriteUInt32
(nameOffset);
System.Reflection.Metadata (113)
System\Reflection\Metadata\BlobBuilder.cs (1)
890
WriteUInt32
(unchecked((uint)value));
System\Reflection\Metadata\BlobWriterImpl.cs (2)
225
writer.
WriteUInt32
(0);
281
writer.
WriteUInt32
((uint)value);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
662
Builder.
WriteUInt32
((uint)count);
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (1)
458
CodeBuilder.
WriteUInt32
((uint)branchCount);
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (2)
38
builder.
WriteUInt32
(0x424A5342);
47
builder.
WriteUInt32
(0);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (12)
1909
writer.
WriteUInt32
(0); // reserved
1940
writer.
WriteUInt32
(encLog.FuncCode);
1966
writer.
WriteUInt32
(typeDef.Flags);
1991
writer.
WriteUInt32
(0);
2098
writer.
WriteUInt32
(classLayout.ClassSize);
2223
writer.
WriteUInt32
(_assemblyRow.Value.HashAlgorithm);
2228
writer.
WriteUInt32
(_assemblyRow.Value.Flags);
2243
writer.
WriteUInt32
(row.Flags);
2255
writer.
WriteUInt32
(fileReference.Flags);
2265
writer.
WriteUInt32
(exportedType.Flags);
2277
writer.
WriteUInt32
(manifestResource.Offset);
2278
writer.
WriteUInt32
(manifestResource.Flags);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (3)
243
builder.
WriteUInt32
(0); // characteristics, always 0
244
builder.
WriteUInt32
(entry.Stamp);
245
builder.
WriteUInt32
(entry.Version);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
46
builder.
WriteUInt32
(PortablePdbVersions.DebugDirectoryEmbeddedSignature);
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (3)
209
builder.
WriteUInt32
((((uint)entryPointAddress + 2) / 0x1000) * 0x1000);
210
builder.
WriteUInt32
((machine == Machine.IA64) ? 14u : 12u);
217
builder.
WriteUInt32
(relocType << 12);
System\Reflection\PortableExecutable\ManagedTextSection.cs (29)
324
builder.
WriteUInt32
((uint)hintRva); // 4
325
builder.
WriteUInt32
(0); // 8
345
builder.
WriteUInt32
((uint)ilRVA); // 4
346
builder.
WriteUInt32
(0); // 8
347
builder.
WriteUInt32
(0); // 12
348
builder.
WriteUInt32
((uint)nameRva); // 16
349
builder.
WriteUInt32
((uint)importAddressTableRva); // 20
355
builder.
WriteUInt32
((uint)hintRva); // 44
356
builder.
WriteUInt32
(0); // 48
357
builder.
WriteUInt32
(0); // 52
395
builder.
WriteUInt32
(CorHeaderSize);
402
builder.
WriteUInt32
((uint)metadataRva);
403
builder.
WriteUInt32
((uint)MetadataSize);
406
builder.
WriteUInt32
((uint)corFlags);
409
builder.
WriteUInt32
((uint)entryPointTokenOrRva);
412
builder.
WriteUInt32
((uint)(ResourceDataSize == 0 ? 0 : resourcesRva)); // 28
413
builder.
WriteUInt32
((uint)ResourceDataSize);
416
builder.
WriteUInt32
((uint)(StrongNameSignatureSize == 0 ? 0 : signatureRva)); // 36
417
builder.
WriteUInt32
((uint)StrongNameSignatureSize);
420
builder.
WriteUInt32
(0);
421
builder.
WriteUInt32
(0);
424
builder.
WriteUInt32
(0);
425
builder.
WriteUInt32
(0);
428
builder.
WriteUInt32
(0);
429
builder.
WriteUInt32
(0);
432
builder.
WriteUInt32
(0);
433
builder.
WriteUInt32
(0);
451
sectionBuilder.
WriteUInt32
((uint)importAddressTableRva + (uint)baseAddress); //8
459
sectionBuilder.
WriteUInt32
(0);
System\Reflection\PortableExecutable\PEBuilder.cs (58)
164
builder.
WriteUInt32
(PEHeaders.PESignature);
206
builder.
WriteUInt32
(0);
211
builder.
WriteUInt32
(0);
229
builder.
WriteUInt32
((uint)SumRawDataSizes(sections, SectionCharacteristics.ContainsCode));
232
builder.
WriteUInt32
((uint)SumRawDataSizes(sections, SectionCharacteristics.ContainsInitializedData));
235
builder.
WriteUInt32
((uint)SumRawDataSizes(sections, SectionCharacteristics.ContainsUninitializedData));
238
builder.
WriteUInt32
((uint)directories.AddressOfEntryPoint);
242
builder.
WriteUInt32
((uint)(codeSectionIndex != -1 ? sections[codeSectionIndex].RelativeVirtualAddress : 0));
248
builder.
WriteUInt32
((uint)(dataSectionIndex != -1 ? sections[dataSectionIndex].RelativeVirtualAddress : 0));
250
builder.
WriteUInt32
((uint)Header.ImageBase);
258
builder.
WriteUInt32
((uint)Header.SectionAlignment);
259
builder.
WriteUInt32
((uint)Header.FileAlignment);
268
builder.
WriteUInt32
(0);
272
builder.
WriteUInt32
((uint)BitArithmetic.Align(lastSection.RelativeVirtualAddress + lastSection.VirtualSize, Header.SectionAlignment));
275
builder.
WriteUInt32
((uint)BitArithmetic.Align(Header.ComputeSizeOfPEHeaders(sections.Length), Header.FileAlignment));
287
builder.
WriteUInt32
((uint)Header.SizeOfStackReserve);
288
builder.
WriteUInt32
((uint)Header.SizeOfStackCommit);
289
builder.
WriteUInt32
((uint)Header.SizeOfHeapReserve);
290
builder.
WriteUInt32
((uint)Header.SizeOfHeapCommit);
301
builder.
WriteUInt32
(0);
304
builder.
WriteUInt32
(16);
307
builder.
WriteUInt32
((uint)directories.ExportTable.RelativeVirtualAddress);
308
builder.
WriteUInt32
((uint)directories.ExportTable.Size);
309
builder.
WriteUInt32
((uint)directories.ImportTable.RelativeVirtualAddress);
310
builder.
WriteUInt32
((uint)directories.ImportTable.Size);
311
builder.
WriteUInt32
((uint)directories.ResourceTable.RelativeVirtualAddress);
312
builder.
WriteUInt32
((uint)directories.ResourceTable.Size);
313
builder.
WriteUInt32
((uint)directories.ExceptionTable.RelativeVirtualAddress);
314
builder.
WriteUInt32
((uint)directories.ExceptionTable.Size);
317
builder.
WriteUInt32
(0);
318
builder.
WriteUInt32
(0);
320
builder.
WriteUInt32
((uint)directories.BaseRelocationTable.RelativeVirtualAddress);
321
builder.
WriteUInt32
((uint)directories.BaseRelocationTable.Size);
322
builder.
WriteUInt32
((uint)directories.DebugTable.RelativeVirtualAddress);
323
builder.
WriteUInt32
((uint)directories.DebugTable.Size);
324
builder.
WriteUInt32
((uint)directories.CopyrightTable.RelativeVirtualAddress);
325
builder.
WriteUInt32
((uint)directories.CopyrightTable.Size);
326
builder.
WriteUInt32
((uint)directories.GlobalPointerTable.RelativeVirtualAddress);
327
builder.
WriteUInt32
((uint)directories.GlobalPointerTable.Size);
328
builder.
WriteUInt32
((uint)directories.ThreadLocalStorageTable.RelativeVirtualAddress);
329
builder.
WriteUInt32
((uint)directories.ThreadLocalStorageTable.Size);
330
builder.
WriteUInt32
((uint)directories.LoadConfigTable.RelativeVirtualAddress);
331
builder.
WriteUInt32
((uint)directories.LoadConfigTable.Size);
332
builder.
WriteUInt32
((uint)directories.BoundImportTable.RelativeVirtualAddress);
333
builder.
WriteUInt32
((uint)directories.BoundImportTable.Size);
334
builder.
WriteUInt32
((uint)directories.ImportAddressTable.RelativeVirtualAddress);
335
builder.
WriteUInt32
((uint)directories.ImportAddressTable.Size);
336
builder.
WriteUInt32
((uint)directories.DelayImportTable.RelativeVirtualAddress);
337
builder.
WriteUInt32
((uint)directories.DelayImportTable.Size);
338
builder.
WriteUInt32
((uint)directories.CorHeaderTable.RelativeVirtualAddress);
339
builder.
WriteUInt32
((uint)directories.CorHeaderTable.Size);
372
builder.
WriteUInt32
((uint)serializedSection.VirtualSize);
373
builder.
WriteUInt32
((uint)serializedSection.RelativeVirtualAddress);
374
builder.
WriteUInt32
((uint)serializedSection.SizeOfRawData);
375
builder.
WriteUInt32
((uint)serializedSection.PointerToRawData);
378
builder.
WriteUInt32
(0);
381
builder.
WriteUInt32
(0);
389
builder.
WriteUInt32
((uint)serializedSection.Characteristics);