Cleaning up

This commit is contained in:
AnonymusRaccoon
2020-02-13 17:13:46 +01:00
parent 49b1cab5a8
commit 6fca2293ee
3 changed files with 39 additions and 31 deletions
+2
View File
@@ -2,6 +2,7 @@
// Created by anonymus-raccoon on 1/28/20.
//
#include <cstring>
#include "Ram.hpp"
#include "../Exceptions/InvalidAddress.hpp"
@@ -11,6 +12,7 @@ namespace ComSquare::Ram
: _size(size)
{
this->_data = new uint8_t[size];
std::memset(this->_data, 0, size * sizeof(uint8_t));
}
Ram::~Ram()