diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-02 21:48:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-02 21:48:11 +0300 |
commit | 0a59ec1d5a3e02cd8bc04933ae06c038d05c6a34 (patch) | |
tree | dec44acb6fba8fb34d8ab7377c2ee226c0ed80ed /include/m_system.h | |
parent | 0f65b85e68f7ad9068b0e20f0cade4c4c41c454e (diff) |
WhatsApp: prekeys upload
Diffstat (limited to 'include/m_system.h')
-rw-r--r-- | include/m_system.h | 8 |
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); |