Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP_Create_BrotliCompressor 函数请求支持lambda表达式绑定 #285

Open
SnowMeteors opened this issue Mar 8, 2024 · 1 comment
Open

Comments

@SnowMeteors
Copy link

explicit CUdpClientListenerImpl() :
	m_PCompressor(HP_Create_BrotliCompressor(OnCompressData, 6)),
{
}

static BOOL __HP_CALL OnCompressData(const BYTE* pData, const int iLength, const PVOID pContext = nullptr)
{
	const auto pThis = static_cast<CUdpClientListenerImpl*>(pContext);
}

我目前只能这样写,应该支持lambda表达式绑定,这样更方面传入更多数据

@FunlyDay
Copy link

FunlyDay commented Mar 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants