ram, instr reel, runtime, etc
This commit is contained in:
@@ -12,13 +12,25 @@ namespace spider {
|
||||
class RAM {
|
||||
private:
|
||||
u8* _mem;
|
||||
u64 _size;
|
||||
u8 _oob; // Out of bounds reference
|
||||
|
||||
public:
|
||||
|
||||
RAM(u64 length);
|
||||
|
||||
RAM(const RAM& other);
|
||||
|
||||
RAM(RAM&& other) noexcept;
|
||||
|
||||
~RAM();
|
||||
|
||||
public:
|
||||
|
||||
RAM& operator=(const RAM& other);
|
||||
|
||||
RAM& operator=(RAM&& other) noexcept;
|
||||
|
||||
public: // Unsafe access
|
||||
|
||||
u8& operator[](u64 i);
|
||||
@@ -31,6 +43,12 @@ namespace spider {
|
||||
|
||||
u8 at(u64 i) const;
|
||||
|
||||
public:
|
||||
|
||||
void resize(u64 new_size);
|
||||
|
||||
u64 size() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user