這是一篇備份的文章,預防之後消失,來源是
http://jnkjava.blogspot.tw/2013/06/parsing-cc-struct-in-java.html
Assume you are a "lucky" guy that your Java application interfaces with a C/C++ application (e.g. a kind of server) which sends you some kind of TCP/UDP network messages you need to parse. An example such C/C++ structure is shown below: