// func1 unsigned __int64 DcPool::dsLockSeqRead(unsigned long termID) { unsigned __int64 ret = 0; long valLen = 0; DWord nSeq = 0; char* pSeq = NULL; KYString key = Format("g.[%010u].watch", termID); pSeq = redisc::RDSC_Str_GetRange((const char*)key, key.Length(), 321, 321 + 7, &valLen); if( valLen == sizeof(unsigned __int64) ) memcpy(&ret, pSeq, sizeof(unsigned __int64)); return ret; } // func2 unsigned __int64 DcPool::dsLockSeqRead(unsigned long termID) { unsigned __int64 ret = 0; long valLen = 0; KYString key = Format("g.[%010u].watch", termID); ret= (unsigned __int64)*(redisc::RDSC_Str_GetRange((const char*)key, key.Length(), 321, 321 + 7, &valLen)); return ret; }