From 148a508b1bf16824cfe469796547b20cd7e410fa Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 20:45:18 +0100 Subject: Add raw() view of RawDataReader --- lib/rawDataReader.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include #include +#include #include namespace MyGrate { @@ -62,6 +63,12 @@ namespace MyGrate { return offset < len; } + std::span + raw() const + { + return {rawdata, len}; + } + private: void offsetSizeCheck(size_t) const; -- cgit v1.2.3