*(WORD*)&pPackage[0] = index;
pSendBuf += bmpsize*index;//pSendBuf为数组名
memcpy(&pPackage[4],pSendBuf,packsize-12);
*(int*)&pPackage[packsize-12] = bmpsize;