Package net.jrodolfo.java_evolution.java22.foreign_function
package net.jrodolfo.java_evolution.java22.foreign_function
Executable examples for the Java 22 Foreign Function and Memory API.
The package calls small C standard-library functions through
java.lang.foreign.Linker, java.lang.foreign.Arena, native
MemorySegment instances, and FunctionDescriptor mappings.
-
ClassDescriptionCaptures the observable result of a small native function call.Demonstrates a Java 22 foreign function call to the native
strlenfunction.Demonstrates a Java 22 foreign function call to the nativeatoifunction.