如果你有一个对象
struct Packet P;
其中包括
struct Packet {
struct Packet_header header;
unsigned char data[MAXIMUM_BUFFER_LENGTH];
};
标题包括
struct Packet_header {
unsigned int checksum;
unsigned int seq;
unsigned int ack;
unsigned int data_length;
};
如果我尝试投射数据包
(unsigned char*) &P
无论如何我可以“取消”返回以获取我的原始数据包P吗?