summaryrefslogtreecommitdiff
path: root/src/io/stream_reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/stream_reader.cpp')
-rw-r--r--src/io/stream_reader.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/io/stream_reader.cpp b/src/io/stream_reader.cpp
index 7605d62776..ff0fe183ea 100644
--- a/src/io/stream_reader.cpp
+++ b/src/io/stream_reader.cpp
@@ -39,6 +39,13 @@ endian::endian stream_reader::get_endian() const
return endian;
}
+std::unique_ptr<tag> stream_reader::read_payload(tag_type type)
+{
+ std::unique_ptr<tag> t = tag::create(type);
+ t->read_payload(*this);
+ return t;
+}
+
tag_type stream_reader::read_type(bool allow_end)
{
int type = is.get();