![]() |
|
|
#12 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
for time critical stuff, i like to save as much as i can
a single function call also takes couple cpu circle. Code:
bool CIOCP::RequestAuthLogin(IOCP_IO_PTR lp_io, BYTE* pData)
{
char* pname, *ppass;
BYTE *pBuffer, *pBuffEx, *pPwd;
int length;
//printf("RequestAuthLogin\n");
pBuffer = pData;
pname = (char*)pBuffer;
pBuffer += 14;
ppass = (char*)pBuffer;
pPwd = (BYTE*)GlobalAlloc(GMEM_ZEROINIT, 16);
getPwd(ppass, pPwd, lstrlenA(ppass));
.............
void __inline CIOCP::getPwd(char * pData, BYTE* pOut, int length)
{
UINT key[16];
UINT dst[16];
int i = 0, nBytes = length + 1;
.......
}
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|