diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-08-02 20:24:52 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-08-02 20:25:32 +0200 |
commit | 75768a21955cb6570c31ca87d48fc0b6a2f8490b (patch) | |
tree | f8bd401ee78f9bfff310fdb6e525a2a33a57e17b | |
parent | c7c1312db2ef886326c09005d19ac19b79b84f23 (diff) |
Add getSize method to serializer1.0.2
-rw-r--r-- | project.conf | 2 | ||||
-rw-r--r-- | sibs/SafeSerializer.hpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/project.conf b/project.conf index 6f9e677..c143277 100644 --- a/project.conf +++ b/project.conf @@ -1,6 +1,6 @@ [package] name = "sibs-serializer" -version = "1.0.1" +version = "1.0.2" type = "static" platforms = ["any"] tests = "tests" diff --git a/sibs/SafeSerializer.hpp b/sibs/SafeSerializer.hpp index 9576053..efc4ecd 100644 --- a/sibs/SafeSerializer.hpp +++ b/sibs/SafeSerializer.hpp @@ -69,6 +69,11 @@ namespace sibs { return buffer; } + + usize getSize() const + { + return buffer.size(); + } private: std::vector<u8> buffer; }; |