diff options
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
|
