From 99c8188ed78e1cf7a875e87ade2d5d01738705eb Mon Sep 17 00:00:00 2001 From: Paulo Feodrippe Date: Sat, 9 Nov 2024 14:59:29 -0500 Subject: [PATCH] Update Flecs --- flecs | 2 +- .../com/pfeodrippe/vybe/blender/glb_export.py | 2 +- src-java/org/vybe/flecs/EcsPipelineStats.java | 2 +- src-java/org/vybe/flecs/EcsRest.java | 2 +- src-java/org/vybe/flecs/EcsStatsHeader.java | 2 +- src-java/org/vybe/flecs/EcsSystemStats.java | 2 +- src-java/org/vybe/flecs/EcsWorldStats.java | 2 +- src-java/org/vybe/flecs/EcsWorldSummary.java | 2 +- src-java/org/vybe/flecs/__mbstate_t.java | 2 +- src-java/org/vybe/flecs/ecs_hashmap_t.java | 2 +- src-java/org/vybe/flecs/ecs_hm_bucket_t.java | 2 +- .../org/vybe/flecs/ecs_http_connection_t.java | 2 +- .../org/vybe/flecs/ecs_http_key_value_t.java | 2 +- src-java/org/vybe/flecs/ecs_http_reply_t.java | 2 +- .../org/vybe/flecs/ecs_http_request_t.java | 2 +- .../vybe/flecs/ecs_http_server_desc_t.java | 2 +- .../org/vybe/flecs/ecs_iter_private_t.java | 2 +- src-java/org/vybe/flecs/ecs_type_t.java | 2 +- src-java/org/vybe/flecs/ecs_world_info_t.java | 2 +- .../org/vybe/flecs/ecs_world_stats_t.java | 18 +- src-java/org/vybe/flecs/flecs.java | 476 ++- src-java/org/vybe/flecs/flecs_1.java | 2559 +++++++++++--- src-java/org/vybe/flecs/flecs_2.java | 2432 +++---------- .../org/vybe/flecs/flecs_hashmap_iter_t.java | 2 +- .../vybe/flecs/flecs_hashmap_result_t.java | 2 +- src-java/org/vybe/jolt/_OSUnalignedU16.java | 127 - src-java/org/vybe/jolt/_OSUnalignedU32.java | 127 - ...=> __darwin_arm_exception_state64_v2.java} | 86 +- src-java/org/vybe/jolt/__mbstate_t.java | 2 +- src-java/org/vybe/jolt/at_quick_exit$x0.java | 65 + src-java/org/vybe/jolt/jolt.java | 2520 ++++++++++++- src-java/org/vybe/jolt/jolt_1.java | 3114 +++-------------- .../org/vybe/jolt/rusage_info_current.java | 7 +- src-java/org/vybe/jolt/rusage_info_v6.java | 252 +- 34 files changed, 6571 insertions(+), 5256 deletions(-) delete mode 100644 src-java/org/vybe/jolt/_OSUnalignedU16.java delete mode 100644 src-java/org/vybe/jolt/_OSUnalignedU32.java rename src-java/org/vybe/jolt/{_OSUnalignedU64.java => __darwin_arm_exception_state64_v2.java} (59%) create mode 100644 src-java/org/vybe/jolt/at_quick_exit$x0.java diff --git a/flecs b/flecs index 7531d9a4..b3ad03c3 160000 --- a/flecs +++ b/flecs @@ -1 +1 @@ -Subproject commit 7531d9a4dd3bf62019366ee0b20eccc3ae3df000 +Subproject commit b3ad03c391a268234c54270ccf3793c5b6ad6312 diff --git a/resources/com/pfeodrippe/vybe/blender/glb_export.py b/resources/com/pfeodrippe/vybe/blender/glb_export.py index 5a220b4b..be6b1a9e 100644 --- a/resources/com/pfeodrippe/vybe/blender/glb_export.py +++ b/resources/com/pfeodrippe/vybe/blender/glb_export.py @@ -17,7 +17,7 @@ def VY__export_models(file): # https://docs.blender.org/api/current/bpy.ops.export_scene.html#bpy.ops.export_scene.gltf bpy.ops.export_scene.gltf( - filepath=bpy.path.abspath("/Users/pfeodrippe/dev/games/resources/models.glb"), + filepath=bpy.path.abspath("/Users/pfeodrippe/dev/vybe-games/resources/models.glb"), export_format='GLB', use_active_collection=False, export_apply=True, diff --git a/src-java/org/vybe/flecs/EcsPipelineStats.java b/src-java/org/vybe/flecs/EcsPipelineStats.java index d328a100..18311918 100644 --- a/src-java/org/vybe/flecs/EcsPipelineStats.java +++ b/src-java/org/vybe/flecs/EcsPipelineStats.java @@ -29,7 +29,7 @@ public class EcsPipelineStats { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( EcsStatsHeader.layout().withName("hdr"), ecs_map_t.layout().withName("stats") - ).withName("$anon$12852:9"); + ).withName("$anon$12882:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/EcsRest.java b/src-java/org/vybe/flecs/EcsRest.java index 3ff2ec80..3d4f796f 100644 --- a/src-java/org/vybe/flecs/EcsRest.java +++ b/src-java/org/vybe/flecs/EcsRest.java @@ -32,7 +32,7 @@ public class EcsRest { MemoryLayout.paddingLayout(6), flecs.C_POINTER.withName("ipaddr"), flecs.C_POINTER.withName("impl") - ).withName("$anon$11453:9"); + ).withName("$anon$11483:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/EcsStatsHeader.java b/src-java/org/vybe/flecs/EcsStatsHeader.java index 6b8d23b0..e10636f1 100644 --- a/src-java/org/vybe/flecs/EcsStatsHeader.java +++ b/src-java/org/vybe/flecs/EcsStatsHeader.java @@ -29,7 +29,7 @@ public class EcsStatsHeader { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( flecs.C_FLOAT.withName("elapsed"), flecs.C_INT.withName("reduce_count") - ).withName("$anon$12834:9"); + ).withName("$anon$12864:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/EcsSystemStats.java b/src-java/org/vybe/flecs/EcsSystemStats.java index 5f734fbc..abbf5a68 100644 --- a/src-java/org/vybe/flecs/EcsSystemStats.java +++ b/src-java/org/vybe/flecs/EcsSystemStats.java @@ -29,7 +29,7 @@ public class EcsSystemStats { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( EcsStatsHeader.layout().withName("hdr"), ecs_map_t.layout().withName("stats") - ).withName("$anon$12846:9"); + ).withName("$anon$12876:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/EcsWorldStats.java b/src-java/org/vybe/flecs/EcsWorldStats.java index 996d1e52..0faf0d03 100644 --- a/src-java/org/vybe/flecs/EcsWorldStats.java +++ b/src-java/org/vybe/flecs/EcsWorldStats.java @@ -29,7 +29,7 @@ public class EcsWorldStats { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( EcsStatsHeader.layout().withName("hdr"), ecs_world_stats_t.layout().withName("stats") - ).withName("$anon$12840:9"); + ).withName("$anon$12870:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/EcsWorldSummary.java b/src-java/org/vybe/flecs/EcsWorldSummary.java index d6a656be..ab2baea1 100644 --- a/src-java/org/vybe/flecs/EcsWorldSummary.java +++ b/src-java/org/vybe/flecs/EcsWorldSummary.java @@ -47,7 +47,7 @@ public class EcsWorldSummary { flecs.C_LONG_LONG.withName("frame_count"), flecs.C_LONG_LONG.withName("command_count"), ecs_build_info_t.layout().withName("build_info") - ).withName("$anon$12858:9"); + ).withName("$anon$12888:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/__mbstate_t.java b/src-java/org/vybe/flecs/__mbstate_t.java index fc124bca..c9ebc526 100644 --- a/src-java/org/vybe/flecs/__mbstate_t.java +++ b/src-java/org/vybe/flecs/__mbstate_t.java @@ -29,7 +29,7 @@ public class __mbstate_t { private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( MemoryLayout.sequenceLayout(128, flecs.C_CHAR).withName("__mbstate8"), flecs.C_LONG_LONG.withName("_mbstateL") - ).withName("$anon$54:9"); + ).withName("$anon$67:9"); /** * The layout of this union diff --git a/src-java/org/vybe/flecs/ecs_hashmap_t.java b/src-java/org/vybe/flecs/ecs_hashmap_t.java index a5bb66a1..3291c9ad 100644 --- a/src-java/org/vybe/flecs/ecs_hashmap_t.java +++ b/src-java/org/vybe/flecs/ecs_hashmap_t.java @@ -39,7 +39,7 @@ public class ecs_hashmap_t { flecs.C_POINTER.withName("hashmap_allocator"), ecs_block_allocator_t.layout().withName("bucket_allocator"), ecs_map_t.layout().withName("impl") - ).withName("$anon$3993:9"); + ).withName("$anon$3998:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_hm_bucket_t.java b/src-java/org/vybe/flecs/ecs_hm_bucket_t.java index 4a4746fc..744ad010 100644 --- a/src-java/org/vybe/flecs/ecs_hm_bucket_t.java +++ b/src-java/org/vybe/flecs/ecs_hm_bucket_t.java @@ -29,7 +29,7 @@ public class ecs_hm_bucket_t { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( ecs_vec_t.layout().withName("keys"), ecs_vec_t.layout().withName("values") - ).withName("$anon$3988:9"); + ).withName("$anon$3993:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_http_connection_t.java b/src-java/org/vybe/flecs/ecs_http_connection_t.java index 93fc254d..00050dfb 100644 --- a/src-java/org/vybe/flecs/ecs_http_connection_t.java +++ b/src-java/org/vybe/flecs/ecs_http_connection_t.java @@ -33,7 +33,7 @@ public class ecs_http_connection_t { flecs.C_POINTER.withName("server"), MemoryLayout.sequenceLayout(128, flecs.C_CHAR).withName("host"), MemoryLayout.sequenceLayout(16, flecs.C_CHAR).withName("port") - ).withName("$anon$11206:9"); + ).withName("$anon$11236:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_http_key_value_t.java b/src-java/org/vybe/flecs/ecs_http_key_value_t.java index 8f125ffe..22b0cdae 100644 --- a/src-java/org/vybe/flecs/ecs_http_key_value_t.java +++ b/src-java/org/vybe/flecs/ecs_http_key_value_t.java @@ -29,7 +29,7 @@ public class ecs_http_key_value_t { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( flecs.C_POINTER.withName("key"), flecs.C_POINTER.withName("value") - ).withName("$anon$11215:9"); + ).withName("$anon$11245:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_http_reply_t.java b/src-java/org/vybe/flecs/ecs_http_reply_t.java index be4a1a8e..3b8803fd 100644 --- a/src-java/org/vybe/flecs/ecs_http_reply_t.java +++ b/src-java/org/vybe/flecs/ecs_http_reply_t.java @@ -36,7 +36,7 @@ public class ecs_http_reply_t { flecs.C_POINTER.withName("status"), flecs.C_POINTER.withName("content_type"), ecs_strbuf_t.layout().withName("headers") - ).withName("$anon$11246:9"); + ).withName("$anon$11276:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_http_request_t.java b/src-java/org/vybe/flecs/ecs_http_request_t.java index 3448d905..319b3d59 100644 --- a/src-java/org/vybe/flecs/ecs_http_request_t.java +++ b/src-java/org/vybe/flecs/ecs_http_request_t.java @@ -44,7 +44,7 @@ public class ecs_http_request_t { flecs.C_INT.withName("header_count"), flecs.C_INT.withName("param_count"), flecs.C_POINTER.withName("conn") - ).withName("$anon$11231:9"); + ).withName("$anon$11261:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_http_server_desc_t.java b/src-java/org/vybe/flecs/ecs_http_server_desc_t.java index df684e12..715ffd42 100644 --- a/src-java/org/vybe/flecs/ecs_http_server_desc_t.java +++ b/src-java/org/vybe/flecs/ecs_http_server_desc_t.java @@ -41,7 +41,7 @@ public class ecs_http_server_desc_t { MemoryLayout.paddingLayout(4), flecs.C_DOUBLE.withName("cache_timeout"), flecs.C_DOUBLE.withName("cache_purge_timeout") - ).withName("$anon$11278:9"); + ).withName("$anon$11308:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_iter_private_t.java b/src-java/org/vybe/flecs/ecs_iter_private_t.java index 0b25de27..b1196108 100644 --- a/src-java/org/vybe/flecs/ecs_iter_private_t.java +++ b/src-java/org/vybe/flecs/ecs_iter_private_t.java @@ -66,7 +66,7 @@ public static class iter { ecs_page_iter_t.layout().withName("page"), ecs_worker_iter_t.layout().withName("worker"), ecs_each_iter_t.layout().withName("each") - ).withName("$anon$3723:5"); + ).withName("$anon$3728:5"); /** * The layout of this union diff --git a/src-java/org/vybe/flecs/ecs_type_t.java b/src-java/org/vybe/flecs/ecs_type_t.java index fad9e681..4d0d25d6 100644 --- a/src-java/org/vybe/flecs/ecs_type_t.java +++ b/src-java/org/vybe/flecs/ecs_type_t.java @@ -30,7 +30,7 @@ public class ecs_type_t { flecs.C_POINTER.withName("array"), flecs.C_INT.withName("count"), MemoryLayout.paddingLayout(4) - ).withName("$anon$3015:9"); + ).withName("$anon$3020:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_world_info_t.java b/src-java/org/vybe/flecs/ecs_world_info_t.java index 466ca877..1cd10ec4 100644 --- a/src-java/org/vybe/flecs/ecs_world_info_t.java +++ b/src-java/org/vybe/flecs/ecs_world_info_t.java @@ -1470,7 +1470,7 @@ public static class cmd { flecs.C_LONG_LONG.withName("other_count"), flecs.C_LONG_LONG.withName("batched_entity_count"), flecs.C_LONG_LONG.withName("batched_command_count") - ).withName("$anon$4599:5"); + ).withName("$anon$4604:5"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/ecs_world_stats_t.java b/src-java/org/vybe/flecs/ecs_world_stats_t.java index 290bbc20..59631dba 100644 --- a/src-java/org/vybe/flecs/ecs_world_stats_t.java +++ b/src-java/org/vybe/flecs/ecs_world_stats_t.java @@ -190,7 +190,7 @@ public static class entities { private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( ecs_metric_t.layout().withName("count"), ecs_metric_t.layout().withName("not_alive_count") - ).withName("$anon$12474:5"); + ).withName("$anon$12504:5"); /** * The layout of this struct @@ -413,7 +413,7 @@ public static class components { ecs_metric_t.layout().withName("type_count"), ecs_metric_t.layout().withName("create_count"), ecs_metric_t.layout().withName("delete_count") - ).withName("$anon$12480:5"); + ).withName("$anon$12510:5"); /** * The layout of this struct @@ -824,7 +824,7 @@ public static class tables { ecs_metric_t.layout().withName("empty_count"), ecs_metric_t.layout().withName("create_count"), ecs_metric_t.layout().withName("delete_count") - ).withName("$anon$12490:5"); + ).withName("$anon$12520:5"); /** * The layout of this struct @@ -1137,7 +1137,7 @@ public static class queries { ecs_metric_t.layout().withName("query_count"), ecs_metric_t.layout().withName("observer_count"), ecs_metric_t.layout().withName("system_count") - ).withName("$anon$12498:5"); + ).withName("$anon$12528:5"); /** * The layout of this struct @@ -1418,7 +1418,7 @@ public static class commands { ecs_metric_t.layout().withName("discard_count"), ecs_metric_t.layout().withName("batched_entity_count"), ecs_metric_t.layout().withName("batched_count") - ).withName("$anon$12505:5"); + ).withName("$anon$12535:5"); /** * The layout of this struct @@ -2075,7 +2075,7 @@ public static class frame { ecs_metric_t.layout().withName("systems_ran"), ecs_metric_t.layout().withName("observers_ran"), ecs_metric_t.layout().withName("event_emit_count") - ).withName("$anon$12520:5"); + ).withName("$anon$12550:5"); /** * The layout of this struct @@ -2544,7 +2544,7 @@ public static class performance { ecs_metric_t.layout().withName("rematch_time"), ecs_metric_t.layout().withName("fps"), ecs_metric_t.layout().withName("delta_time") - ).withName("$anon$12531:5"); + ).withName("$anon$12561:5"); /** * The layout of this struct @@ -3111,7 +3111,7 @@ public static class memory { ecs_metric_t.layout().withName("stack_alloc_count"), ecs_metric_t.layout().withName("stack_free_count"), ecs_metric_t.layout().withName("stack_outstanding_alloc_count") - ).withName("$anon$12543:5"); + ).withName("$anon$12573:5"); /** * The layout of this struct @@ -3724,7 +3724,7 @@ public static class http { ecs_metric_t.layout().withName("send_ok_count"), ecs_metric_t.layout().withName("send_error_count"), ecs_metric_t.layout().withName("busy_count") - ).withName("$anon$12560:5"); + ).withName("$anon$12590:5"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/flecs.java b/src-java/org/vybe/flecs/flecs.java index eb9c786e..79283790 100644 --- a/src-java/org/vybe/flecs/flecs.java +++ b/src-java/org/vybe/flecs/flecs.java @@ -17,6 +17,429 @@ public class flecs extends flecs_1 { flecs() { // Should not be called directly } + private static final int EcsIterFixedInChanged = (int)131072L; + /** + * {@snippet lang=c : + * #define EcsIterFixedInChanged 131072 + * } + */ + public static int EcsIterFixedInChanged() { + return EcsIterFixedInChanged; + } + private static final int EcsIterSkip = (int)262144L; + /** + * {@snippet lang=c : + * #define EcsIterSkip 262144 + * } + */ + public static int EcsIterSkip() { + return EcsIterSkip; + } + private static final int EcsIterCppEach = (int)524288L; + /** + * {@snippet lang=c : + * #define EcsIterCppEach 524288 + * } + */ + public static int EcsIterCppEach() { + return EcsIterCppEach; + } + private static final int EcsIterTableOnly = (int)1048576L; + /** + * {@snippet lang=c : + * #define EcsIterTableOnly 1048576 + * } + */ + public static int EcsIterTableOnly() { + return EcsIterTableOnly; + } + private static final int EcsEventTableOnly = (int)1048576L; + /** + * {@snippet lang=c : + * #define EcsEventTableOnly 1048576 + * } + */ + public static int EcsEventTableOnly() { + return EcsEventTableOnly; + } + private static final int EcsEventNoOnSet = (int)65536L; + /** + * {@snippet lang=c : + * #define EcsEventNoOnSet 65536 + * } + */ + public static int EcsEventNoOnSet() { + return EcsEventNoOnSet; + } + private static final int EcsQueryMatchThis = (int)2048L; + /** + * {@snippet lang=c : + * #define EcsQueryMatchThis 2048 + * } + */ + public static int EcsQueryMatchThis() { + return EcsQueryMatchThis; + } + private static final int EcsQueryMatchOnlyThis = (int)4096L; + /** + * {@snippet lang=c : + * #define EcsQueryMatchOnlyThis 4096 + * } + */ + public static int EcsQueryMatchOnlyThis() { + return EcsQueryMatchOnlyThis; + } + private static final int EcsQueryMatchOnlySelf = (int)8192L; + /** + * {@snippet lang=c : + * #define EcsQueryMatchOnlySelf 8192 + * } + */ + public static int EcsQueryMatchOnlySelf() { + return EcsQueryMatchOnlySelf; + } + private static final int EcsQueryMatchWildcards = (int)16384L; + /** + * {@snippet lang=c : + * #define EcsQueryMatchWildcards 16384 + * } + */ + public static int EcsQueryMatchWildcards() { + return EcsQueryMatchWildcards; + } + private static final int EcsQueryMatchNothing = (int)32768L; + /** + * {@snippet lang=c : + * #define EcsQueryMatchNothing 32768 + * } + */ + public static int EcsQueryMatchNothing() { + return EcsQueryMatchNothing; + } + private static final int EcsQueryHasCondSet = (int)65536L; + /** + * {@snippet lang=c : + * #define EcsQueryHasCondSet 65536 + * } + */ + public static int EcsQueryHasCondSet() { + return EcsQueryHasCondSet; + } + private static final int EcsQueryHasPred = (int)131072L; + /** + * {@snippet lang=c : + * #define EcsQueryHasPred 131072 + * } + */ + public static int EcsQueryHasPred() { + return EcsQueryHasPred; + } + private static final int EcsQueryHasScopes = (int)262144L; + /** + * {@snippet lang=c : + * #define EcsQueryHasScopes 262144 + * } + */ + public static int EcsQueryHasScopes() { + return EcsQueryHasScopes; + } + private static final int EcsQueryHasRefs = (int)524288L; + /** + * {@snippet lang=c : + * #define EcsQueryHasRefs 524288 + * } + */ + public static int EcsQueryHasRefs() { + return EcsQueryHasRefs; + } + private static final int EcsQueryHasOutTerms = (int)1048576L; + /** + * {@snippet lang=c : + * #define EcsQueryHasOutTerms 1048576 + * } + */ + public static int EcsQueryHasOutTerms() { + return EcsQueryHasOutTerms; + } + private static final int EcsQueryHasNonThisOutTerms = (int)2097152L; + /** + * {@snippet lang=c : + * #define EcsQueryHasNonThisOutTerms 2097152 + * } + */ + public static int EcsQueryHasNonThisOutTerms() { + return EcsQueryHasNonThisOutTerms; + } + private static final int EcsQueryHasMonitor = (int)4194304L; + /** + * {@snippet lang=c : + * #define EcsQueryHasMonitor 4194304 + * } + */ + public static int EcsQueryHasMonitor() { + return EcsQueryHasMonitor; + } + private static final int EcsQueryIsTrivial = (int)8388608L; + /** + * {@snippet lang=c : + * #define EcsQueryIsTrivial 8388608 + * } + */ + public static int EcsQueryIsTrivial() { + return EcsQueryIsTrivial; + } + private static final int EcsQueryHasCacheable = (int)16777216L; + /** + * {@snippet lang=c : + * #define EcsQueryHasCacheable 16777216 + * } + */ + public static int EcsQueryHasCacheable() { + return EcsQueryHasCacheable; + } + private static final int EcsQueryIsCacheable = (int)33554432L; + /** + * {@snippet lang=c : + * #define EcsQueryIsCacheable 33554432 + * } + */ + public static int EcsQueryIsCacheable() { + return EcsQueryIsCacheable; + } + private static final int EcsQueryHasTableThisVar = (int)67108864L; + /** + * {@snippet lang=c : + * #define EcsQueryHasTableThisVar 67108864 + * } + */ + public static int EcsQueryHasTableThisVar() { + return EcsQueryHasTableThisVar; + } + private static final int EcsQueryCacheYieldEmptyTables = (int)134217728L; + /** + * {@snippet lang=c : + * #define EcsQueryCacheYieldEmptyTables 134217728 + * } + */ + public static int EcsQueryCacheYieldEmptyTables() { + return EcsQueryCacheYieldEmptyTables; + } + private static final int EcsQueryNested = (int)268435456L; + /** + * {@snippet lang=c : + * #define EcsQueryNested 268435456 + * } + */ + public static int EcsQueryNested() { + return EcsQueryNested; + } + private static final int EcsTermMatchAny = (int)1L; + /** + * {@snippet lang=c : + * #define EcsTermMatchAny 1 + * } + */ + public static int EcsTermMatchAny() { + return EcsTermMatchAny; + } + private static final int EcsTermMatchAnySrc = (int)2L; + /** + * {@snippet lang=c : + * #define EcsTermMatchAnySrc 2 + * } + */ + public static int EcsTermMatchAnySrc() { + return EcsTermMatchAnySrc; + } + private static final int EcsTermTransitive = (int)4L; + /** + * {@snippet lang=c : + * #define EcsTermTransitive 4 + * } + */ + public static int EcsTermTransitive() { + return EcsTermTransitive; + } + private static final int EcsTermReflexive = (int)8L; + /** + * {@snippet lang=c : + * #define EcsTermReflexive 8 + * } + */ + public static int EcsTermReflexive() { + return EcsTermReflexive; + } + private static final int EcsTermIdInherited = (int)16L; + /** + * {@snippet lang=c : + * #define EcsTermIdInherited 16 + * } + */ + public static int EcsTermIdInherited() { + return EcsTermIdInherited; + } + private static final int EcsTermIsTrivial = (int)32L; + /** + * {@snippet lang=c : + * #define EcsTermIsTrivial 32 + * } + */ + public static int EcsTermIsTrivial() { + return EcsTermIsTrivial; + } + private static final int EcsTermIsCacheable = (int)128L; + /** + * {@snippet lang=c : + * #define EcsTermIsCacheable 128 + * } + */ + public static int EcsTermIsCacheable() { + return EcsTermIsCacheable; + } + private static final int EcsTermIsScope = (int)256L; + /** + * {@snippet lang=c : + * #define EcsTermIsScope 256 + * } + */ + public static int EcsTermIsScope() { + return EcsTermIsScope; + } + private static final int EcsTermIsMember = (int)512L; + /** + * {@snippet lang=c : + * #define EcsTermIsMember 512 + * } + */ + public static int EcsTermIsMember() { + return EcsTermIsMember; + } + private static final int EcsTermIsToggle = (int)1024L; + /** + * {@snippet lang=c : + * #define EcsTermIsToggle 1024 + * } + */ + public static int EcsTermIsToggle() { + return EcsTermIsToggle; + } + private static final int EcsTermKeepAlive = (int)2048L; + /** + * {@snippet lang=c : + * #define EcsTermKeepAlive 2048 + * } + */ + public static int EcsTermKeepAlive() { + return EcsTermKeepAlive; + } + private static final int EcsTermIsSparse = (int)4096L; + /** + * {@snippet lang=c : + * #define EcsTermIsSparse 4096 + * } + */ + public static int EcsTermIsSparse() { + return EcsTermIsSparse; + } + private static final int EcsTermIsUnion = (int)8192L; + /** + * {@snippet lang=c : + * #define EcsTermIsUnion 8192 + * } + */ + public static int EcsTermIsUnion() { + return EcsTermIsUnion; + } + private static final int EcsTermIsOr = (int)16384L; + /** + * {@snippet lang=c : + * #define EcsTermIsOr 16384 + * } + */ + public static int EcsTermIsOr() { + return EcsTermIsOr; + } + private static final int EcsObserverIsMulti = (int)2L; + /** + * {@snippet lang=c : + * #define EcsObserverIsMulti 2 + * } + */ + public static int EcsObserverIsMulti() { + return EcsObserverIsMulti; + } + private static final int EcsObserverIsMonitor = (int)4L; + /** + * {@snippet lang=c : + * #define EcsObserverIsMonitor 4 + * } + */ + public static int EcsObserverIsMonitor() { + return EcsObserverIsMonitor; + } + private static final int EcsObserverIsDisabled = (int)8L; + /** + * {@snippet lang=c : + * #define EcsObserverIsDisabled 8 + * } + */ + public static int EcsObserverIsDisabled() { + return EcsObserverIsDisabled; + } + private static final int EcsObserverIsParentDisabled = (int)16L; + /** + * {@snippet lang=c : + * #define EcsObserverIsParentDisabled 16 + * } + */ + public static int EcsObserverIsParentDisabled() { + return EcsObserverIsParentDisabled; + } + private static final int EcsObserverBypassQuery = (int)32L; + /** + * {@snippet lang=c : + * #define EcsObserverBypassQuery 32 + * } + */ + public static int EcsObserverBypassQuery() { + return EcsObserverBypassQuery; + } + private static final int EcsObserverYieldOnCreate = (int)64L; + /** + * {@snippet lang=c : + * #define EcsObserverYieldOnCreate 64 + * } + */ + public static int EcsObserverYieldOnCreate() { + return EcsObserverYieldOnCreate; + } + private static final int EcsObserverYieldOnDelete = (int)128L; + /** + * {@snippet lang=c : + * #define EcsObserverYieldOnDelete 128 + * } + */ + public static int EcsObserverYieldOnDelete() { + return EcsObserverYieldOnDelete; + } + private static final int EcsTableHasBuiltins = (int)2L; + /** + * {@snippet lang=c : + * #define EcsTableHasBuiltins 2 + * } + */ + public static int EcsTableHasBuiltins() { + return EcsTableHasBuiltins; + } + private static final int EcsTableIsPrefab = (int)4L; + /** + * {@snippet lang=c : + * #define EcsTableIsPrefab 4 + * } + */ + public static int EcsTableIsPrefab() { + return EcsTableIsPrefab; + } private static final int EcsTableHasIsA = (int)8L; /** * {@snippet lang=c : @@ -364,13 +787,13 @@ public static long __DARWIN_C_LEVEL() { } /** * {@snippet lang=c : - * #define __ASSERT_FILE_NAME "jextract$12940585943776937794.h" + * #define __ASSERT_FILE_NAME "jextract$6474275120944143515.h" * } */ public static MemorySegment __ASSERT_FILE_NAME() { class Holder { static final MemorySegment __ASSERT_FILE_NAME - = flecs.LIBRARY_ARENA.allocateFrom("jextract$12940585943776937794.h"); + = flecs.LIBRARY_ARENA.allocateFrom("jextract$6474275120944143515.h"); } return Holder.__ASSERT_FILE_NAME; } @@ -932,10 +1355,55 @@ public static int MAC_OS_VERSION_14_1() { public static int MAC_OS_VERSION_14_2() { return MAC_OS_VERSION_14_2; } - private static final int __MAC_OS_X_VERSION_MAX_ALLOWED = (int)140200L; + private static final int MAC_OS_VERSION_14_3 = (int)140300L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_3 140300 + * } + */ + public static int MAC_OS_VERSION_14_3() { + return MAC_OS_VERSION_14_3; + } + private static final int MAC_OS_VERSION_14_4 = (int)140400L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_4 140400 + * } + */ + public static int MAC_OS_VERSION_14_4() { + return MAC_OS_VERSION_14_4; + } + private static final int MAC_OS_VERSION_14_5 = (int)140500L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_5 140500 + * } + */ + public static int MAC_OS_VERSION_14_5() { + return MAC_OS_VERSION_14_5; + } + private static final int MAC_OS_VERSION_15_0 = (int)150000L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_15_0 150000 + * } + */ + public static int MAC_OS_VERSION_15_0() { + return MAC_OS_VERSION_15_0; + } + private static final int MAC_OS_VERSION_15_1 = (int)150100L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_15_1 150100 + * } + */ + public static int MAC_OS_VERSION_15_1() { + return MAC_OS_VERSION_15_1; + } + private static final int __MAC_OS_X_VERSION_MAX_ALLOWED = (int)150100L; /** * {@snippet lang=c : - * #define __MAC_OS_X_VERSION_MAX_ALLOWED 140200 + * #define __MAC_OS_X_VERSION_MAX_ALLOWED 150100 * } */ public static int __MAC_OS_X_VERSION_MAX_ALLOWED() { diff --git a/src-java/org/vybe/flecs/flecs_1.java b/src-java/org/vybe/flecs/flecs_1.java index c447846b..f556a55c 100644 --- a/src-java/org/vybe/flecs/flecs_1.java +++ b/src-java/org/vybe/flecs/flecs_1.java @@ -18,6 +18,1851 @@ public class flecs_1 extends flecs_2 { // Should not be called directly } + private static class EcsOneOf$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOneOf").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOneOf + * } + */ + public static OfLong EcsOneOf$layout() { + return EcsOneOf$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOneOf + * } + */ + public static MemorySegment EcsOneOf$segment() { + return EcsOneOf$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOneOf + * } + */ + public static long EcsOneOf() { + return EcsOneOf$constants.SEGMENT.get(EcsOneOf$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOneOf + * } + */ + public static void EcsOneOf(long varValue) { + EcsOneOf$constants.SEGMENT.set(EcsOneOf$constants.LAYOUT, 0L, varValue); + } + + private static class EcsCanToggle$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsCanToggle").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsCanToggle + * } + */ + public static OfLong EcsCanToggle$layout() { + return EcsCanToggle$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsCanToggle + * } + */ + public static MemorySegment EcsCanToggle$segment() { + return EcsCanToggle$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsCanToggle + * } + */ + public static long EcsCanToggle() { + return EcsCanToggle$constants.SEGMENT.get(EcsCanToggle$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsCanToggle + * } + */ + public static void EcsCanToggle(long varValue) { + EcsCanToggle$constants.SEGMENT.set(EcsCanToggle$constants.LAYOUT, 0L, varValue); + } + + private static class EcsTrait$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsTrait").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTrait + * } + */ + public static OfLong EcsTrait$layout() { + return EcsTrait$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTrait + * } + */ + public static MemorySegment EcsTrait$segment() { + return EcsTrait$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTrait + * } + */ + public static long EcsTrait() { + return EcsTrait$constants.SEGMENT.get(EcsTrait$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTrait + * } + */ + public static void EcsTrait(long varValue) { + EcsTrait$constants.SEGMENT.set(EcsTrait$constants.LAYOUT, 0L, varValue); + } + + private static class EcsRelationship$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsRelationship").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRelationship + * } + */ + public static OfLong EcsRelationship$layout() { + return EcsRelationship$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRelationship + * } + */ + public static MemorySegment EcsRelationship$segment() { + return EcsRelationship$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRelationship + * } + */ + public static long EcsRelationship() { + return EcsRelationship$constants.SEGMENT.get(EcsRelationship$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRelationship + * } + */ + public static void EcsRelationship(long varValue) { + EcsRelationship$constants.SEGMENT.set(EcsRelationship$constants.LAYOUT, 0L, varValue); + } + + private static class EcsTarget$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsTarget").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTarget + * } + */ + public static OfLong EcsTarget$layout() { + return EcsTarget$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTarget + * } + */ + public static MemorySegment EcsTarget$segment() { + return EcsTarget$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTarget + * } + */ + public static long EcsTarget() { + return EcsTarget$constants.SEGMENT.get(EcsTarget$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsTarget + * } + */ + public static void EcsTarget(long varValue) { + EcsTarget$constants.SEGMENT.set(EcsTarget$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPairIsTag$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPairIsTag").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPairIsTag + * } + */ + public static OfLong EcsPairIsTag$layout() { + return EcsPairIsTag$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPairIsTag + * } + */ + public static MemorySegment EcsPairIsTag$segment() { + return EcsPairIsTag$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPairIsTag + * } + */ + public static long EcsPairIsTag() { + return EcsPairIsTag$constants.SEGMENT.get(EcsPairIsTag$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPairIsTag + * } + */ + public static void EcsPairIsTag(long varValue) { + EcsPairIsTag$constants.SEGMENT.set(EcsPairIsTag$constants.LAYOUT, 0L, varValue); + } + + private static class EcsName$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsName").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsName + * } + */ + public static OfLong EcsName$layout() { + return EcsName$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsName + * } + */ + public static MemorySegment EcsName$segment() { + return EcsName$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsName + * } + */ + public static long EcsName() { + return EcsName$constants.SEGMENT.get(EcsName$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsName + * } + */ + public static void EcsName(long varValue) { + EcsName$constants.SEGMENT.set(EcsName$constants.LAYOUT, 0L, varValue); + } + + private static class EcsSymbol$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSymbol").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSymbol + * } + */ + public static OfLong EcsSymbol$layout() { + return EcsSymbol$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSymbol + * } + */ + public static MemorySegment EcsSymbol$segment() { + return EcsSymbol$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSymbol + * } + */ + public static long EcsSymbol() { + return EcsSymbol$constants.SEGMENT.get(EcsSymbol$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSymbol + * } + */ + public static void EcsSymbol(long varValue) { + EcsSymbol$constants.SEGMENT.set(EcsSymbol$constants.LAYOUT, 0L, varValue); + } + + private static class EcsAlias$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsAlias").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsAlias + * } + */ + public static OfLong EcsAlias$layout() { + return EcsAlias$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsAlias + * } + */ + public static MemorySegment EcsAlias$segment() { + return EcsAlias$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsAlias + * } + */ + public static long EcsAlias() { + return EcsAlias$constants.SEGMENT.get(EcsAlias$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsAlias + * } + */ + public static void EcsAlias(long varValue) { + EcsAlias$constants.SEGMENT.set(EcsAlias$constants.LAYOUT, 0L, varValue); + } + + private static class EcsChildOf$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsChildOf").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsChildOf + * } + */ + public static OfLong EcsChildOf$layout() { + return EcsChildOf$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsChildOf + * } + */ + public static MemorySegment EcsChildOf$segment() { + return EcsChildOf$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsChildOf + * } + */ + public static long EcsChildOf() { + return EcsChildOf$constants.SEGMENT.get(EcsChildOf$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsChildOf + * } + */ + public static void EcsChildOf(long varValue) { + EcsChildOf$constants.SEGMENT.set(EcsChildOf$constants.LAYOUT, 0L, varValue); + } + + private static class EcsIsA$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsIsA").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsIsA + * } + */ + public static OfLong EcsIsA$layout() { + return EcsIsA$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsIsA + * } + */ + public static MemorySegment EcsIsA$segment() { + return EcsIsA$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsIsA + * } + */ + public static long EcsIsA() { + return EcsIsA$constants.SEGMENT.get(EcsIsA$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsIsA + * } + */ + public static void EcsIsA(long varValue) { + EcsIsA$constants.SEGMENT.set(EcsIsA$constants.LAYOUT, 0L, varValue); + } + + private static class EcsDependsOn$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDependsOn").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDependsOn + * } + */ + public static OfLong EcsDependsOn$layout() { + return EcsDependsOn$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDependsOn + * } + */ + public static MemorySegment EcsDependsOn$segment() { + return EcsDependsOn$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDependsOn + * } + */ + public static long EcsDependsOn() { + return EcsDependsOn$constants.SEGMENT.get(EcsDependsOn$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDependsOn + * } + */ + public static void EcsDependsOn(long varValue) { + EcsDependsOn$constants.SEGMENT.set(EcsDependsOn$constants.LAYOUT, 0L, varValue); + } + + private static class EcsSlotOf$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSlotOf").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSlotOf + * } + */ + public static OfLong EcsSlotOf$layout() { + return EcsSlotOf$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSlotOf + * } + */ + public static MemorySegment EcsSlotOf$segment() { + return EcsSlotOf$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSlotOf + * } + */ + public static long EcsSlotOf() { + return EcsSlotOf$constants.SEGMENT.get(EcsSlotOf$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSlotOf + * } + */ + public static void EcsSlotOf(long varValue) { + EcsSlotOf$constants.SEGMENT.set(EcsSlotOf$constants.LAYOUT, 0L, varValue); + } + + private static class EcsModule$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsModule").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsModule + * } + */ + public static OfLong EcsModule$layout() { + return EcsModule$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsModule + * } + */ + public static MemorySegment EcsModule$segment() { + return EcsModule$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsModule + * } + */ + public static long EcsModule() { + return EcsModule$constants.SEGMENT.get(EcsModule$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsModule + * } + */ + public static void EcsModule(long varValue) { + EcsModule$constants.SEGMENT.set(EcsModule$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPrivate$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPrivate").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrivate + * } + */ + public static OfLong EcsPrivate$layout() { + return EcsPrivate$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrivate + * } + */ + public static MemorySegment EcsPrivate$segment() { + return EcsPrivate$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrivate + * } + */ + public static long EcsPrivate() { + return EcsPrivate$constants.SEGMENT.get(EcsPrivate$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrivate + * } + */ + public static void EcsPrivate(long varValue) { + EcsPrivate$constants.SEGMENT.set(EcsPrivate$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPrefab$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPrefab").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrefab + * } + */ + public static OfLong EcsPrefab$layout() { + return EcsPrefab$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrefab + * } + */ + public static MemorySegment EcsPrefab$segment() { + return EcsPrefab$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrefab + * } + */ + public static long EcsPrefab() { + return EcsPrefab$constants.SEGMENT.get(EcsPrefab$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPrefab + * } + */ + public static void EcsPrefab(long varValue) { + EcsPrefab$constants.SEGMENT.set(EcsPrefab$constants.LAYOUT, 0L, varValue); + } + + private static class EcsDisabled$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDisabled").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDisabled + * } + */ + public static OfLong EcsDisabled$layout() { + return EcsDisabled$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDisabled + * } + */ + public static MemorySegment EcsDisabled$segment() { + return EcsDisabled$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDisabled + * } + */ + public static long EcsDisabled() { + return EcsDisabled$constants.SEGMENT.get(EcsDisabled$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDisabled + * } + */ + public static void EcsDisabled(long varValue) { + EcsDisabled$constants.SEGMENT.set(EcsDisabled$constants.LAYOUT, 0L, varValue); + } + + private static class EcsNotQueryable$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsNotQueryable").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsNotQueryable + * } + */ + public static OfLong EcsNotQueryable$layout() { + return EcsNotQueryable$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsNotQueryable + * } + */ + public static MemorySegment EcsNotQueryable$segment() { + return EcsNotQueryable$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsNotQueryable + * } + */ + public static long EcsNotQueryable() { + return EcsNotQueryable$constants.SEGMENT.get(EcsNotQueryable$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsNotQueryable + * } + */ + public static void EcsNotQueryable(long varValue) { + EcsNotQueryable$constants.SEGMENT.set(EcsNotQueryable$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnAdd$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnAdd").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnAdd + * } + */ + public static OfLong EcsOnAdd$layout() { + return EcsOnAdd$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnAdd + * } + */ + public static MemorySegment EcsOnAdd$segment() { + return EcsOnAdd$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnAdd + * } + */ + public static long EcsOnAdd() { + return EcsOnAdd$constants.SEGMENT.get(EcsOnAdd$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnAdd + * } + */ + public static void EcsOnAdd(long varValue) { + EcsOnAdd$constants.SEGMENT.set(EcsOnAdd$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnRemove$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnRemove").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnRemove + * } + */ + public static OfLong EcsOnRemove$layout() { + return EcsOnRemove$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnRemove + * } + */ + public static MemorySegment EcsOnRemove$segment() { + return EcsOnRemove$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnRemove + * } + */ + public static long EcsOnRemove() { + return EcsOnRemove$constants.SEGMENT.get(EcsOnRemove$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnRemove + * } + */ + public static void EcsOnRemove(long varValue) { + EcsOnRemove$constants.SEGMENT.set(EcsOnRemove$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnSet$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnSet").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnSet + * } + */ + public static OfLong EcsOnSet$layout() { + return EcsOnSet$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnSet + * } + */ + public static MemorySegment EcsOnSet$segment() { + return EcsOnSet$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnSet + * } + */ + public static long EcsOnSet() { + return EcsOnSet$constants.SEGMENT.get(EcsOnSet$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnSet + * } + */ + public static void EcsOnSet(long varValue) { + EcsOnSet$constants.SEGMENT.set(EcsOnSet$constants.LAYOUT, 0L, varValue); + } + + private static class EcsMonitor$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsMonitor").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsMonitor + * } + */ + public static OfLong EcsMonitor$layout() { + return EcsMonitor$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsMonitor + * } + */ + public static MemorySegment EcsMonitor$segment() { + return EcsMonitor$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsMonitor + * } + */ + public static long EcsMonitor() { + return EcsMonitor$constants.SEGMENT.get(EcsMonitor$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsMonitor + * } + */ + public static void EcsMonitor(long varValue) { + EcsMonitor$constants.SEGMENT.set(EcsMonitor$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnTableCreate$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableCreate").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableCreate + * } + */ + public static OfLong EcsOnTableCreate$layout() { + return EcsOnTableCreate$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableCreate + * } + */ + public static MemorySegment EcsOnTableCreate$segment() { + return EcsOnTableCreate$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableCreate + * } + */ + public static long EcsOnTableCreate() { + return EcsOnTableCreate$constants.SEGMENT.get(EcsOnTableCreate$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableCreate + * } + */ + public static void EcsOnTableCreate(long varValue) { + EcsOnTableCreate$constants.SEGMENT.set(EcsOnTableCreate$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnTableDelete$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableDelete").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableDelete + * } + */ + public static OfLong EcsOnTableDelete$layout() { + return EcsOnTableDelete$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableDelete + * } + */ + public static MemorySegment EcsOnTableDelete$segment() { + return EcsOnTableDelete$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableDelete + * } + */ + public static long EcsOnTableDelete() { + return EcsOnTableDelete$constants.SEGMENT.get(EcsOnTableDelete$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableDelete + * } + */ + public static void EcsOnTableDelete(long varValue) { + EcsOnTableDelete$constants.SEGMENT.set(EcsOnTableDelete$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnTableEmpty$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableEmpty").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableEmpty + * } + */ + public static OfLong EcsOnTableEmpty$layout() { + return EcsOnTableEmpty$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableEmpty + * } + */ + public static MemorySegment EcsOnTableEmpty$segment() { + return EcsOnTableEmpty$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableEmpty + * } + */ + public static long EcsOnTableEmpty() { + return EcsOnTableEmpty$constants.SEGMENT.get(EcsOnTableEmpty$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableEmpty + * } + */ + public static void EcsOnTableEmpty(long varValue) { + EcsOnTableEmpty$constants.SEGMENT.set(EcsOnTableEmpty$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnTableFill$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableFill").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableFill + * } + */ + public static OfLong EcsOnTableFill$layout() { + return EcsOnTableFill$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableFill + * } + */ + public static MemorySegment EcsOnTableFill$segment() { + return EcsOnTableFill$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableFill + * } + */ + public static long EcsOnTableFill() { + return EcsOnTableFill$constants.SEGMENT.get(EcsOnTableFill$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnTableFill + * } + */ + public static void EcsOnTableFill(long varValue) { + EcsOnTableFill$constants.SEGMENT.set(EcsOnTableFill$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnDelete$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnDelete").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDelete + * } + */ + public static OfLong EcsOnDelete$layout() { + return EcsOnDelete$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDelete + * } + */ + public static MemorySegment EcsOnDelete$segment() { + return EcsOnDelete$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDelete + * } + */ + public static long EcsOnDelete() { + return EcsOnDelete$constants.SEGMENT.get(EcsOnDelete$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDelete + * } + */ + public static void EcsOnDelete(long varValue) { + EcsOnDelete$constants.SEGMENT.set(EcsOnDelete$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnDeleteTarget$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnDeleteTarget").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDeleteTarget + * } + */ + public static OfLong EcsOnDeleteTarget$layout() { + return EcsOnDeleteTarget$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDeleteTarget + * } + */ + public static MemorySegment EcsOnDeleteTarget$segment() { + return EcsOnDeleteTarget$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDeleteTarget + * } + */ + public static long EcsOnDeleteTarget() { + return EcsOnDeleteTarget$constants.SEGMENT.get(EcsOnDeleteTarget$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnDeleteTarget + * } + */ + public static void EcsOnDeleteTarget(long varValue) { + EcsOnDeleteTarget$constants.SEGMENT.set(EcsOnDeleteTarget$constants.LAYOUT, 0L, varValue); + } + + private static class EcsRemove$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsRemove").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRemove + * } + */ + public static OfLong EcsRemove$layout() { + return EcsRemove$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRemove + * } + */ + public static MemorySegment EcsRemove$segment() { + return EcsRemove$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRemove + * } + */ + public static long EcsRemove() { + return EcsRemove$constants.SEGMENT.get(EcsRemove$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsRemove + * } + */ + public static void EcsRemove(long varValue) { + EcsRemove$constants.SEGMENT.set(EcsRemove$constants.LAYOUT, 0L, varValue); + } + + private static class EcsDelete$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDelete").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDelete + * } + */ + public static OfLong EcsDelete$layout() { + return EcsDelete$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDelete + * } + */ + public static MemorySegment EcsDelete$segment() { + return EcsDelete$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDelete + * } + */ + public static long EcsDelete() { + return EcsDelete$constants.SEGMENT.get(EcsDelete$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDelete + * } + */ + public static void EcsDelete(long varValue) { + EcsDelete$constants.SEGMENT.set(EcsDelete$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPanic$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPanic").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPanic + * } + */ + public static OfLong EcsPanic$layout() { + return EcsPanic$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPanic + * } + */ + public static MemorySegment EcsPanic$segment() { + return EcsPanic$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPanic + * } + */ + public static long EcsPanic() { + return EcsPanic$constants.SEGMENT.get(EcsPanic$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPanic + * } + */ + public static void EcsPanic(long varValue) { + EcsPanic$constants.SEGMENT.set(EcsPanic$constants.LAYOUT, 0L, varValue); + } + + private static class EcsSparse$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSparse").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSparse + * } + */ + public static OfLong EcsSparse$layout() { + return EcsSparse$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSparse + * } + */ + public static MemorySegment EcsSparse$segment() { + return EcsSparse$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSparse + * } + */ + public static long EcsSparse() { + return EcsSparse$constants.SEGMENT.get(EcsSparse$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsSparse + * } + */ + public static void EcsSparse(long varValue) { + EcsSparse$constants.SEGMENT.set(EcsSparse$constants.LAYOUT, 0L, varValue); + } + + private static class EcsUnion$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsUnion").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsUnion + * } + */ + public static OfLong EcsUnion$layout() { + return EcsUnion$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsUnion + * } + */ + public static MemorySegment EcsUnion$segment() { + return EcsUnion$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsUnion + * } + */ + public static long EcsUnion() { + return EcsUnion$constants.SEGMENT.get(EcsUnion$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsUnion + * } + */ + public static void EcsUnion(long varValue) { + EcsUnion$constants.SEGMENT.set(EcsUnion$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPredEq$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredEq").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredEq + * } + */ + public static OfLong EcsPredEq$layout() { + return EcsPredEq$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredEq + * } + */ + public static MemorySegment EcsPredEq$segment() { + return EcsPredEq$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredEq + * } + */ + public static long EcsPredEq() { + return EcsPredEq$constants.SEGMENT.get(EcsPredEq$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredEq + * } + */ + public static void EcsPredEq(long varValue) { + EcsPredEq$constants.SEGMENT.set(EcsPredEq$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPredMatch$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredMatch").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredMatch + * } + */ + public static OfLong EcsPredMatch$layout() { + return EcsPredMatch$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredMatch + * } + */ + public static MemorySegment EcsPredMatch$segment() { + return EcsPredMatch$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredMatch + * } + */ + public static long EcsPredMatch() { + return EcsPredMatch$constants.SEGMENT.get(EcsPredMatch$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredMatch + * } + */ + public static void EcsPredMatch(long varValue) { + EcsPredMatch$constants.SEGMENT.set(EcsPredMatch$constants.LAYOUT, 0L, varValue); + } + + private static class EcsPredLookup$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredLookup").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredLookup + * } + */ + public static OfLong EcsPredLookup$layout() { + return EcsPredLookup$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredLookup + * } + */ + public static MemorySegment EcsPredLookup$segment() { + return EcsPredLookup$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredLookup + * } + */ + public static long EcsPredLookup() { + return EcsPredLookup$constants.SEGMENT.get(EcsPredLookup$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsPredLookup + * } + */ + public static void EcsPredLookup(long varValue) { + EcsPredLookup$constants.SEGMENT.set(EcsPredLookup$constants.LAYOUT, 0L, varValue); + } + + private static class EcsScopeOpen$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsScopeOpen").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeOpen + * } + */ + public static OfLong EcsScopeOpen$layout() { + return EcsScopeOpen$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeOpen + * } + */ + public static MemorySegment EcsScopeOpen$segment() { + return EcsScopeOpen$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeOpen + * } + */ + public static long EcsScopeOpen() { + return EcsScopeOpen$constants.SEGMENT.get(EcsScopeOpen$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeOpen + * } + */ + public static void EcsScopeOpen(long varValue) { + EcsScopeOpen$constants.SEGMENT.set(EcsScopeOpen$constants.LAYOUT, 0L, varValue); + } + + private static class EcsScopeClose$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsScopeClose").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeClose + * } + */ + public static OfLong EcsScopeClose$layout() { + return EcsScopeClose$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeClose + * } + */ + public static MemorySegment EcsScopeClose$segment() { + return EcsScopeClose$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeClose + * } + */ + public static long EcsScopeClose() { + return EcsScopeClose$constants.SEGMENT.get(EcsScopeClose$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsScopeClose + * } + */ + public static void EcsScopeClose(long varValue) { + EcsScopeClose$constants.SEGMENT.set(EcsScopeClose$constants.LAYOUT, 0L, varValue); + } + + private static class EcsEmpty$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsEmpty").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsEmpty + * } + */ + public static OfLong EcsEmpty$layout() { + return EcsEmpty$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsEmpty + * } + */ + public static MemorySegment EcsEmpty$segment() { + return EcsEmpty$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsEmpty + * } + */ + public static long EcsEmpty() { + return EcsEmpty$constants.SEGMENT.get(EcsEmpty$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsEmpty + * } + */ + public static void EcsEmpty(long varValue) { + EcsEmpty$constants.SEGMENT.set(EcsEmpty$constants.LAYOUT, 0L, varValue); + } + + private static class FLECS_IDEcsPipelineID_$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("FLECS_IDEcsPipelineID_").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t FLECS_IDEcsPipelineID_ + * } + */ + public static OfLong FLECS_IDEcsPipelineID_$layout() { + return FLECS_IDEcsPipelineID_$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t FLECS_IDEcsPipelineID_ + * } + */ + public static MemorySegment FLECS_IDEcsPipelineID_$segment() { + return FLECS_IDEcsPipelineID_$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t FLECS_IDEcsPipelineID_ + * } + */ + public static long FLECS_IDEcsPipelineID_() { + return FLECS_IDEcsPipelineID_$constants.SEGMENT.get(FLECS_IDEcsPipelineID_$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t FLECS_IDEcsPipelineID_ + * } + */ + public static void FLECS_IDEcsPipelineID_(long varValue) { + FLECS_IDEcsPipelineID_$constants.SEGMENT.set(FLECS_IDEcsPipelineID_$constants.LAYOUT, 0L, varValue); + } + + private static class EcsOnStart$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnStart").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnStart + * } + */ + public static OfLong EcsOnStart$layout() { + return EcsOnStart$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnStart + * } + */ + public static MemorySegment EcsOnStart$segment() { + return EcsOnStart$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnStart + * } + */ + public static long EcsOnStart() { + return EcsOnStart$constants.SEGMENT.get(EcsOnStart$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsOnStart + * } + */ + public static void EcsOnStart(long varValue) { + EcsOnStart$constants.SEGMENT.set(EcsOnStart$constants.LAYOUT, 0L, varValue); + } + private static class EcsPreFrame$constants { public static final OfLong LAYOUT = flecs.C_LONG_LONG; public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPreFrame").reinterpret(LAYOUT.byteSize()); @@ -7459,7 +9304,8 @@ private static class ecs_get_path_w_sep_buf { flecs.C_LONG_LONG, flecs.C_POINTER, flecs.C_POINTER, - flecs.C_POINTER + flecs.C_POINTER, + flecs.C_BOOL ); public static final MemorySegment ADDR = flecs.findOrThrow("ecs_get_path_w_sep_buf"); @@ -7470,7 +9316,7 @@ private static class ecs_get_path_w_sep_buf { /** * Function descriptor for: * {@snippet lang=c : - * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf) + * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf, bool escape) * } */ public static FunctionDescriptor ecs_get_path_w_sep_buf$descriptor() { @@ -7480,7 +9326,7 @@ private static class ecs_get_path_w_sep_buf { /** * Downcall method handle for: * {@snippet lang=c : - * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf) + * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf, bool escape) * } */ public static MethodHandle ecs_get_path_w_sep_buf$handle() { @@ -7490,7 +9336,7 @@ private static class ecs_get_path_w_sep_buf { /** * Address for: * {@snippet lang=c : - * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf) + * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf, bool escape) * } */ public static MemorySegment ecs_get_path_w_sep_buf$address() { @@ -7499,16 +9345,16 @@ private static class ecs_get_path_w_sep_buf { /** * {@snippet lang=c : - * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf) + * void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf, bool escape) * } */ - public static void ecs_get_path_w_sep_buf(MemorySegment world, long parent, long child, MemorySegment sep, MemorySegment prefix, MemorySegment buf) { + public static void ecs_get_path_w_sep_buf(MemorySegment world, long parent, long child, MemorySegment sep, MemorySegment prefix, MemorySegment buf, boolean escape) { var mh$ = ecs_get_path_w_sep_buf.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ecs_get_path_w_sep_buf", world, parent, child, sep, prefix, buf); + traceDowncall("ecs_get_path_w_sep_buf", world, parent, child, sep, prefix, buf, escape); } - mh$.invokeExact(world, parent, child, sep, prefix, buf); + mh$.invokeExact(world, parent, child, sep, prefix, buf, escape); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } @@ -10688,6 +12534,64 @@ public static boolean ecs_query_is_true(MemorySegment query) { } } + private static class ecs_query_get_cache_query { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + flecs.C_POINTER, + flecs.C_POINTER + ); + + public static final MemorySegment ADDR = flecs.findOrThrow("ecs_query_get_cache_query"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const ecs_query_t *ecs_query_get_cache_query(const ecs_query_t *query) + * } + */ + public static FunctionDescriptor ecs_query_get_cache_query$descriptor() { + return ecs_query_get_cache_query.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const ecs_query_t *ecs_query_get_cache_query(const ecs_query_t *query) + * } + */ + public static MethodHandle ecs_query_get_cache_query$handle() { + return ecs_query_get_cache_query.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const ecs_query_t *ecs_query_get_cache_query(const ecs_query_t *query) + * } + */ + public static MemorySegment ecs_query_get_cache_query$address() { + return ecs_query_get_cache_query.ADDR; + } + + /** + * {@snippet lang=c : + * const ecs_query_t *ecs_query_get_cache_query(const ecs_query_t *query) + * } + */ + public static MemorySegment ecs_query_get_cache_query(MemorySegment query) { + var mh$ = ecs_query_get_cache_query.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ecs_query_get_cache_query", query); + } + return (MemorySegment)mh$.invokeExact(query); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class ecs_emit { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( flecs.C_POINTER, @@ -14064,6 +15968,64 @@ public static int ecs_search_relation(MemorySegment world, MemorySegment table, } } + private static class ecs_table_clear_entities { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + flecs.C_POINTER, + flecs.C_POINTER + ); + + public static final MemorySegment ADDR = flecs.findOrThrow("ecs_table_clear_entities"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void ecs_table_clear_entities(ecs_world_t *world, ecs_table_t *table) + * } + */ + public static FunctionDescriptor ecs_table_clear_entities$descriptor() { + return ecs_table_clear_entities.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void ecs_table_clear_entities(ecs_world_t *world, ecs_table_t *table) + * } + */ + public static MethodHandle ecs_table_clear_entities$handle() { + return ecs_table_clear_entities.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void ecs_table_clear_entities(ecs_world_t *world, ecs_table_t *table) + * } + */ + public static MemorySegment ecs_table_clear_entities$address() { + return ecs_table_clear_entities.ADDR; + } + + /** + * {@snippet lang=c : + * void ecs_table_clear_entities(ecs_world_t *world, ecs_table_t *table) + * } + */ + public static void ecs_table_clear_entities(MemorySegment world, MemorySegment table) { + var mh$ = ecs_table_clear_entities.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ecs_table_clear_entities", world, table); + } + mh$.invokeExact(world, table); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class ecs_value_init { public static final FunctionDescriptor DESC = FunctionDescriptor.of( flecs.C_INT, @@ -30413,6 +32375,51 @@ public static void FLECS_IDEcsDocDescriptionID_(long varValue) { FLECS_IDEcsDocDescriptionID_$constants.SEGMENT.set(FLECS_IDEcsDocDescriptionID_$constants.LAYOUT, 0L, varValue); } + private static class EcsDocUuid$constants { + public static final OfLong LAYOUT = flecs.C_LONG_LONG; + public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDocUuid").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDocUuid + * } + */ + public static OfLong EcsDocUuid$layout() { + return EcsDocUuid$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDocUuid + * } + */ + public static MemorySegment EcsDocUuid$segment() { + return EcsDocUuid$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDocUuid + * } + */ + public static long EcsDocUuid() { + return EcsDocUuid$constants.SEGMENT.get(EcsDocUuid$constants.LAYOUT, 0L); + } + + /** + * Setter for variable: + * {@snippet lang=c : + * extern const ecs_entity_t EcsDocUuid + * } + */ + public static void EcsDocUuid(long varValue) { + EcsDocUuid$constants.SEGMENT.set(EcsDocUuid$constants.LAYOUT, 0L, varValue); + } + private static class EcsDocBrief$constants { public static final OfLong LAYOUT = flecs.C_LONG_LONG; public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDocBrief").reinterpret(LAYOUT.byteSize()); @@ -30593,6 +32600,65 @@ public static void EcsDocColor(long varValue) { EcsDocColor$constants.SEGMENT.set(EcsDocColor$constants.LAYOUT, 0L, varValue); } + private static class ecs_doc_set_uuid { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + flecs.C_POINTER, + flecs.C_LONG_LONG, + flecs.C_POINTER + ); + + public static final MemorySegment ADDR = flecs.findOrThrow("ecs_doc_set_uuid"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void ecs_doc_set_uuid(ecs_world_t *world, ecs_entity_t entity, const char *uuid) + * } + */ + public static FunctionDescriptor ecs_doc_set_uuid$descriptor() { + return ecs_doc_set_uuid.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void ecs_doc_set_uuid(ecs_world_t *world, ecs_entity_t entity, const char *uuid) + * } + */ + public static MethodHandle ecs_doc_set_uuid$handle() { + return ecs_doc_set_uuid.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void ecs_doc_set_uuid(ecs_world_t *world, ecs_entity_t entity, const char *uuid) + * } + */ + public static MemorySegment ecs_doc_set_uuid$address() { + return ecs_doc_set_uuid.ADDR; + } + + /** + * {@snippet lang=c : + * void ecs_doc_set_uuid(ecs_world_t *world, ecs_entity_t entity, const char *uuid) + * } + */ + public static void ecs_doc_set_uuid(MemorySegment world, long entity, MemorySegment uuid) { + var mh$ = ecs_doc_set_uuid.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ecs_doc_set_uuid", world, entity, uuid); + } + mh$.invokeExact(world, entity, uuid); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class ecs_doc_set_name { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( flecs.C_POINTER, @@ -30888,6 +32954,65 @@ public static void ecs_doc_set_color(MemorySegment world, long entity, MemorySeg } } + private static class ecs_doc_get_uuid { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + flecs.C_POINTER, + flecs.C_POINTER, + flecs.C_LONG_LONG + ); + + public static final MemorySegment ADDR = flecs.findOrThrow("ecs_doc_get_uuid"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *ecs_doc_get_uuid(const ecs_world_t *world, ecs_entity_t entity) + * } + */ + public static FunctionDescriptor ecs_doc_get_uuid$descriptor() { + return ecs_doc_get_uuid.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *ecs_doc_get_uuid(const ecs_world_t *world, ecs_entity_t entity) + * } + */ + public static MethodHandle ecs_doc_get_uuid$handle() { + return ecs_doc_get_uuid.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *ecs_doc_get_uuid(const ecs_world_t *world, ecs_entity_t entity) + * } + */ + public static MemorySegment ecs_doc_get_uuid$address() { + return ecs_doc_get_uuid.ADDR; + } + + /** + * {@snippet lang=c : + * const char *ecs_doc_get_uuid(const ecs_world_t *world, ecs_entity_t entity) + * } + */ + public static MemorySegment ecs_doc_get_uuid(MemorySegment world, long entity) { + var mh$ = ecs_doc_get_uuid.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ecs_doc_get_uuid", world, entity); + } + return (MemorySegment)mh$.invokeExact(world, entity); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class ecs_doc_get_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( flecs.C_POINTER, @@ -45193,13 +47318,13 @@ public static void __UpdateCamera(MemorySegment it) { } /** * {@snippet lang=c : - * #define FLECS_VERSION "4.0.1" + * #define FLECS_VERSION "4.0.3" * } */ public static MemorySegment FLECS_VERSION() { class Holder { static final MemorySegment FLECS_VERSION - = flecs.LIBRARY_ARENA.allocateFrom("4.0.1"); + = flecs.LIBRARY_ARENA.allocateFrom("4.0.3"); } return Holder.FLECS_VERSION; } @@ -45797,419 +47922,5 @@ public static int EcsIterCacheSearch() { public static int EcsIterFixedInChangeComputed() { return EcsIterFixedInChangeComputed; } - private static final int EcsIterFixedInChanged = (int)131072L; - /** - * {@snippet lang=c : - * #define EcsIterFixedInChanged 131072 - * } - */ - public static int EcsIterFixedInChanged() { - return EcsIterFixedInChanged; - } - private static final int EcsIterSkip = (int)262144L; - /** - * {@snippet lang=c : - * #define EcsIterSkip 262144 - * } - */ - public static int EcsIterSkip() { - return EcsIterSkip; - } - private static final int EcsIterCppEach = (int)524288L; - /** - * {@snippet lang=c : - * #define EcsIterCppEach 524288 - * } - */ - public static int EcsIterCppEach() { - return EcsIterCppEach; - } - private static final int EcsIterTableOnly = (int)1048576L; - /** - * {@snippet lang=c : - * #define EcsIterTableOnly 1048576 - * } - */ - public static int EcsIterTableOnly() { - return EcsIterTableOnly; - } - private static final int EcsEventTableOnly = (int)1048576L; - /** - * {@snippet lang=c : - * #define EcsEventTableOnly 1048576 - * } - */ - public static int EcsEventTableOnly() { - return EcsEventTableOnly; - } - private static final int EcsEventNoOnSet = (int)65536L; - /** - * {@snippet lang=c : - * #define EcsEventNoOnSet 65536 - * } - */ - public static int EcsEventNoOnSet() { - return EcsEventNoOnSet; - } - private static final int EcsQueryMatchThis = (int)2048L; - /** - * {@snippet lang=c : - * #define EcsQueryMatchThis 2048 - * } - */ - public static int EcsQueryMatchThis() { - return EcsQueryMatchThis; - } - private static final int EcsQueryMatchOnlyThis = (int)4096L; - /** - * {@snippet lang=c : - * #define EcsQueryMatchOnlyThis 4096 - * } - */ - public static int EcsQueryMatchOnlyThis() { - return EcsQueryMatchOnlyThis; - } - private static final int EcsQueryMatchOnlySelf = (int)8192L; - /** - * {@snippet lang=c : - * #define EcsQueryMatchOnlySelf 8192 - * } - */ - public static int EcsQueryMatchOnlySelf() { - return EcsQueryMatchOnlySelf; - } - private static final int EcsQueryMatchWildcards = (int)16384L; - /** - * {@snippet lang=c : - * #define EcsQueryMatchWildcards 16384 - * } - */ - public static int EcsQueryMatchWildcards() { - return EcsQueryMatchWildcards; - } - private static final int EcsQueryMatchNothing = (int)32768L; - /** - * {@snippet lang=c : - * #define EcsQueryMatchNothing 32768 - * } - */ - public static int EcsQueryMatchNothing() { - return EcsQueryMatchNothing; - } - private static final int EcsQueryHasCondSet = (int)65536L; - /** - * {@snippet lang=c : - * #define EcsQueryHasCondSet 65536 - * } - */ - public static int EcsQueryHasCondSet() { - return EcsQueryHasCondSet; - } - private static final int EcsQueryHasPred = (int)131072L; - /** - * {@snippet lang=c : - * #define EcsQueryHasPred 131072 - * } - */ - public static int EcsQueryHasPred() { - return EcsQueryHasPred; - } - private static final int EcsQueryHasScopes = (int)262144L; - /** - * {@snippet lang=c : - * #define EcsQueryHasScopes 262144 - * } - */ - public static int EcsQueryHasScopes() { - return EcsQueryHasScopes; - } - private static final int EcsQueryHasRefs = (int)524288L; - /** - * {@snippet lang=c : - * #define EcsQueryHasRefs 524288 - * } - */ - public static int EcsQueryHasRefs() { - return EcsQueryHasRefs; - } - private static final int EcsQueryHasOutTerms = (int)1048576L; - /** - * {@snippet lang=c : - * #define EcsQueryHasOutTerms 1048576 - * } - */ - public static int EcsQueryHasOutTerms() { - return EcsQueryHasOutTerms; - } - private static final int EcsQueryHasNonThisOutTerms = (int)2097152L; - /** - * {@snippet lang=c : - * #define EcsQueryHasNonThisOutTerms 2097152 - * } - */ - public static int EcsQueryHasNonThisOutTerms() { - return EcsQueryHasNonThisOutTerms; - } - private static final int EcsQueryHasMonitor = (int)4194304L; - /** - * {@snippet lang=c : - * #define EcsQueryHasMonitor 4194304 - * } - */ - public static int EcsQueryHasMonitor() { - return EcsQueryHasMonitor; - } - private static final int EcsQueryIsTrivial = (int)8388608L; - /** - * {@snippet lang=c : - * #define EcsQueryIsTrivial 8388608 - * } - */ - public static int EcsQueryIsTrivial() { - return EcsQueryIsTrivial; - } - private static final int EcsQueryHasCacheable = (int)16777216L; - /** - * {@snippet lang=c : - * #define EcsQueryHasCacheable 16777216 - * } - */ - public static int EcsQueryHasCacheable() { - return EcsQueryHasCacheable; - } - private static final int EcsQueryIsCacheable = (int)33554432L; - /** - * {@snippet lang=c : - * #define EcsQueryIsCacheable 33554432 - * } - */ - public static int EcsQueryIsCacheable() { - return EcsQueryIsCacheable; - } - private static final int EcsQueryHasTableThisVar = (int)67108864L; - /** - * {@snippet lang=c : - * #define EcsQueryHasTableThisVar 67108864 - * } - */ - public static int EcsQueryHasTableThisVar() { - return EcsQueryHasTableThisVar; - } - private static final int EcsQueryCacheYieldEmptyTables = (int)134217728L; - /** - * {@snippet lang=c : - * #define EcsQueryCacheYieldEmptyTables 134217728 - * } - */ - public static int EcsQueryCacheYieldEmptyTables() { - return EcsQueryCacheYieldEmptyTables; - } - private static final int EcsTermMatchAny = (int)1L; - /** - * {@snippet lang=c : - * #define EcsTermMatchAny 1 - * } - */ - public static int EcsTermMatchAny() { - return EcsTermMatchAny; - } - private static final int EcsTermMatchAnySrc = (int)2L; - /** - * {@snippet lang=c : - * #define EcsTermMatchAnySrc 2 - * } - */ - public static int EcsTermMatchAnySrc() { - return EcsTermMatchAnySrc; - } - private static final int EcsTermTransitive = (int)4L; - /** - * {@snippet lang=c : - * #define EcsTermTransitive 4 - * } - */ - public static int EcsTermTransitive() { - return EcsTermTransitive; - } - private static final int EcsTermReflexive = (int)8L; - /** - * {@snippet lang=c : - * #define EcsTermReflexive 8 - * } - */ - public static int EcsTermReflexive() { - return EcsTermReflexive; - } - private static final int EcsTermIdInherited = (int)16L; - /** - * {@snippet lang=c : - * #define EcsTermIdInherited 16 - * } - */ - public static int EcsTermIdInherited() { - return EcsTermIdInherited; - } - private static final int EcsTermIsTrivial = (int)32L; - /** - * {@snippet lang=c : - * #define EcsTermIsTrivial 32 - * } - */ - public static int EcsTermIsTrivial() { - return EcsTermIsTrivial; - } - private static final int EcsTermIsCacheable = (int)128L; - /** - * {@snippet lang=c : - * #define EcsTermIsCacheable 128 - * } - */ - public static int EcsTermIsCacheable() { - return EcsTermIsCacheable; - } - private static final int EcsTermIsScope = (int)256L; - /** - * {@snippet lang=c : - * #define EcsTermIsScope 256 - * } - */ - public static int EcsTermIsScope() { - return EcsTermIsScope; - } - private static final int EcsTermIsMember = (int)512L; - /** - * {@snippet lang=c : - * #define EcsTermIsMember 512 - * } - */ - public static int EcsTermIsMember() { - return EcsTermIsMember; - } - private static final int EcsTermIsToggle = (int)1024L; - /** - * {@snippet lang=c : - * #define EcsTermIsToggle 1024 - * } - */ - public static int EcsTermIsToggle() { - return EcsTermIsToggle; - } - private static final int EcsTermKeepAlive = (int)2048L; - /** - * {@snippet lang=c : - * #define EcsTermKeepAlive 2048 - * } - */ - public static int EcsTermKeepAlive() { - return EcsTermKeepAlive; - } - private static final int EcsTermIsSparse = (int)4096L; - /** - * {@snippet lang=c : - * #define EcsTermIsSparse 4096 - * } - */ - public static int EcsTermIsSparse() { - return EcsTermIsSparse; - } - private static final int EcsTermIsUnion = (int)8192L; - /** - * {@snippet lang=c : - * #define EcsTermIsUnion 8192 - * } - */ - public static int EcsTermIsUnion() { - return EcsTermIsUnion; - } - private static final int EcsTermIsOr = (int)16384L; - /** - * {@snippet lang=c : - * #define EcsTermIsOr 16384 - * } - */ - public static int EcsTermIsOr() { - return EcsTermIsOr; - } - private static final int EcsObserverIsMulti = (int)2L; - /** - * {@snippet lang=c : - * #define EcsObserverIsMulti 2 - * } - */ - public static int EcsObserverIsMulti() { - return EcsObserverIsMulti; - } - private static final int EcsObserverIsMonitor = (int)4L; - /** - * {@snippet lang=c : - * #define EcsObserverIsMonitor 4 - * } - */ - public static int EcsObserverIsMonitor() { - return EcsObserverIsMonitor; - } - private static final int EcsObserverIsDisabled = (int)8L; - /** - * {@snippet lang=c : - * #define EcsObserverIsDisabled 8 - * } - */ - public static int EcsObserverIsDisabled() { - return EcsObserverIsDisabled; - } - private static final int EcsObserverIsParentDisabled = (int)16L; - /** - * {@snippet lang=c : - * #define EcsObserverIsParentDisabled 16 - * } - */ - public static int EcsObserverIsParentDisabled() { - return EcsObserverIsParentDisabled; - } - private static final int EcsObserverBypassQuery = (int)32L; - /** - * {@snippet lang=c : - * #define EcsObserverBypassQuery 32 - * } - */ - public static int EcsObserverBypassQuery() { - return EcsObserverBypassQuery; - } - private static final int EcsObserverYieldOnCreate = (int)64L; - /** - * {@snippet lang=c : - * #define EcsObserverYieldOnCreate 64 - * } - */ - public static int EcsObserverYieldOnCreate() { - return EcsObserverYieldOnCreate; - } - private static final int EcsObserverYieldOnDelete = (int)128L; - /** - * {@snippet lang=c : - * #define EcsObserverYieldOnDelete 128 - * } - */ - public static int EcsObserverYieldOnDelete() { - return EcsObserverYieldOnDelete; - } - private static final int EcsTableHasBuiltins = (int)2L; - /** - * {@snippet lang=c : - * #define EcsTableHasBuiltins 2 - * } - */ - public static int EcsTableHasBuiltins() { - return EcsTableHasBuiltins; - } - private static final int EcsTableIsPrefab = (int)4L; - /** - * {@snippet lang=c : - * #define EcsTableIsPrefab 4 - * } - */ - public static int EcsTableIsPrefab() { - return EcsTableIsPrefab; - } } diff --git a/src-java/org/vybe/flecs/flecs_2.java b/src-java/org/vybe/flecs/flecs_2.java index 4f5bf4b3..a06c8823 100644 --- a/src-java/org/vybe/flecs/flecs_2.java +++ b/src-java/org/vybe/flecs/flecs_2.java @@ -91,10 +91,10 @@ public static int FLECS_VERSION_MAJOR() { public static int FLECS_VERSION_MINOR() { return FLECS_VERSION_MINOR; } - private static final int FLECS_VERSION_PATCH = (int)1L; + private static final int FLECS_VERSION_PATCH = (int)3L; /** * {@snippet lang=c : - * #define FLECS_VERSION_PATCH 1 + * #define FLECS_VERSION_PATCH 3 * } */ public static int FLECS_VERSION_PATCH() { @@ -118,6 +118,15 @@ public static int FLECS_TERM_COUNT_MAX() { public static int ECS_CLANG_VERSION() { return ECS_CLANG_VERSION; } + private static final int __has_safe_buffers = (int)0L; + /** + * {@snippet lang=c : + * #define __has_safe_buffers 0 + * } + */ + public static int __has_safe_buffers() { + return __has_safe_buffers; + } private static final int __DARWIN_ONLY_64_BIT_INO_T = (int)1L; /** * {@snippet lang=c : @@ -262,6 +271,15 @@ public static int __has_ptrcheck() { public static int __GNUC_VA_LIST() { return __GNUC_VA_LIST; } + private static final int USE_CLANG_TYPES = (int)0L; + /** + * {@snippet lang=c : + * #define USE_CLANG_TYPES 0 + * } + */ + public static int USE_CLANG_TYPES() { + return USE_CLANG_TYPES; + } private static final int __PTHREAD_SIZE__ = (int)8176L; /** * {@snippet lang=c : @@ -946,6 +964,51 @@ public static int __MAC_14_1() { public static int __MAC_14_2() { return __MAC_14_2; } + private static final int __MAC_14_3 = (int)140300L; + /** + * {@snippet lang=c : + * #define __MAC_14_3 140300 + * } + */ + public static int __MAC_14_3() { + return __MAC_14_3; + } + private static final int __MAC_14_4 = (int)140400L; + /** + * {@snippet lang=c : + * #define __MAC_14_4 140400 + * } + */ + public static int __MAC_14_4() { + return __MAC_14_4; + } + private static final int __MAC_14_5 = (int)140500L; + /** + * {@snippet lang=c : + * #define __MAC_14_5 140500 + * } + */ + public static int __MAC_14_5() { + return __MAC_14_5; + } + private static final int __MAC_15_0 = (int)150000L; + /** + * {@snippet lang=c : + * #define __MAC_15_0 150000 + * } + */ + public static int __MAC_15_0() { + return __MAC_15_0; + } + private static final int __MAC_15_1 = (int)150100L; + /** + * {@snippet lang=c : + * #define __MAC_15_1 150100 + * } + */ + public static int __MAC_15_1() { + return __MAC_15_1; + } private static final int __IPHONE_2_0 = (int)20000L; /** * {@snippet lang=c : @@ -1513,6 +1576,24 @@ public static int __IPHONE_15_5() { public static int __IPHONE_15_6() { return __IPHONE_15_6; } + private static final int __IPHONE_15_7 = (int)150700L; + /** + * {@snippet lang=c : + * #define __IPHONE_15_7 150700 + * } + */ + public static int __IPHONE_15_7() { + return __IPHONE_15_7; + } + private static final int __IPHONE_15_8 = (int)150800L; + /** + * {@snippet lang=c : + * #define __IPHONE_15_8 150800 + * } + */ + public static int __IPHONE_15_8() { + return __IPHONE_15_8; + } private static final int __IPHONE_16_0 = (int)160000L; /** * {@snippet lang=c : @@ -1612,6 +1693,51 @@ public static int __IPHONE_17_1() { public static int __IPHONE_17_2() { return __IPHONE_17_2; } + private static final int __IPHONE_17_3 = (int)170300L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_3 170300 + * } + */ + public static int __IPHONE_17_3() { + return __IPHONE_17_3; + } + private static final int __IPHONE_17_4 = (int)170400L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_4 170400 + * } + */ + public static int __IPHONE_17_4() { + return __IPHONE_17_4; + } + private static final int __IPHONE_17_5 = (int)170500L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_5 170500 + * } + */ + public static int __IPHONE_17_5() { + return __IPHONE_17_5; + } + private static final int __IPHONE_18_0 = (int)180000L; + /** + * {@snippet lang=c : + * #define __IPHONE_18_0 180000 + * } + */ + public static int __IPHONE_18_0() { + return __IPHONE_18_0; + } + private static final int __IPHONE_18_1 = (int)180100L; + /** + * {@snippet lang=c : + * #define __IPHONE_18_1 180100 + * } + */ + public static int __IPHONE_18_1() { + return __IPHONE_18_1; + } private static final int __WATCHOS_1_0 = (int)10000L; /** * {@snippet lang=c : @@ -1909,6 +2035,15 @@ public static int __WATCHOS_8_6() { public static int __WATCHOS_8_7() { return __WATCHOS_8_7; } + private static final int __WATCHOS_8_8 = (int)80800L; + /** + * {@snippet lang=c : + * #define __WATCHOS_8_8 80800 + * } + */ + public static int __WATCHOS_8_8() { + return __WATCHOS_8_8; + } private static final int __WATCHOS_9_0 = (int)90000L; /** * {@snippet lang=c : @@ -1999,6 +2134,51 @@ public static int __WATCHOS_10_1() { public static int __WATCHOS_10_2() { return __WATCHOS_10_2; } + private static final int __WATCHOS_10_3 = (int)100300L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_3 100300 + * } + */ + public static int __WATCHOS_10_3() { + return __WATCHOS_10_3; + } + private static final int __WATCHOS_10_4 = (int)100400L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_4 100400 + * } + */ + public static int __WATCHOS_10_4() { + return __WATCHOS_10_4; + } + private static final int __WATCHOS_10_5 = (int)100500L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_5 100500 + * } + */ + public static int __WATCHOS_10_5() { + return __WATCHOS_10_5; + } + private static final int __WATCHOS_11_0 = (int)110000L; + /** + * {@snippet lang=c : + * #define __WATCHOS_11_0 110000 + * } + */ + public static int __WATCHOS_11_0() { + return __WATCHOS_11_0; + } + private static final int __WATCHOS_11_1 = (int)110100L; + /** + * {@snippet lang=c : + * #define __WATCHOS_11_1 110100 + * } + */ + public static int __WATCHOS_11_1() { + return __WATCHOS_11_1; + } private static final int __TVOS_9_0 = (int)90000L; /** * {@snippet lang=c : @@ -2404,6 +2584,51 @@ public static int __TVOS_17_1() { public static int __TVOS_17_2() { return __TVOS_17_2; } + private static final int __TVOS_17_3 = (int)170300L; + /** + * {@snippet lang=c : + * #define __TVOS_17_3 170300 + * } + */ + public static int __TVOS_17_3() { + return __TVOS_17_3; + } + private static final int __TVOS_17_4 = (int)170400L; + /** + * {@snippet lang=c : + * #define __TVOS_17_4 170400 + * } + */ + public static int __TVOS_17_4() { + return __TVOS_17_4; + } + private static final int __TVOS_17_5 = (int)170500L; + /** + * {@snippet lang=c : + * #define __TVOS_17_5 170500 + * } + */ + public static int __TVOS_17_5() { + return __TVOS_17_5; + } + private static final int __TVOS_18_0 = (int)180000L; + /** + * {@snippet lang=c : + * #define __TVOS_18_0 180000 + * } + */ + public static int __TVOS_18_0() { + return __TVOS_18_0; + } + private static final int __TVOS_18_1 = (int)180100L; + /** + * {@snippet lang=c : + * #define __TVOS_18_1 180100 + * } + */ + public static int __TVOS_18_1() { + return __TVOS_18_1; + } private static final int __BRIDGEOS_2_0 = (int)20000L; /** * {@snippet lang=c : @@ -2611,6 +2836,51 @@ public static int __BRIDGEOS_8_1() { public static int __BRIDGEOS_8_2() { return __BRIDGEOS_8_2; } + private static final int __BRIDGEOS_8_3 = (int)80300L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_3 80300 + * } + */ + public static int __BRIDGEOS_8_3() { + return __BRIDGEOS_8_3; + } + private static final int __BRIDGEOS_8_4 = (int)80400L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_4 80400 + * } + */ + public static int __BRIDGEOS_8_4() { + return __BRIDGEOS_8_4; + } + private static final int __BRIDGEOS_8_5 = (int)80500L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_5 80500 + * } + */ + public static int __BRIDGEOS_8_5() { + return __BRIDGEOS_8_5; + } + private static final int __BRIDGEOS_9_0 = (int)90000L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_9_0 90000 + * } + */ + public static int __BRIDGEOS_9_0() { + return __BRIDGEOS_9_0; + } + private static final int __BRIDGEOS_9_1 = (int)90100L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_9_1 90100 + * } + */ + public static int __BRIDGEOS_9_1() { + return __BRIDGEOS_9_1; + } private static final int __DRIVERKIT_19_0 = (int)190000L; /** * {@snippet lang=c : @@ -2701,6 +2971,51 @@ public static int __DRIVERKIT_23_1() { public static int __DRIVERKIT_23_2() { return __DRIVERKIT_23_2; } + private static final int __DRIVERKIT_23_3 = (int)230300L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_3 230300 + * } + */ + public static int __DRIVERKIT_23_3() { + return __DRIVERKIT_23_3; + } + private static final int __DRIVERKIT_23_4 = (int)230400L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_4 230400 + * } + */ + public static int __DRIVERKIT_23_4() { + return __DRIVERKIT_23_4; + } + private static final int __DRIVERKIT_23_5 = (int)230500L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_5 230500 + * } + */ + public static int __DRIVERKIT_23_5() { + return __DRIVERKIT_23_5; + } + private static final int __DRIVERKIT_24_0 = (int)240000L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_24_0 240000 + * } + */ + public static int __DRIVERKIT_24_0() { + return __DRIVERKIT_24_0; + } + private static final int __DRIVERKIT_24_1 = (int)240100L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_24_1 240100 + * } + */ + public static int __DRIVERKIT_24_1() { + return __DRIVERKIT_24_1; + } private static final int __VISIONOS_1_0 = (int)10000L; /** * {@snippet lang=c : @@ -2710,6 +3025,42 @@ public static int __DRIVERKIT_23_2() { public static int __VISIONOS_1_0() { return __VISIONOS_1_0; } + private static final int __VISIONOS_1_1 = (int)10100L; + /** + * {@snippet lang=c : + * #define __VISIONOS_1_1 10100 + * } + */ + public static int __VISIONOS_1_1() { + return __VISIONOS_1_1; + } + private static final int __VISIONOS_1_2 = (int)10200L; + /** + * {@snippet lang=c : + * #define __VISIONOS_1_2 10200 + * } + */ + public static int __VISIONOS_1_2() { + return __VISIONOS_1_2; + } + private static final int __VISIONOS_2_0 = (int)20000L; + /** + * {@snippet lang=c : + * #define __VISIONOS_2_0 20000 + * } + */ + public static int __VISIONOS_2_0() { + return __VISIONOS_2_0; + } + private static final int __VISIONOS_2_1 = (int)20100L; + /** + * {@snippet lang=c : + * #define __VISIONOS_2_1 20100 + * } + */ + public static int __VISIONOS_2_1() { + return __VISIONOS_2_1; + } private static final int __ENABLE_LEGACY_MAC_AVAILABILITY = (int)1L; /** * {@snippet lang=c : @@ -2719,6 +3070,15 @@ public static int __VISIONOS_1_0() { public static int __ENABLE_LEGACY_MAC_AVAILABILITY() { return __ENABLE_LEGACY_MAC_AVAILABILITY; } + private static final int USE_CLANG_STDDEF = (int)0L; + /** + * {@snippet lang=c : + * #define USE_CLANG_STDDEF 0 + * } + */ + public static int USE_CLANG_STDDEF() { + return USE_CLANG_STDDEF; + } private static final int _USE_FORTIFY_LEVEL = (int)2L; /** * {@snippet lang=c : @@ -3781,6 +4141,15 @@ public static int EQFULL() { public static int ELAST() { return ELAST; } + private static final int USE_CLANG_STDARG = (int)0L; + /** + * {@snippet lang=c : + * #define USE_CLANG_STDARG 0 + * } + */ + public static int USE_CLANG_STDARG() { + return USE_CLANG_STDARG; + } private static final int RENAME_SECLUDE = (int)1L; /** * {@snippet lang=c : @@ -15585,49 +15954,121 @@ public static int renameatx_np(int x0, MemorySegment x1, int x2, MemorySegment x throw new AssertionError("should not reach here", ex$); } } - /** - * {@snippet lang=c : - * typedef __darwin_off_t fpos_t - * } - */ - public static final OfLong fpos_t = flecs.C_LONG_LONG; - - private static class __stdinp$constants { - public static final AddressLayout LAYOUT = flecs.C_POINTER; - public static final MemorySegment SEGMENT = flecs.findOrThrow("__stdinp").reinterpret(LAYOUT.byteSize()); - } /** - * Layout for variable: + * Variadic invoker class for: * {@snippet lang=c : - * extern FILE *__stdinp + * int printf(const char *restrict, ...) * } */ - public static AddressLayout __stdinp$layout() { - return __stdinp$constants.LAYOUT; - } + public static class printf { + private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( + flecs.C_INT, + flecs.C_POINTER + ); + private static final MemorySegment ADDR = flecs.findOrThrow("printf"); - /** - * Segment for variable: - * {@snippet lang=c : - * extern FILE *__stdinp - * } - */ - public static MemorySegment __stdinp$segment() { - return __stdinp$constants.SEGMENT; - } + private final MethodHandle handle; + private final FunctionDescriptor descriptor; + private final MethodHandle spreader; - /** - * Getter for variable: - * {@snippet lang=c : - * extern FILE *__stdinp - * } - */ - public static MemorySegment __stdinp() { - return __stdinp$constants.SEGMENT.get(__stdinp$constants.LAYOUT, 0L); - } + private printf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { + this.handle = handle; + this.descriptor = descriptor; + this.spreader = spreader; + } - /** + /** + * Variadic invoker factory for: + * {@snippet lang=c : + * int printf(const char *restrict, ...) + * } + */ + public static printf makeInvoker(MemoryLayout... layouts) { + FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); + Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); + var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); + var spreader$ = mh$.asSpreader(Object[].class, layouts.length); + return new printf(mh$, desc$, spreader$); + } + + /** + * {@return the address} + */ + public static MemorySegment address() { + return ADDR; + } + + /** + * {@return the specialized method handle} + */ + public MethodHandle handle() { + return handle; + } + + /** + * {@return the specialized descriptor} + */ + public FunctionDescriptor descriptor() { + return descriptor; + } + + public int apply(MemorySegment x0, Object... x1) { + try { + if (TRACE_DOWNCALLS) { + traceDowncall("printf", x0, x1); + } + return (int)spreader.invokeExact(x0, x1); + } catch(IllegalArgumentException | ClassCastException ex$) { + throw ex$; // rethrow IAE from passing wrong number/type of args + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + } + /** + * {@snippet lang=c : + * typedef __darwin_off_t fpos_t + * } + */ + public static final OfLong fpos_t = flecs.C_LONG_LONG; + + private static class __stdinp$constants { + public static final AddressLayout LAYOUT = flecs.C_POINTER; + public static final MemorySegment SEGMENT = flecs.findOrThrow("__stdinp").reinterpret(LAYOUT.byteSize()); + } + + /** + * Layout for variable: + * {@snippet lang=c : + * extern FILE *__stdinp + * } + */ + public static AddressLayout __stdinp$layout() { + return __stdinp$constants.LAYOUT; + } + + /** + * Segment for variable: + * {@snippet lang=c : + * extern FILE *__stdinp + * } + */ + public static MemorySegment __stdinp$segment() { + return __stdinp$constants.SEGMENT; + } + + /** + * Getter for variable: + * {@snippet lang=c : + * extern FILE *__stdinp + * } + */ + public static MemorySegment __stdinp() { + return __stdinp$constants.SEGMENT.get(__stdinp$constants.LAYOUT, 0L); + } + + /** * Setter for variable: * {@snippet lang=c : * extern FILE *__stdinp @@ -17104,78 +17545,6 @@ public static void perror(MemorySegment x0) { } } - /** - * Variadic invoker class for: - * {@snippet lang=c : - * int printf(const char *restrict, ...) - * } - */ - public static class printf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - flecs.C_INT, - flecs.C_POINTER - ); - private static final MemorySegment ADDR = flecs.findOrThrow("printf"); - - private final MethodHandle handle; - private final FunctionDescriptor descriptor; - private final MethodHandle spreader; - - private printf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; - this.descriptor = descriptor; - this.spreader = spreader; - } - - /** - * Variadic invoker factory for: - * {@snippet lang=c : - * int printf(const char *restrict, ...) - * } - */ - public static printf makeInvoker(MemoryLayout... layouts) { - FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); - Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); - var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); - var spreader$ = mh$.asSpreader(Object[].class, layouts.length); - return new printf(mh$, desc$, spreader$); - } - - /** - * {@return the address} - */ - public static MemorySegment address() { - return ADDR; - } - - /** - * {@return the specialized method handle} - */ - public MethodHandle handle() { - return handle; - } - - /** - * {@return the specialized descriptor} - */ - public FunctionDescriptor descriptor() { - return descriptor; - } - - public int apply(MemorySegment x0, Object... x1) { - try { - if (TRACE_DOWNCALLS) { - traceDowncall("printf", x0, x1); - } - return (int)spreader.invokeExact(x0, x1); - } catch(IllegalArgumentException | ClassCastException ex$) { - throw ex$; // rethrow IAE from passing wrong number/type of args - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - } - private static class putc { public static final FunctionDescriptor DESC = FunctionDescriptor.of( flecs.C_INT, @@ -26281,1850 +26650,5 @@ public static long EcsWith() { public static void EcsWith(long varValue) { EcsWith$constants.SEGMENT.set(EcsWith$constants.LAYOUT, 0L, varValue); } - - private static class EcsOneOf$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOneOf").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOneOf - * } - */ - public static OfLong EcsOneOf$layout() { - return EcsOneOf$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOneOf - * } - */ - public static MemorySegment EcsOneOf$segment() { - return EcsOneOf$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOneOf - * } - */ - public static long EcsOneOf() { - return EcsOneOf$constants.SEGMENT.get(EcsOneOf$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOneOf - * } - */ - public static void EcsOneOf(long varValue) { - EcsOneOf$constants.SEGMENT.set(EcsOneOf$constants.LAYOUT, 0L, varValue); - } - - private static class EcsCanToggle$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsCanToggle").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsCanToggle - * } - */ - public static OfLong EcsCanToggle$layout() { - return EcsCanToggle$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsCanToggle - * } - */ - public static MemorySegment EcsCanToggle$segment() { - return EcsCanToggle$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsCanToggle - * } - */ - public static long EcsCanToggle() { - return EcsCanToggle$constants.SEGMENT.get(EcsCanToggle$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsCanToggle - * } - */ - public static void EcsCanToggle(long varValue) { - EcsCanToggle$constants.SEGMENT.set(EcsCanToggle$constants.LAYOUT, 0L, varValue); - } - - private static class EcsTrait$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsTrait").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTrait - * } - */ - public static OfLong EcsTrait$layout() { - return EcsTrait$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTrait - * } - */ - public static MemorySegment EcsTrait$segment() { - return EcsTrait$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTrait - * } - */ - public static long EcsTrait() { - return EcsTrait$constants.SEGMENT.get(EcsTrait$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTrait - * } - */ - public static void EcsTrait(long varValue) { - EcsTrait$constants.SEGMENT.set(EcsTrait$constants.LAYOUT, 0L, varValue); - } - - private static class EcsRelationship$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsRelationship").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRelationship - * } - */ - public static OfLong EcsRelationship$layout() { - return EcsRelationship$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRelationship - * } - */ - public static MemorySegment EcsRelationship$segment() { - return EcsRelationship$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRelationship - * } - */ - public static long EcsRelationship() { - return EcsRelationship$constants.SEGMENT.get(EcsRelationship$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRelationship - * } - */ - public static void EcsRelationship(long varValue) { - EcsRelationship$constants.SEGMENT.set(EcsRelationship$constants.LAYOUT, 0L, varValue); - } - - private static class EcsTarget$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsTarget").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTarget - * } - */ - public static OfLong EcsTarget$layout() { - return EcsTarget$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTarget - * } - */ - public static MemorySegment EcsTarget$segment() { - return EcsTarget$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTarget - * } - */ - public static long EcsTarget() { - return EcsTarget$constants.SEGMENT.get(EcsTarget$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsTarget - * } - */ - public static void EcsTarget(long varValue) { - EcsTarget$constants.SEGMENT.set(EcsTarget$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPairIsTag$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPairIsTag").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPairIsTag - * } - */ - public static OfLong EcsPairIsTag$layout() { - return EcsPairIsTag$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPairIsTag - * } - */ - public static MemorySegment EcsPairIsTag$segment() { - return EcsPairIsTag$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPairIsTag - * } - */ - public static long EcsPairIsTag() { - return EcsPairIsTag$constants.SEGMENT.get(EcsPairIsTag$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPairIsTag - * } - */ - public static void EcsPairIsTag(long varValue) { - EcsPairIsTag$constants.SEGMENT.set(EcsPairIsTag$constants.LAYOUT, 0L, varValue); - } - - private static class EcsName$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsName").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsName - * } - */ - public static OfLong EcsName$layout() { - return EcsName$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsName - * } - */ - public static MemorySegment EcsName$segment() { - return EcsName$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsName - * } - */ - public static long EcsName() { - return EcsName$constants.SEGMENT.get(EcsName$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsName - * } - */ - public static void EcsName(long varValue) { - EcsName$constants.SEGMENT.set(EcsName$constants.LAYOUT, 0L, varValue); - } - - private static class EcsSymbol$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSymbol").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSymbol - * } - */ - public static OfLong EcsSymbol$layout() { - return EcsSymbol$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSymbol - * } - */ - public static MemorySegment EcsSymbol$segment() { - return EcsSymbol$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSymbol - * } - */ - public static long EcsSymbol() { - return EcsSymbol$constants.SEGMENT.get(EcsSymbol$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSymbol - * } - */ - public static void EcsSymbol(long varValue) { - EcsSymbol$constants.SEGMENT.set(EcsSymbol$constants.LAYOUT, 0L, varValue); - } - - private static class EcsAlias$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsAlias").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsAlias - * } - */ - public static OfLong EcsAlias$layout() { - return EcsAlias$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsAlias - * } - */ - public static MemorySegment EcsAlias$segment() { - return EcsAlias$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsAlias - * } - */ - public static long EcsAlias() { - return EcsAlias$constants.SEGMENT.get(EcsAlias$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsAlias - * } - */ - public static void EcsAlias(long varValue) { - EcsAlias$constants.SEGMENT.set(EcsAlias$constants.LAYOUT, 0L, varValue); - } - - private static class EcsChildOf$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsChildOf").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsChildOf - * } - */ - public static OfLong EcsChildOf$layout() { - return EcsChildOf$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsChildOf - * } - */ - public static MemorySegment EcsChildOf$segment() { - return EcsChildOf$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsChildOf - * } - */ - public static long EcsChildOf() { - return EcsChildOf$constants.SEGMENT.get(EcsChildOf$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsChildOf - * } - */ - public static void EcsChildOf(long varValue) { - EcsChildOf$constants.SEGMENT.set(EcsChildOf$constants.LAYOUT, 0L, varValue); - } - - private static class EcsIsA$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsIsA").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsIsA - * } - */ - public static OfLong EcsIsA$layout() { - return EcsIsA$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsIsA - * } - */ - public static MemorySegment EcsIsA$segment() { - return EcsIsA$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsIsA - * } - */ - public static long EcsIsA() { - return EcsIsA$constants.SEGMENT.get(EcsIsA$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsIsA - * } - */ - public static void EcsIsA(long varValue) { - EcsIsA$constants.SEGMENT.set(EcsIsA$constants.LAYOUT, 0L, varValue); - } - - private static class EcsDependsOn$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDependsOn").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDependsOn - * } - */ - public static OfLong EcsDependsOn$layout() { - return EcsDependsOn$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDependsOn - * } - */ - public static MemorySegment EcsDependsOn$segment() { - return EcsDependsOn$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDependsOn - * } - */ - public static long EcsDependsOn() { - return EcsDependsOn$constants.SEGMENT.get(EcsDependsOn$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDependsOn - * } - */ - public static void EcsDependsOn(long varValue) { - EcsDependsOn$constants.SEGMENT.set(EcsDependsOn$constants.LAYOUT, 0L, varValue); - } - - private static class EcsSlotOf$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSlotOf").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSlotOf - * } - */ - public static OfLong EcsSlotOf$layout() { - return EcsSlotOf$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSlotOf - * } - */ - public static MemorySegment EcsSlotOf$segment() { - return EcsSlotOf$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSlotOf - * } - */ - public static long EcsSlotOf() { - return EcsSlotOf$constants.SEGMENT.get(EcsSlotOf$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSlotOf - * } - */ - public static void EcsSlotOf(long varValue) { - EcsSlotOf$constants.SEGMENT.set(EcsSlotOf$constants.LAYOUT, 0L, varValue); - } - - private static class EcsModule$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsModule").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsModule - * } - */ - public static OfLong EcsModule$layout() { - return EcsModule$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsModule - * } - */ - public static MemorySegment EcsModule$segment() { - return EcsModule$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsModule - * } - */ - public static long EcsModule() { - return EcsModule$constants.SEGMENT.get(EcsModule$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsModule - * } - */ - public static void EcsModule(long varValue) { - EcsModule$constants.SEGMENT.set(EcsModule$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPrivate$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPrivate").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrivate - * } - */ - public static OfLong EcsPrivate$layout() { - return EcsPrivate$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrivate - * } - */ - public static MemorySegment EcsPrivate$segment() { - return EcsPrivate$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrivate - * } - */ - public static long EcsPrivate() { - return EcsPrivate$constants.SEGMENT.get(EcsPrivate$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrivate - * } - */ - public static void EcsPrivate(long varValue) { - EcsPrivate$constants.SEGMENT.set(EcsPrivate$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPrefab$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPrefab").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrefab - * } - */ - public static OfLong EcsPrefab$layout() { - return EcsPrefab$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrefab - * } - */ - public static MemorySegment EcsPrefab$segment() { - return EcsPrefab$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrefab - * } - */ - public static long EcsPrefab() { - return EcsPrefab$constants.SEGMENT.get(EcsPrefab$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPrefab - * } - */ - public static void EcsPrefab(long varValue) { - EcsPrefab$constants.SEGMENT.set(EcsPrefab$constants.LAYOUT, 0L, varValue); - } - - private static class EcsDisabled$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDisabled").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDisabled - * } - */ - public static OfLong EcsDisabled$layout() { - return EcsDisabled$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDisabled - * } - */ - public static MemorySegment EcsDisabled$segment() { - return EcsDisabled$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDisabled - * } - */ - public static long EcsDisabled() { - return EcsDisabled$constants.SEGMENT.get(EcsDisabled$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDisabled - * } - */ - public static void EcsDisabled(long varValue) { - EcsDisabled$constants.SEGMENT.set(EcsDisabled$constants.LAYOUT, 0L, varValue); - } - - private static class EcsNotQueryable$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsNotQueryable").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsNotQueryable - * } - */ - public static OfLong EcsNotQueryable$layout() { - return EcsNotQueryable$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsNotQueryable - * } - */ - public static MemorySegment EcsNotQueryable$segment() { - return EcsNotQueryable$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsNotQueryable - * } - */ - public static long EcsNotQueryable() { - return EcsNotQueryable$constants.SEGMENT.get(EcsNotQueryable$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsNotQueryable - * } - */ - public static void EcsNotQueryable(long varValue) { - EcsNotQueryable$constants.SEGMENT.set(EcsNotQueryable$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnAdd$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnAdd").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnAdd - * } - */ - public static OfLong EcsOnAdd$layout() { - return EcsOnAdd$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnAdd - * } - */ - public static MemorySegment EcsOnAdd$segment() { - return EcsOnAdd$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnAdd - * } - */ - public static long EcsOnAdd() { - return EcsOnAdd$constants.SEGMENT.get(EcsOnAdd$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnAdd - * } - */ - public static void EcsOnAdd(long varValue) { - EcsOnAdd$constants.SEGMENT.set(EcsOnAdd$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnRemove$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnRemove").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnRemove - * } - */ - public static OfLong EcsOnRemove$layout() { - return EcsOnRemove$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnRemove - * } - */ - public static MemorySegment EcsOnRemove$segment() { - return EcsOnRemove$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnRemove - * } - */ - public static long EcsOnRemove() { - return EcsOnRemove$constants.SEGMENT.get(EcsOnRemove$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnRemove - * } - */ - public static void EcsOnRemove(long varValue) { - EcsOnRemove$constants.SEGMENT.set(EcsOnRemove$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnSet$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnSet").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnSet - * } - */ - public static OfLong EcsOnSet$layout() { - return EcsOnSet$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnSet - * } - */ - public static MemorySegment EcsOnSet$segment() { - return EcsOnSet$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnSet - * } - */ - public static long EcsOnSet() { - return EcsOnSet$constants.SEGMENT.get(EcsOnSet$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnSet - * } - */ - public static void EcsOnSet(long varValue) { - EcsOnSet$constants.SEGMENT.set(EcsOnSet$constants.LAYOUT, 0L, varValue); - } - - private static class EcsMonitor$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsMonitor").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsMonitor - * } - */ - public static OfLong EcsMonitor$layout() { - return EcsMonitor$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsMonitor - * } - */ - public static MemorySegment EcsMonitor$segment() { - return EcsMonitor$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsMonitor - * } - */ - public static long EcsMonitor() { - return EcsMonitor$constants.SEGMENT.get(EcsMonitor$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsMonitor - * } - */ - public static void EcsMonitor(long varValue) { - EcsMonitor$constants.SEGMENT.set(EcsMonitor$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnTableCreate$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableCreate").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableCreate - * } - */ - public static OfLong EcsOnTableCreate$layout() { - return EcsOnTableCreate$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableCreate - * } - */ - public static MemorySegment EcsOnTableCreate$segment() { - return EcsOnTableCreate$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableCreate - * } - */ - public static long EcsOnTableCreate() { - return EcsOnTableCreate$constants.SEGMENT.get(EcsOnTableCreate$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableCreate - * } - */ - public static void EcsOnTableCreate(long varValue) { - EcsOnTableCreate$constants.SEGMENT.set(EcsOnTableCreate$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnTableDelete$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableDelete").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableDelete - * } - */ - public static OfLong EcsOnTableDelete$layout() { - return EcsOnTableDelete$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableDelete - * } - */ - public static MemorySegment EcsOnTableDelete$segment() { - return EcsOnTableDelete$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableDelete - * } - */ - public static long EcsOnTableDelete() { - return EcsOnTableDelete$constants.SEGMENT.get(EcsOnTableDelete$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableDelete - * } - */ - public static void EcsOnTableDelete(long varValue) { - EcsOnTableDelete$constants.SEGMENT.set(EcsOnTableDelete$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnTableEmpty$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableEmpty").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableEmpty - * } - */ - public static OfLong EcsOnTableEmpty$layout() { - return EcsOnTableEmpty$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableEmpty - * } - */ - public static MemorySegment EcsOnTableEmpty$segment() { - return EcsOnTableEmpty$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableEmpty - * } - */ - public static long EcsOnTableEmpty() { - return EcsOnTableEmpty$constants.SEGMENT.get(EcsOnTableEmpty$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableEmpty - * } - */ - public static void EcsOnTableEmpty(long varValue) { - EcsOnTableEmpty$constants.SEGMENT.set(EcsOnTableEmpty$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnTableFill$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnTableFill").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableFill - * } - */ - public static OfLong EcsOnTableFill$layout() { - return EcsOnTableFill$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableFill - * } - */ - public static MemorySegment EcsOnTableFill$segment() { - return EcsOnTableFill$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableFill - * } - */ - public static long EcsOnTableFill() { - return EcsOnTableFill$constants.SEGMENT.get(EcsOnTableFill$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnTableFill - * } - */ - public static void EcsOnTableFill(long varValue) { - EcsOnTableFill$constants.SEGMENT.set(EcsOnTableFill$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnDelete$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnDelete").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDelete - * } - */ - public static OfLong EcsOnDelete$layout() { - return EcsOnDelete$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDelete - * } - */ - public static MemorySegment EcsOnDelete$segment() { - return EcsOnDelete$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDelete - * } - */ - public static long EcsOnDelete() { - return EcsOnDelete$constants.SEGMENT.get(EcsOnDelete$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDelete - * } - */ - public static void EcsOnDelete(long varValue) { - EcsOnDelete$constants.SEGMENT.set(EcsOnDelete$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnDeleteTarget$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnDeleteTarget").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDeleteTarget - * } - */ - public static OfLong EcsOnDeleteTarget$layout() { - return EcsOnDeleteTarget$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDeleteTarget - * } - */ - public static MemorySegment EcsOnDeleteTarget$segment() { - return EcsOnDeleteTarget$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDeleteTarget - * } - */ - public static long EcsOnDeleteTarget() { - return EcsOnDeleteTarget$constants.SEGMENT.get(EcsOnDeleteTarget$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnDeleteTarget - * } - */ - public static void EcsOnDeleteTarget(long varValue) { - EcsOnDeleteTarget$constants.SEGMENT.set(EcsOnDeleteTarget$constants.LAYOUT, 0L, varValue); - } - - private static class EcsRemove$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsRemove").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRemove - * } - */ - public static OfLong EcsRemove$layout() { - return EcsRemove$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRemove - * } - */ - public static MemorySegment EcsRemove$segment() { - return EcsRemove$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRemove - * } - */ - public static long EcsRemove() { - return EcsRemove$constants.SEGMENT.get(EcsRemove$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsRemove - * } - */ - public static void EcsRemove(long varValue) { - EcsRemove$constants.SEGMENT.set(EcsRemove$constants.LAYOUT, 0L, varValue); - } - - private static class EcsDelete$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsDelete").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDelete - * } - */ - public static OfLong EcsDelete$layout() { - return EcsDelete$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDelete - * } - */ - public static MemorySegment EcsDelete$segment() { - return EcsDelete$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDelete - * } - */ - public static long EcsDelete() { - return EcsDelete$constants.SEGMENT.get(EcsDelete$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsDelete - * } - */ - public static void EcsDelete(long varValue) { - EcsDelete$constants.SEGMENT.set(EcsDelete$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPanic$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPanic").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPanic - * } - */ - public static OfLong EcsPanic$layout() { - return EcsPanic$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPanic - * } - */ - public static MemorySegment EcsPanic$segment() { - return EcsPanic$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPanic - * } - */ - public static long EcsPanic() { - return EcsPanic$constants.SEGMENT.get(EcsPanic$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPanic - * } - */ - public static void EcsPanic(long varValue) { - EcsPanic$constants.SEGMENT.set(EcsPanic$constants.LAYOUT, 0L, varValue); - } - - private static class EcsSparse$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsSparse").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSparse - * } - */ - public static OfLong EcsSparse$layout() { - return EcsSparse$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSparse - * } - */ - public static MemorySegment EcsSparse$segment() { - return EcsSparse$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSparse - * } - */ - public static long EcsSparse() { - return EcsSparse$constants.SEGMENT.get(EcsSparse$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsSparse - * } - */ - public static void EcsSparse(long varValue) { - EcsSparse$constants.SEGMENT.set(EcsSparse$constants.LAYOUT, 0L, varValue); - } - - private static class EcsUnion$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsUnion").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsUnion - * } - */ - public static OfLong EcsUnion$layout() { - return EcsUnion$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsUnion - * } - */ - public static MemorySegment EcsUnion$segment() { - return EcsUnion$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsUnion - * } - */ - public static long EcsUnion() { - return EcsUnion$constants.SEGMENT.get(EcsUnion$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsUnion - * } - */ - public static void EcsUnion(long varValue) { - EcsUnion$constants.SEGMENT.set(EcsUnion$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPredEq$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredEq").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredEq - * } - */ - public static OfLong EcsPredEq$layout() { - return EcsPredEq$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredEq - * } - */ - public static MemorySegment EcsPredEq$segment() { - return EcsPredEq$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredEq - * } - */ - public static long EcsPredEq() { - return EcsPredEq$constants.SEGMENT.get(EcsPredEq$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredEq - * } - */ - public static void EcsPredEq(long varValue) { - EcsPredEq$constants.SEGMENT.set(EcsPredEq$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPredMatch$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredMatch").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredMatch - * } - */ - public static OfLong EcsPredMatch$layout() { - return EcsPredMatch$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredMatch - * } - */ - public static MemorySegment EcsPredMatch$segment() { - return EcsPredMatch$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredMatch - * } - */ - public static long EcsPredMatch() { - return EcsPredMatch$constants.SEGMENT.get(EcsPredMatch$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredMatch - * } - */ - public static void EcsPredMatch(long varValue) { - EcsPredMatch$constants.SEGMENT.set(EcsPredMatch$constants.LAYOUT, 0L, varValue); - } - - private static class EcsPredLookup$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsPredLookup").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredLookup - * } - */ - public static OfLong EcsPredLookup$layout() { - return EcsPredLookup$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredLookup - * } - */ - public static MemorySegment EcsPredLookup$segment() { - return EcsPredLookup$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredLookup - * } - */ - public static long EcsPredLookup() { - return EcsPredLookup$constants.SEGMENT.get(EcsPredLookup$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsPredLookup - * } - */ - public static void EcsPredLookup(long varValue) { - EcsPredLookup$constants.SEGMENT.set(EcsPredLookup$constants.LAYOUT, 0L, varValue); - } - - private static class EcsScopeOpen$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsScopeOpen").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeOpen - * } - */ - public static OfLong EcsScopeOpen$layout() { - return EcsScopeOpen$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeOpen - * } - */ - public static MemorySegment EcsScopeOpen$segment() { - return EcsScopeOpen$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeOpen - * } - */ - public static long EcsScopeOpen() { - return EcsScopeOpen$constants.SEGMENT.get(EcsScopeOpen$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeOpen - * } - */ - public static void EcsScopeOpen(long varValue) { - EcsScopeOpen$constants.SEGMENT.set(EcsScopeOpen$constants.LAYOUT, 0L, varValue); - } - - private static class EcsScopeClose$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsScopeClose").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeClose - * } - */ - public static OfLong EcsScopeClose$layout() { - return EcsScopeClose$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeClose - * } - */ - public static MemorySegment EcsScopeClose$segment() { - return EcsScopeClose$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeClose - * } - */ - public static long EcsScopeClose() { - return EcsScopeClose$constants.SEGMENT.get(EcsScopeClose$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsScopeClose - * } - */ - public static void EcsScopeClose(long varValue) { - EcsScopeClose$constants.SEGMENT.set(EcsScopeClose$constants.LAYOUT, 0L, varValue); - } - - private static class EcsEmpty$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsEmpty").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsEmpty - * } - */ - public static OfLong EcsEmpty$layout() { - return EcsEmpty$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsEmpty - * } - */ - public static MemorySegment EcsEmpty$segment() { - return EcsEmpty$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsEmpty - * } - */ - public static long EcsEmpty() { - return EcsEmpty$constants.SEGMENT.get(EcsEmpty$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsEmpty - * } - */ - public static void EcsEmpty(long varValue) { - EcsEmpty$constants.SEGMENT.set(EcsEmpty$constants.LAYOUT, 0L, varValue); - } - - private static class FLECS_IDEcsPipelineID_$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("FLECS_IDEcsPipelineID_").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t FLECS_IDEcsPipelineID_ - * } - */ - public static OfLong FLECS_IDEcsPipelineID_$layout() { - return FLECS_IDEcsPipelineID_$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t FLECS_IDEcsPipelineID_ - * } - */ - public static MemorySegment FLECS_IDEcsPipelineID_$segment() { - return FLECS_IDEcsPipelineID_$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t FLECS_IDEcsPipelineID_ - * } - */ - public static long FLECS_IDEcsPipelineID_() { - return FLECS_IDEcsPipelineID_$constants.SEGMENT.get(FLECS_IDEcsPipelineID_$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t FLECS_IDEcsPipelineID_ - * } - */ - public static void FLECS_IDEcsPipelineID_(long varValue) { - FLECS_IDEcsPipelineID_$constants.SEGMENT.set(FLECS_IDEcsPipelineID_$constants.LAYOUT, 0L, varValue); - } - - private static class EcsOnStart$constants { - public static final OfLong LAYOUT = flecs.C_LONG_LONG; - public static final MemorySegment SEGMENT = flecs.findOrThrow("EcsOnStart").reinterpret(LAYOUT.byteSize()); - } - - /** - * Layout for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnStart - * } - */ - public static OfLong EcsOnStart$layout() { - return EcsOnStart$constants.LAYOUT; - } - - /** - * Segment for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnStart - * } - */ - public static MemorySegment EcsOnStart$segment() { - return EcsOnStart$constants.SEGMENT; - } - - /** - * Getter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnStart - * } - */ - public static long EcsOnStart() { - return EcsOnStart$constants.SEGMENT.get(EcsOnStart$constants.LAYOUT, 0L); - } - - /** - * Setter for variable: - * {@snippet lang=c : - * extern const ecs_entity_t EcsOnStart - * } - */ - public static void EcsOnStart(long varValue) { - EcsOnStart$constants.SEGMENT.set(EcsOnStart$constants.LAYOUT, 0L, varValue); - } } diff --git a/src-java/org/vybe/flecs/flecs_hashmap_iter_t.java b/src-java/org/vybe/flecs/flecs_hashmap_iter_t.java index 3af918fc..26eb14ef 100644 --- a/src-java/org/vybe/flecs/flecs_hashmap_iter_t.java +++ b/src-java/org/vybe/flecs/flecs_hashmap_iter_t.java @@ -32,7 +32,7 @@ public class flecs_hashmap_iter_t { flecs.C_POINTER.withName("bucket"), flecs.C_INT.withName("index"), MemoryLayout.paddingLayout(4) - ).withName("$anon$4003:9"); + ).withName("$anon$4008:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/flecs/flecs_hashmap_result_t.java b/src-java/org/vybe/flecs/flecs_hashmap_result_t.java index 6a510e2c..92440f82 100644 --- a/src-java/org/vybe/flecs/flecs_hashmap_result_t.java +++ b/src-java/org/vybe/flecs/flecs_hashmap_result_t.java @@ -31,7 +31,7 @@ public class flecs_hashmap_result_t { flecs.C_POINTER.withName("key"), flecs.C_POINTER.withName("value"), flecs.C_LONG_LONG.withName("hash") - ).withName("$anon$4009:9"); + ).withName("$anon$4014:9"); /** * The layout of this struct diff --git a/src-java/org/vybe/jolt/_OSUnalignedU16.java b/src-java/org/vybe/jolt/_OSUnalignedU16.java deleted file mode 100644 index e15db4a7..00000000 --- a/src-java/org/vybe/jolt/_OSUnalignedU16.java +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by jextract - -package org.vybe.jolt; - -import java.lang.invoke.*; -import java.lang.foreign.*; -import java.nio.ByteOrder; -import java.util.*; -import java.util.function.*; -import java.util.stream.*; - -import static java.lang.foreign.ValueLayout.*; -import static java.lang.foreign.MemoryLayout.PathElement.*; - -/** - * {@snippet lang=c : - * struct _OSUnalignedU16 { - * volatile uint16_t __val; - * } - * } - */ -public class _OSUnalignedU16 { - - _OSUnalignedU16() { - // Should not be called directly - } - - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - jolt.align(jolt.C_SHORT, 1).withName("__val") - ).withName("_OSUnalignedU16"); - - /** - * The layout of this struct - */ - public static final GroupLayout layout() { - return $LAYOUT; - } - - private static final OfShort __val$LAYOUT = (OfShort)$LAYOUT.select(groupElement("__val")); - - /** - * Layout for field: - * {@snippet lang=c : - * volatile uint16_t __val - * } - */ - public static final OfShort __val$layout() { - return __val$LAYOUT; - } - - private static final long __val$OFFSET = 0; - - /** - * Offset for field: - * {@snippet lang=c : - * volatile uint16_t __val - * } - */ - public static final long __val$offset() { - return __val$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * volatile uint16_t __val - * } - */ - public static short __val(MemorySegment struct) { - return struct.get(__val$LAYOUT, __val$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * volatile uint16_t __val - * } - */ - public static void __val(MemorySegment struct, short fieldValue) { - struct.set(__val$LAYOUT, __val$OFFSET, fieldValue); - } - - /** - * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}. - * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()} - */ - public static MemorySegment asSlice(MemorySegment array, long index) { - return array.asSlice(layout().byteSize() * index); - } - - /** - * The size (in bytes) of this struct - */ - public static long sizeof() { return layout().byteSize(); } - - /** - * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} - */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } - - /** - * Allocate an array of size {@code elementCount} using {@code allocator}. - * The returned segment has size {@code elementCount * layout().byteSize()}. - */ - public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) { - return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) { - return reinterpret(addr, 1, arena, cleanup); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code elementCount * layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) { - return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); - } -} - diff --git a/src-java/org/vybe/jolt/_OSUnalignedU32.java b/src-java/org/vybe/jolt/_OSUnalignedU32.java deleted file mode 100644 index 7380a6ed..00000000 --- a/src-java/org/vybe/jolt/_OSUnalignedU32.java +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by jextract - -package org.vybe.jolt; - -import java.lang.invoke.*; -import java.lang.foreign.*; -import java.nio.ByteOrder; -import java.util.*; -import java.util.function.*; -import java.util.stream.*; - -import static java.lang.foreign.ValueLayout.*; -import static java.lang.foreign.MemoryLayout.PathElement.*; - -/** - * {@snippet lang=c : - * struct _OSUnalignedU32 { - * volatile uint32_t __val; - * } - * } - */ -public class _OSUnalignedU32 { - - _OSUnalignedU32() { - // Should not be called directly - } - - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - jolt.align(jolt.C_INT, 1).withName("__val") - ).withName("_OSUnalignedU32"); - - /** - * The layout of this struct - */ - public static final GroupLayout layout() { - return $LAYOUT; - } - - private static final OfInt __val$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__val")); - - /** - * Layout for field: - * {@snippet lang=c : - * volatile uint32_t __val - * } - */ - public static final OfInt __val$layout() { - return __val$LAYOUT; - } - - private static final long __val$OFFSET = 0; - - /** - * Offset for field: - * {@snippet lang=c : - * volatile uint32_t __val - * } - */ - public static final long __val$offset() { - return __val$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * volatile uint32_t __val - * } - */ - public static int __val(MemorySegment struct) { - return struct.get(__val$LAYOUT, __val$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * volatile uint32_t __val - * } - */ - public static void __val(MemorySegment struct, int fieldValue) { - struct.set(__val$LAYOUT, __val$OFFSET, fieldValue); - } - - /** - * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}. - * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()} - */ - public static MemorySegment asSlice(MemorySegment array, long index) { - return array.asSlice(layout().byteSize() * index); - } - - /** - * The size (in bytes) of this struct - */ - public static long sizeof() { return layout().byteSize(); } - - /** - * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} - */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } - - /** - * Allocate an array of size {@code elementCount} using {@code allocator}. - * The returned segment has size {@code elementCount * layout().byteSize()}. - */ - public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) { - return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) { - return reinterpret(addr, 1, arena, cleanup); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code elementCount * layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) { - return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); - } -} - diff --git a/src-java/org/vybe/jolt/_OSUnalignedU64.java b/src-java/org/vybe/jolt/__darwin_arm_exception_state64_v2.java similarity index 59% rename from src-java/org/vybe/jolt/_OSUnalignedU64.java rename to src-java/org/vybe/jolt/__darwin_arm_exception_state64_v2.java index 08990ba7..3c90618a 100644 --- a/src-java/org/vybe/jolt/_OSUnalignedU64.java +++ b/src-java/org/vybe/jolt/__darwin_arm_exception_state64_v2.java @@ -14,20 +14,22 @@ /** * {@snippet lang=c : - * struct _OSUnalignedU64 { - * volatile uint64_t __val; + * struct __darwin_arm_exception_state64_v2 { + * __uint64_t __far; + * __uint64_t __esr; * } * } */ -public class _OSUnalignedU64 { +public class __darwin_arm_exception_state64_v2 { - _OSUnalignedU64() { + __darwin_arm_exception_state64_v2() { // Should not be called directly } private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - jolt.align(jolt.C_LONG_LONG, 1).withName("__val") - ).withName("_OSUnalignedU64"); + jolt.C_LONG_LONG.withName("__far"), + jolt.C_LONG_LONG.withName("__esr") + ).withName("__darwin_arm_exception_state64_v2"); /** * The layout of this struct @@ -36,48 +38,92 @@ public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong __val$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__val")); + private static final OfLong __far$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__far")); /** * Layout for field: * {@snippet lang=c : - * volatile uint64_t __val + * __uint64_t __far * } */ - public static final OfLong __val$layout() { - return __val$LAYOUT; + public static final OfLong __far$layout() { + return __far$LAYOUT; } - private static final long __val$OFFSET = 0; + private static final long __far$OFFSET = 0; /** * Offset for field: * {@snippet lang=c : - * volatile uint64_t __val + * __uint64_t __far * } */ - public static final long __val$offset() { - return __val$OFFSET; + public static final long __far$offset() { + return __far$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * volatile uint64_t __val + * __uint64_t __far * } */ - public static long __val(MemorySegment struct) { - return struct.get(__val$LAYOUT, __val$OFFSET); + public static long __far(MemorySegment struct) { + return struct.get(__far$LAYOUT, __far$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * volatile uint64_t __val + * __uint64_t __far * } */ - public static void __val(MemorySegment struct, long fieldValue) { - struct.set(__val$LAYOUT, __val$OFFSET, fieldValue); + public static void __far(MemorySegment struct, long fieldValue) { + struct.set(__far$LAYOUT, __far$OFFSET, fieldValue); + } + + private static final OfLong __esr$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__esr")); + + /** + * Layout for field: + * {@snippet lang=c : + * __uint64_t __esr + * } + */ + public static final OfLong __esr$layout() { + return __esr$LAYOUT; + } + + private static final long __esr$OFFSET = 8; + + /** + * Offset for field: + * {@snippet lang=c : + * __uint64_t __esr + * } + */ + public static final long __esr$offset() { + return __esr$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * __uint64_t __esr + * } + */ + public static long __esr(MemorySegment struct) { + return struct.get(__esr$LAYOUT, __esr$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * __uint64_t __esr + * } + */ + public static void __esr(MemorySegment struct, long fieldValue) { + struct.set(__esr$LAYOUT, __esr$OFFSET, fieldValue); } /** diff --git a/src-java/org/vybe/jolt/__mbstate_t.java b/src-java/org/vybe/jolt/__mbstate_t.java index 2ef6e430..5c9fe4bd 100644 --- a/src-java/org/vybe/jolt/__mbstate_t.java +++ b/src-java/org/vybe/jolt/__mbstate_t.java @@ -29,7 +29,7 @@ public class __mbstate_t { private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( MemoryLayout.sequenceLayout(128, jolt.C_CHAR).withName("__mbstate8"), jolt.C_LONG_LONG.withName("_mbstateL") - ).withName("$anon$54:9"); + ).withName("$anon$67:9"); /** * The layout of this union diff --git a/src-java/org/vybe/jolt/at_quick_exit$x0.java b/src-java/org/vybe/jolt/at_quick_exit$x0.java new file mode 100644 index 00000000..691c939f --- /dev/null +++ b/src-java/org/vybe/jolt/at_quick_exit$x0.java @@ -0,0 +1,65 @@ +// Generated by jextract + +package org.vybe.jolt; + +import java.lang.invoke.*; +import java.lang.foreign.*; +import java.nio.ByteOrder; +import java.util.*; +import java.util.function.*; +import java.util.stream.*; + +import static java.lang.foreign.ValueLayout.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; + +/** + * {@snippet lang=c : + * void (*)(void) + * } + */ +public class at_quick_exit$x0 { + + at_quick_exit$x0() { + // Should not be called directly + } + + /** + * The function pointer signature, expressed as a functional interface + */ + public interface Function { + void apply(); + } + + private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(); + + /** + * The descriptor of this function pointer + */ + public static FunctionDescriptor descriptor() { + return $DESC; + } + + private static final MethodHandle UP$MH = jolt.upcallHandle(at_quick_exit$x0.Function.class, "apply", $DESC); + + /** + * Allocates a new upcall stub, whose implementation is defined by {@code fi}. + * The lifetime of the returned segment is managed by {@code arena} + */ + public static MemorySegment allocate(at_quick_exit$x0.Function fi, Arena arena) { + return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); + } + + private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC); + + /** + * Invoke the upcall stub {@code funcPtr}, with given parameters + */ + public static void invoke(MemorySegment funcPtr) { + try { + DOWN$MH.invokeExact(funcPtr); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } +} + diff --git a/src-java/org/vybe/jolt/jolt.java b/src-java/org/vybe/jolt/jolt.java index a0c68b42..350f9ed1 100644 --- a/src-java/org/vybe/jolt/jolt.java +++ b/src-java/org/vybe/jolt/jolt.java @@ -18,6 +18,2459 @@ public class jolt extends jolt_1 { // Should not be called directly } + private static class JPC_SphereShapeSettings_SetRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_SphereShapeSettings_SetRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) + * } + */ + public static FunctionDescriptor JPC_SphereShapeSettings_SetRadius$descriptor() { + return JPC_SphereShapeSettings_SetRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) + * } + */ + public static MethodHandle JPC_SphereShapeSettings_SetRadius$handle() { + return JPC_SphereShapeSettings_SetRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) + * } + */ + public static MemorySegment JPC_SphereShapeSettings_SetRadius$address() { + return JPC_SphereShapeSettings_SetRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) + * } + */ + public static void JPC_SphereShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { + var mh$ = JPC_SphereShapeSettings_SetRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_SphereShapeSettings_SetRadius", in_settings, in_radius); + } + mh$.invokeExact(in_settings, in_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TriangleShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static FunctionDescriptor JPC_TriangleShapeSettings_Create$descriptor() { + return JPC_TriangleShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static MethodHandle JPC_TriangleShapeSettings_Create$handle() { + return JPC_TriangleShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_Create$address() { + return JPC_TriangleShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_Create(MemorySegment in_v1, MemorySegment in_v2, MemorySegment in_v3) { + var mh$ = JPC_TriangleShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TriangleShapeSettings_Create", in_v1, in_v2, in_v3); + } + return (MemorySegment)mh$.invokeExact(in_v1, in_v2, in_v3); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TriangleShapeSettings_SetVertices { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_SetVertices"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static FunctionDescriptor JPC_TriangleShapeSettings_SetVertices$descriptor() { + return JPC_TriangleShapeSettings_SetVertices.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static MethodHandle JPC_TriangleShapeSettings_SetVertices$handle() { + return JPC_TriangleShapeSettings_SetVertices.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_SetVertices$address() { + return JPC_TriangleShapeSettings_SetVertices.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) + * } + */ + public static void JPC_TriangleShapeSettings_SetVertices(MemorySegment in_settings, MemorySegment in_v1, MemorySegment in_v2, MemorySegment in_v3) { + var mh$ = JPC_TriangleShapeSettings_SetVertices.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TriangleShapeSettings_SetVertices", in_settings, in_v1, in_v2, in_v3); + } + mh$.invokeExact(in_settings, in_v1, in_v2, in_v3); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TriangleShapeSettings_GetVertices { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_GetVertices"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) + * } + */ + public static FunctionDescriptor JPC_TriangleShapeSettings_GetVertices$descriptor() { + return JPC_TriangleShapeSettings_GetVertices.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) + * } + */ + public static MethodHandle JPC_TriangleShapeSettings_GetVertices$handle() { + return JPC_TriangleShapeSettings_GetVertices.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_GetVertices$address() { + return JPC_TriangleShapeSettings_GetVertices.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) + * } + */ + public static void JPC_TriangleShapeSettings_GetVertices(MemorySegment in_settings, MemorySegment out_v1, MemorySegment out_v2, MemorySegment out_v3) { + var mh$ = JPC_TriangleShapeSettings_GetVertices.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TriangleShapeSettings_GetVertices", in_settings, out_v1, out_v2, out_v3); + } + mh$.invokeExact(in_settings, out_v1, out_v2, out_v3); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TriangleShapeSettings_GetConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_GetConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_TriangleShapeSettings_GetConvexRadius$descriptor() { + return JPC_TriangleShapeSettings_GetConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_TriangleShapeSettings_GetConvexRadius$handle() { + return JPC_TriangleShapeSettings_GetConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_GetConvexRadius$address() { + return JPC_TriangleShapeSettings_GetConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) + * } + */ + public static float JPC_TriangleShapeSettings_GetConvexRadius(MemorySegment in_settings) { + var mh$ = JPC_TriangleShapeSettings_GetConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TriangleShapeSettings_GetConvexRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TriangleShapeSettings_SetConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_SetConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static FunctionDescriptor JPC_TriangleShapeSettings_SetConvexRadius$descriptor() { + return JPC_TriangleShapeSettings_SetConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static MethodHandle JPC_TriangleShapeSettings_SetConvexRadius$handle() { + return JPC_TriangleShapeSettings_SetConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static MemorySegment JPC_TriangleShapeSettings_SetConvexRadius$address() { + return JPC_TriangleShapeSettings_SetConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static void JPC_TriangleShapeSettings_SetConvexRadius(MemorySegment in_settings, float in_convex_radius) { + var mh$ = JPC_TriangleShapeSettings_SetConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TriangleShapeSettings_SetConvexRadius", in_settings, in_convex_radius); + } + mh$.invokeExact(in_settings, in_convex_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CapsuleShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_FLOAT, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) + * } + */ + public static FunctionDescriptor JPC_CapsuleShapeSettings_Create$descriptor() { + return JPC_CapsuleShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) + * } + */ + public static MethodHandle JPC_CapsuleShapeSettings_Create$handle() { + return JPC_CapsuleShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_Create$address() { + return JPC_CapsuleShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) { + var mh$ = JPC_CapsuleShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CapsuleShapeSettings_Create", in_half_height_of_cylinder, in_radius); + } + return (MemorySegment)mh$.invokeExact(in_half_height_of_cylinder, in_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CapsuleShapeSettings_GetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_GetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_CapsuleShapeSettings_GetHalfHeight$descriptor() { + return JPC_CapsuleShapeSettings_GetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_CapsuleShapeSettings_GetHalfHeight$handle() { + return JPC_CapsuleShapeSettings_GetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_GetHalfHeight$address() { + return JPC_CapsuleShapeSettings_GetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static float JPC_CapsuleShapeSettings_GetHalfHeight(MemorySegment in_settings) { + var mh$ = JPC_CapsuleShapeSettings_GetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CapsuleShapeSettings_GetHalfHeight", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CapsuleShapeSettings_SetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_SetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) + * } + */ + public static FunctionDescriptor JPC_CapsuleShapeSettings_SetHalfHeight$descriptor() { + return JPC_CapsuleShapeSettings_SetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) + * } + */ + public static MethodHandle JPC_CapsuleShapeSettings_SetHalfHeight$handle() { + return JPC_CapsuleShapeSettings_SetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_SetHalfHeight$address() { + return JPC_CapsuleShapeSettings_SetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) + * } + */ + public static void JPC_CapsuleShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height_of_cylinder) { + var mh$ = JPC_CapsuleShapeSettings_SetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CapsuleShapeSettings_SetHalfHeight", in_settings, in_half_height_of_cylinder); + } + mh$.invokeExact(in_settings, in_half_height_of_cylinder); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CapsuleShapeSettings_GetRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_GetRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_CapsuleShapeSettings_GetRadius$descriptor() { + return JPC_CapsuleShapeSettings_GetRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_CapsuleShapeSettings_GetRadius$handle() { + return JPC_CapsuleShapeSettings_GetRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_GetRadius$address() { + return JPC_CapsuleShapeSettings_GetRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) + * } + */ + public static float JPC_CapsuleShapeSettings_GetRadius(MemorySegment in_settings) { + var mh$ = JPC_CapsuleShapeSettings_GetRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CapsuleShapeSettings_GetRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CapsuleShapeSettings_SetRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_SetRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) + * } + */ + public static FunctionDescriptor JPC_CapsuleShapeSettings_SetRadius$descriptor() { + return JPC_CapsuleShapeSettings_SetRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) + * } + */ + public static MethodHandle JPC_CapsuleShapeSettings_SetRadius$handle() { + return JPC_CapsuleShapeSettings_SetRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) + * } + */ + public static MemorySegment JPC_CapsuleShapeSettings_SetRadius$address() { + return JPC_CapsuleShapeSettings_SetRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) + * } + */ + public static void JPC_CapsuleShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { + var mh$ = JPC_CapsuleShapeSettings_SetRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CapsuleShapeSettings_SetRadius", in_settings, in_radius); + } + mh$.invokeExact(in_settings, in_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_FLOAT, + jolt.C_FLOAT, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_Create$descriptor() { + return JPC_TaperedCapsuleShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_Create$handle() { + return JPC_TaperedCapsuleShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_Create$address() { + return JPC_TaperedCapsuleShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) { + var mh$ = JPC_TaperedCapsuleShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_Create", in_half_height, in_top_radius, in_bottom_radius); + } + return (MemorySegment)mh$.invokeExact(in_half_height, in_top_radius, in_bottom_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_GetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetHalfHeight$descriptor() { + return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetHalfHeight$handle() { + return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetHalfHeight$address() { + return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(MemorySegment in_settings) { + var mh$ = JPC_TaperedCapsuleShapeSettings_GetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_GetHalfHeight", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_SetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetHalfHeight$descriptor() { + return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetHalfHeight$handle() { + return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetHalfHeight$address() { + return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) + * } + */ + public static void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height) { + var mh$ = JPC_TaperedCapsuleShapeSettings_SetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_SetHalfHeight", in_settings, in_half_height); + } + mh$.invokeExact(in_settings, in_half_height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_GetTopRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetTopRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetTopRadius$descriptor() { + return JPC_TaperedCapsuleShapeSettings_GetTopRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetTopRadius$handle() { + return JPC_TaperedCapsuleShapeSettings_GetTopRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetTopRadius$address() { + return JPC_TaperedCapsuleShapeSettings_GetTopRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static float JPC_TaperedCapsuleShapeSettings_GetTopRadius(MemorySegment in_settings) { + var mh$ = JPC_TaperedCapsuleShapeSettings_GetTopRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_GetTopRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_SetTopRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetTopRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetTopRadius$descriptor() { + return JPC_TaperedCapsuleShapeSettings_SetTopRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetTopRadius$handle() { + return JPC_TaperedCapsuleShapeSettings_SetTopRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetTopRadius$address() { + return JPC_TaperedCapsuleShapeSettings_SetTopRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) + * } + */ + public static void JPC_TaperedCapsuleShapeSettings_SetTopRadius(MemorySegment in_settings, float in_top_radius) { + var mh$ = JPC_TaperedCapsuleShapeSettings_SetTopRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_SetTopRadius", in_settings, in_top_radius); + } + mh$.invokeExact(in_settings, in_top_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_GetBottomRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetBottomRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetBottomRadius$descriptor() { + return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetBottomRadius$handle() { + return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetBottomRadius$address() { + return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) + * } + */ + public static float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(MemorySegment in_settings) { + var mh$ = JPC_TaperedCapsuleShapeSettings_GetBottomRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_GetBottomRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_TaperedCapsuleShapeSettings_SetBottomRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetBottomRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) + * } + */ + public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetBottomRadius$descriptor() { + return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) + * } + */ + public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetBottomRadius$handle() { + return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) + * } + */ + public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetBottomRadius$address() { + return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) + * } + */ + public static void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(MemorySegment in_settings, float in_bottom_radius) { + var mh$ = JPC_TaperedCapsuleShapeSettings_SetBottomRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_TaperedCapsuleShapeSettings_SetBottomRadius", in_settings, in_bottom_radius); + } + mh$.invokeExact(in_settings, in_bottom_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_FLOAT, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_Create$descriptor() { + return JPC_CylinderShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_Create$handle() { + return JPC_CylinderShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_Create$address() { + return JPC_CylinderShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) { + var mh$ = JPC_CylinderShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_Create", in_half_height, in_radius); + } + return (MemorySegment)mh$.invokeExact(in_half_height, in_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_GetConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_GetConvexRadius$descriptor() { + return JPC_CylinderShapeSettings_GetConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_GetConvexRadius$handle() { + return JPC_CylinderShapeSettings_GetConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_GetConvexRadius$address() { + return JPC_CylinderShapeSettings_GetConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static float JPC_CylinderShapeSettings_GetConvexRadius(MemorySegment in_settings) { + var mh$ = JPC_CylinderShapeSettings_GetConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_GetConvexRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_SetConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_SetConvexRadius$descriptor() { + return JPC_CylinderShapeSettings_SetConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_SetConvexRadius$handle() { + return JPC_CylinderShapeSettings_SetConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_SetConvexRadius$address() { + return JPC_CylinderShapeSettings_SetConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) + * } + */ + public static void JPC_CylinderShapeSettings_SetConvexRadius(MemorySegment in_settings, float in_convex_radius) { + var mh$ = JPC_CylinderShapeSettings_SetConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_SetConvexRadius", in_settings, in_convex_radius); + } + mh$.invokeExact(in_settings, in_convex_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_GetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_GetHalfHeight$descriptor() { + return JPC_CylinderShapeSettings_GetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_GetHalfHeight$handle() { + return JPC_CylinderShapeSettings_GetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_GetHalfHeight$address() { + return JPC_CylinderShapeSettings_GetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static float JPC_CylinderShapeSettings_GetHalfHeight(MemorySegment in_settings) { + var mh$ = JPC_CylinderShapeSettings_GetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_GetHalfHeight", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_SetHalfHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetHalfHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_SetHalfHeight$descriptor() { + return JPC_CylinderShapeSettings_SetHalfHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_SetHalfHeight$handle() { + return JPC_CylinderShapeSettings_SetHalfHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_SetHalfHeight$address() { + return JPC_CylinderShapeSettings_SetHalfHeight.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) + * } + */ + public static void JPC_CylinderShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height) { + var mh$ = JPC_CylinderShapeSettings_SetHalfHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_SetHalfHeight", in_settings, in_half_height); + } + mh$.invokeExact(in_settings, in_half_height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_GetRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_GetRadius$descriptor() { + return JPC_CylinderShapeSettings_GetRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_GetRadius$handle() { + return JPC_CylinderShapeSettings_GetRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_GetRadius$address() { + return JPC_CylinderShapeSettings_GetRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) + * } + */ + public static float JPC_CylinderShapeSettings_GetRadius(MemorySegment in_settings) { + var mh$ = JPC_CylinderShapeSettings_GetRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_GetRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_CylinderShapeSettings_SetRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) + * } + */ + public static FunctionDescriptor JPC_CylinderShapeSettings_SetRadius$descriptor() { + return JPC_CylinderShapeSettings_SetRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) + * } + */ + public static MethodHandle JPC_CylinderShapeSettings_SetRadius$handle() { + return JPC_CylinderShapeSettings_SetRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) + * } + */ + public static MemorySegment JPC_CylinderShapeSettings_SetRadius$address() { + return JPC_CylinderShapeSettings_SetRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) + * } + */ + public static void JPC_CylinderShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { + var mh$ = JPC_CylinderShapeSettings_SetRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_CylinderShapeSettings_SetRadius", in_settings, in_radius); + } + mh$.invokeExact(in_settings, in_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_INT, + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_Create$descriptor() { + return JPC_ConvexHullShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_Create$handle() { + return JPC_ConvexHullShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_Create$address() { + return JPC_ConvexHullShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_Create(MemorySegment in_vertices, int in_num_vertices, int in_vertex_size) { + var mh$ = JPC_ConvexHullShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_Create", in_vertices, in_num_vertices, in_vertex_size); + } + return (MemorySegment)mh$.invokeExact(in_vertices, in_num_vertices, in_vertex_size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_GetMaxConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetMaxConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetMaxConvexRadius$descriptor() { + return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_GetMaxConvexRadius$handle() { + return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_GetMaxConvexRadius$address() { + return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(MemorySegment in_settings) { + var mh$ = JPC_ConvexHullShapeSettings_GetMaxConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_GetMaxConvexRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_SetMaxConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetMaxConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetMaxConvexRadius$descriptor() { + return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_SetMaxConvexRadius$handle() { + return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_SetMaxConvexRadius$address() { + return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) + * } + */ + public static void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(MemorySegment in_settings, float in_max_convex_radius) { + var mh$ = JPC_ConvexHullShapeSettings_SetMaxConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_SetMaxConvexRadius", in_settings, in_max_convex_radius); + } + mh$.invokeExact(in_settings, in_max_convex_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$descriptor() { + return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$handle() { + return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$address() { + return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(MemorySegment in_settings) { + var mh$ = JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$descriptor() { + return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$handle() { + return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$address() { + return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) + * } + */ + public static void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(MemorySegment in_settings, float in_max_err_convex_radius) { + var mh$ = JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius", in_settings, in_max_err_convex_radius); + } + mh$.invokeExact(in_settings, in_max_err_convex_radius); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_GetHullTolerance { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_FLOAT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetHullTolerance"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetHullTolerance$descriptor() { + return JPC_ConvexHullShapeSettings_GetHullTolerance.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_GetHullTolerance$handle() { + return JPC_ConvexHullShapeSettings_GetHullTolerance.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_GetHullTolerance$address() { + return JPC_ConvexHullShapeSettings_GetHullTolerance.ADDR; + } + + /** + * {@snippet lang=c : + * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) + * } + */ + public static float JPC_ConvexHullShapeSettings_GetHullTolerance(MemorySegment in_settings) { + var mh$ = JPC_ConvexHullShapeSettings_GetHullTolerance.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_GetHullTolerance", in_settings); + } + return (float)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_ConvexHullShapeSettings_SetHullTolerance { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_FLOAT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetHullTolerance"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) + * } + */ + public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetHullTolerance$descriptor() { + return JPC_ConvexHullShapeSettings_SetHullTolerance.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) + * } + */ + public static MethodHandle JPC_ConvexHullShapeSettings_SetHullTolerance$handle() { + return JPC_ConvexHullShapeSettings_SetHullTolerance.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) + * } + */ + public static MemorySegment JPC_ConvexHullShapeSettings_SetHullTolerance$address() { + return JPC_ConvexHullShapeSettings_SetHullTolerance.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) + * } + */ + public static void JPC_ConvexHullShapeSettings_SetHullTolerance(MemorySegment in_settings, float in_hull_tolerance) { + var mh$ = JPC_ConvexHullShapeSettings_SetHullTolerance.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_ConvexHullShapeSettings_SetHullTolerance", in_settings, in_hull_tolerance); + } + mh$.invokeExact(in_settings, in_hull_tolerance); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_Create$descriptor() { + return JPC_HeightFieldShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_Create$handle() { + return JPC_HeightFieldShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_Create$address() { + return JPC_HeightFieldShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_Create(MemorySegment in_samples, int in_height_field_size) { + var mh$ = JPC_HeightFieldShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_Create", in_samples, in_height_field_size); + } + return (MemorySegment)mh$.invokeExact(in_samples, in_height_field_size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_GetOffset { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetOffset"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetOffset$descriptor() { + return JPC_HeightFieldShapeSettings_GetOffset.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_GetOffset$handle() { + return JPC_HeightFieldShapeSettings_GetOffset.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_GetOffset$address() { + return JPC_HeightFieldShapeSettings_GetOffset.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) + * } + */ + public static void JPC_HeightFieldShapeSettings_GetOffset(MemorySegment in_settings, MemorySegment out_offset) { + var mh$ = JPC_HeightFieldShapeSettings_GetOffset.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_GetOffset", in_settings, out_offset); + } + mh$.invokeExact(in_settings, out_offset); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_SetOffset { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetOffset"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetOffset$descriptor() { + return JPC_HeightFieldShapeSettings_SetOffset.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_SetOffset$handle() { + return JPC_HeightFieldShapeSettings_SetOffset.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_SetOffset$address() { + return JPC_HeightFieldShapeSettings_SetOffset.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) + * } + */ + public static void JPC_HeightFieldShapeSettings_SetOffset(MemorySegment in_settings, MemorySegment in_offset) { + var mh$ = JPC_HeightFieldShapeSettings_SetOffset.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_SetOffset", in_settings, in_offset); + } + mh$.invokeExact(in_settings, in_offset); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_GetScale { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetScale"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetScale$descriptor() { + return JPC_HeightFieldShapeSettings_GetScale.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_GetScale$handle() { + return JPC_HeightFieldShapeSettings_GetScale.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_GetScale$address() { + return JPC_HeightFieldShapeSettings_GetScale.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) + * } + */ + public static void JPC_HeightFieldShapeSettings_GetScale(MemorySegment in_settings, MemorySegment out_scale) { + var mh$ = JPC_HeightFieldShapeSettings_GetScale.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_GetScale", in_settings, out_scale); + } + mh$.invokeExact(in_settings, out_scale); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_SetScale { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetScale"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetScale$descriptor() { + return JPC_HeightFieldShapeSettings_SetScale.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_SetScale$handle() { + return JPC_HeightFieldShapeSettings_SetScale.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_SetScale$address() { + return JPC_HeightFieldShapeSettings_SetScale.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) + * } + */ + public static void JPC_HeightFieldShapeSettings_SetScale(MemorySegment in_settings, MemorySegment in_scale) { + var mh$ = JPC_HeightFieldShapeSettings_SetScale.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_SetScale", in_settings, in_scale); + } + mh$.invokeExact(in_settings, in_scale); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_GetBlockSize { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_INT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetBlockSize"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetBlockSize$descriptor() { + return JPC_HeightFieldShapeSettings_GetBlockSize.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_GetBlockSize$handle() { + return JPC_HeightFieldShapeSettings_GetBlockSize.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_GetBlockSize$address() { + return JPC_HeightFieldShapeSettings_GetBlockSize.ADDR; + } + + /** + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static int JPC_HeightFieldShapeSettings_GetBlockSize(MemorySegment in_settings) { + var mh$ = JPC_HeightFieldShapeSettings_GetBlockSize.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_GetBlockSize", in_settings); + } + return (int)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_SetBlockSize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetBlockSize"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetBlockSize$descriptor() { + return JPC_HeightFieldShapeSettings_SetBlockSize.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_SetBlockSize$handle() { + return JPC_HeightFieldShapeSettings_SetBlockSize.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_SetBlockSize$address() { + return JPC_HeightFieldShapeSettings_SetBlockSize.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) + * } + */ + public static void JPC_HeightFieldShapeSettings_SetBlockSize(MemorySegment in_settings, int in_block_size) { + var mh$ = JPC_HeightFieldShapeSettings_SetBlockSize.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_SetBlockSize", in_settings, in_block_size); + } + mh$.invokeExact(in_settings, in_block_size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_GetBitsPerSample { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_INT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetBitsPerSample"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetBitsPerSample$descriptor() { + return JPC_HeightFieldShapeSettings_GetBitsPerSample.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_GetBitsPerSample$handle() { + return JPC_HeightFieldShapeSettings_GetBitsPerSample.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_GetBitsPerSample$address() { + return JPC_HeightFieldShapeSettings_GetBitsPerSample.ADDR; + } + + /** + * {@snippet lang=c : + * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) + * } + */ + public static int JPC_HeightFieldShapeSettings_GetBitsPerSample(MemorySegment in_settings) { + var mh$ = JPC_HeightFieldShapeSettings_GetBitsPerSample.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_GetBitsPerSample", in_settings); + } + return (int)mh$.invokeExact(in_settings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_HeightFieldShapeSettings_SetBitsPerSample { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_POINTER, + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetBitsPerSample"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) + * } + */ + public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetBitsPerSample$descriptor() { + return JPC_HeightFieldShapeSettings_SetBitsPerSample.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) + * } + */ + public static MethodHandle JPC_HeightFieldShapeSettings_SetBitsPerSample$handle() { + return JPC_HeightFieldShapeSettings_SetBitsPerSample.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) + * } + */ + public static MemorySegment JPC_HeightFieldShapeSettings_SetBitsPerSample$address() { + return JPC_HeightFieldShapeSettings_SetBitsPerSample.ADDR; + } + + /** + * {@snippet lang=c : + * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) + * } + */ + public static void JPC_HeightFieldShapeSettings_SetBitsPerSample(MemorySegment in_settings, int in_num_bits) { + var mh$ = JPC_HeightFieldShapeSettings_SetBitsPerSample.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_HeightFieldShapeSettings_SetBitsPerSample", in_settings, in_num_bits); + } + mh$.invokeExact(in_settings, in_num_bits); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class JPC_MeshShapeSettings_Create { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_POINTER, + jolt.C_INT, + jolt.C_INT, + jolt.C_POINTER, + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("JPC_MeshShapeSettings_Create"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) + * } + */ + public static FunctionDescriptor JPC_MeshShapeSettings_Create$descriptor() { + return JPC_MeshShapeSettings_Create.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) + * } + */ + public static MethodHandle JPC_MeshShapeSettings_Create$handle() { + return JPC_MeshShapeSettings_Create.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) + * } + */ + public static MemorySegment JPC_MeshShapeSettings_Create$address() { + return JPC_MeshShapeSettings_Create.ADDR; + } + + /** + * {@snippet lang=c : + * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) + * } + */ + public static MemorySegment JPC_MeshShapeSettings_Create(MemorySegment in_vertices, int in_num_vertices, int in_vertex_size, MemorySegment in_indices, int in_num_indices) { + var mh$ = JPC_MeshShapeSettings_Create.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("JPC_MeshShapeSettings_Create", in_vertices, in_num_vertices, in_vertex_size, in_indices, in_num_indices); + } + return (MemorySegment)mh$.invokeExact(in_vertices, in_num_vertices, in_vertex_size, in_indices, in_num_indices); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class JPC_MeshShapeSettings_GetMaxTrianglesPerLeaf { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_INT, @@ -10027,10 +12480,55 @@ public static int MAC_OS_VERSION_14_1() { public static int MAC_OS_VERSION_14_2() { return MAC_OS_VERSION_14_2; } - private static final int __MAC_OS_X_VERSION_MAX_ALLOWED = (int)140200L; + private static final int MAC_OS_VERSION_14_3 = (int)140300L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_3 140300 + * } + */ + public static int MAC_OS_VERSION_14_3() { + return MAC_OS_VERSION_14_3; + } + private static final int MAC_OS_VERSION_14_4 = (int)140400L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_4 140400 + * } + */ + public static int MAC_OS_VERSION_14_4() { + return MAC_OS_VERSION_14_4; + } + private static final int MAC_OS_VERSION_14_5 = (int)140500L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_14_5 140500 + * } + */ + public static int MAC_OS_VERSION_14_5() { + return MAC_OS_VERSION_14_5; + } + private static final int MAC_OS_VERSION_15_0 = (int)150000L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_15_0 150000 + * } + */ + public static int MAC_OS_VERSION_15_0() { + return MAC_OS_VERSION_15_0; + } + private static final int MAC_OS_VERSION_15_1 = (int)150100L; + /** + * {@snippet lang=c : + * #define MAC_OS_VERSION_15_1 150100 + * } + */ + public static int MAC_OS_VERSION_15_1() { + return MAC_OS_VERSION_15_1; + } + private static final int __MAC_OS_X_VERSION_MAX_ALLOWED = (int)150100L; /** * {@snippet lang=c : - * #define __MAC_OS_X_VERSION_MAX_ALLOWED 140200 + * #define __MAC_OS_X_VERSION_MAX_ALLOWED 150100 * } */ public static int __MAC_OS_X_VERSION_MAX_ALLOWED() { @@ -10759,15 +13257,6 @@ public static int IOPOL_NORMAL() { public static int WAIT_ANY() { return WAIT_ANY; } - private static final int __DARWIN_BYTE_ORDER = (int)1234L; - /** - * {@snippet lang=c : - * #define __DARWIN_BYTE_ORDER 1234 - * } - */ - public static int __DARWIN_BYTE_ORDER() { - return __DARWIN_BYTE_ORDER; - } private static final int LITTLE_ENDIAN = (int)1234L; /** * {@snippet lang=c : @@ -10795,6 +13284,15 @@ public static int BIG_ENDIAN() { public static int PDP_ENDIAN() { return PDP_ENDIAN; } + private static final int __DARWIN_BYTE_ORDER = (int)1234L; + /** + * {@snippet lang=c : + * #define __DARWIN_BYTE_ORDER 1234 + * } + */ + public static int __DARWIN_BYTE_ORDER() { + return __DARWIN_BYTE_ORDER; + } private static final int BYTE_ORDER = (int)1234L; /** * {@snippet lang=c : diff --git a/src-java/org/vybe/jolt/jolt_1.java b/src-java/org/vybe/jolt/jolt_1.java index dd4025d5..dbd9596c 100644 --- a/src-java/org/vybe/jolt/jolt_1.java +++ b/src-java/org/vybe/jolt/jolt_1.java @@ -668,6 +668,51 @@ public static int __MAC_14_1() { public static int __MAC_14_2() { return __MAC_14_2; } + private static final int __MAC_14_3 = (int)140300L; + /** + * {@snippet lang=c : + * #define __MAC_14_3 140300 + * } + */ + public static int __MAC_14_3() { + return __MAC_14_3; + } + private static final int __MAC_14_4 = (int)140400L; + /** + * {@snippet lang=c : + * #define __MAC_14_4 140400 + * } + */ + public static int __MAC_14_4() { + return __MAC_14_4; + } + private static final int __MAC_14_5 = (int)140500L; + /** + * {@snippet lang=c : + * #define __MAC_14_5 140500 + * } + */ + public static int __MAC_14_5() { + return __MAC_14_5; + } + private static final int __MAC_15_0 = (int)150000L; + /** + * {@snippet lang=c : + * #define __MAC_15_0 150000 + * } + */ + public static int __MAC_15_0() { + return __MAC_15_0; + } + private static final int __MAC_15_1 = (int)150100L; + /** + * {@snippet lang=c : + * #define __MAC_15_1 150100 + * } + */ + public static int __MAC_15_1() { + return __MAC_15_1; + } private static final int __IPHONE_2_0 = (int)20000L; /** * {@snippet lang=c : @@ -1235,6 +1280,24 @@ public static int __IPHONE_15_5() { public static int __IPHONE_15_6() { return __IPHONE_15_6; } + private static final int __IPHONE_15_7 = (int)150700L; + /** + * {@snippet lang=c : + * #define __IPHONE_15_7 150700 + * } + */ + public static int __IPHONE_15_7() { + return __IPHONE_15_7; + } + private static final int __IPHONE_15_8 = (int)150800L; + /** + * {@snippet lang=c : + * #define __IPHONE_15_8 150800 + * } + */ + public static int __IPHONE_15_8() { + return __IPHONE_15_8; + } private static final int __IPHONE_16_0 = (int)160000L; /** * {@snippet lang=c : @@ -1334,6 +1397,51 @@ public static int __IPHONE_17_1() { public static int __IPHONE_17_2() { return __IPHONE_17_2; } + private static final int __IPHONE_17_3 = (int)170300L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_3 170300 + * } + */ + public static int __IPHONE_17_3() { + return __IPHONE_17_3; + } + private static final int __IPHONE_17_4 = (int)170400L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_4 170400 + * } + */ + public static int __IPHONE_17_4() { + return __IPHONE_17_4; + } + private static final int __IPHONE_17_5 = (int)170500L; + /** + * {@snippet lang=c : + * #define __IPHONE_17_5 170500 + * } + */ + public static int __IPHONE_17_5() { + return __IPHONE_17_5; + } + private static final int __IPHONE_18_0 = (int)180000L; + /** + * {@snippet lang=c : + * #define __IPHONE_18_0 180000 + * } + */ + public static int __IPHONE_18_0() { + return __IPHONE_18_0; + } + private static final int __IPHONE_18_1 = (int)180100L; + /** + * {@snippet lang=c : + * #define __IPHONE_18_1 180100 + * } + */ + public static int __IPHONE_18_1() { + return __IPHONE_18_1; + } private static final int __WATCHOS_1_0 = (int)10000L; /** * {@snippet lang=c : @@ -1631,6 +1739,15 @@ public static int __WATCHOS_8_6() { public static int __WATCHOS_8_7() { return __WATCHOS_8_7; } + private static final int __WATCHOS_8_8 = (int)80800L; + /** + * {@snippet lang=c : + * #define __WATCHOS_8_8 80800 + * } + */ + public static int __WATCHOS_8_8() { + return __WATCHOS_8_8; + } private static final int __WATCHOS_9_0 = (int)90000L; /** * {@snippet lang=c : @@ -1721,6 +1838,51 @@ public static int __WATCHOS_10_1() { public static int __WATCHOS_10_2() { return __WATCHOS_10_2; } + private static final int __WATCHOS_10_3 = (int)100300L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_3 100300 + * } + */ + public static int __WATCHOS_10_3() { + return __WATCHOS_10_3; + } + private static final int __WATCHOS_10_4 = (int)100400L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_4 100400 + * } + */ + public static int __WATCHOS_10_4() { + return __WATCHOS_10_4; + } + private static final int __WATCHOS_10_5 = (int)100500L; + /** + * {@snippet lang=c : + * #define __WATCHOS_10_5 100500 + * } + */ + public static int __WATCHOS_10_5() { + return __WATCHOS_10_5; + } + private static final int __WATCHOS_11_0 = (int)110000L; + /** + * {@snippet lang=c : + * #define __WATCHOS_11_0 110000 + * } + */ + public static int __WATCHOS_11_0() { + return __WATCHOS_11_0; + } + private static final int __WATCHOS_11_1 = (int)110100L; + /** + * {@snippet lang=c : + * #define __WATCHOS_11_1 110100 + * } + */ + public static int __WATCHOS_11_1() { + return __WATCHOS_11_1; + } private static final int __TVOS_9_0 = (int)90000L; /** * {@snippet lang=c : @@ -2126,6 +2288,51 @@ public static int __TVOS_17_1() { public static int __TVOS_17_2() { return __TVOS_17_2; } + private static final int __TVOS_17_3 = (int)170300L; + /** + * {@snippet lang=c : + * #define __TVOS_17_3 170300 + * } + */ + public static int __TVOS_17_3() { + return __TVOS_17_3; + } + private static final int __TVOS_17_4 = (int)170400L; + /** + * {@snippet lang=c : + * #define __TVOS_17_4 170400 + * } + */ + public static int __TVOS_17_4() { + return __TVOS_17_4; + } + private static final int __TVOS_17_5 = (int)170500L; + /** + * {@snippet lang=c : + * #define __TVOS_17_5 170500 + * } + */ + public static int __TVOS_17_5() { + return __TVOS_17_5; + } + private static final int __TVOS_18_0 = (int)180000L; + /** + * {@snippet lang=c : + * #define __TVOS_18_0 180000 + * } + */ + public static int __TVOS_18_0() { + return __TVOS_18_0; + } + private static final int __TVOS_18_1 = (int)180100L; + /** + * {@snippet lang=c : + * #define __TVOS_18_1 180100 + * } + */ + public static int __TVOS_18_1() { + return __TVOS_18_1; + } private static final int __BRIDGEOS_2_0 = (int)20000L; /** * {@snippet lang=c : @@ -2333,6 +2540,51 @@ public static int __BRIDGEOS_8_1() { public static int __BRIDGEOS_8_2() { return __BRIDGEOS_8_2; } + private static final int __BRIDGEOS_8_3 = (int)80300L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_3 80300 + * } + */ + public static int __BRIDGEOS_8_3() { + return __BRIDGEOS_8_3; + } + private static final int __BRIDGEOS_8_4 = (int)80400L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_4 80400 + * } + */ + public static int __BRIDGEOS_8_4() { + return __BRIDGEOS_8_4; + } + private static final int __BRIDGEOS_8_5 = (int)80500L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_8_5 80500 + * } + */ + public static int __BRIDGEOS_8_5() { + return __BRIDGEOS_8_5; + } + private static final int __BRIDGEOS_9_0 = (int)90000L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_9_0 90000 + * } + */ + public static int __BRIDGEOS_9_0() { + return __BRIDGEOS_9_0; + } + private static final int __BRIDGEOS_9_1 = (int)90100L; + /** + * {@snippet lang=c : + * #define __BRIDGEOS_9_1 90100 + * } + */ + public static int __BRIDGEOS_9_1() { + return __BRIDGEOS_9_1; + } private static final int __DRIVERKIT_19_0 = (int)190000L; /** * {@snippet lang=c : @@ -2423,6 +2675,51 @@ public static int __DRIVERKIT_23_1() { public static int __DRIVERKIT_23_2() { return __DRIVERKIT_23_2; } + private static final int __DRIVERKIT_23_3 = (int)230300L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_3 230300 + * } + */ + public static int __DRIVERKIT_23_3() { + return __DRIVERKIT_23_3; + } + private static final int __DRIVERKIT_23_4 = (int)230400L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_4 230400 + * } + */ + public static int __DRIVERKIT_23_4() { + return __DRIVERKIT_23_4; + } + private static final int __DRIVERKIT_23_5 = (int)230500L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_23_5 230500 + * } + */ + public static int __DRIVERKIT_23_5() { + return __DRIVERKIT_23_5; + } + private static final int __DRIVERKIT_24_0 = (int)240000L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_24_0 240000 + * } + */ + public static int __DRIVERKIT_24_0() { + return __DRIVERKIT_24_0; + } + private static final int __DRIVERKIT_24_1 = (int)240100L; + /** + * {@snippet lang=c : + * #define __DRIVERKIT_24_1 240100 + * } + */ + public static int __DRIVERKIT_24_1() { + return __DRIVERKIT_24_1; + } private static final int __VISIONOS_1_0 = (int)10000L; /** * {@snippet lang=c : @@ -2432,6 +2729,42 @@ public static int __DRIVERKIT_23_2() { public static int __VISIONOS_1_0() { return __VISIONOS_1_0; } + private static final int __VISIONOS_1_1 = (int)10100L; + /** + * {@snippet lang=c : + * #define __VISIONOS_1_1 10100 + * } + */ + public static int __VISIONOS_1_1() { + return __VISIONOS_1_1; + } + private static final int __VISIONOS_1_2 = (int)10200L; + /** + * {@snippet lang=c : + * #define __VISIONOS_1_2 10200 + * } + */ + public static int __VISIONOS_1_2() { + return __VISIONOS_1_2; + } + private static final int __VISIONOS_2_0 = (int)20000L; + /** + * {@snippet lang=c : + * #define __VISIONOS_2_0 20000 + * } + */ + public static int __VISIONOS_2_0() { + return __VISIONOS_2_0; + } + private static final int __VISIONOS_2_1 = (int)20100L; + /** + * {@snippet lang=c : + * #define __VISIONOS_2_1 20100 + * } + */ + public static int __VISIONOS_2_1() { + return __VISIONOS_2_1; + } private static final int __ENABLE_LEGACY_MAC_AVAILABILITY = (int)1L; /** * {@snippet lang=c : @@ -2441,6 +2774,15 @@ public static int __VISIONOS_1_0() { public static int __ENABLE_LEGACY_MAC_AVAILABILITY() { return __ENABLE_LEGACY_MAC_AVAILABILITY; } + private static final int __has_safe_buffers = (int)0L; + /** + * {@snippet lang=c : + * #define __has_safe_buffers 0 + * } + */ + public static int __has_safe_buffers() { + return __has_safe_buffers; + } private static final int __DARWIN_ONLY_64_BIT_INO_T = (int)1L; /** * {@snippet lang=c : @@ -2576,6 +2918,15 @@ public static int _DARWIN_FEATURE_UNIX_CONFORMANCE() { public static int __has_ptrcheck() { return __has_ptrcheck; } + private static final int USE_CLANG_TYPES = (int)0L; + /** + * {@snippet lang=c : + * #define USE_CLANG_TYPES 0 + * } + */ + public static int USE_CLANG_TYPES() { + return USE_CLANG_TYPES; + } private static final int __PTHREAD_SIZE__ = (int)8176L; /** * {@snippet lang=c : @@ -2972,6 +3323,15 @@ public static int SIGUSR2() { public static int __DARWIN_OPAQUE_ARM_THREAD_STATE64() { return __DARWIN_OPAQUE_ARM_THREAD_STATE64; } + private static final int USE_CLANG_STDDEF = (int)0L; + /** + * {@snippet lang=c : + * #define USE_CLANG_STDDEF 0 + * } + */ + public static int USE_CLANG_STDDEF() { + return USE_CLANG_STDDEF; + } private static final int SIGEV_NONE = (int)0L; /** * {@snippet lang=c : @@ -7105,13 +7465,14 @@ public static MemorySegment realloc(MemorySegment __ptr, long __size) { } } - private static class valloc { + private static class reallocf { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, jolt.C_POINTER, jolt.C_LONG ); - public static final MemorySegment ADDR = jolt.findOrThrow("valloc"); + public static final MemorySegment ADDR = jolt.findOrThrow("reallocf"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7119,58 +7480,57 @@ private static class valloc { /** * Function descriptor for: * {@snippet lang=c : - * void *valloc(size_t) + * void *reallocf(void *__ptr, size_t __size) * } */ - public static FunctionDescriptor valloc$descriptor() { - return valloc.DESC; + public static FunctionDescriptor reallocf$descriptor() { + return reallocf.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *valloc(size_t) + * void *reallocf(void *__ptr, size_t __size) * } */ - public static MethodHandle valloc$handle() { - return valloc.HANDLE; + public static MethodHandle reallocf$handle() { + return reallocf.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *valloc(size_t) + * void *reallocf(void *__ptr, size_t __size) * } */ - public static MemorySegment valloc$address() { - return valloc.ADDR; + public static MemorySegment reallocf$address() { + return reallocf.ADDR; } /** * {@snippet lang=c : - * void *valloc(size_t) + * void *reallocf(void *__ptr, size_t __size) * } */ - public static MemorySegment valloc(long x0) { - var mh$ = valloc.HANDLE; + public static MemorySegment reallocf(MemorySegment __ptr, long __size) { + var mh$ = reallocf.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("valloc", x0); + traceDowncall("reallocf", __ptr, __size); } - return (MemorySegment)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(__ptr, __size); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class aligned_alloc { + private static class valloc { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_POINTER, - jolt.C_LONG, jolt.C_LONG ); - public static final MemorySegment ADDR = jolt.findOrThrow("aligned_alloc"); + public static final MemorySegment ADDR = jolt.findOrThrow("valloc"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7178,51 +7538,110 @@ private static class aligned_alloc { /** * Function descriptor for: * {@snippet lang=c : - * void *aligned_alloc(size_t __alignment, size_t __size) + * void *valloc(size_t __size) * } */ - public static FunctionDescriptor aligned_alloc$descriptor() { - return aligned_alloc.DESC; + public static FunctionDescriptor valloc$descriptor() { + return valloc.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *aligned_alloc(size_t __alignment, size_t __size) + * void *valloc(size_t __size) * } */ - public static MethodHandle aligned_alloc$handle() { - return aligned_alloc.HANDLE; + public static MethodHandle valloc$handle() { + return valloc.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *aligned_alloc(size_t __alignment, size_t __size) + * void *valloc(size_t __size) * } */ - public static MemorySegment aligned_alloc$address() { - return aligned_alloc.ADDR; + public static MemorySegment valloc$address() { + return valloc.ADDR; } /** * {@snippet lang=c : - * void *aligned_alloc(size_t __alignment, size_t __size) + * void *valloc(size_t __size) * } */ - public static MemorySegment aligned_alloc(long __alignment, long __size) { - var mh$ = aligned_alloc.HANDLE; + public static MemorySegment valloc(long __size) { + var mh$ = valloc.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("aligned_alloc", __alignment, __size); + traceDowncall("valloc", __size); } - return (MemorySegment)mh$.invokeExact(__alignment, __size); + return (MemorySegment)mh$.invokeExact(__size); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class posix_memalign { + private static class aligned_alloc { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_POINTER, + jolt.C_LONG, + jolt.C_LONG + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("aligned_alloc"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void *aligned_alloc(size_t __alignment, size_t __size) + * } + */ + public static FunctionDescriptor aligned_alloc$descriptor() { + return aligned_alloc.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void *aligned_alloc(size_t __alignment, size_t __size) + * } + */ + public static MethodHandle aligned_alloc$handle() { + return aligned_alloc.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void *aligned_alloc(size_t __alignment, size_t __size) + * } + */ + public static MemorySegment aligned_alloc$address() { + return aligned_alloc.ADDR; + } + + /** + * {@snippet lang=c : + * void *aligned_alloc(size_t __alignment, size_t __size) + * } + */ + public static MemorySegment aligned_alloc(long __alignment, long __size) { + var mh$ = aligned_alloc.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("aligned_alloc", __alignment, __size); + } + return (MemorySegment)mh$.invokeExact(__alignment, __size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class posix_memalign { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_INT, jolt.C_POINTER, @@ -7453,6 +7872,64 @@ public static int atexit(MemorySegment x0) { } } + private static class at_quick_exit { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + jolt.C_INT, + jolt.C_POINTER + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("at_quick_exit"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int at_quick_exit(void (*)(void)) + * } + */ + public static FunctionDescriptor at_quick_exit$descriptor() { + return at_quick_exit.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int at_quick_exit(void (*)(void)) + * } + */ + public static MethodHandle at_quick_exit$handle() { + return at_quick_exit.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int at_quick_exit(void (*)(void)) + * } + */ + public static MemorySegment at_quick_exit$address() { + return at_quick_exit.ADDR; + } + + /** + * {@snippet lang=c : + * int at_quick_exit(void (*)(void)) + * } + */ + public static int at_quick_exit(MemorySegment x0) { + var mh$ = at_quick_exit.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("at_quick_exit", x0); + } + return (int)mh$.invokeExact(x0); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class atof { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_DOUBLE, @@ -8394,6 +8871,63 @@ public static void qsort(MemorySegment __base, long __nel, long __width, MemoryS } } + private static class quick_exit { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + jolt.C_INT + ); + + public static final MemorySegment ADDR = jolt.findOrThrow("quick_exit"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void quick_exit(int) + * } + */ + public static FunctionDescriptor quick_exit$descriptor() { + return quick_exit.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void quick_exit(int) + * } + */ + public static MethodHandle quick_exit$handle() { + return quick_exit.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void quick_exit(int) + * } + */ + public static MemorySegment quick_exit$address() { + return quick_exit.ADDR; + } + + /** + * {@snippet lang=c : + * void quick_exit(int) + * } + */ + public static void quick_exit(int x0) { + var mh$ = quick_exit.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("quick_exit", x0); + } + mh$.invokeExact(x0); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + private static class rand { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_INT ); @@ -13214,65 +13748,6 @@ public static void srandomdev() { } } - private static class reallocf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_LONG - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("reallocf"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void *reallocf(void *__ptr, size_t __size) - * } - */ - public static FunctionDescriptor reallocf$descriptor() { - return reallocf.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void *reallocf(void *__ptr, size_t __size) - * } - */ - public static MethodHandle reallocf$handle() { - return reallocf.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void *reallocf(void *__ptr, size_t __size) - * } - */ - public static MemorySegment reallocf$address() { - return reallocf.ADDR; - } - - /** - * {@snippet lang=c : - * void *reallocf(void *__ptr, size_t __size) - * } - */ - public static MemorySegment reallocf(MemorySegment __ptr, long __size) { - var mh$ = reallocf.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("reallocf", __ptr, __size); - } - return (MemorySegment)mh$.invokeExact(__ptr, __size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - private static class strtonum { public static final FunctionDescriptor DESC = FunctionDescriptor.of( jolt.C_LONG_LONG, @@ -19834,2458 +20309,5 @@ public static float JPC_SphereShapeSettings_GetRadius(MemorySegment in_settings) throw new AssertionError("should not reach here", ex$); } } - - private static class JPC_SphereShapeSettings_SetRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_SphereShapeSettings_SetRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) - * } - */ - public static FunctionDescriptor JPC_SphereShapeSettings_SetRadius$descriptor() { - return JPC_SphereShapeSettings_SetRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) - * } - */ - public static MethodHandle JPC_SphereShapeSettings_SetRadius$handle() { - return JPC_SphereShapeSettings_SetRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) - * } - */ - public static MemorySegment JPC_SphereShapeSettings_SetRadius$address() { - return JPC_SphereShapeSettings_SetRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_SphereShapeSettings_SetRadius(JPC_SphereShapeSettings *in_settings, float in_radius) - * } - */ - public static void JPC_SphereShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { - var mh$ = JPC_SphereShapeSettings_SetRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_SphereShapeSettings_SetRadius", in_settings, in_radius); - } - mh$.invokeExact(in_settings, in_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TriangleShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static FunctionDescriptor JPC_TriangleShapeSettings_Create$descriptor() { - return JPC_TriangleShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static MethodHandle JPC_TriangleShapeSettings_Create$handle() { - return JPC_TriangleShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_Create$address() { - return JPC_TriangleShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_TriangleShapeSettings *JPC_TriangleShapeSettings_Create(const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_Create(MemorySegment in_v1, MemorySegment in_v2, MemorySegment in_v3) { - var mh$ = JPC_TriangleShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TriangleShapeSettings_Create", in_v1, in_v2, in_v3); - } - return (MemorySegment)mh$.invokeExact(in_v1, in_v2, in_v3); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TriangleShapeSettings_SetVertices { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_SetVertices"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static FunctionDescriptor JPC_TriangleShapeSettings_SetVertices$descriptor() { - return JPC_TriangleShapeSettings_SetVertices.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static MethodHandle JPC_TriangleShapeSettings_SetVertices$handle() { - return JPC_TriangleShapeSettings_SetVertices.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_SetVertices$address() { - return JPC_TriangleShapeSettings_SetVertices.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetVertices(JPC_TriangleShapeSettings *in_settings, const float in_v1[3], const float in_v2[3], const float in_v3[3]) - * } - */ - public static void JPC_TriangleShapeSettings_SetVertices(MemorySegment in_settings, MemorySegment in_v1, MemorySegment in_v2, MemorySegment in_v3) { - var mh$ = JPC_TriangleShapeSettings_SetVertices.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TriangleShapeSettings_SetVertices", in_settings, in_v1, in_v2, in_v3); - } - mh$.invokeExact(in_settings, in_v1, in_v2, in_v3); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TriangleShapeSettings_GetVertices { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_GetVertices"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) - * } - */ - public static FunctionDescriptor JPC_TriangleShapeSettings_GetVertices$descriptor() { - return JPC_TriangleShapeSettings_GetVertices.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) - * } - */ - public static MethodHandle JPC_TriangleShapeSettings_GetVertices$handle() { - return JPC_TriangleShapeSettings_GetVertices.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_GetVertices$address() { - return JPC_TriangleShapeSettings_GetVertices.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_GetVertices(const JPC_TriangleShapeSettings *in_settings, float out_v1[3], float out_v2[3], float out_v3[3]) - * } - */ - public static void JPC_TriangleShapeSettings_GetVertices(MemorySegment in_settings, MemorySegment out_v1, MemorySegment out_v2, MemorySegment out_v3) { - var mh$ = JPC_TriangleShapeSettings_GetVertices.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TriangleShapeSettings_GetVertices", in_settings, out_v1, out_v2, out_v3); - } - mh$.invokeExact(in_settings, out_v1, out_v2, out_v3); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TriangleShapeSettings_GetConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_GetConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_TriangleShapeSettings_GetConvexRadius$descriptor() { - return JPC_TriangleShapeSettings_GetConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_TriangleShapeSettings_GetConvexRadius$handle() { - return JPC_TriangleShapeSettings_GetConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_GetConvexRadius$address() { - return JPC_TriangleShapeSettings_GetConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_TriangleShapeSettings_GetConvexRadius(const JPC_TriangleShapeSettings *in_settings) - * } - */ - public static float JPC_TriangleShapeSettings_GetConvexRadius(MemorySegment in_settings) { - var mh$ = JPC_TriangleShapeSettings_GetConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TriangleShapeSettings_GetConvexRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TriangleShapeSettings_SetConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TriangleShapeSettings_SetConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static FunctionDescriptor JPC_TriangleShapeSettings_SetConvexRadius$descriptor() { - return JPC_TriangleShapeSettings_SetConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static MethodHandle JPC_TriangleShapeSettings_SetConvexRadius$handle() { - return JPC_TriangleShapeSettings_SetConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static MemorySegment JPC_TriangleShapeSettings_SetConvexRadius$address() { - return JPC_TriangleShapeSettings_SetConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TriangleShapeSettings_SetConvexRadius(JPC_TriangleShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static void JPC_TriangleShapeSettings_SetConvexRadius(MemorySegment in_settings, float in_convex_radius) { - var mh$ = JPC_TriangleShapeSettings_SetConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TriangleShapeSettings_SetConvexRadius", in_settings, in_convex_radius); - } - mh$.invokeExact(in_settings, in_convex_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CapsuleShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_FLOAT, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) - * } - */ - public static FunctionDescriptor JPC_CapsuleShapeSettings_Create$descriptor() { - return JPC_CapsuleShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) - * } - */ - public static MethodHandle JPC_CapsuleShapeSettings_Create$handle() { - return JPC_CapsuleShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_Create$address() { - return JPC_CapsuleShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_CapsuleShapeSettings *JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_Create(float in_half_height_of_cylinder, float in_radius) { - var mh$ = JPC_CapsuleShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CapsuleShapeSettings_Create", in_half_height_of_cylinder, in_radius); - } - return (MemorySegment)mh$.invokeExact(in_half_height_of_cylinder, in_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CapsuleShapeSettings_GetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_GetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_CapsuleShapeSettings_GetHalfHeight$descriptor() { - return JPC_CapsuleShapeSettings_GetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_CapsuleShapeSettings_GetHalfHeight$handle() { - return JPC_CapsuleShapeSettings_GetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_GetHalfHeight$address() { - return JPC_CapsuleShapeSettings_GetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetHalfHeight(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static float JPC_CapsuleShapeSettings_GetHalfHeight(MemorySegment in_settings) { - var mh$ = JPC_CapsuleShapeSettings_GetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CapsuleShapeSettings_GetHalfHeight", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CapsuleShapeSettings_SetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_SetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) - * } - */ - public static FunctionDescriptor JPC_CapsuleShapeSettings_SetHalfHeight$descriptor() { - return JPC_CapsuleShapeSettings_SetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) - * } - */ - public static MethodHandle JPC_CapsuleShapeSettings_SetHalfHeight$handle() { - return JPC_CapsuleShapeSettings_SetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_SetHalfHeight$address() { - return JPC_CapsuleShapeSettings_SetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetHalfHeight(JPC_CapsuleShapeSettings *in_settings, float in_half_height_of_cylinder) - * } - */ - public static void JPC_CapsuleShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height_of_cylinder) { - var mh$ = JPC_CapsuleShapeSettings_SetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CapsuleShapeSettings_SetHalfHeight", in_settings, in_half_height_of_cylinder); - } - mh$.invokeExact(in_settings, in_half_height_of_cylinder); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CapsuleShapeSettings_GetRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_GetRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_CapsuleShapeSettings_GetRadius$descriptor() { - return JPC_CapsuleShapeSettings_GetRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_CapsuleShapeSettings_GetRadius$handle() { - return JPC_CapsuleShapeSettings_GetRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_GetRadius$address() { - return JPC_CapsuleShapeSettings_GetRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_CapsuleShapeSettings_GetRadius(const JPC_CapsuleShapeSettings *in_settings) - * } - */ - public static float JPC_CapsuleShapeSettings_GetRadius(MemorySegment in_settings) { - var mh$ = JPC_CapsuleShapeSettings_GetRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CapsuleShapeSettings_GetRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CapsuleShapeSettings_SetRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CapsuleShapeSettings_SetRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) - * } - */ - public static FunctionDescriptor JPC_CapsuleShapeSettings_SetRadius$descriptor() { - return JPC_CapsuleShapeSettings_SetRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) - * } - */ - public static MethodHandle JPC_CapsuleShapeSettings_SetRadius$handle() { - return JPC_CapsuleShapeSettings_SetRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) - * } - */ - public static MemorySegment JPC_CapsuleShapeSettings_SetRadius$address() { - return JPC_CapsuleShapeSettings_SetRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_CapsuleShapeSettings_SetRadius(JPC_CapsuleShapeSettings *in_settings, float in_radius) - * } - */ - public static void JPC_CapsuleShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { - var mh$ = JPC_CapsuleShapeSettings_SetRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CapsuleShapeSettings_SetRadius", in_settings, in_radius); - } - mh$.invokeExact(in_settings, in_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_FLOAT, - jolt.C_FLOAT, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_Create$descriptor() { - return JPC_TaperedCapsuleShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_Create$handle() { - return JPC_TaperedCapsuleShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_Create$address() { - return JPC_TaperedCapsuleShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_TaperedCapsuleShapeSettings *JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_Create(float in_half_height, float in_top_radius, float in_bottom_radius) { - var mh$ = JPC_TaperedCapsuleShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_Create", in_half_height, in_top_radius, in_bottom_radius); - } - return (MemorySegment)mh$.invokeExact(in_half_height, in_top_radius, in_bottom_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_GetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetHalfHeight$descriptor() { - return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetHalfHeight$handle() { - return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetHalfHeight$address() { - return JPC_TaperedCapsuleShapeSettings_GetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static float JPC_TaperedCapsuleShapeSettings_GetHalfHeight(MemorySegment in_settings) { - var mh$ = JPC_TaperedCapsuleShapeSettings_GetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_GetHalfHeight", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_SetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetHalfHeight$descriptor() { - return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetHalfHeight$handle() { - return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetHalfHeight$address() { - return JPC_TaperedCapsuleShapeSettings_SetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(JPC_TaperedCapsuleShapeSettings *in_settings, float in_half_height) - * } - */ - public static void JPC_TaperedCapsuleShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height) { - var mh$ = JPC_TaperedCapsuleShapeSettings_SetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_SetHalfHeight", in_settings, in_half_height); - } - mh$.invokeExact(in_settings, in_half_height); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_GetTopRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetTopRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetTopRadius$descriptor() { - return JPC_TaperedCapsuleShapeSettings_GetTopRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetTopRadius$handle() { - return JPC_TaperedCapsuleShapeSettings_GetTopRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetTopRadius$address() { - return JPC_TaperedCapsuleShapeSettings_GetTopRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetTopRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static float JPC_TaperedCapsuleShapeSettings_GetTopRadius(MemorySegment in_settings) { - var mh$ = JPC_TaperedCapsuleShapeSettings_GetTopRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_GetTopRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_SetTopRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetTopRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetTopRadius$descriptor() { - return JPC_TaperedCapsuleShapeSettings_SetTopRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetTopRadius$handle() { - return JPC_TaperedCapsuleShapeSettings_SetTopRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetTopRadius$address() { - return JPC_TaperedCapsuleShapeSettings_SetTopRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetTopRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_top_radius) - * } - */ - public static void JPC_TaperedCapsuleShapeSettings_SetTopRadius(MemorySegment in_settings, float in_top_radius) { - var mh$ = JPC_TaperedCapsuleShapeSettings_SetTopRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_SetTopRadius", in_settings, in_top_radius); - } - mh$.invokeExact(in_settings, in_top_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_GetBottomRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_GetBottomRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_GetBottomRadius$descriptor() { - return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_GetBottomRadius$handle() { - return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_GetBottomRadius$address() { - return JPC_TaperedCapsuleShapeSettings_GetBottomRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(const JPC_TaperedCapsuleShapeSettings *in_settings) - * } - */ - public static float JPC_TaperedCapsuleShapeSettings_GetBottomRadius(MemorySegment in_settings) { - var mh$ = JPC_TaperedCapsuleShapeSettings_GetBottomRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_GetBottomRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_TaperedCapsuleShapeSettings_SetBottomRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_TaperedCapsuleShapeSettings_SetBottomRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) - * } - */ - public static FunctionDescriptor JPC_TaperedCapsuleShapeSettings_SetBottomRadius$descriptor() { - return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) - * } - */ - public static MethodHandle JPC_TaperedCapsuleShapeSettings_SetBottomRadius$handle() { - return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) - * } - */ - public static MemorySegment JPC_TaperedCapsuleShapeSettings_SetBottomRadius$address() { - return JPC_TaperedCapsuleShapeSettings_SetBottomRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(JPC_TaperedCapsuleShapeSettings *in_settings, float in_bottom_radius) - * } - */ - public static void JPC_TaperedCapsuleShapeSettings_SetBottomRadius(MemorySegment in_settings, float in_bottom_radius) { - var mh$ = JPC_TaperedCapsuleShapeSettings_SetBottomRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_TaperedCapsuleShapeSettings_SetBottomRadius", in_settings, in_bottom_radius); - } - mh$.invokeExact(in_settings, in_bottom_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_FLOAT, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_Create$descriptor() { - return JPC_CylinderShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_Create$handle() { - return JPC_CylinderShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_Create$address() { - return JPC_CylinderShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_CylinderShapeSettings *JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_Create(float in_half_height, float in_radius) { - var mh$ = JPC_CylinderShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_Create", in_half_height, in_radius); - } - return (MemorySegment)mh$.invokeExact(in_half_height, in_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_GetConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_GetConvexRadius$descriptor() { - return JPC_CylinderShapeSettings_GetConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_GetConvexRadius$handle() { - return JPC_CylinderShapeSettings_GetConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_GetConvexRadius$address() { - return JPC_CylinderShapeSettings_GetConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetConvexRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static float JPC_CylinderShapeSettings_GetConvexRadius(MemorySegment in_settings) { - var mh$ = JPC_CylinderShapeSettings_GetConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_GetConvexRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_SetConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_SetConvexRadius$descriptor() { - return JPC_CylinderShapeSettings_SetConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_SetConvexRadius$handle() { - return JPC_CylinderShapeSettings_SetConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_SetConvexRadius$address() { - return JPC_CylinderShapeSettings_SetConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetConvexRadius(JPC_CylinderShapeSettings *in_settings, float in_convex_radius) - * } - */ - public static void JPC_CylinderShapeSettings_SetConvexRadius(MemorySegment in_settings, float in_convex_radius) { - var mh$ = JPC_CylinderShapeSettings_SetConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_SetConvexRadius", in_settings, in_convex_radius); - } - mh$.invokeExact(in_settings, in_convex_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_GetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_GetHalfHeight$descriptor() { - return JPC_CylinderShapeSettings_GetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_GetHalfHeight$handle() { - return JPC_CylinderShapeSettings_GetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_GetHalfHeight$address() { - return JPC_CylinderShapeSettings_GetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetHalfHeight(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static float JPC_CylinderShapeSettings_GetHalfHeight(MemorySegment in_settings) { - var mh$ = JPC_CylinderShapeSettings_GetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_GetHalfHeight", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_SetHalfHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetHalfHeight"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_SetHalfHeight$descriptor() { - return JPC_CylinderShapeSettings_SetHalfHeight.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_SetHalfHeight$handle() { - return JPC_CylinderShapeSettings_SetHalfHeight.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_SetHalfHeight$address() { - return JPC_CylinderShapeSettings_SetHalfHeight.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetHalfHeight(JPC_CylinderShapeSettings *in_settings, float in_half_height) - * } - */ - public static void JPC_CylinderShapeSettings_SetHalfHeight(MemorySegment in_settings, float in_half_height) { - var mh$ = JPC_CylinderShapeSettings_SetHalfHeight.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_SetHalfHeight", in_settings, in_half_height); - } - mh$.invokeExact(in_settings, in_half_height); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_GetRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_GetRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_GetRadius$descriptor() { - return JPC_CylinderShapeSettings_GetRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_GetRadius$handle() { - return JPC_CylinderShapeSettings_GetRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_GetRadius$address() { - return JPC_CylinderShapeSettings_GetRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_CylinderShapeSettings_GetRadius(const JPC_CylinderShapeSettings *in_settings) - * } - */ - public static float JPC_CylinderShapeSettings_GetRadius(MemorySegment in_settings) { - var mh$ = JPC_CylinderShapeSettings_GetRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_GetRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_CylinderShapeSettings_SetRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_CylinderShapeSettings_SetRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) - * } - */ - public static FunctionDescriptor JPC_CylinderShapeSettings_SetRadius$descriptor() { - return JPC_CylinderShapeSettings_SetRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) - * } - */ - public static MethodHandle JPC_CylinderShapeSettings_SetRadius$handle() { - return JPC_CylinderShapeSettings_SetRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) - * } - */ - public static MemorySegment JPC_CylinderShapeSettings_SetRadius$address() { - return JPC_CylinderShapeSettings_SetRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_CylinderShapeSettings_SetRadius(JPC_CylinderShapeSettings *in_settings, float in_radius) - * } - */ - public static void JPC_CylinderShapeSettings_SetRadius(MemorySegment in_settings, float in_radius) { - var mh$ = JPC_CylinderShapeSettings_SetRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_CylinderShapeSettings_SetRadius", in_settings, in_radius); - } - mh$.invokeExact(in_settings, in_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_INT, - jolt.C_INT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_Create$descriptor() { - return JPC_ConvexHullShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_Create$handle() { - return JPC_ConvexHullShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_Create$address() { - return JPC_ConvexHullShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_ConvexHullShapeSettings *JPC_ConvexHullShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_Create(MemorySegment in_vertices, int in_num_vertices, int in_vertex_size) { - var mh$ = JPC_ConvexHullShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_Create", in_vertices, in_num_vertices, in_vertex_size); - } - return (MemorySegment)mh$.invokeExact(in_vertices, in_num_vertices, in_vertex_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_GetMaxConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetMaxConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetMaxConvexRadius$descriptor() { - return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_GetMaxConvexRadius$handle() { - return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_GetMaxConvexRadius$address() { - return JPC_ConvexHullShapeSettings_GetMaxConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static float JPC_ConvexHullShapeSettings_GetMaxConvexRadius(MemorySegment in_settings) { - var mh$ = JPC_ConvexHullShapeSettings_GetMaxConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_GetMaxConvexRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_SetMaxConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetMaxConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetMaxConvexRadius$descriptor() { - return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_SetMaxConvexRadius$handle() { - return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_SetMaxConvexRadius$address() { - return JPC_ConvexHullShapeSettings_SetMaxConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_convex_radius) - * } - */ - public static void JPC_ConvexHullShapeSettings_SetMaxConvexRadius(MemorySegment in_settings, float in_max_convex_radius) { - var mh$ = JPC_ConvexHullShapeSettings_SetMaxConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_SetMaxConvexRadius", in_settings, in_max_convex_radius); - } - mh$.invokeExact(in_settings, in_max_convex_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$descriptor() { - return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$handle() { - return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius$address() { - return JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static float JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius(MemorySegment in_settings) { - var mh$ = JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_GetMaxErrorConvexRadius", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$descriptor() { - return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$handle() { - return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius$address() { - return JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(JPC_ConvexHullShapeSettings *in_settings, float in_max_err_convex_radius) - * } - */ - public static void JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius(MemorySegment in_settings, float in_max_err_convex_radius) { - var mh$ = JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_SetMaxErrorConvexRadius", in_settings, in_max_err_convex_radius); - } - mh$.invokeExact(in_settings, in_max_err_convex_radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_GetHullTolerance { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_FLOAT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_GetHullTolerance"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_GetHullTolerance$descriptor() { - return JPC_ConvexHullShapeSettings_GetHullTolerance.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_GetHullTolerance$handle() { - return JPC_ConvexHullShapeSettings_GetHullTolerance.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_GetHullTolerance$address() { - return JPC_ConvexHullShapeSettings_GetHullTolerance.ADDR; - } - - /** - * {@snippet lang=c : - * extern float JPC_ConvexHullShapeSettings_GetHullTolerance(const JPC_ConvexHullShapeSettings *in_settings) - * } - */ - public static float JPC_ConvexHullShapeSettings_GetHullTolerance(MemorySegment in_settings) { - var mh$ = JPC_ConvexHullShapeSettings_GetHullTolerance.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_GetHullTolerance", in_settings); - } - return (float)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_ConvexHullShapeSettings_SetHullTolerance { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_FLOAT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_ConvexHullShapeSettings_SetHullTolerance"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) - * } - */ - public static FunctionDescriptor JPC_ConvexHullShapeSettings_SetHullTolerance$descriptor() { - return JPC_ConvexHullShapeSettings_SetHullTolerance.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) - * } - */ - public static MethodHandle JPC_ConvexHullShapeSettings_SetHullTolerance$handle() { - return JPC_ConvexHullShapeSettings_SetHullTolerance.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) - * } - */ - public static MemorySegment JPC_ConvexHullShapeSettings_SetHullTolerance$address() { - return JPC_ConvexHullShapeSettings_SetHullTolerance.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_ConvexHullShapeSettings_SetHullTolerance(JPC_ConvexHullShapeSettings *in_settings, float in_hull_tolerance) - * } - */ - public static void JPC_ConvexHullShapeSettings_SetHullTolerance(MemorySegment in_settings, float in_hull_tolerance) { - var mh$ = JPC_ConvexHullShapeSettings_SetHullTolerance.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_ConvexHullShapeSettings_SetHullTolerance", in_settings, in_hull_tolerance); - } - mh$.invokeExact(in_settings, in_hull_tolerance); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_INT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_Create$descriptor() { - return JPC_HeightFieldShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_Create$handle() { - return JPC_HeightFieldShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_Create$address() { - return JPC_HeightFieldShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_HeightFieldShapeSettings *JPC_HeightFieldShapeSettings_Create(const float *in_samples, uint32_t in_height_field_size) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_Create(MemorySegment in_samples, int in_height_field_size) { - var mh$ = JPC_HeightFieldShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_Create", in_samples, in_height_field_size); - } - return (MemorySegment)mh$.invokeExact(in_samples, in_height_field_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_GetOffset { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetOffset"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetOffset$descriptor() { - return JPC_HeightFieldShapeSettings_GetOffset.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_GetOffset$handle() { - return JPC_HeightFieldShapeSettings_GetOffset.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_GetOffset$address() { - return JPC_HeightFieldShapeSettings_GetOffset.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetOffset(const JPC_HeightFieldShapeSettings *in_settings, float out_offset[3]) - * } - */ - public static void JPC_HeightFieldShapeSettings_GetOffset(MemorySegment in_settings, MemorySegment out_offset) { - var mh$ = JPC_HeightFieldShapeSettings_GetOffset.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_GetOffset", in_settings, out_offset); - } - mh$.invokeExact(in_settings, out_offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_SetOffset { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetOffset"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetOffset$descriptor() { - return JPC_HeightFieldShapeSettings_SetOffset.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_SetOffset$handle() { - return JPC_HeightFieldShapeSettings_SetOffset.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_SetOffset$address() { - return JPC_HeightFieldShapeSettings_SetOffset.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetOffset(JPC_HeightFieldShapeSettings *in_settings, const float in_offset[3]) - * } - */ - public static void JPC_HeightFieldShapeSettings_SetOffset(MemorySegment in_settings, MemorySegment in_offset) { - var mh$ = JPC_HeightFieldShapeSettings_SetOffset.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_SetOffset", in_settings, in_offset); - } - mh$.invokeExact(in_settings, in_offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_GetScale { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetScale"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetScale$descriptor() { - return JPC_HeightFieldShapeSettings_GetScale.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_GetScale$handle() { - return JPC_HeightFieldShapeSettings_GetScale.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_GetScale$address() { - return JPC_HeightFieldShapeSettings_GetScale.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_GetScale(const JPC_HeightFieldShapeSettings *in_settings, float out_scale[3]) - * } - */ - public static void JPC_HeightFieldShapeSettings_GetScale(MemorySegment in_settings, MemorySegment out_scale) { - var mh$ = JPC_HeightFieldShapeSettings_GetScale.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_GetScale", in_settings, out_scale); - } - mh$.invokeExact(in_settings, out_scale); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_SetScale { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetScale"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetScale$descriptor() { - return JPC_HeightFieldShapeSettings_SetScale.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_SetScale$handle() { - return JPC_HeightFieldShapeSettings_SetScale.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_SetScale$address() { - return JPC_HeightFieldShapeSettings_SetScale.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetScale(JPC_HeightFieldShapeSettings *in_settings, const float in_scale[3]) - * } - */ - public static void JPC_HeightFieldShapeSettings_SetScale(MemorySegment in_settings, MemorySegment in_scale) { - var mh$ = JPC_HeightFieldShapeSettings_SetScale.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_SetScale", in_settings, in_scale); - } - mh$.invokeExact(in_settings, in_scale); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_GetBlockSize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_INT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetBlockSize"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetBlockSize$descriptor() { - return JPC_HeightFieldShapeSettings_GetBlockSize.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_GetBlockSize$handle() { - return JPC_HeightFieldShapeSettings_GetBlockSize.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_GetBlockSize$address() { - return JPC_HeightFieldShapeSettings_GetBlockSize.ADDR; - } - - /** - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBlockSize(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static int JPC_HeightFieldShapeSettings_GetBlockSize(MemorySegment in_settings) { - var mh$ = JPC_HeightFieldShapeSettings_GetBlockSize.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_GetBlockSize", in_settings); - } - return (int)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_SetBlockSize { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_INT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetBlockSize"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetBlockSize$descriptor() { - return JPC_HeightFieldShapeSettings_SetBlockSize.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_SetBlockSize$handle() { - return JPC_HeightFieldShapeSettings_SetBlockSize.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_SetBlockSize$address() { - return JPC_HeightFieldShapeSettings_SetBlockSize.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBlockSize(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_block_size) - * } - */ - public static void JPC_HeightFieldShapeSettings_SetBlockSize(MemorySegment in_settings, int in_block_size) { - var mh$ = JPC_HeightFieldShapeSettings_SetBlockSize.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_SetBlockSize", in_settings, in_block_size); - } - mh$.invokeExact(in_settings, in_block_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_GetBitsPerSample { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_INT, - jolt.C_POINTER - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_GetBitsPerSample"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_GetBitsPerSample$descriptor() { - return JPC_HeightFieldShapeSettings_GetBitsPerSample.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_GetBitsPerSample$handle() { - return JPC_HeightFieldShapeSettings_GetBitsPerSample.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_GetBitsPerSample$address() { - return JPC_HeightFieldShapeSettings_GetBitsPerSample.ADDR; - } - - /** - * {@snippet lang=c : - * extern uint32_t JPC_HeightFieldShapeSettings_GetBitsPerSample(const JPC_HeightFieldShapeSettings *in_settings) - * } - */ - public static int JPC_HeightFieldShapeSettings_GetBitsPerSample(MemorySegment in_settings) { - var mh$ = JPC_HeightFieldShapeSettings_GetBitsPerSample.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_GetBitsPerSample", in_settings); - } - return (int)mh$.invokeExact(in_settings); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_HeightFieldShapeSettings_SetBitsPerSample { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - jolt.C_POINTER, - jolt.C_INT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_HeightFieldShapeSettings_SetBitsPerSample"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) - * } - */ - public static FunctionDescriptor JPC_HeightFieldShapeSettings_SetBitsPerSample$descriptor() { - return JPC_HeightFieldShapeSettings_SetBitsPerSample.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) - * } - */ - public static MethodHandle JPC_HeightFieldShapeSettings_SetBitsPerSample$handle() { - return JPC_HeightFieldShapeSettings_SetBitsPerSample.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) - * } - */ - public static MemorySegment JPC_HeightFieldShapeSettings_SetBitsPerSample$address() { - return JPC_HeightFieldShapeSettings_SetBitsPerSample.ADDR; - } - - /** - * {@snippet lang=c : - * extern void JPC_HeightFieldShapeSettings_SetBitsPerSample(JPC_HeightFieldShapeSettings *in_settings, uint32_t in_num_bits) - * } - */ - public static void JPC_HeightFieldShapeSettings_SetBitsPerSample(MemorySegment in_settings, int in_num_bits) { - var mh$ = JPC_HeightFieldShapeSettings_SetBitsPerSample.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_HeightFieldShapeSettings_SetBitsPerSample", in_settings, in_num_bits); - } - mh$.invokeExact(in_settings, in_num_bits); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class JPC_MeshShapeSettings_Create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - jolt.C_POINTER, - jolt.C_POINTER, - jolt.C_INT, - jolt.C_INT, - jolt.C_POINTER, - jolt.C_INT - ); - - public static final MemorySegment ADDR = jolt.findOrThrow("JPC_MeshShapeSettings_Create"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) - * } - */ - public static FunctionDescriptor JPC_MeshShapeSettings_Create$descriptor() { - return JPC_MeshShapeSettings_Create.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) - * } - */ - public static MethodHandle JPC_MeshShapeSettings_Create$handle() { - return JPC_MeshShapeSettings_Create.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) - * } - */ - public static MemorySegment JPC_MeshShapeSettings_Create$address() { - return JPC_MeshShapeSettings_Create.ADDR; - } - - /** - * {@snippet lang=c : - * extern JPC_MeshShapeSettings *JPC_MeshShapeSettings_Create(const void *in_vertices, uint32_t in_num_vertices, uint32_t in_vertex_size, const uint32_t *in_indices, uint32_t in_num_indices) - * } - */ - public static MemorySegment JPC_MeshShapeSettings_Create(MemorySegment in_vertices, int in_num_vertices, int in_vertex_size, MemorySegment in_indices, int in_num_indices) { - var mh$ = JPC_MeshShapeSettings_Create.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("JPC_MeshShapeSettings_Create", in_vertices, in_num_vertices, in_vertex_size, in_indices, in_num_indices); - } - return (MemorySegment)mh$.invokeExact(in_vertices, in_num_vertices, in_vertex_size, in_indices, in_num_indices); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } } diff --git a/src-java/org/vybe/jolt/rusage_info_current.java b/src-java/org/vybe/jolt/rusage_info_current.java index ddfa204f..1b09df88 100644 --- a/src-java/org/vybe/jolt/rusage_info_current.java +++ b/src-java/org/vybe/jolt/rusage_info_current.java @@ -58,7 +58,12 @@ * uint64_t ri_pcycles; * uint64_t ri_energy_nj; * uint64_t ri_penergy_nj; - * uint64_t ri_reserved[14]; + * uint64_t ri_secure_time_in_system; + * uint64_t ri_secure_ptime_in_system; + * uint64_t ri_neural_footprint; + * uint64_t ri_lifetime_max_neural_footprint; + * uint64_t ri_interval_max_neural_footprint; + * uint64_t ri_reserved[9]; * } rusage_info_current * } */ diff --git a/src-java/org/vybe/jolt/rusage_info_v6.java b/src-java/org/vybe/jolt/rusage_info_v6.java index e17746ee..b36fa7a1 100644 --- a/src-java/org/vybe/jolt/rusage_info_v6.java +++ b/src-java/org/vybe/jolt/rusage_info_v6.java @@ -58,7 +58,12 @@ * uint64_t ri_pcycles; * uint64_t ri_energy_nj; * uint64_t ri_penergy_nj; - * uint64_t ri_reserved[14]; + * uint64_t ri_secure_time_in_system; + * uint64_t ri_secure_ptime_in_system; + * uint64_t ri_neural_footprint; + * uint64_t ri_lifetime_max_neural_footprint; + * uint64_t ri_interval_max_neural_footprint; + * uint64_t ri_reserved[9]; * } * } */ @@ -112,7 +117,12 @@ public class rusage_info_v6 { jolt.C_LONG_LONG.withName("ri_pcycles"), jolt.C_LONG_LONG.withName("ri_energy_nj"), jolt.C_LONG_LONG.withName("ri_penergy_nj"), - MemoryLayout.sequenceLayout(14, jolt.C_LONG_LONG).withName("ri_reserved") + jolt.C_LONG_LONG.withName("ri_secure_time_in_system"), + jolt.C_LONG_LONG.withName("ri_secure_ptime_in_system"), + jolt.C_LONG_LONG.withName("ri_neural_footprint"), + jolt.C_LONG_LONG.withName("ri_lifetime_max_neural_footprint"), + jolt.C_LONG_LONG.withName("ri_interval_max_neural_footprint"), + MemoryLayout.sequenceLayout(9, jolt.C_LONG_LONG).withName("ri_reserved") ).withName("rusage_info_v6"); /** @@ -2047,24 +2057,244 @@ public static void ri_penergy_nj(MemorySegment struct, long fieldValue) { struct.set(ri_penergy_nj$LAYOUT, ri_penergy_nj$OFFSET, fieldValue); } + private static final OfLong ri_secure_time_in_system$LAYOUT = (OfLong)$LAYOUT.select(groupElement("ri_secure_time_in_system")); + + /** + * Layout for field: + * {@snippet lang=c : + * uint64_t ri_secure_time_in_system + * } + */ + public static final OfLong ri_secure_time_in_system$layout() { + return ri_secure_time_in_system$LAYOUT; + } + + private static final long ri_secure_time_in_system$OFFSET = 352; + + /** + * Offset for field: + * {@snippet lang=c : + * uint64_t ri_secure_time_in_system + * } + */ + public static final long ri_secure_time_in_system$offset() { + return ri_secure_time_in_system$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * uint64_t ri_secure_time_in_system + * } + */ + public static long ri_secure_time_in_system(MemorySegment struct) { + return struct.get(ri_secure_time_in_system$LAYOUT, ri_secure_time_in_system$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * uint64_t ri_secure_time_in_system + * } + */ + public static void ri_secure_time_in_system(MemorySegment struct, long fieldValue) { + struct.set(ri_secure_time_in_system$LAYOUT, ri_secure_time_in_system$OFFSET, fieldValue); + } + + private static final OfLong ri_secure_ptime_in_system$LAYOUT = (OfLong)$LAYOUT.select(groupElement("ri_secure_ptime_in_system")); + + /** + * Layout for field: + * {@snippet lang=c : + * uint64_t ri_secure_ptime_in_system + * } + */ + public static final OfLong ri_secure_ptime_in_system$layout() { + return ri_secure_ptime_in_system$LAYOUT; + } + + private static final long ri_secure_ptime_in_system$OFFSET = 360; + + /** + * Offset for field: + * {@snippet lang=c : + * uint64_t ri_secure_ptime_in_system + * } + */ + public static final long ri_secure_ptime_in_system$offset() { + return ri_secure_ptime_in_system$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * uint64_t ri_secure_ptime_in_system + * } + */ + public static long ri_secure_ptime_in_system(MemorySegment struct) { + return struct.get(ri_secure_ptime_in_system$LAYOUT, ri_secure_ptime_in_system$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * uint64_t ri_secure_ptime_in_system + * } + */ + public static void ri_secure_ptime_in_system(MemorySegment struct, long fieldValue) { + struct.set(ri_secure_ptime_in_system$LAYOUT, ri_secure_ptime_in_system$OFFSET, fieldValue); + } + + private static final OfLong ri_neural_footprint$LAYOUT = (OfLong)$LAYOUT.select(groupElement("ri_neural_footprint")); + + /** + * Layout for field: + * {@snippet lang=c : + * uint64_t ri_neural_footprint + * } + */ + public static final OfLong ri_neural_footprint$layout() { + return ri_neural_footprint$LAYOUT; + } + + private static final long ri_neural_footprint$OFFSET = 368; + + /** + * Offset for field: + * {@snippet lang=c : + * uint64_t ri_neural_footprint + * } + */ + public static final long ri_neural_footprint$offset() { + return ri_neural_footprint$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * uint64_t ri_neural_footprint + * } + */ + public static long ri_neural_footprint(MemorySegment struct) { + return struct.get(ri_neural_footprint$LAYOUT, ri_neural_footprint$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * uint64_t ri_neural_footprint + * } + */ + public static void ri_neural_footprint(MemorySegment struct, long fieldValue) { + struct.set(ri_neural_footprint$LAYOUT, ri_neural_footprint$OFFSET, fieldValue); + } + + private static final OfLong ri_lifetime_max_neural_footprint$LAYOUT = (OfLong)$LAYOUT.select(groupElement("ri_lifetime_max_neural_footprint")); + + /** + * Layout for field: + * {@snippet lang=c : + * uint64_t ri_lifetime_max_neural_footprint + * } + */ + public static final OfLong ri_lifetime_max_neural_footprint$layout() { + return ri_lifetime_max_neural_footprint$LAYOUT; + } + + private static final long ri_lifetime_max_neural_footprint$OFFSET = 376; + + /** + * Offset for field: + * {@snippet lang=c : + * uint64_t ri_lifetime_max_neural_footprint + * } + */ + public static final long ri_lifetime_max_neural_footprint$offset() { + return ri_lifetime_max_neural_footprint$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * uint64_t ri_lifetime_max_neural_footprint + * } + */ + public static long ri_lifetime_max_neural_footprint(MemorySegment struct) { + return struct.get(ri_lifetime_max_neural_footprint$LAYOUT, ri_lifetime_max_neural_footprint$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * uint64_t ri_lifetime_max_neural_footprint + * } + */ + public static void ri_lifetime_max_neural_footprint(MemorySegment struct, long fieldValue) { + struct.set(ri_lifetime_max_neural_footprint$LAYOUT, ri_lifetime_max_neural_footprint$OFFSET, fieldValue); + } + + private static final OfLong ri_interval_max_neural_footprint$LAYOUT = (OfLong)$LAYOUT.select(groupElement("ri_interval_max_neural_footprint")); + + /** + * Layout for field: + * {@snippet lang=c : + * uint64_t ri_interval_max_neural_footprint + * } + */ + public static final OfLong ri_interval_max_neural_footprint$layout() { + return ri_interval_max_neural_footprint$LAYOUT; + } + + private static final long ri_interval_max_neural_footprint$OFFSET = 384; + + /** + * Offset for field: + * {@snippet lang=c : + * uint64_t ri_interval_max_neural_footprint + * } + */ + public static final long ri_interval_max_neural_footprint$offset() { + return ri_interval_max_neural_footprint$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * uint64_t ri_interval_max_neural_footprint + * } + */ + public static long ri_interval_max_neural_footprint(MemorySegment struct) { + return struct.get(ri_interval_max_neural_footprint$LAYOUT, ri_interval_max_neural_footprint$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * uint64_t ri_interval_max_neural_footprint + * } + */ + public static void ri_interval_max_neural_footprint(MemorySegment struct, long fieldValue) { + struct.set(ri_interval_max_neural_footprint$LAYOUT, ri_interval_max_neural_footprint$OFFSET, fieldValue); + } + private static final SequenceLayout ri_reserved$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("ri_reserved")); /** * Layout for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static final SequenceLayout ri_reserved$layout() { return ri_reserved$LAYOUT; } - private static final long ri_reserved$OFFSET = 352; + private static final long ri_reserved$OFFSET = 392; /** * Offset for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static final long ri_reserved$offset() { @@ -2074,7 +2304,7 @@ public static void ri_penergy_nj(MemorySegment struct, long fieldValue) { /** * Getter for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static MemorySegment ri_reserved(MemorySegment struct) { @@ -2084,19 +2314,19 @@ public static MemorySegment ri_reserved(MemorySegment struct) { /** * Setter for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static void ri_reserved(MemorySegment struct, MemorySegment fieldValue) { MemorySegment.copy(fieldValue, 0L, struct, ri_reserved$OFFSET, ri_reserved$LAYOUT.byteSize()); } - private static long[] ri_reserved$DIMS = { 14 }; + private static long[] ri_reserved$DIMS = { 9 }; /** * Dimensions for array field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static long[] ri_reserved$dimensions() { @@ -2107,7 +2337,7 @@ public static void ri_reserved(MemorySegment struct, MemorySegment fieldValue) { /** * Indexed getter for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static long ri_reserved(MemorySegment struct, long index0) { @@ -2117,7 +2347,7 @@ public static long ri_reserved(MemorySegment struct, long index0) { /** * Indexed setter for field: * {@snippet lang=c : - * uint64_t ri_reserved[14] + * uint64_t ri_reserved[9] * } */ public static void ri_reserved(MemorySegment struct, long index0, long fieldValue) {