aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-06-12 04:50:55 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:16:10 +0200
commit2d714be4323d2b1cb143f3187fe87d91ee514c84 (patch)
tree85472a297bde723a071f13cbf52c0a9bd4edc2c9
parent81b3c9cfbdd99740320bfaf54eaf3929772f5eee (diff)
Add takeBuffer to serializerHEADmaster
-rw-r--r--sibs/SafeSerializer.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sibs/SafeSerializer.hpp b/sibs/SafeSerializer.hpp
index 95e7807..0d5435e 100644
--- a/sibs/SafeSerializer.hpp
+++ b/sibs/SafeSerializer.hpp
@@ -52,6 +52,11 @@ namespace sibs
return buffer;
}
+ std::vector<u8>& takeBuffer()
+ {
+ return buffer;
+ }
+
usize getSize() const
{
return buffer.size();