diff options
author | bd <bdunahu@operationnull.com> | 2025-04-27 00:11:54 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-27 00:11:54 -0400 |
commit | de6ccea3c6d23b788acecb0744221a4f6078597a (patch) | |
tree | 78bfefa262912b0f26a27a1b741c082a2a6e8176 /src | |
parent | 6f99f95d9968ea5c83bf5a467bd4bc64750075a3 (diff) |
Replace view function with get_data
Diffstat (limited to 'src')
-rw-r--r-- | src/storage.cc | 7 |
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 |