Annotation Interface FFMPointer


@Target({METHOD,PARAMETER}) @Retention(RUNTIME) public @interface FFMPointer
Marks a long parameter as a raw pointer.

Such parameters will be passed as 64-bit values on 64-bit platforms (ValueLayout.JAVA_LONG) and 32-bit values on 32-bit platforms (ValueLayout.JAVA_INT). The same functionality is provided by boxing the pointer value with MemorySegment.ofAddress(long) and passing the MemorySegment instead. This annotation may be used when boxing is not desirable.