summaryrefslogtreecommitdiff
path: root/src/io/stream_writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/stream_writer.cpp')
-rw-r--r--src/io/stream_writer.cpp5
1 files changed, 5 insertions, 0 deletions
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());