From 0a59ec1d5a3e02cd8bc04933ae06c038d05c6a34 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Oct 2022 21:48:11 +0300 Subject: WhatsApp: prekeys upload --- include/m_system.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/m_system.h') diff --git a/include/m_system.h b/include/m_system.h index 2296a7993b..e64f4376f1 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -485,10 +485,18 @@ public: // adds a buffer to the end void append(const void *pBuf, size_t bufLen); + + __forceinline void append(const MBinBuffer &buf) + { append(buf.data(), buf.length()); + } // adds a buffer to the beginning void appendBefore(const void *pBuf, size_t bufLen); + __forceinline void appendBefore(const MBinBuffer &buf) + { appendBefore(buf.data(), buf.length()); + } + // replaces buffer contents void assign(const void *pBuf, size_t bufLen); -- cgit v1.2.3