summaryrefslogtreecommitdiff
path: root/src/storage.cc
diff options
context:
space:
mode:
authorSiddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com>2025-04-27 17:54:41 -0400
committerGitHub <noreply@github.com>2025-04-27 17:54:41 -0400
commitecb0d131e786b1fec5233c7674ba6710ce201c83 (patch)
tree78bfefa262912b0f26a27a1b741c082a2a6e8176 /src/storage.cc
parent6f99f95d9968ea5c83bf5a467bd4bc64750075a3 (diff)
parentde6ccea3c6d23b788acecb0744221a4f6078597a (diff)
Merge pull request #8 from bdunahu/bdunahu
Replace view function with get_data
Diffstat (limited to 'src/storage.cc')
-rw-r--r--src/storage.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/storage.cc b/src/storage.cc
index c13b9db..890a137 100644
--- a/src/storage.cc
+++ b/src/storage.cc
@@ -30,12 +30,9 @@ Storage::Storage(int delay)
}
std::vector<std::array<signed int, LINE_SIZE>>
-Storage::view(int base, int lines) const
+Storage::get_data() const
{
- base = (base / LINE_SIZE) * LINE_SIZE;
- std::vector<std::array<signed int, LINE_SIZE>> ret(lines + 1);
- std::copy(this->data->begin() + base, this->data->begin() + base + lines, ret.begin());
- return ret;
+ return *data;
}
int