From 75768a21955cb6570c31ca87d48fc0b6a2f8490b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 2 Aug 2018 20:24:52 +0200 Subject: Add getSize method to serializer --- sibs/SafeSerializer.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sibs/SafeSerializer.hpp') 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 buffer; }; -- cgit v1.2.3