现在需要udp 发送一个结构体数据
结构体类型大概如下
struct A{int a;}
struct B{int b;}
struct C{A a;B b;}
现在要发送 结构体C类型的数据, 请问各位大神,怎样将此类结构体转换为byte数组!