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