Files
SabreTools.Serialization/SabreTools.Data.Models/PortableExecutable/DebugData/RSDSProgramDatabase.cs

42 lines
1.2 KiB
C#
Raw Normal View History

2025-09-26 12:09:34 -04:00
using System;
using System.Runtime.InteropServices;
2025-09-26 13:06:18 -04:00
namespace SabreTools.Data.Models.PortableExecutable.DebugData
2025-09-26 12:09:34 -04:00
{
/// <summary>
/// This file describes the format of the pdb (Program Database) files of the "RSDS"
/// or "DS" type which are emitted by Miscrosoft's link.exe from version 7 and above.
/// </summary>
/// <see href="http://www.godevtool.com/Other/pdb.htm"/>
[StructLayout(LayoutKind.Sequential)]
public sealed class RSDSProgramDatabase
{
/// <summary>
/// "RSDS" signature
/// </summary>
public uint Signature;
/// <summary>
/// 16-byte Globally Unique Identifier
/// </summary>
public Guid GUID;
/// <summary>
/// Ever-incrementing value, which is initially set to 1 and
/// incremented every time when a part of the PDB file is updated
2025-10-30 23:29:24 -04:00
/// without rewriting the whole file.
2025-09-26 12:09:34 -04:00
/// </summary>
public uint Age;
/// <summary>
/// zero terminated UTF8 path and file name
/// </summary>
#if NET472_OR_GREATER || NETCOREAPP
[MarshalAs(UnmanagedType.LPUTF8Str)]
#else
[MarshalAs(UnmanagedType.LPStr)]
#endif
public string PathAndFileName = string.Empty;
2025-09-26 12:09:34 -04:00
}
}