Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddCodeViewEntry() [2/2]

void System.Reflection.PortableExecutable.DebugDirectoryBuilder.AddCodeViewEntry ( string pdbPath,
BlobContentId pdbContentId,
ushort portablePdbVersion,
int age )
inline

Definition at line 69 of file DebugDirectoryBuilder.cs.

70 {
71 if (pdbPath == null)
72 {
73 Throw.ArgumentNull("pdbPath");
74 }
75 if (age < 1)
76 {
77 Throw.ArgumentOutOfRange("age");
78 }
79 if (pdbPath.Length == 0 || pdbPath.IndexOf('\0') == 0)
80 {
81 Throw.InvalidArgument(System.SR.ExpectedNonEmptyString, "pdbPath");
82 }
84 {
85 Throw.ArgumentOutOfRange("portablePdbVersion");
86 }
88 AddEntry(DebugDirectoryEntryType.CodeView, (portablePdbVersion != 0) ? PortablePdbVersions.DebugDirectoryEntryVersion(portablePdbVersion) : 0u, pdbContentId.Stamp, dataSize);
89 }
static uint DebugDirectoryEntryVersion(ushort portablePdbVersion)
void AddEntry(DebugDirectoryEntryType type, uint version, uint stamp, int dataSize)
static int WriteCodeViewData(BlobBuilder builder, string pdbPath, Guid pdbGuid, int age)
static string ExpectedNonEmptyString
Definition SR.cs:206
Definition SR.cs:7

References System.Reflection.PortableExecutable.DebugDirectoryBuilder._dataBuilder, System.Reflection.PortableExecutable.DebugDirectoryBuilder.AddEntry(), System.Reflection.Throw.ArgumentNull(), System.Reflection.Throw.ArgumentOutOfRange(), System.Reflection.Metadata.PortablePdbVersions.DebugDirectoryEntryVersion(), System.SR.ExpectedNonEmptyString, System.Reflection.Throw.InvalidArgument(), and System.Reflection.PortableExecutable.DebugDirectoryBuilder.WriteCodeViewData().