aboutsummaryrefslogtreecommitdiff
path: root/sibs/SafeSerializer.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-08-02 21:49:52 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-08-02 21:49:59 +0200
commit3cab1b89229409225c5a45ee1d0308e45c309433 (patch)
tree9b10fabf243d76f26be4f96a990bf37637e4e435 /sibs/SafeSerializer.hpp
parent75768a21955cb6570c31ca87d48fc0b6a2f8490b (diff)
Add skip method to deserializer1.0.3
Diffstat (limited to 'sibs/SafeSerializer.hpp')
-rw-r--r--sibs/SafeSerializer.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sibs/SafeSerializer.hpp b/sibs/SafeSerializer.hpp
index efc4ecd..fe8ee58 100644
--- a/sibs/SafeSerializer.hpp
+++ b/sibs/SafeSerializer.hpp
@@ -64,6 +64,11 @@ namespace sibs
memcpy(&buffer[offset], data, size);
}
}
+
+ void add(const char *data, usize size)
+ {
+ add((const u8*)data, size);
+ }
std::vector<u8>& getBuffer()
{