summaryrefslogtreecommitdiff
path: root/src/io/stream_writer.cpp
diff options
context:
space:
mode:
authorljfa <ljfa-ag@web.de>2015-08-13 11:31:57 +0200
committerljfa <ljfa-ag@web.de>2015-08-13 11:31:57 +0200
commitaac94b91ad83ad8f7832976e6da55d15de6e54e1 (patch)
tree9caa79222933a300354c1cd2224915da471e94f5 /src/io/stream_writer.cpp
parentbaf4a77df0ac95386b80bd915c2926c86e2c5a46 (diff)
downloadProject-Tick-aac94b91ad83ad8f7832976e6da55d15de6e54e1.tar.gz
Project-Tick-aac94b91ad83ad8f7832976e6da55d15de6e54e1.zip
Add io::read_tag and write_tag functions
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());