blob: 49d8e7e8195cec4172f61d57910de975abca50bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "storage.h"
#include <algorithm>
std::vector<std::array<signed int, 4>> Storage::view(int base, int lines)
{
base = (base / 4) * 4;
std::vector<std::array<signed int, 4>> ret(lines + 1);
std::copy(
this->data->begin() + base, this->data->begin() + base + lines,
ret.begin());
return ret;
}
|