jnr / jnr-ffi

Java Abstracted Foreign Function Layer
Other
1.23k stars 154 forks source link

Overhauled tests for structure types containing structure types and pointers to them #296

Closed basshelal closed 2 years ago

basshelal commented 2 years ago

Test suite overhaul for structure types (struct and union) containing structure types and pointers to them.

Added new method overloads for existing methods in Struct.java that are a little easier to use and more idiomatic in addition to the existing methods:

Detailed JavaDoc comments have been added to both the new methods and the old ones

This modifies and uses changes from https://github.com/jnr/jnr-ffi/pull/295, merge that one first before this one!

headius commented 2 years ago

Wow, this is great... even added documentation!