-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #583 from DaZombieKiller/pe-debug
Support EOF data in debug data entries.
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System.Diagnostics; | ||
using AsmResolver.IO; | ||
|
||
namespace AsmResolver.PE.Debug; | ||
|
||
/// <summary> | ||
/// Represents the contents of an empty debug data entry. | ||
/// </summary> | ||
public sealed class EmptyDebugDataSegment : IDebugDataSegment | ||
{ | ||
/// <summary> | ||
/// Creates a new empty debug data segment for the provided debug data content. | ||
/// </summary> | ||
/// <param name="type">The content type.</param> | ||
public EmptyDebugDataSegment(DebugDataType type) | ||
{ | ||
Type = type; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public DebugDataType Type { get; } | ||
|
||
bool ISegment.CanUpdateOffsets => false; | ||
|
||
ulong IOffsetProvider.Offset => 0; | ||
|
||
uint IOffsetProvider.Rva => 0; | ||
|
||
/// <inheritdoc /> | ||
void ISegment.UpdateOffsets(in RelocationParameters parameters) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
uint IWritable.GetPhysicalSize() => 0; | ||
|
||
/// <inheritdoc /> | ||
uint ISegment.GetVirtualSize() => 0; | ||
|
||
void IWritable.Write(BinaryStreamWriter writer) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters