3 ms·
What does it do if you need to pass a struct that contains another struct?
by int_19h 3y ago
What does it do if you need to pass a struct that contains another struct?
- pron 3y agoThe same, but you need to define the layout appropriately. The JEP covers the basics: https://openjdk.org/jeps/454 https://openjdk.org/jeps/454. As I explained in another comment [1], we didn't want to trade off performance or limit the runtime, so the API for describing native layouts is more elaborate. [1]: https://news.ycombinator.com/item?id=40303242 https://news.ycombinator.com/item?id=40303242