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 /sibs | |
parent | c7c1312db2ef886326c09005d19ac19b79b84f23 (diff) |
Add getSize method to serializer1.0.2
Diffstat (limited to 'sibs')
-rw-r--r-- | sibs/SafeSerializer.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; }; |