aboutsummaryrefslogtreecommitdiff
path: root/sibs
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-08-02 20:24:52 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-08-02 20:25:32 +0200
commit75768a21955cb6570c31ca87d48fc0b6a2f8490b (patch)
treef8bd401ee78f9bfff310fdb6e525a2a33a57e17b /sibs
parentc7c1312db2ef886326c09005d19ac19b79b84f23 (diff)
Add getSize method to serializer1.0.2
Diffstat (limited to 'sibs')
-rw-r--r--sibs/SafeSerializer.hpp5
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;
};