aboutsummaryrefslogtreecommitdiff
path: root/sibs
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-08-02 20:24:52 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:16:10 +0200
commit71a8906ae6414df3646ef81e1cd9cd6947eb0a6d (patch)
tree6fc4eb2f39e8682742d221c12339232c9670379f /sibs
parent78b1deca8abeefbcb8f669deedd6bb21bf9ac872 (diff)
Add getSize method to serializer
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;
};