From 2d714be4323d2b1cb143f3187fe87d91ee514c84 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 12 Jun 2020 04:50:55 +0200 Subject: Add takeBuffer 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 95e7807..0d5435e 100644 --- a/sibs/SafeSerializer.hpp +++ b/sibs/SafeSerializer.hpp @@ -52,6 +52,11 @@ namespace sibs return buffer; } + std::vector& takeBuffer() + { + return buffer; + } + usize getSize() const { return buffer.size(); -- cgit v1.2.3