-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ElfData and ElfClass enumerations
- Loading branch information
Showing
8 changed files
with
70 additions
and
14 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
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,28 @@ | ||
using System.ComponentModel; | ||
|
||
namespace BinaryTools.Elf | ||
{ | ||
/// <summary> | ||
/// Enumerates the ELF file bitness. | ||
/// </summary> | ||
public enum ElfClass : byte | ||
{ | ||
/// <summary> | ||
/// Invalid class | ||
/// </summary> | ||
[Description("Invalid class")] | ||
None, | ||
|
||
/// <summary> | ||
/// 32-bit objects | ||
/// </summary> | ||
[Description("ELF32")] | ||
Elf32, | ||
|
||
/// <summary> | ||
/// 64-bit objects | ||
/// </summary> | ||
[Description("ELF64")] | ||
Elf64, | ||
} | ||
} |
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,28 @@ | ||
using System.ComponentModel; | ||
|
||
namespace BinaryTools.Elf | ||
{ | ||
/// <summary> | ||
/// Enumerates the ELF file endianness. | ||
/// </summary> | ||
public enum ElfData : byte | ||
{ | ||
/// <summary> | ||
/// Invalid data encoding | ||
/// </summary> | ||
[Description("Invalid data encoding")] | ||
None, | ||
|
||
/// <summary> | ||
/// 2's complement, little endian | ||
/// </summary> | ||
[Description("2's complement, little endian")] | ||
Lsb, | ||
|
||
/// <summary> | ||
/// 2's complement, big endian | ||
/// </summary> | ||
[Description("2's complement, big endian")] | ||
Msb, | ||
} | ||
} |
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
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