ssc/sbdump/symbol.cs

30 lines
639 B
C#
Raw Normal View History

2015-12-31 12:27:03 +09:00
using arookas.IO.Binary;
namespace arookas {
class Symbol {
SymbolType mType;
uint mStringOffset;
uint mData;
// NOTE: the other two fields are runtime fields (hash and linker storage)
public SymbolType Type { get { return mType; } }
public uint StringOffset { get { return mStringOffset; } }
public uint Data { get { return mData; } }
public Symbol(aBinaryReader reader) {
mType = (SymbolType)reader.Read32();
mStringOffset = reader.Read32();
mData = reader.Read32();
// skip the last two fields
reader.Read32();
reader.Read32();
}
}
enum SymbolType {
Builtin,
Function,
Variable,
}
}