mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
20 lines
No EOL
595 B
C#
20 lines
No EOL
595 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.ELF {
|
|
public abstract class ELFFileContentBase: BaseDataStructure {
|
|
public File File {
|
|
get;
|
|
set;
|
|
}
|
|
|
|
protected string TryGetString(uint aStringTable, uint aString) {
|
|
if(File == null || File.StringTables.Count == 0) {
|
|
return "String(" + aStringTable + "," + aString + ")";
|
|
}
|
|
return File.StringTables[(int)aStringTable].GetString(aString);
|
|
}
|
|
}
|
|
} |