diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-15 13:08:02 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-15 13:08:02 +0300 |
commit | d85347f1f2028afb685142a776f2af4473de8273 (patch) | |
tree | d0480a13ed726f11612e04bf8e23435008b0efce /include | |
parent | 110b291bce427209d629cdb9688a8e785a66ef47 (diff) |
memory buffer unzip function moved to core
Diffstat (limited to 'include')
-rw-r--r-- | include/m_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/m_utils.h b/include/m_utils.h index 0d5b599ac6..2ea38f07b4 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -391,6 +391,15 @@ EXTERN_C MIR_CORE_DLL(void) Utils_GetRandom(void *pszDest, size_t cbLen); EXTERN_C MIR_CORE_DLL(bool) Utils_IsRtl(const wchar_t *pszwText);
/////////////////////////////////////////////////////////////////////////////////////////
+// Unzip memory buffer
+
+MIR_APP_DLL(MBinBuffer) Utils_Unzip(const void *pData, size_t cbLen);
+
+__forceinline MBinBuffer Utils_Unzip(const MBinBuffer &buf) {
+ return Utils_Unzip(buf.data(), buf.length());
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
// Replace variables in text
// wParam = (char*/wchar_t*/wchar_t*)string (depends on RVF_UNICODE/RVF_TCHAR flag)
// lParam = (REPLACEVARSDATA *) data about variables, item with key = 0 terminates the list
|