summaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-08-12 19:17:59 +0200
committerljfa-ag <ljfa-ag@web.de>2015-08-12 19:17:59 +0200
commit1b9fd75fad70da33ad6b31a0da5f6b1c6d074849 (patch)
tree03f15b72765a054ff51d98d7d9c43fa11c3147e6 /include/io
parent8b792c2a968fed130c9869db37db658e92a0a587 (diff)
downloadProject-Tick-1b9fd75fad70da33ad6b31a0da5f6b1c6d074849.tar.gz
Project-Tick-1b9fd75fad70da33ad6b31a0da5f6b1c6d074849.zip
Implement write_payload and write_tag
Diffstat (limited to 'include/io')
-rw-r--r--include/io/stream_writer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/io/stream_writer.h b/include/io/stream_writer.h
index 8c354cceba..1502593055 100644
--- a/include/io/stream_writer.h
+++ b/include/io/stream_writer.h
@@ -68,12 +68,12 @@ public:
/**
* @brief Writes the given tag's payload into the stream
*/
- void write_payload(const tag& t);
+ void write_payload(const tag& t) { t.write_payload(*this); }
/**
* @brief Writes a tag type to the stream
*/
- void write_type(tag_type tt);
+ void write_type(tag_type tt) { write_num(static_cast<int8_t>(tt)); }
/**
* @brief Writes a binary number to the stream