I would like to transfer the byte in the memory chunk pData that is i bytes from the start of pData to the memory chunk newData that is (i+offset) bytes from the start of newData:
Is there a better way to code this:
this way:Code:MemPtr newData; Char *pData Char *offsetData; offsetData = (Char *)newData; offsetData += (i+offset); *offsetData = *pData+i;
Code:MemPtr newData; Char *pData ((Char *)newData)[i+offset] = pData[i];