diff options
-rw-r--r-- | lib/rawDataReader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rawDataReader.h b/lib/rawDataReader.h index 58724ff..b23de88 100644 --- a/lib/rawDataReader.h +++ b/lib/rawDataReader.h @@ -6,6 +6,7 @@ #include <cstddef> #include <cstdint> #include <cstring> +#include <span> #include <stdexcept> namespace MyGrate { @@ -62,6 +63,12 @@ namespace MyGrate { return offset < len; } + std::span<const std::byte> + raw() const + { + return {rawdata, len}; + } + private: void offsetSizeCheck(size_t) const; |