-
Notifications
You must be signed in to change notification settings - Fork 57
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 #87 from jerkerolofsson/master
Support multiple NoteData within a NoteSegment
- Loading branch information
Showing
7 changed files
with
148 additions
and
11 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ public byte[] Description | |
{ | ||
get | ||
{ | ||
return data.Description; | ||
return data.DescriptionBytes; | ||
} | ||
} | ||
|
||
|
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,32 @@ | ||
using System.Collections.ObjectModel; | ||
using System.IO; | ||
|
||
namespace ELFSharp.ELF.Segments | ||
{ | ||
public interface INoteData | ||
{ | ||
/// <summary> | ||
/// Owner of the note. | ||
/// </summary> | ||
string Name { get; } | ||
|
||
/// <summary> | ||
/// Data contents of the note. The format of this depends on the combination of the Name and Type properties and often | ||
/// corresponds to a struct. | ||
/// | ||
/// For example, see elf.h in the Linux kernel source tree. | ||
/// </summary> | ||
ReadOnlyCollection<byte> Description { get; } | ||
|
||
/// <summary> | ||
/// Data type | ||
/// </summary> | ||
ulong Type { get; } | ||
|
||
/// <summary> | ||
/// Returns the Description byte[] as a Stream | ||
/// </summary> | ||
/// <returns></returns> | ||
Stream ToStream(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ELFSharp.ELF.Segments | ||
{ | ||
public interface INoteSegment : ISegment | ||
{ | ||
string NoteName { get; } | ||
ulong NoteType { get; } | ||
byte[] NoteDescription { get; } | ||
|
||
/// <summary> | ||
/// Returns all notes within the segment | ||
/// </summary> | ||
IReadOnlyList<INoteData> Notes { get; } | ||
} | ||
} |
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
Submodule Binaries
updated
from 375893 to 158263
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