Using C struct in Java

后端 未结 5 774
情歌与酒
情歌与酒 2020-12-15 08:19

I have to code a Java program that will receive messages from network and display their content to the user. The problem is that the messages that I receive are simply binar

5条回答
  •  暖寄归人
    2020-12-15 09:01

    Swig will handle a lot of the tedious repetitive work for you in terms of mapping the C structs to Java objects. Check out the Swig/Java manual and the entry on wrapping C structures.

提交回复
热议问题