Trying to understand someone else's code. Two questions, it is redundant to cast pdata as uint8_t? And how to do I see the value of pdata?
void *pb;
uint8_t *pdata = NULL;
//re-cast pb as uint8_t type
pdata = (uint8_t*)pb; // now pdata is equal to a uint8_t of whatever pb is, pb is an empty pointer
pdata += 1000;
printf("%d\n", pdata[0]);