From d85347f1f2028afb685142a776f2af4473de8273 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Jun 2023 13:08:02 +0300 Subject: memory buffer unzip function moved to core --- include/m_utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 @@ -390,6 +390,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) -- cgit v1.2.3