2021-10-18 12:12:22 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-20 20:44:43 +00:00
|
|
|
#include "simdjson/simdjson.h"
|
2021-10-18 12:12:22 +00:00
|
|
|
|
2021-10-19 08:28:13 +00:00
|
|
|
#include "byte_t.h"
|
|
|
|
|
|
|
|
class ram_t final {
|
2021-10-18 12:12:22 +00:00
|
|
|
private:
|
2021-10-21 21:03:07 +00:00
|
|
|
simdjson::dom::array m_raw;;
|
2021-10-18 12:12:22 +00:00
|
|
|
|
|
|
|
public:
|
2021-10-21 21:43:16 +00:00
|
|
|
ram_t(simdjson::dom::array input) noexcept;
|
2021-10-18 12:12:22 +00:00
|
|
|
|
2021-10-21 21:03:07 +00:00
|
|
|
[[nodiscard]] auto begin() const noexcept { return m_raw.begin(); }
|
|
|
|
[[nodiscard]] auto end() const noexcept { return m_raw.end(); }
|
2021-10-18 12:12:22 +00:00
|
|
|
};
|