summaryrefslogtreecommitdiff
path: root/include/m_system.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-02 21:48:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-02 21:48:11 +0300
commit0a59ec1d5a3e02cd8bc04933ae06c038d05c6a34 (patch)
treedec44acb6fba8fb34d8ab7377c2ee226c0ed80ed /include/m_system.h
parent0f65b85e68f7ad9068b0e20f0cade4c4c41c454e (diff)
WhatsApp: prekeys upload
Diffstat (limited to 'include/m_system.h')
-rw-r--r--include/m_system.h8
1 files changed, 8 insertions, 0 deletions
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);