Sprucing up some of alloy.

This commit is contained in:
Ben Vanik
2014-07-13 21:15:37 -07:00
parent 48425da8ff
commit 9437d0b564
40 changed files with 246 additions and 228 deletions

View File

@@ -10,6 +10,8 @@
#ifndef ALLOY_RUNTIME_RAW_MODULE_H_
#define ALLOY_RUNTIME_RAW_MODULE_H_
#include <string>
#include <alloy/runtime/module.h>
namespace alloy {
@@ -18,16 +20,16 @@ namespace runtime {
class RawModule : public Module {
public:
RawModule(Runtime* runtime);
virtual ~RawModule();
~RawModule() override;
int LoadFile(uint64_t base_address, const char* path);
virtual const char* name() const { return name_; }
const std::string& name() const override { return name_; }
virtual bool ContainsAddress(uint64_t address);
bool ContainsAddress(uint64_t address) override;
private:
char* name_;
std::string name_;
uint64_t base_address_;
uint64_t low_address_;
uint64_t high_address_;