From aac94b91ad83ad8f7832976e6da55d15de6e54e1 Mon Sep 17 00:00:00 2001 From: ljfa Date: Thu, 13 Aug 2015 11:31:57 +0200 Subject: Add io::read_tag and write_tag functions --- src/io/stream_writer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/io/stream_writer.cpp') diff --git a/src/io/stream_writer.cpp b/src/io/stream_writer.cpp index f21fdb701c..ee8b0ee2b6 100644 --- a/src/io/stream_writer.cpp +++ b/src/io/stream_writer.cpp @@ -25,6 +25,11 @@ namespace nbt namespace io { +void write_tag(const std::string& key, const tag& t, std::ostream& os, endian::endian e) +{ + stream_writer(os, e).write_tag(key, t); +} + void stream_writer::write_tag(const std::string& key, const tag& t) { write_type(t.get_type()); -- cgit 0.0.5-2-1-g0f52