Convert char pointer (char*) to struct
Posted
by InfinateOne
on Stack Overflow
See other posts from Stack Overflow
or by InfinateOne
Published on 2010-04-11T11:31:08Z
Indexed on
2010/04/11
11:33 UTC
Read the original article
Hit count: 221
c++
I have a struct:
//Custom packet structure.
struct UserPacket
{
__int64 pingTime;
} CustomPacket;
I have already figured out how to convert it to a char*. Now I want to convert the char* back to the struct. Any suggestions?
© Stack Overflow or respective owner