From 8545cbe005444714f67a349157fe367f7f86e660 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:01:54 +0000 Subject: [PATCH] Committing clang-format changes --- java/jsrc/org/hdfgroup/javahdf5/FILE.java | 12 +- .../javahdf5/H5AC_cache_config_t.java | 592 +- .../javahdf5/H5AC_cache_image_config_t.java | 109 +- .../org/hdfgroup/javahdf5/H5A_info_t.java | 108 +- .../hdfgroup/javahdf5/H5A_operator1_t.java | 39 +- .../hdfgroup/javahdf5/H5A_operator2_t.java | 38 +- .../hdfgroup/javahdf5/H5D_append_cb_t.java | 39 +- .../javahdf5/H5D_chunk_iter_op_t.java | 39 +- .../hdfgroup/javahdf5/H5D_gather_func_t.java | 39 +- .../org/hdfgroup/javahdf5/H5D_operator_t.java | 42 +- .../hdfgroup/javahdf5/H5D_scatter_func_t.java | 39 +- .../hdfgroup/javahdf5/H5ES_err_info_t.java | 207 +- .../javahdf5/H5ES_event_complete_func_t.java | 40 +- .../javahdf5/H5ES_event_insert_func_t.java | 37 +- .../org/hdfgroup/javahdf5/H5ES_op_info_t.java | 192 +- .../org/hdfgroup/javahdf5/H5E_auto1_t.java | 32 +- .../org/hdfgroup/javahdf5/H5E_auto2_t.java | 34 +- .../org/hdfgroup/javahdf5/H5E_error1_t.java | 143 +- .../org/hdfgroup/javahdf5/H5E_error2_t.java | 159 +- .../org/hdfgroup/javahdf5/H5E_walk1_t.java | 35 +- .../org/hdfgroup/javahdf5/H5E_walk2_t.java | 35 +- .../org/hdfgroup/javahdf5/H5FD_class_t.java | 1691 +- .../javahdf5/H5FD_ctl_memcpy_args_t.java | 119 +- .../javahdf5/H5FD_file_image_callbacks_t.java | 340 +- .../org/hdfgroup/javahdf5/H5FD_free_t.java | 88 +- .../org/hdfgroup/javahdf5/H5FD_init_t.java | 30 +- .../javahdf5/H5FD_onion_fapl_info_t.java | 192 +- .../javahdf5/H5FD_splitter_vfd_config_t.java | 187 +- java/jsrc/org/hdfgroup/javahdf5/H5FD_t.java | 199 +- .../org/hdfgroup/javahdf5/H5F_flush_cb_t.java | 37 +- .../org/hdfgroup/javahdf5/H5F_info1_t.java | 135 +- .../org/hdfgroup/javahdf5/H5F_info2_t.java | 326 +- .../hdfgroup/javahdf5/H5F_retry_info_t.java | 87 +- .../hdfgroup/javahdf5/H5F_sect_info_t.java | 70 +- .../org/hdfgroup/javahdf5/H5G_info_t.java | 105 +- .../org/hdfgroup/javahdf5/H5G_iterate_t.java | 38 +- .../org/hdfgroup/javahdf5/H5G_stat_t.java | 179 +- .../org/hdfgroup/javahdf5/H5I_free_t.java | 34 +- .../javahdf5/H5I_future_discard_func_t.java | 35 +- .../javahdf5/H5I_future_realize_func_t.java | 38 +- .../hdfgroup/javahdf5/H5I_iterate_func_t.java | 37 +- .../hdfgroup/javahdf5/H5I_search_func_t.java | 38 +- .../org/hdfgroup/javahdf5/H5L_class_0_t.java | 201 +- .../org/hdfgroup/javahdf5/H5L_class_t.java | 201 +- .../hdfgroup/javahdf5/H5L_copy_func_t.java | 40 +- .../hdfgroup/javahdf5/H5L_create_func_t.java | 42 +- .../hdfgroup/javahdf5/H5L_delete_func_t.java | 40 +- .../javahdf5/H5L_elink_traverse_t.java | 54 +- .../org/hdfgroup/javahdf5/H5L_info1_t.java | 185 +- .../org/hdfgroup/javahdf5/H5L_info2_t.java | 185 +- .../org/hdfgroup/javahdf5/H5L_iterate1_t.java | 38 +- .../org/hdfgroup/javahdf5/H5L_iterate2_t.java | 38 +- .../hdfgroup/javahdf5/H5L_move_func_t.java | 40 +- .../hdfgroup/javahdf5/H5L_query_func_t.java | 42 +- .../javahdf5/H5L_traverse_0_func_t.java | 42 +- .../javahdf5/H5L_traverse_func_t.java | 47 +- .../hdfgroup/javahdf5/H5MM_allocate_t.java | 37 +- .../org/hdfgroup/javahdf5/H5MM_free_t.java | 33 +- .../org/hdfgroup/javahdf5/H5M_iterate_t.java | 38 +- .../org/hdfgroup/javahdf5/H5O_hdr_info_t.java | 291 +- .../org/hdfgroup/javahdf5/H5O_info1_t.java | 280 +- .../org/hdfgroup/javahdf5/H5O_info2_t.java | 185 +- .../org/hdfgroup/javahdf5/H5O_iterate1_t.java | 38 +- .../org/hdfgroup/javahdf5/H5O_iterate2_t.java | 38 +- .../javahdf5/H5O_mcdt_search_cb_t.java | 35 +- .../hdfgroup/javahdf5/H5O_native_info_t.java | 133 +- .../org/hdfgroup/javahdf5/H5O_stat_t.java | 104 +- .../org/hdfgroup/javahdf5/H5O_token_t.java | 68 +- .../javahdf5/H5P_cls_close_func_t.java | 37 +- .../javahdf5/H5P_cls_copy_func_t.java | 39 +- .../javahdf5/H5P_cls_create_func_t.java | 37 +- .../org/hdfgroup/javahdf5/H5P_iterate_t.java | 38 +- .../org/hdfgroup/javahdf5/H5P_prp_cb1_t.java | 38 +- .../org/hdfgroup/javahdf5/H5P_prp_cb2_t.java | 40 +- .../javahdf5/H5P_prp_close_func_t.java | 38 +- .../javahdf5/H5P_prp_compare_func_t.java | 38 +- .../javahdf5/H5P_prp_copy_func_t.java | 38 +- .../javahdf5/H5P_prp_create_func_t.java | 38 +- .../javahdf5/H5P_prp_decode_func_t.java | 37 +- .../javahdf5/H5P_prp_delete_func_t.java | 39 +- .../javahdf5/H5P_prp_encode_func_t.java | 39 +- .../hdfgroup/javahdf5/H5P_prp_get_func_t.java | 39 +- .../hdfgroup/javahdf5/H5P_prp_set_func_t.java | 39 +- .../jsrc/org/hdfgroup/javahdf5/H5R_ref_t.java | 129 +- .../org/hdfgroup/javahdf5/H5T_cdata_t.java | 106 +- .../javahdf5/H5T_conv_except_func_t.java | 47 +- .../org/hdfgroup/javahdf5/H5T_conv_t.java | 46 +- .../hdfgroup/javahdf5/H5VL_attr_class_t.java | 441 +- .../H5VL_attr_delete_by_idx_args_t.java | 88 +- .../javahdf5/H5VL_attr_get_args_t.java | 393 +- .../javahdf5/H5VL_attr_get_info_args_t.java | 92 +- .../javahdf5/H5VL_attr_get_name_args_t.java | 109 +- .../javahdf5/H5VL_attr_iterate_args_t.java | 123 +- .../javahdf5/H5VL_attr_specific_args_t.java | 366 +- .../hdfgroup/javahdf5/H5VL_blob_class_t.java | 228 +- .../javahdf5/H5VL_blob_specific_args_t.java | 165 +- .../org/hdfgroup/javahdf5/H5VL_class_t.java | 484 +- .../javahdf5/H5VL_dataset_class_t.java | 444 +- .../javahdf5/H5VL_dataset_get_args_t.java | 486 +- .../H5VL_dataset_specific_args_t.java | 287 +- .../javahdf5/H5VL_datatype_class_t.java | 347 +- .../javahdf5/H5VL_datatype_get_args_t.java | 314 +- .../H5VL_datatype_specific_args_t.java | 222 +- .../hdfgroup/javahdf5/H5VL_file_class_t.java | 308 +- .../javahdf5/H5VL_file_cont_info_t.java | 103 +- .../javahdf5/H5VL_file_get_args_t.java | 543 +- .../javahdf5/H5VL_file_get_name_args_t.java | 108 +- .../H5VL_file_get_obj_ids_args_t.java | 108 +- .../javahdf5/H5VL_file_specific_args_t.java | 504 +- .../hdfgroup/javahdf5/H5VL_group_class_t.java | 319 +- .../javahdf5/H5VL_group_get_args_t.java | 182 +- .../javahdf5/H5VL_group_get_info_args_t.java | 74 +- .../H5VL_group_spec_mount_args_t.java | 90 +- .../javahdf5/H5VL_group_specific_args_t.java | 303 +- .../hdfgroup/javahdf5/H5VL_info_class_t.java | 265 +- .../javahdf5/H5VL_introspect_class_t.java | 180 +- .../hdfgroup/javahdf5/H5VL_link_class_t.java | 398 +- .../javahdf5/H5VL_link_create_args_t.java | 346 +- .../javahdf5/H5VL_link_get_args_t.java | 349 +- .../javahdf5/H5VL_link_iterate_args_t.java | 141 +- .../javahdf5/H5VL_link_specific_args_t.java | 182 +- .../hdfgroup/javahdf5/H5VL_loc_by_idx.java | 121 +- .../hdfgroup/javahdf5/H5VL_loc_by_idx_t.java | 12 +- .../hdfgroup/javahdf5/H5VL_loc_by_name.java | 70 +- .../hdfgroup/javahdf5/H5VL_loc_by_name_t.java | 12 +- .../hdfgroup/javahdf5/H5VL_loc_by_token.java | 53 +- .../javahdf5/H5VL_loc_by_token_t.java | 12 +- .../hdfgroup/javahdf5/H5VL_loc_params_t.java | 173 +- .../hdfgroup/javahdf5/H5VL_map_args_t.java | 1436 +- .../H5VL_native_attr_iterate_old_t.java | 108 +- .../H5VL_native_attr_optional_args_t.java | 56 +- .../H5VL_native_dataset_chunk_read_t.java | 88 +- .../H5VL_native_dataset_chunk_write_t.java | 103 +- ...ive_dataset_get_chunk_info_by_coord_t.java | 105 +- ...ative_dataset_get_chunk_info_by_idx_t.java | 137 +- ...tive_dataset_get_chunk_storage_size_t.java | 69 +- .../H5VL_native_dataset_get_num_chunks_t.java | 72 +- ...VL_native_dataset_get_vlen_buf_size_t.java | 88 +- .../H5VL_native_dataset_optional_args_t.java | 399 +- .../H5VL_native_file_get_file_image_t.java | 90 +- .../H5VL_native_file_get_free_sections_t.java | 110 +- .../H5VL_native_file_get_freespace_t.java | 53 +- .../javahdf5/H5VL_native_file_get_info_t.java | 73 +- ...H5VL_native_file_get_mdc_image_info_t.java | 70 +- ..._native_file_get_mdc_logging_status_t.java | 76 +- .../H5VL_native_file_get_mdc_size_t.java | 112 +- ...ative_file_get_page_buffering_stats_t.java | 126 +- .../H5VL_native_file_get_vfd_handle_t.java | 72 +- .../H5VL_native_file_optional_args_t.java | 824 +- .../H5VL_native_file_set_libver_bounds_t.java | 70 +- .../H5VL_native_group_get_objinfo_t.java | 96 +- .../H5VL_native_group_iterate_old_t.java | 127 +- .../H5VL_native_group_optional_args_t.java | 76 +- .../H5VL_native_object_get_comment_t.java | 90 +- .../H5VL_native_object_get_native_info_t.java | 73 +- .../H5VL_native_object_optional_args_t.java | 206 +- .../javahdf5/H5VL_object_class_t.java | 318 +- .../javahdf5/H5VL_object_get_args_t.java | 416 +- .../javahdf5/H5VL_object_specific_args_t.java | 425 +- .../javahdf5/H5VL_object_visit_args_t.java | 124 +- .../javahdf5/H5VL_optional_args_t.java | 73 +- .../javahdf5/H5VL_pass_through_info_t.java | 72 +- .../javahdf5/H5VL_request_class_t.java | 296 +- .../javahdf5/H5VL_request_notify_t.java | 37 +- .../H5VL_request_specific_args_t.java | 253 +- .../hdfgroup/javahdf5/H5VL_token_class_t.java | 170 +- .../hdfgroup/javahdf5/H5VL_wrap_class_t.java | 270 +- .../javahdf5/H5Z_can_apply_func_t.java | 38 +- java/jsrc/org/hdfgroup/javahdf5/H5Z_cb_t.java | 72 +- .../org/hdfgroup/javahdf5/H5Z_class1_t.java | 125 +- .../org/hdfgroup/javahdf5/H5Z_class2_t.java | 177 +- .../hdfgroup/javahdf5/H5Z_filter_func_t.java | 40 +- .../org/hdfgroup/javahdf5/H5Z_func_t.java | 43 +- .../javahdf5/H5Z_set_local_func_t.java | 38 +- .../hdfgroup/javahdf5/H5_atclose_func_t.java | 34 +- .../org/hdfgroup/javahdf5/H5_ih_info_t.java | 68 +- .../org/hdfgroup/javahdf5/_G_fpos64_t.java | 69 +- .../jsrc/org/hdfgroup/javahdf5/_G_fpos_t.java | 69 +- java/jsrc/org/hdfgroup/javahdf5/_IO_FILE.java | 581 +- .../javahdf5/_IO_cookie_io_functions_t.java | 104 +- java/jsrc/org/hdfgroup/javahdf5/__FILE.java | 12 +- .../javahdf5/__atomic_wide_counter.java | 134 +- .../org/hdfgroup/javahdf5/__fpos64_t.java | 12 +- java/jsrc/org/hdfgroup/javahdf5/__fpos_t.java | 12 +- java/jsrc/org/hdfgroup/javahdf5/__fsid_t.java | 65 +- .../org/hdfgroup/javahdf5/__mbstate_t.java | 147 +- .../org/hdfgroup/javahdf5/__once_flag.java | 53 +- .../hdfgroup/javahdf5/__pthread_cond_s.java | 198 +- .../javahdf5/__pthread_internal_list.java | 68 +- .../javahdf5/__pthread_internal_slist.java | 52 +- .../hdfgroup/javahdf5/__pthread_list_t.java | 12 +- .../hdfgroup/javahdf5/__pthread_mutex_s.java | 169 +- .../javahdf5/__pthread_rwlock_arch_t.java | 253 +- .../hdfgroup/javahdf5/__pthread_slist_t.java | 12 +- .../org/hdfgroup/javahdf5/__sigset_t.java | 65 +- .../javahdf5/cookie_close_function_t.java | 35 +- .../javahdf5/cookie_io_functions_t.java | 12 +- .../javahdf5/cookie_read_function_t.java | 39 +- .../javahdf5/cookie_seek_function_t.java | 38 +- .../javahdf5/cookie_write_function_t.java | 39 +- java/jsrc/org/hdfgroup/javahdf5/fd_set.java | 68 +- java/jsrc/org/hdfgroup/javahdf5/fpos_t.java | 12 +- java/jsrc/org/hdfgroup/javahdf5/fsid_t.java | 12 +- java/jsrc/org/hdfgroup/javahdf5/hdf5_h.java | 14969 +++++------ java/jsrc/org/hdfgroup/javahdf5/hdf5_h_1.java | 20758 +++++++--------- java/jsrc/org/hdfgroup/javahdf5/hdf5_h_2.java | 57 +- .../hdfgroup/javahdf5/hdset_reg_ref_t.java | 68 +- java/jsrc/org/hdfgroup/javahdf5/hvl_t.java | 70 +- .../jsrc/org/hdfgroup/javahdf5/imaxdiv_t.java | 70 +- .../org/hdfgroup/javahdf5/max_align_t.java | 59 +- .../org/hdfgroup/javahdf5/pthread_attr_t.java | 86 +- .../hdfgroup/javahdf5/pthread_barrier_t.java | 86 +- .../javahdf5/pthread_barrierattr_t.java | 86 +- .../org/hdfgroup/javahdf5/pthread_cond_t.java | 102 +- .../hdfgroup/javahdf5/pthread_condattr_t.java | 86 +- .../hdfgroup/javahdf5/pthread_mutex_t.java | 102 +- .../javahdf5/pthread_mutexattr_t.java | 86 +- .../hdfgroup/javahdf5/pthread_rwlock_t.java | 102 +- .../javahdf5/pthread_rwlockattr_t.java | 86 +- java/jsrc/org/hdfgroup/javahdf5/sigset_t.java | 12 +- java/jsrc/org/hdfgroup/javahdf5/timespec.java | 70 +- java/jsrc/org/hdfgroup/javahdf5/timeval.java | 70 +- java/jtest/TestAll.java | 3 +- java/jtest/TestH5.java | 44 +- java/jtest/TestH5D.java | 4 +- java/jtest/TestH5F.java | 2 +- java/jtest/TestH5G.java | 2 +- java/jtest/TestH5Plist.java | 2 +- 228 files changed, 29347 insertions(+), 37108 deletions(-) diff --git a/java/jsrc/org/hdfgroup/javahdf5/FILE.java b/java/jsrc/org/hdfgroup/javahdf5/FILE.java index a0607a17944..cd06e8bd64d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/FILE.java +++ b/java/jsrc/org/hdfgroup/javahdf5/FILE.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct _IO_FILE { @@ -49,8 +49,8 @@ */ public class FILE extends _IO_FILE { - FILE() { + FILE() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_config_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_config_t.java index becea7c81a8..b536bada3a4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_config_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_config_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5AC_cache_config_t { @@ -50,57 +50,40 @@ */ public class H5AC_cache_config_t { - H5AC_cache_config_t() { + H5AC_cache_config_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_BOOL.withName("rpt_fcn_enabled"), - hdf5_h.C_BOOL.withName("open_trace_file"), - hdf5_h.C_BOOL.withName("close_trace_file"), - MemoryLayout.sequenceLayout(1025, hdf5_h.C_CHAR).withName("trace_file_name"), - hdf5_h.C_BOOL.withName("evictions_enabled"), - hdf5_h.C_BOOL.withName("set_initial_size"), - MemoryLayout.paddingLayout(6), - hdf5_h.C_LONG.withName("initial_size"), - hdf5_h.C_DOUBLE.withName("min_clean_fraction"), - hdf5_h.C_LONG.withName("max_size"), - hdf5_h.C_LONG.withName("min_size"), - hdf5_h.C_LONG.withName("epoch_length"), - hdf5_h.C_INT.withName("incr_mode"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_DOUBLE.withName("lower_hr_threshold"), - hdf5_h.C_DOUBLE.withName("increment"), - hdf5_h.C_BOOL.withName("apply_max_increment"), - MemoryLayout.paddingLayout(7), - hdf5_h.C_LONG.withName("max_increment"), - hdf5_h.C_INT.withName("flash_incr_mode"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_DOUBLE.withName("flash_multiple"), - hdf5_h.C_DOUBLE.withName("flash_threshold"), - hdf5_h.C_INT.withName("decr_mode"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_DOUBLE.withName("upper_hr_threshold"), - hdf5_h.C_DOUBLE.withName("decrement"), - hdf5_h.C_BOOL.withName("apply_max_decrement"), - MemoryLayout.paddingLayout(7), - hdf5_h.C_LONG.withName("max_decrement"), - hdf5_h.C_INT.withName("epochs_before_eviction"), - hdf5_h.C_BOOL.withName("apply_empty_reserve"), - MemoryLayout.paddingLayout(3), - hdf5_h.C_DOUBLE.withName("empty_reserve"), - hdf5_h.C_LONG.withName("dirty_bytes_threshold"), - hdf5_h.C_INT.withName("metadata_write_strategy"), - MemoryLayout.paddingLayout(4) - ).withName("H5AC_cache_config_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout( + hdf5_h.C_INT.withName("version"), hdf5_h.C_BOOL.withName("rpt_fcn_enabled"), + hdf5_h.C_BOOL.withName("open_trace_file"), hdf5_h.C_BOOL.withName("close_trace_file"), + MemoryLayout.sequenceLayout(1025, hdf5_h.C_CHAR).withName("trace_file_name"), + hdf5_h.C_BOOL.withName("evictions_enabled"), hdf5_h.C_BOOL.withName("set_initial_size"), + MemoryLayout.paddingLayout(6), hdf5_h.C_LONG.withName("initial_size"), + hdf5_h.C_DOUBLE.withName("min_clean_fraction"), hdf5_h.C_LONG.withName("max_size"), + hdf5_h.C_LONG.withName("min_size"), hdf5_h.C_LONG.withName("epoch_length"), + hdf5_h.C_INT.withName("incr_mode"), MemoryLayout.paddingLayout(4), + hdf5_h.C_DOUBLE.withName("lower_hr_threshold"), hdf5_h.C_DOUBLE.withName("increment"), + hdf5_h.C_BOOL.withName("apply_max_increment"), MemoryLayout.paddingLayout(7), + hdf5_h.C_LONG.withName("max_increment"), hdf5_h.C_INT.withName("flash_incr_mode"), + MemoryLayout.paddingLayout(4), hdf5_h.C_DOUBLE.withName("flash_multiple"), + hdf5_h.C_DOUBLE.withName("flash_threshold"), hdf5_h.C_INT.withName("decr_mode"), + MemoryLayout.paddingLayout(4), hdf5_h.C_DOUBLE.withName("upper_hr_threshold"), + hdf5_h.C_DOUBLE.withName("decrement"), hdf5_h.C_BOOL.withName("apply_max_decrement"), + MemoryLayout.paddingLayout(7), hdf5_h.C_LONG.withName("max_decrement"), + hdf5_h.C_INT.withName("epochs_before_eviction"), + hdf5_h.C_BOOL.withName("apply_empty_reserve"), MemoryLayout.paddingLayout(3), + hdf5_h.C_DOUBLE.withName("empty_reserve"), hdf5_h.C_LONG.withName("dirty_bytes_threshold"), + hdf5_h.C_INT.withName("metadata_write_strategy"), MemoryLayout.paddingLayout(4)) + .withName("H5AC_cache_config_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -110,9 +93,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -122,9 +103,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -132,9 +111,7 @@ public static final GroupLayout layout() { * int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -142,11 +119,13 @@ public static int version(MemorySegment struct) { * int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } - private static final OfBoolean rpt_fcn_enabled$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("rpt_fcn_enabled")); + private static final OfBoolean rpt_fcn_enabled$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("rpt_fcn_enabled")); /** * Layout for field: @@ -154,9 +133,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t rpt_fcn_enabled * } */ - public static final OfBoolean rpt_fcn_enabled$layout() { - return rpt_fcn_enabled$LAYOUT; - } + public static final OfBoolean rpt_fcn_enabled$layout() { return rpt_fcn_enabled$LAYOUT; } private static final long rpt_fcn_enabled$OFFSET = 4; @@ -166,9 +143,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t rpt_fcn_enabled * } */ - public static final long rpt_fcn_enabled$offset() { - return rpt_fcn_enabled$OFFSET; - } + public static final long rpt_fcn_enabled$offset() { return rpt_fcn_enabled$OFFSET; } /** * Getter for field: @@ -176,7 +151,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t rpt_fcn_enabled * } */ - public static boolean rpt_fcn_enabled(MemorySegment struct) { + public static boolean rpt_fcn_enabled(MemorySegment struct) + { return struct.get(rpt_fcn_enabled$LAYOUT, rpt_fcn_enabled$OFFSET); } @@ -186,11 +162,13 @@ public static boolean rpt_fcn_enabled(MemorySegment struct) { * hbool_t rpt_fcn_enabled * } */ - public static void rpt_fcn_enabled(MemorySegment struct, boolean fieldValue) { + public static void rpt_fcn_enabled(MemorySegment struct, boolean fieldValue) + { struct.set(rpt_fcn_enabled$LAYOUT, rpt_fcn_enabled$OFFSET, fieldValue); } - private static final OfBoolean open_trace_file$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("open_trace_file")); + private static final OfBoolean open_trace_file$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("open_trace_file")); /** * Layout for field: @@ -198,9 +176,7 @@ public static void rpt_fcn_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t open_trace_file * } */ - public static final OfBoolean open_trace_file$layout() { - return open_trace_file$LAYOUT; - } + public static final OfBoolean open_trace_file$layout() { return open_trace_file$LAYOUT; } private static final long open_trace_file$OFFSET = 5; @@ -210,9 +186,7 @@ public static void rpt_fcn_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t open_trace_file * } */ - public static final long open_trace_file$offset() { - return open_trace_file$OFFSET; - } + public static final long open_trace_file$offset() { return open_trace_file$OFFSET; } /** * Getter for field: @@ -220,7 +194,8 @@ public static void rpt_fcn_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t open_trace_file * } */ - public static boolean open_trace_file(MemorySegment struct) { + public static boolean open_trace_file(MemorySegment struct) + { return struct.get(open_trace_file$LAYOUT, open_trace_file$OFFSET); } @@ -230,11 +205,13 @@ public static boolean open_trace_file(MemorySegment struct) { * hbool_t open_trace_file * } */ - public static void open_trace_file(MemorySegment struct, boolean fieldValue) { + public static void open_trace_file(MemorySegment struct, boolean fieldValue) + { struct.set(open_trace_file$LAYOUT, open_trace_file$OFFSET, fieldValue); } - private static final OfBoolean close_trace_file$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("close_trace_file")); + private static final OfBoolean close_trace_file$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("close_trace_file")); /** * Layout for field: @@ -242,9 +219,7 @@ public static void open_trace_file(MemorySegment struct, boolean fieldValue) { * hbool_t close_trace_file * } */ - public static final OfBoolean close_trace_file$layout() { - return close_trace_file$LAYOUT; - } + public static final OfBoolean close_trace_file$layout() { return close_trace_file$LAYOUT; } private static final long close_trace_file$OFFSET = 6; @@ -254,9 +229,7 @@ public static void open_trace_file(MemorySegment struct, boolean fieldValue) { * hbool_t close_trace_file * } */ - public static final long close_trace_file$offset() { - return close_trace_file$OFFSET; - } + public static final long close_trace_file$offset() { return close_trace_file$OFFSET; } /** * Getter for field: @@ -264,7 +237,8 @@ public static void open_trace_file(MemorySegment struct, boolean fieldValue) { * hbool_t close_trace_file * } */ - public static boolean close_trace_file(MemorySegment struct) { + public static boolean close_trace_file(MemorySegment struct) + { return struct.get(close_trace_file$LAYOUT, close_trace_file$OFFSET); } @@ -274,11 +248,13 @@ public static boolean close_trace_file(MemorySegment struct) { * hbool_t close_trace_file * } */ - public static void close_trace_file(MemorySegment struct, boolean fieldValue) { + public static void close_trace_file(MemorySegment struct, boolean fieldValue) + { struct.set(close_trace_file$LAYOUT, close_trace_file$OFFSET, fieldValue); } - private static final SequenceLayout trace_file_name$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("trace_file_name")); + private static final SequenceLayout trace_file_name$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("trace_file_name")); /** * Layout for field: @@ -286,9 +262,7 @@ public static void close_trace_file(MemorySegment struct, boolean fieldValue) { * char trace_file_name[1025] * } */ - public static final SequenceLayout trace_file_name$layout() { - return trace_file_name$LAYOUT; - } + public static final SequenceLayout trace_file_name$layout() { return trace_file_name$LAYOUT; } private static final long trace_file_name$OFFSET = 7; @@ -298,9 +272,7 @@ public static void close_trace_file(MemorySegment struct, boolean fieldValue) { * char trace_file_name[1025] * } */ - public static final long trace_file_name$offset() { - return trace_file_name$OFFSET; - } + public static final long trace_file_name$offset() { return trace_file_name$OFFSET; } /** * Getter for field: @@ -308,7 +280,8 @@ public static void close_trace_file(MemorySegment struct, boolean fieldValue) { * char trace_file_name[1025] * } */ - public static MemorySegment trace_file_name(MemorySegment struct) { + public static MemorySegment trace_file_name(MemorySegment struct) + { return struct.asSlice(trace_file_name$OFFSET, trace_file_name$LAYOUT.byteSize()); } @@ -318,11 +291,12 @@ public static MemorySegment trace_file_name(MemorySegment struct) { * char trace_file_name[1025] * } */ - public static void trace_file_name(MemorySegment struct, MemorySegment fieldValue) { + public static void trace_file_name(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, trace_file_name$OFFSET, trace_file_name$LAYOUT.byteSize()); } - private static long[] trace_file_name$DIMS = { 1025 }; + private static long[] trace_file_name$DIMS = {1025}; /** * Dimensions for array field: @@ -330,10 +304,9 @@ public static void trace_file_name(MemorySegment struct, MemorySegment fieldValu * char trace_file_name[1025] * } */ - public static long[] trace_file_name$dimensions() { - return trace_file_name$DIMS; - } - private static final VarHandle trace_file_name$ELEM_HANDLE = trace_file_name$LAYOUT.varHandle(sequenceElement()); + public static long[] trace_file_name$dimensions() { return trace_file_name$DIMS; } + private static final VarHandle trace_file_name$ELEM_HANDLE = + trace_file_name$LAYOUT.varHandle(sequenceElement()); /** * Indexed getter for field: @@ -341,7 +314,8 @@ public static void trace_file_name(MemorySegment struct, MemorySegment fieldValu * char trace_file_name[1025] * } */ - public static byte trace_file_name(MemorySegment struct, long index0) { + public static byte trace_file_name(MemorySegment struct, long index0) + { return (byte)trace_file_name$ELEM_HANDLE.get(struct, 0L, index0); } @@ -351,11 +325,13 @@ public static byte trace_file_name(MemorySegment struct, long index0) { * char trace_file_name[1025] * } */ - public static void trace_file_name(MemorySegment struct, long index0, byte fieldValue) { + public static void trace_file_name(MemorySegment struct, long index0, byte fieldValue) + { trace_file_name$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } - private static final OfBoolean evictions_enabled$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("evictions_enabled")); + private static final OfBoolean evictions_enabled$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("evictions_enabled")); /** * Layout for field: @@ -363,9 +339,7 @@ public static void trace_file_name(MemorySegment struct, long index0, byte field * hbool_t evictions_enabled * } */ - public static final OfBoolean evictions_enabled$layout() { - return evictions_enabled$LAYOUT; - } + public static final OfBoolean evictions_enabled$layout() { return evictions_enabled$LAYOUT; } private static final long evictions_enabled$OFFSET = 1032; @@ -375,9 +349,7 @@ public static void trace_file_name(MemorySegment struct, long index0, byte field * hbool_t evictions_enabled * } */ - public static final long evictions_enabled$offset() { - return evictions_enabled$OFFSET; - } + public static final long evictions_enabled$offset() { return evictions_enabled$OFFSET; } /** * Getter for field: @@ -385,7 +357,8 @@ public static void trace_file_name(MemorySegment struct, long index0, byte field * hbool_t evictions_enabled * } */ - public static boolean evictions_enabled(MemorySegment struct) { + public static boolean evictions_enabled(MemorySegment struct) + { return struct.get(evictions_enabled$LAYOUT, evictions_enabled$OFFSET); } @@ -395,11 +368,13 @@ public static boolean evictions_enabled(MemorySegment struct) { * hbool_t evictions_enabled * } */ - public static void evictions_enabled(MemorySegment struct, boolean fieldValue) { + public static void evictions_enabled(MemorySegment struct, boolean fieldValue) + { struct.set(evictions_enabled$LAYOUT, evictions_enabled$OFFSET, fieldValue); } - private static final OfBoolean set_initial_size$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("set_initial_size")); + private static final OfBoolean set_initial_size$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("set_initial_size")); /** * Layout for field: @@ -407,9 +382,7 @@ public static void evictions_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t set_initial_size * } */ - public static final OfBoolean set_initial_size$layout() { - return set_initial_size$LAYOUT; - } + public static final OfBoolean set_initial_size$layout() { return set_initial_size$LAYOUT; } private static final long set_initial_size$OFFSET = 1033; @@ -419,9 +392,7 @@ public static void evictions_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t set_initial_size * } */ - public static final long set_initial_size$offset() { - return set_initial_size$OFFSET; - } + public static final long set_initial_size$offset() { return set_initial_size$OFFSET; } /** * Getter for field: @@ -429,7 +400,8 @@ public static void evictions_enabled(MemorySegment struct, boolean fieldValue) { * hbool_t set_initial_size * } */ - public static boolean set_initial_size(MemorySegment struct) { + public static boolean set_initial_size(MemorySegment struct) + { return struct.get(set_initial_size$LAYOUT, set_initial_size$OFFSET); } @@ -439,7 +411,8 @@ public static boolean set_initial_size(MemorySegment struct) { * hbool_t set_initial_size * } */ - public static void set_initial_size(MemorySegment struct, boolean fieldValue) { + public static void set_initial_size(MemorySegment struct, boolean fieldValue) + { struct.set(set_initial_size$LAYOUT, set_initial_size$OFFSET, fieldValue); } @@ -451,9 +424,7 @@ public static void set_initial_size(MemorySegment struct, boolean fieldValue) { * size_t initial_size * } */ - public static final OfLong initial_size$layout() { - return initial_size$LAYOUT; - } + public static final OfLong initial_size$layout() { return initial_size$LAYOUT; } private static final long initial_size$OFFSET = 1040; @@ -463,9 +434,7 @@ public static void set_initial_size(MemorySegment struct, boolean fieldValue) { * size_t initial_size * } */ - public static final long initial_size$offset() { - return initial_size$OFFSET; - } + public static final long initial_size$offset() { return initial_size$OFFSET; } /** * Getter for field: @@ -473,7 +442,8 @@ public static void set_initial_size(MemorySegment struct, boolean fieldValue) { * size_t initial_size * } */ - public static long initial_size(MemorySegment struct) { + public static long initial_size(MemorySegment struct) + { return struct.get(initial_size$LAYOUT, initial_size$OFFSET); } @@ -483,11 +453,13 @@ public static long initial_size(MemorySegment struct) { * size_t initial_size * } */ - public static void initial_size(MemorySegment struct, long fieldValue) { + public static void initial_size(MemorySegment struct, long fieldValue) + { struct.set(initial_size$LAYOUT, initial_size$OFFSET, fieldValue); } - private static final OfDouble min_clean_fraction$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("min_clean_fraction")); + private static final OfDouble min_clean_fraction$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("min_clean_fraction")); /** * Layout for field: @@ -495,9 +467,7 @@ public static void initial_size(MemorySegment struct, long fieldValue) { * double min_clean_fraction * } */ - public static final OfDouble min_clean_fraction$layout() { - return min_clean_fraction$LAYOUT; - } + public static final OfDouble min_clean_fraction$layout() { return min_clean_fraction$LAYOUT; } private static final long min_clean_fraction$OFFSET = 1048; @@ -507,9 +477,7 @@ public static void initial_size(MemorySegment struct, long fieldValue) { * double min_clean_fraction * } */ - public static final long min_clean_fraction$offset() { - return min_clean_fraction$OFFSET; - } + public static final long min_clean_fraction$offset() { return min_clean_fraction$OFFSET; } /** * Getter for field: @@ -517,7 +485,8 @@ public static void initial_size(MemorySegment struct, long fieldValue) { * double min_clean_fraction * } */ - public static double min_clean_fraction(MemorySegment struct) { + public static double min_clean_fraction(MemorySegment struct) + { return struct.get(min_clean_fraction$LAYOUT, min_clean_fraction$OFFSET); } @@ -527,7 +496,8 @@ public static double min_clean_fraction(MemorySegment struct) { * double min_clean_fraction * } */ - public static void min_clean_fraction(MemorySegment struct, double fieldValue) { + public static void min_clean_fraction(MemorySegment struct, double fieldValue) + { struct.set(min_clean_fraction$LAYOUT, min_clean_fraction$OFFSET, fieldValue); } @@ -539,9 +509,7 @@ public static void min_clean_fraction(MemorySegment struct, double fieldValue) { * size_t max_size * } */ - public static final OfLong max_size$layout() { - return max_size$LAYOUT; - } + public static final OfLong max_size$layout() { return max_size$LAYOUT; } private static final long max_size$OFFSET = 1056; @@ -551,9 +519,7 @@ public static void min_clean_fraction(MemorySegment struct, double fieldValue) { * size_t max_size * } */ - public static final long max_size$offset() { - return max_size$OFFSET; - } + public static final long max_size$offset() { return max_size$OFFSET; } /** * Getter for field: @@ -561,9 +527,7 @@ public static void min_clean_fraction(MemorySegment struct, double fieldValue) { * size_t max_size * } */ - public static long max_size(MemorySegment struct) { - return struct.get(max_size$LAYOUT, max_size$OFFSET); - } + public static long max_size(MemorySegment struct) { return struct.get(max_size$LAYOUT, max_size$OFFSET); } /** * Setter for field: @@ -571,7 +535,8 @@ public static long max_size(MemorySegment struct) { * size_t max_size * } */ - public static void max_size(MemorySegment struct, long fieldValue) { + public static void max_size(MemorySegment struct, long fieldValue) + { struct.set(max_size$LAYOUT, max_size$OFFSET, fieldValue); } @@ -583,9 +548,7 @@ public static void max_size(MemorySegment struct, long fieldValue) { * size_t min_size * } */ - public static final OfLong min_size$layout() { - return min_size$LAYOUT; - } + public static final OfLong min_size$layout() { return min_size$LAYOUT; } private static final long min_size$OFFSET = 1064; @@ -595,9 +558,7 @@ public static void max_size(MemorySegment struct, long fieldValue) { * size_t min_size * } */ - public static final long min_size$offset() { - return min_size$OFFSET; - } + public static final long min_size$offset() { return min_size$OFFSET; } /** * Getter for field: @@ -605,9 +566,7 @@ public static void max_size(MemorySegment struct, long fieldValue) { * size_t min_size * } */ - public static long min_size(MemorySegment struct) { - return struct.get(min_size$LAYOUT, min_size$OFFSET); - } + public static long min_size(MemorySegment struct) { return struct.get(min_size$LAYOUT, min_size$OFFSET); } /** * Setter for field: @@ -615,7 +574,8 @@ public static long min_size(MemorySegment struct) { * size_t min_size * } */ - public static void min_size(MemorySegment struct, long fieldValue) { + public static void min_size(MemorySegment struct, long fieldValue) + { struct.set(min_size$LAYOUT, min_size$OFFSET, fieldValue); } @@ -627,9 +587,7 @@ public static void min_size(MemorySegment struct, long fieldValue) { * long epoch_length * } */ - public static final OfLong epoch_length$layout() { - return epoch_length$LAYOUT; - } + public static final OfLong epoch_length$layout() { return epoch_length$LAYOUT; } private static final long epoch_length$OFFSET = 1072; @@ -639,9 +597,7 @@ public static void min_size(MemorySegment struct, long fieldValue) { * long epoch_length * } */ - public static final long epoch_length$offset() { - return epoch_length$OFFSET; - } + public static final long epoch_length$offset() { return epoch_length$OFFSET; } /** * Getter for field: @@ -649,7 +605,8 @@ public static void min_size(MemorySegment struct, long fieldValue) { * long epoch_length * } */ - public static long epoch_length(MemorySegment struct) { + public static long epoch_length(MemorySegment struct) + { return struct.get(epoch_length$LAYOUT, epoch_length$OFFSET); } @@ -659,7 +616,8 @@ public static long epoch_length(MemorySegment struct) { * long epoch_length * } */ - public static void epoch_length(MemorySegment struct, long fieldValue) { + public static void epoch_length(MemorySegment struct, long fieldValue) + { struct.set(epoch_length$LAYOUT, epoch_length$OFFSET, fieldValue); } @@ -671,9 +629,7 @@ public static void epoch_length(MemorySegment struct, long fieldValue) { * enum H5C_cache_incr_mode incr_mode * } */ - public static final OfInt incr_mode$layout() { - return incr_mode$LAYOUT; - } + public static final OfInt incr_mode$layout() { return incr_mode$LAYOUT; } private static final long incr_mode$OFFSET = 1080; @@ -683,9 +639,7 @@ public static void epoch_length(MemorySegment struct, long fieldValue) { * enum H5C_cache_incr_mode incr_mode * } */ - public static final long incr_mode$offset() { - return incr_mode$OFFSET; - } + public static final long incr_mode$offset() { return incr_mode$OFFSET; } /** * Getter for field: @@ -693,7 +647,8 @@ public static void epoch_length(MemorySegment struct, long fieldValue) { * enum H5C_cache_incr_mode incr_mode * } */ - public static int incr_mode(MemorySegment struct) { + public static int incr_mode(MemorySegment struct) + { return struct.get(incr_mode$LAYOUT, incr_mode$OFFSET); } @@ -703,11 +658,13 @@ public static int incr_mode(MemorySegment struct) { * enum H5C_cache_incr_mode incr_mode * } */ - public static void incr_mode(MemorySegment struct, int fieldValue) { + public static void incr_mode(MemorySegment struct, int fieldValue) + { struct.set(incr_mode$LAYOUT, incr_mode$OFFSET, fieldValue); } - private static final OfDouble lower_hr_threshold$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("lower_hr_threshold")); + private static final OfDouble lower_hr_threshold$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("lower_hr_threshold")); /** * Layout for field: @@ -715,9 +672,7 @@ public static void incr_mode(MemorySegment struct, int fieldValue) { * double lower_hr_threshold * } */ - public static final OfDouble lower_hr_threshold$layout() { - return lower_hr_threshold$LAYOUT; - } + public static final OfDouble lower_hr_threshold$layout() { return lower_hr_threshold$LAYOUT; } private static final long lower_hr_threshold$OFFSET = 1088; @@ -727,9 +682,7 @@ public static void incr_mode(MemorySegment struct, int fieldValue) { * double lower_hr_threshold * } */ - public static final long lower_hr_threshold$offset() { - return lower_hr_threshold$OFFSET; - } + public static final long lower_hr_threshold$offset() { return lower_hr_threshold$OFFSET; } /** * Getter for field: @@ -737,7 +690,8 @@ public static void incr_mode(MemorySegment struct, int fieldValue) { * double lower_hr_threshold * } */ - public static double lower_hr_threshold(MemorySegment struct) { + public static double lower_hr_threshold(MemorySegment struct) + { return struct.get(lower_hr_threshold$LAYOUT, lower_hr_threshold$OFFSET); } @@ -747,7 +701,8 @@ public static double lower_hr_threshold(MemorySegment struct) { * double lower_hr_threshold * } */ - public static void lower_hr_threshold(MemorySegment struct, double fieldValue) { + public static void lower_hr_threshold(MemorySegment struct, double fieldValue) + { struct.set(lower_hr_threshold$LAYOUT, lower_hr_threshold$OFFSET, fieldValue); } @@ -759,9 +714,7 @@ public static void lower_hr_threshold(MemorySegment struct, double fieldValue) { * double increment * } */ - public static final OfDouble increment$layout() { - return increment$LAYOUT; - } + public static final OfDouble increment$layout() { return increment$LAYOUT; } private static final long increment$OFFSET = 1096; @@ -771,9 +724,7 @@ public static void lower_hr_threshold(MemorySegment struct, double fieldValue) { * double increment * } */ - public static final long increment$offset() { - return increment$OFFSET; - } + public static final long increment$offset() { return increment$OFFSET; } /** * Getter for field: @@ -781,7 +732,8 @@ public static void lower_hr_threshold(MemorySegment struct, double fieldValue) { * double increment * } */ - public static double increment(MemorySegment struct) { + public static double increment(MemorySegment struct) + { return struct.get(increment$LAYOUT, increment$OFFSET); } @@ -791,11 +743,13 @@ public static double increment(MemorySegment struct) { * double increment * } */ - public static void increment(MemorySegment struct, double fieldValue) { + public static void increment(MemorySegment struct, double fieldValue) + { struct.set(increment$LAYOUT, increment$OFFSET, fieldValue); } - private static final OfBoolean apply_max_increment$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("apply_max_increment")); + private static final OfBoolean apply_max_increment$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("apply_max_increment")); /** * Layout for field: @@ -803,9 +757,7 @@ public static void increment(MemorySegment struct, double fieldValue) { * hbool_t apply_max_increment * } */ - public static final OfBoolean apply_max_increment$layout() { - return apply_max_increment$LAYOUT; - } + public static final OfBoolean apply_max_increment$layout() { return apply_max_increment$LAYOUT; } private static final long apply_max_increment$OFFSET = 1104; @@ -815,9 +767,7 @@ public static void increment(MemorySegment struct, double fieldValue) { * hbool_t apply_max_increment * } */ - public static final long apply_max_increment$offset() { - return apply_max_increment$OFFSET; - } + public static final long apply_max_increment$offset() { return apply_max_increment$OFFSET; } /** * Getter for field: @@ -825,7 +775,8 @@ public static void increment(MemorySegment struct, double fieldValue) { * hbool_t apply_max_increment * } */ - public static boolean apply_max_increment(MemorySegment struct) { + public static boolean apply_max_increment(MemorySegment struct) + { return struct.get(apply_max_increment$LAYOUT, apply_max_increment$OFFSET); } @@ -835,7 +786,8 @@ public static boolean apply_max_increment(MemorySegment struct) { * hbool_t apply_max_increment * } */ - public static void apply_max_increment(MemorySegment struct, boolean fieldValue) { + public static void apply_max_increment(MemorySegment struct, boolean fieldValue) + { struct.set(apply_max_increment$LAYOUT, apply_max_increment$OFFSET, fieldValue); } @@ -847,9 +799,7 @@ public static void apply_max_increment(MemorySegment struct, boolean fieldValue) * size_t max_increment * } */ - public static final OfLong max_increment$layout() { - return max_increment$LAYOUT; - } + public static final OfLong max_increment$layout() { return max_increment$LAYOUT; } private static final long max_increment$OFFSET = 1112; @@ -859,9 +809,7 @@ public static void apply_max_increment(MemorySegment struct, boolean fieldValue) * size_t max_increment * } */ - public static final long max_increment$offset() { - return max_increment$OFFSET; - } + public static final long max_increment$offset() { return max_increment$OFFSET; } /** * Getter for field: @@ -869,7 +817,8 @@ public static void apply_max_increment(MemorySegment struct, boolean fieldValue) * size_t max_increment * } */ - public static long max_increment(MemorySegment struct) { + public static long max_increment(MemorySegment struct) + { return struct.get(max_increment$LAYOUT, max_increment$OFFSET); } @@ -879,11 +828,13 @@ public static long max_increment(MemorySegment struct) { * size_t max_increment * } */ - public static void max_increment(MemorySegment struct, long fieldValue) { + public static void max_increment(MemorySegment struct, long fieldValue) + { struct.set(max_increment$LAYOUT, max_increment$OFFSET, fieldValue); } - private static final OfInt flash_incr_mode$LAYOUT = (OfInt)$LAYOUT.select(groupElement("flash_incr_mode")); + private static final OfInt flash_incr_mode$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("flash_incr_mode")); /** * Layout for field: @@ -891,9 +842,7 @@ public static void max_increment(MemorySegment struct, long fieldValue) { * enum H5C_cache_flash_incr_mode flash_incr_mode * } */ - public static final OfInt flash_incr_mode$layout() { - return flash_incr_mode$LAYOUT; - } + public static final OfInt flash_incr_mode$layout() { return flash_incr_mode$LAYOUT; } private static final long flash_incr_mode$OFFSET = 1120; @@ -903,9 +852,7 @@ public static void max_increment(MemorySegment struct, long fieldValue) { * enum H5C_cache_flash_incr_mode flash_incr_mode * } */ - public static final long flash_incr_mode$offset() { - return flash_incr_mode$OFFSET; - } + public static final long flash_incr_mode$offset() { return flash_incr_mode$OFFSET; } /** * Getter for field: @@ -913,7 +860,8 @@ public static void max_increment(MemorySegment struct, long fieldValue) { * enum H5C_cache_flash_incr_mode flash_incr_mode * } */ - public static int flash_incr_mode(MemorySegment struct) { + public static int flash_incr_mode(MemorySegment struct) + { return struct.get(flash_incr_mode$LAYOUT, flash_incr_mode$OFFSET); } @@ -923,11 +871,13 @@ public static int flash_incr_mode(MemorySegment struct) { * enum H5C_cache_flash_incr_mode flash_incr_mode * } */ - public static void flash_incr_mode(MemorySegment struct, int fieldValue) { + public static void flash_incr_mode(MemorySegment struct, int fieldValue) + { struct.set(flash_incr_mode$LAYOUT, flash_incr_mode$OFFSET, fieldValue); } - private static final OfDouble flash_multiple$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("flash_multiple")); + private static final OfDouble flash_multiple$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("flash_multiple")); /** * Layout for field: @@ -935,9 +885,7 @@ public static void flash_incr_mode(MemorySegment struct, int fieldValue) { * double flash_multiple * } */ - public static final OfDouble flash_multiple$layout() { - return flash_multiple$LAYOUT; - } + public static final OfDouble flash_multiple$layout() { return flash_multiple$LAYOUT; } private static final long flash_multiple$OFFSET = 1128; @@ -947,9 +895,7 @@ public static void flash_incr_mode(MemorySegment struct, int fieldValue) { * double flash_multiple * } */ - public static final long flash_multiple$offset() { - return flash_multiple$OFFSET; - } + public static final long flash_multiple$offset() { return flash_multiple$OFFSET; } /** * Getter for field: @@ -957,7 +903,8 @@ public static void flash_incr_mode(MemorySegment struct, int fieldValue) { * double flash_multiple * } */ - public static double flash_multiple(MemorySegment struct) { + public static double flash_multiple(MemorySegment struct) + { return struct.get(flash_multiple$LAYOUT, flash_multiple$OFFSET); } @@ -967,11 +914,13 @@ public static double flash_multiple(MemorySegment struct) { * double flash_multiple * } */ - public static void flash_multiple(MemorySegment struct, double fieldValue) { + public static void flash_multiple(MemorySegment struct, double fieldValue) + { struct.set(flash_multiple$LAYOUT, flash_multiple$OFFSET, fieldValue); } - private static final OfDouble flash_threshold$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("flash_threshold")); + private static final OfDouble flash_threshold$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("flash_threshold")); /** * Layout for field: @@ -979,9 +928,7 @@ public static void flash_multiple(MemorySegment struct, double fieldValue) { * double flash_threshold * } */ - public static final OfDouble flash_threshold$layout() { - return flash_threshold$LAYOUT; - } + public static final OfDouble flash_threshold$layout() { return flash_threshold$LAYOUT; } private static final long flash_threshold$OFFSET = 1136; @@ -991,9 +938,7 @@ public static void flash_multiple(MemorySegment struct, double fieldValue) { * double flash_threshold * } */ - public static final long flash_threshold$offset() { - return flash_threshold$OFFSET; - } + public static final long flash_threshold$offset() { return flash_threshold$OFFSET; } /** * Getter for field: @@ -1001,7 +946,8 @@ public static void flash_multiple(MemorySegment struct, double fieldValue) { * double flash_threshold * } */ - public static double flash_threshold(MemorySegment struct) { + public static double flash_threshold(MemorySegment struct) + { return struct.get(flash_threshold$LAYOUT, flash_threshold$OFFSET); } @@ -1011,7 +957,8 @@ public static double flash_threshold(MemorySegment struct) { * double flash_threshold * } */ - public static void flash_threshold(MemorySegment struct, double fieldValue) { + public static void flash_threshold(MemorySegment struct, double fieldValue) + { struct.set(flash_threshold$LAYOUT, flash_threshold$OFFSET, fieldValue); } @@ -1023,9 +970,7 @@ public static void flash_threshold(MemorySegment struct, double fieldValue) { * enum H5C_cache_decr_mode decr_mode * } */ - public static final OfInt decr_mode$layout() { - return decr_mode$LAYOUT; - } + public static final OfInt decr_mode$layout() { return decr_mode$LAYOUT; } private static final long decr_mode$OFFSET = 1144; @@ -1035,9 +980,7 @@ public static void flash_threshold(MemorySegment struct, double fieldValue) { * enum H5C_cache_decr_mode decr_mode * } */ - public static final long decr_mode$offset() { - return decr_mode$OFFSET; - } + public static final long decr_mode$offset() { return decr_mode$OFFSET; } /** * Getter for field: @@ -1045,7 +988,8 @@ public static void flash_threshold(MemorySegment struct, double fieldValue) { * enum H5C_cache_decr_mode decr_mode * } */ - public static int decr_mode(MemorySegment struct) { + public static int decr_mode(MemorySegment struct) + { return struct.get(decr_mode$LAYOUT, decr_mode$OFFSET); } @@ -1055,11 +999,13 @@ public static int decr_mode(MemorySegment struct) { * enum H5C_cache_decr_mode decr_mode * } */ - public static void decr_mode(MemorySegment struct, int fieldValue) { + public static void decr_mode(MemorySegment struct, int fieldValue) + { struct.set(decr_mode$LAYOUT, decr_mode$OFFSET, fieldValue); } - private static final OfDouble upper_hr_threshold$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("upper_hr_threshold")); + private static final OfDouble upper_hr_threshold$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("upper_hr_threshold")); /** * Layout for field: @@ -1067,9 +1013,7 @@ public static void decr_mode(MemorySegment struct, int fieldValue) { * double upper_hr_threshold * } */ - public static final OfDouble upper_hr_threshold$layout() { - return upper_hr_threshold$LAYOUT; - } + public static final OfDouble upper_hr_threshold$layout() { return upper_hr_threshold$LAYOUT; } private static final long upper_hr_threshold$OFFSET = 1152; @@ -1079,9 +1023,7 @@ public static void decr_mode(MemorySegment struct, int fieldValue) { * double upper_hr_threshold * } */ - public static final long upper_hr_threshold$offset() { - return upper_hr_threshold$OFFSET; - } + public static final long upper_hr_threshold$offset() { return upper_hr_threshold$OFFSET; } /** * Getter for field: @@ -1089,7 +1031,8 @@ public static void decr_mode(MemorySegment struct, int fieldValue) { * double upper_hr_threshold * } */ - public static double upper_hr_threshold(MemorySegment struct) { + public static double upper_hr_threshold(MemorySegment struct) + { return struct.get(upper_hr_threshold$LAYOUT, upper_hr_threshold$OFFSET); } @@ -1099,7 +1042,8 @@ public static double upper_hr_threshold(MemorySegment struct) { * double upper_hr_threshold * } */ - public static void upper_hr_threshold(MemorySegment struct, double fieldValue) { + public static void upper_hr_threshold(MemorySegment struct, double fieldValue) + { struct.set(upper_hr_threshold$LAYOUT, upper_hr_threshold$OFFSET, fieldValue); } @@ -1111,9 +1055,7 @@ public static void upper_hr_threshold(MemorySegment struct, double fieldValue) { * double decrement * } */ - public static final OfDouble decrement$layout() { - return decrement$LAYOUT; - } + public static final OfDouble decrement$layout() { return decrement$LAYOUT; } private static final long decrement$OFFSET = 1160; @@ -1123,9 +1065,7 @@ public static void upper_hr_threshold(MemorySegment struct, double fieldValue) { * double decrement * } */ - public static final long decrement$offset() { - return decrement$OFFSET; - } + public static final long decrement$offset() { return decrement$OFFSET; } /** * Getter for field: @@ -1133,7 +1073,8 @@ public static void upper_hr_threshold(MemorySegment struct, double fieldValue) { * double decrement * } */ - public static double decrement(MemorySegment struct) { + public static double decrement(MemorySegment struct) + { return struct.get(decrement$LAYOUT, decrement$OFFSET); } @@ -1143,11 +1084,13 @@ public static double decrement(MemorySegment struct) { * double decrement * } */ - public static void decrement(MemorySegment struct, double fieldValue) { + public static void decrement(MemorySegment struct, double fieldValue) + { struct.set(decrement$LAYOUT, decrement$OFFSET, fieldValue); } - private static final OfBoolean apply_max_decrement$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("apply_max_decrement")); + private static final OfBoolean apply_max_decrement$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("apply_max_decrement")); /** * Layout for field: @@ -1155,9 +1098,7 @@ public static void decrement(MemorySegment struct, double fieldValue) { * hbool_t apply_max_decrement * } */ - public static final OfBoolean apply_max_decrement$layout() { - return apply_max_decrement$LAYOUT; - } + public static final OfBoolean apply_max_decrement$layout() { return apply_max_decrement$LAYOUT; } private static final long apply_max_decrement$OFFSET = 1168; @@ -1167,9 +1108,7 @@ public static void decrement(MemorySegment struct, double fieldValue) { * hbool_t apply_max_decrement * } */ - public static final long apply_max_decrement$offset() { - return apply_max_decrement$OFFSET; - } + public static final long apply_max_decrement$offset() { return apply_max_decrement$OFFSET; } /** * Getter for field: @@ -1177,7 +1116,8 @@ public static void decrement(MemorySegment struct, double fieldValue) { * hbool_t apply_max_decrement * } */ - public static boolean apply_max_decrement(MemorySegment struct) { + public static boolean apply_max_decrement(MemorySegment struct) + { return struct.get(apply_max_decrement$LAYOUT, apply_max_decrement$OFFSET); } @@ -1187,7 +1127,8 @@ public static boolean apply_max_decrement(MemorySegment struct) { * hbool_t apply_max_decrement * } */ - public static void apply_max_decrement(MemorySegment struct, boolean fieldValue) { + public static void apply_max_decrement(MemorySegment struct, boolean fieldValue) + { struct.set(apply_max_decrement$LAYOUT, apply_max_decrement$OFFSET, fieldValue); } @@ -1199,9 +1140,7 @@ public static void apply_max_decrement(MemorySegment struct, boolean fieldValue) * size_t max_decrement * } */ - public static final OfLong max_decrement$layout() { - return max_decrement$LAYOUT; - } + public static final OfLong max_decrement$layout() { return max_decrement$LAYOUT; } private static final long max_decrement$OFFSET = 1176; @@ -1211,9 +1150,7 @@ public static void apply_max_decrement(MemorySegment struct, boolean fieldValue) * size_t max_decrement * } */ - public static final long max_decrement$offset() { - return max_decrement$OFFSET; - } + public static final long max_decrement$offset() { return max_decrement$OFFSET; } /** * Getter for field: @@ -1221,7 +1158,8 @@ public static void apply_max_decrement(MemorySegment struct, boolean fieldValue) * size_t max_decrement * } */ - public static long max_decrement(MemorySegment struct) { + public static long max_decrement(MemorySegment struct) + { return struct.get(max_decrement$LAYOUT, max_decrement$OFFSET); } @@ -1231,11 +1169,13 @@ public static long max_decrement(MemorySegment struct) { * size_t max_decrement * } */ - public static void max_decrement(MemorySegment struct, long fieldValue) { + public static void max_decrement(MemorySegment struct, long fieldValue) + { struct.set(max_decrement$LAYOUT, max_decrement$OFFSET, fieldValue); } - private static final OfInt epochs_before_eviction$LAYOUT = (OfInt)$LAYOUT.select(groupElement("epochs_before_eviction")); + private static final OfInt epochs_before_eviction$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("epochs_before_eviction")); /** * Layout for field: @@ -1243,9 +1183,7 @@ public static void max_decrement(MemorySegment struct, long fieldValue) { * int epochs_before_eviction * } */ - public static final OfInt epochs_before_eviction$layout() { - return epochs_before_eviction$LAYOUT; - } + public static final OfInt epochs_before_eviction$layout() { return epochs_before_eviction$LAYOUT; } private static final long epochs_before_eviction$OFFSET = 1184; @@ -1255,9 +1193,7 @@ public static void max_decrement(MemorySegment struct, long fieldValue) { * int epochs_before_eviction * } */ - public static final long epochs_before_eviction$offset() { - return epochs_before_eviction$OFFSET; - } + public static final long epochs_before_eviction$offset() { return epochs_before_eviction$OFFSET; } /** * Getter for field: @@ -1265,7 +1201,8 @@ public static void max_decrement(MemorySegment struct, long fieldValue) { * int epochs_before_eviction * } */ - public static int epochs_before_eviction(MemorySegment struct) { + public static int epochs_before_eviction(MemorySegment struct) + { return struct.get(epochs_before_eviction$LAYOUT, epochs_before_eviction$OFFSET); } @@ -1275,11 +1212,13 @@ public static int epochs_before_eviction(MemorySegment struct) { * int epochs_before_eviction * } */ - public static void epochs_before_eviction(MemorySegment struct, int fieldValue) { + public static void epochs_before_eviction(MemorySegment struct, int fieldValue) + { struct.set(epochs_before_eviction$LAYOUT, epochs_before_eviction$OFFSET, fieldValue); } - private static final OfBoolean apply_empty_reserve$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("apply_empty_reserve")); + private static final OfBoolean apply_empty_reserve$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("apply_empty_reserve")); /** * Layout for field: @@ -1287,9 +1226,7 @@ public static void epochs_before_eviction(MemorySegment struct, int fieldValue) * hbool_t apply_empty_reserve * } */ - public static final OfBoolean apply_empty_reserve$layout() { - return apply_empty_reserve$LAYOUT; - } + public static final OfBoolean apply_empty_reserve$layout() { return apply_empty_reserve$LAYOUT; } private static final long apply_empty_reserve$OFFSET = 1188; @@ -1299,9 +1236,7 @@ public static void epochs_before_eviction(MemorySegment struct, int fieldValue) * hbool_t apply_empty_reserve * } */ - public static final long apply_empty_reserve$offset() { - return apply_empty_reserve$OFFSET; - } + public static final long apply_empty_reserve$offset() { return apply_empty_reserve$OFFSET; } /** * Getter for field: @@ -1309,7 +1244,8 @@ public static void epochs_before_eviction(MemorySegment struct, int fieldValue) * hbool_t apply_empty_reserve * } */ - public static boolean apply_empty_reserve(MemorySegment struct) { + public static boolean apply_empty_reserve(MemorySegment struct) + { return struct.get(apply_empty_reserve$LAYOUT, apply_empty_reserve$OFFSET); } @@ -1319,11 +1255,13 @@ public static boolean apply_empty_reserve(MemorySegment struct) { * hbool_t apply_empty_reserve * } */ - public static void apply_empty_reserve(MemorySegment struct, boolean fieldValue) { + public static void apply_empty_reserve(MemorySegment struct, boolean fieldValue) + { struct.set(apply_empty_reserve$LAYOUT, apply_empty_reserve$OFFSET, fieldValue); } - private static final OfDouble empty_reserve$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("empty_reserve")); + private static final OfDouble empty_reserve$LAYOUT = + (OfDouble)$LAYOUT.select(groupElement("empty_reserve")); /** * Layout for field: @@ -1331,9 +1269,7 @@ public static void apply_empty_reserve(MemorySegment struct, boolean fieldValue) * double empty_reserve * } */ - public static final OfDouble empty_reserve$layout() { - return empty_reserve$LAYOUT; - } + public static final OfDouble empty_reserve$layout() { return empty_reserve$LAYOUT; } private static final long empty_reserve$OFFSET = 1192; @@ -1343,9 +1279,7 @@ public static void apply_empty_reserve(MemorySegment struct, boolean fieldValue) * double empty_reserve * } */ - public static final long empty_reserve$offset() { - return empty_reserve$OFFSET; - } + public static final long empty_reserve$offset() { return empty_reserve$OFFSET; } /** * Getter for field: @@ -1353,7 +1287,8 @@ public static void apply_empty_reserve(MemorySegment struct, boolean fieldValue) * double empty_reserve * } */ - public static double empty_reserve(MemorySegment struct) { + public static double empty_reserve(MemorySegment struct) + { return struct.get(empty_reserve$LAYOUT, empty_reserve$OFFSET); } @@ -1363,11 +1298,13 @@ public static double empty_reserve(MemorySegment struct) { * double empty_reserve * } */ - public static void empty_reserve(MemorySegment struct, double fieldValue) { + public static void empty_reserve(MemorySegment struct, double fieldValue) + { struct.set(empty_reserve$LAYOUT, empty_reserve$OFFSET, fieldValue); } - private static final OfLong dirty_bytes_threshold$LAYOUT = (OfLong)$LAYOUT.select(groupElement("dirty_bytes_threshold")); + private static final OfLong dirty_bytes_threshold$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("dirty_bytes_threshold")); /** * Layout for field: @@ -1375,9 +1312,7 @@ public static void empty_reserve(MemorySegment struct, double fieldValue) { * size_t dirty_bytes_threshold * } */ - public static final OfLong dirty_bytes_threshold$layout() { - return dirty_bytes_threshold$LAYOUT; - } + public static final OfLong dirty_bytes_threshold$layout() { return dirty_bytes_threshold$LAYOUT; } private static final long dirty_bytes_threshold$OFFSET = 1200; @@ -1387,9 +1322,7 @@ public static void empty_reserve(MemorySegment struct, double fieldValue) { * size_t dirty_bytes_threshold * } */ - public static final long dirty_bytes_threshold$offset() { - return dirty_bytes_threshold$OFFSET; - } + public static final long dirty_bytes_threshold$offset() { return dirty_bytes_threshold$OFFSET; } /** * Getter for field: @@ -1397,7 +1330,8 @@ public static void empty_reserve(MemorySegment struct, double fieldValue) { * size_t dirty_bytes_threshold * } */ - public static long dirty_bytes_threshold(MemorySegment struct) { + public static long dirty_bytes_threshold(MemorySegment struct) + { return struct.get(dirty_bytes_threshold$LAYOUT, dirty_bytes_threshold$OFFSET); } @@ -1407,11 +1341,13 @@ public static long dirty_bytes_threshold(MemorySegment struct) { * size_t dirty_bytes_threshold * } */ - public static void dirty_bytes_threshold(MemorySegment struct, long fieldValue) { + public static void dirty_bytes_threshold(MemorySegment struct, long fieldValue) + { struct.set(dirty_bytes_threshold$LAYOUT, dirty_bytes_threshold$OFFSET, fieldValue); } - private static final OfInt metadata_write_strategy$LAYOUT = (OfInt)$LAYOUT.select(groupElement("metadata_write_strategy")); + private static final OfInt metadata_write_strategy$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("metadata_write_strategy")); /** * Layout for field: @@ -1419,9 +1355,7 @@ public static void dirty_bytes_threshold(MemorySegment struct, long fieldValue) * int metadata_write_strategy * } */ - public static final OfInt metadata_write_strategy$layout() { - return metadata_write_strategy$LAYOUT; - } + public static final OfInt metadata_write_strategy$layout() { return metadata_write_strategy$LAYOUT; } private static final long metadata_write_strategy$OFFSET = 1208; @@ -1431,9 +1365,7 @@ public static void dirty_bytes_threshold(MemorySegment struct, long fieldValue) * int metadata_write_strategy * } */ - public static final long metadata_write_strategy$offset() { - return metadata_write_strategy$OFFSET; - } + public static final long metadata_write_strategy$offset() { return metadata_write_strategy$OFFSET; } /** * Getter for field: @@ -1441,7 +1373,8 @@ public static void dirty_bytes_threshold(MemorySegment struct, long fieldValue) * int metadata_write_strategy * } */ - public static int metadata_write_strategy(MemorySegment struct) { + public static int metadata_write_strategy(MemorySegment struct) + { return struct.get(metadata_write_strategy$LAYOUT, metadata_write_strategy$OFFSET); } @@ -1451,7 +1384,8 @@ public static int metadata_write_strategy(MemorySegment struct) { * int metadata_write_strategy * } */ - public static void metadata_write_strategy(MemorySegment struct, int fieldValue) { + public static void metadata_write_strategy(MemorySegment struct, int fieldValue) + { struct.set(metadata_write_strategy$LAYOUT, metadata_write_strategy$OFFSET, fieldValue); } @@ -1459,7 +1393,8 @@ public static void metadata_write_strategy(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1471,15 +1406,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1487,7 +1421,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1495,8 +1430,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_image_config_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_image_config_t.java index 2d198d9a664..d2e9cc83f45 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_image_config_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5AC_cache_image_config_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5AC_cache_image_config_t { @@ -24,24 +24,22 @@ */ public class H5AC_cache_image_config_t { - H5AC_cache_image_config_t() { + H5AC_cache_image_config_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_BOOL.withName("generate_image"), - hdf5_h.C_BOOL.withName("save_resize_status"), - MemoryLayout.paddingLayout(2), - hdf5_h.C_INT.withName("entry_ageout") - ).withName("H5AC_cache_image_config_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_BOOL.withName("generate_image"), + hdf5_h.C_BOOL.withName("save_resize_status"), MemoryLayout.paddingLayout(2), + hdf5_h.C_INT.withName("entry_ageout")) + .withName("H5AC_cache_image_config_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -83,11 +75,13 @@ public static int version(MemorySegment struct) { * int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } - private static final OfBoolean generate_image$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("generate_image")); + private static final OfBoolean generate_image$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("generate_image")); /** * Layout for field: @@ -95,9 +89,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t generate_image * } */ - public static final OfBoolean generate_image$layout() { - return generate_image$LAYOUT; - } + public static final OfBoolean generate_image$layout() { return generate_image$LAYOUT; } private static final long generate_image$OFFSET = 4; @@ -107,9 +99,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t generate_image * } */ - public static final long generate_image$offset() { - return generate_image$OFFSET; - } + public static final long generate_image$offset() { return generate_image$OFFSET; } /** * Getter for field: @@ -117,7 +107,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hbool_t generate_image * } */ - public static boolean generate_image(MemorySegment struct) { + public static boolean generate_image(MemorySegment struct) + { return struct.get(generate_image$LAYOUT, generate_image$OFFSET); } @@ -127,11 +118,13 @@ public static boolean generate_image(MemorySegment struct) { * hbool_t generate_image * } */ - public static void generate_image(MemorySegment struct, boolean fieldValue) { + public static void generate_image(MemorySegment struct, boolean fieldValue) + { struct.set(generate_image$LAYOUT, generate_image$OFFSET, fieldValue); } - private static final OfBoolean save_resize_status$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("save_resize_status")); + private static final OfBoolean save_resize_status$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("save_resize_status")); /** * Layout for field: @@ -139,9 +132,7 @@ public static void generate_image(MemorySegment struct, boolean fieldValue) { * hbool_t save_resize_status * } */ - public static final OfBoolean save_resize_status$layout() { - return save_resize_status$LAYOUT; - } + public static final OfBoolean save_resize_status$layout() { return save_resize_status$LAYOUT; } private static final long save_resize_status$OFFSET = 5; @@ -151,9 +142,7 @@ public static void generate_image(MemorySegment struct, boolean fieldValue) { * hbool_t save_resize_status * } */ - public static final long save_resize_status$offset() { - return save_resize_status$OFFSET; - } + public static final long save_resize_status$offset() { return save_resize_status$OFFSET; } /** * Getter for field: @@ -161,7 +150,8 @@ public static void generate_image(MemorySegment struct, boolean fieldValue) { * hbool_t save_resize_status * } */ - public static boolean save_resize_status(MemorySegment struct) { + public static boolean save_resize_status(MemorySegment struct) + { return struct.get(save_resize_status$LAYOUT, save_resize_status$OFFSET); } @@ -171,7 +161,8 @@ public static boolean save_resize_status(MemorySegment struct) { * hbool_t save_resize_status * } */ - public static void save_resize_status(MemorySegment struct, boolean fieldValue) { + public static void save_resize_status(MemorySegment struct, boolean fieldValue) + { struct.set(save_resize_status$LAYOUT, save_resize_status$OFFSET, fieldValue); } @@ -183,9 +174,7 @@ public static void save_resize_status(MemorySegment struct, boolean fieldValue) * int entry_ageout * } */ - public static final OfInt entry_ageout$layout() { - return entry_ageout$LAYOUT; - } + public static final OfInt entry_ageout$layout() { return entry_ageout$LAYOUT; } private static final long entry_ageout$OFFSET = 8; @@ -195,9 +184,7 @@ public static void save_resize_status(MemorySegment struct, boolean fieldValue) * int entry_ageout * } */ - public static final long entry_ageout$offset() { - return entry_ageout$OFFSET; - } + public static final long entry_ageout$offset() { return entry_ageout$OFFSET; } /** * Getter for field: @@ -205,7 +192,8 @@ public static void save_resize_status(MemorySegment struct, boolean fieldValue) * int entry_ageout * } */ - public static int entry_ageout(MemorySegment struct) { + public static int entry_ageout(MemorySegment struct) + { return struct.get(entry_ageout$LAYOUT, entry_ageout$OFFSET); } @@ -215,7 +203,8 @@ public static int entry_ageout(MemorySegment struct) { * int entry_ageout * } */ - public static void entry_ageout(MemorySegment struct, int fieldValue) { + public static void entry_ageout(MemorySegment struct, int fieldValue) + { struct.set(entry_ageout$LAYOUT, entry_ageout$OFFSET, fieldValue); } @@ -223,7 +212,8 @@ public static void entry_ageout(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +225,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +240,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +249,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5A_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5A_info_t.java index be46b01d57f..50904287098 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5A_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5A_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -24,27 +24,25 @@ */ public class H5A_info_t { - H5A_info_t() { + H5A_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_BOOL.withName("corder_valid"), - MemoryLayout.paddingLayout(3), - hdf5_h.C_INT.withName("corder"), - hdf5_h.C_INT.withName("cset"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("data_size") - ).withName("$anon$28:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_BOOL.withName("corder_valid"), MemoryLayout.paddingLayout(3), + hdf5_h.C_INT.withName("corder"), hdf5_h.C_INT.withName("cset"), + MemoryLayout.paddingLayout(4), hdf5_h.C_LONG.withName("data_size")) + .withName("$anon$28:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfBoolean corder_valid$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); + private static final OfBoolean corder_valid$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); /** * Layout for field: @@ -52,9 +50,7 @@ public static final GroupLayout layout() { * hbool_t corder_valid * } */ - public static final OfBoolean corder_valid$layout() { - return corder_valid$LAYOUT; - } + public static final OfBoolean corder_valid$layout() { return corder_valid$LAYOUT; } private static final long corder_valid$OFFSET = 0; @@ -64,9 +60,7 @@ public static final GroupLayout layout() { * hbool_t corder_valid * } */ - public static final long corder_valid$offset() { - return corder_valid$OFFSET; - } + public static final long corder_valid$offset() { return corder_valid$OFFSET; } /** * Getter for field: @@ -74,7 +68,8 @@ public static final GroupLayout layout() { * hbool_t corder_valid * } */ - public static boolean corder_valid(MemorySegment struct) { + public static boolean corder_valid(MemorySegment struct) + { return struct.get(corder_valid$LAYOUT, corder_valid$OFFSET); } @@ -84,7 +79,8 @@ public static boolean corder_valid(MemorySegment struct) { * hbool_t corder_valid * } */ - public static void corder_valid(MemorySegment struct, boolean fieldValue) { + public static void corder_valid(MemorySegment struct, boolean fieldValue) + { struct.set(corder_valid$LAYOUT, corder_valid$OFFSET, fieldValue); } @@ -96,9 +92,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * H5O_msg_crt_idx_t corder * } */ - public static final OfInt corder$layout() { - return corder$LAYOUT; - } + public static final OfInt corder$layout() { return corder$LAYOUT; } private static final long corder$OFFSET = 4; @@ -108,9 +102,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * H5O_msg_crt_idx_t corder * } */ - public static final long corder$offset() { - return corder$OFFSET; - } + public static final long corder$offset() { return corder$OFFSET; } /** * Getter for field: @@ -118,9 +110,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * H5O_msg_crt_idx_t corder * } */ - public static int corder(MemorySegment struct) { - return struct.get(corder$LAYOUT, corder$OFFSET); - } + public static int corder(MemorySegment struct) { return struct.get(corder$LAYOUT, corder$OFFSET); } /** * Setter for field: @@ -128,7 +118,8 @@ public static int corder(MemorySegment struct) { * H5O_msg_crt_idx_t corder * } */ - public static void corder(MemorySegment struct, int fieldValue) { + public static void corder(MemorySegment struct, int fieldValue) + { struct.set(corder$LAYOUT, corder$OFFSET, fieldValue); } @@ -140,9 +131,7 @@ public static void corder(MemorySegment struct, int fieldValue) { * H5T_cset_t cset * } */ - public static final OfInt cset$layout() { - return cset$LAYOUT; - } + public static final OfInt cset$layout() { return cset$LAYOUT; } private static final long cset$OFFSET = 8; @@ -152,9 +141,7 @@ public static void corder(MemorySegment struct, int fieldValue) { * H5T_cset_t cset * } */ - public static final long cset$offset() { - return cset$OFFSET; - } + public static final long cset$offset() { return cset$OFFSET; } /** * Getter for field: @@ -162,9 +149,7 @@ public static void corder(MemorySegment struct, int fieldValue) { * H5T_cset_t cset * } */ - public static int cset(MemorySegment struct) { - return struct.get(cset$LAYOUT, cset$OFFSET); - } + public static int cset(MemorySegment struct) { return struct.get(cset$LAYOUT, cset$OFFSET); } /** * Setter for field: @@ -172,7 +157,8 @@ public static int cset(MemorySegment struct) { * H5T_cset_t cset * } */ - public static void cset(MemorySegment struct, int fieldValue) { + public static void cset(MemorySegment struct, int fieldValue) + { struct.set(cset$LAYOUT, cset$OFFSET, fieldValue); } @@ -184,9 +170,7 @@ public static void cset(MemorySegment struct, int fieldValue) { * hsize_t data_size * } */ - public static final OfLong data_size$layout() { - return data_size$LAYOUT; - } + public static final OfLong data_size$layout() { return data_size$LAYOUT; } private static final long data_size$OFFSET = 16; @@ -196,9 +180,7 @@ public static void cset(MemorySegment struct, int fieldValue) { * hsize_t data_size * } */ - public static final long data_size$offset() { - return data_size$OFFSET; - } + public static final long data_size$offset() { return data_size$OFFSET; } /** * Getter for field: @@ -206,7 +188,8 @@ public static void cset(MemorySegment struct, int fieldValue) { * hsize_t data_size * } */ - public static long data_size(MemorySegment struct) { + public static long data_size(MemorySegment struct) + { return struct.get(data_size$LAYOUT, data_size$OFFSET); } @@ -216,7 +199,8 @@ public static long data_size(MemorySegment struct) { * hsize_t data_size * } */ - public static void data_size(MemorySegment struct, long fieldValue) { + public static void data_size(MemorySegment struct, long fieldValue) + { struct.set(data_size$LAYOUT, data_size$OFFSET, fieldValue); } @@ -224,7 +208,8 @@ public static void data_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -236,15 +221,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -252,7 +236,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -260,8 +245,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5A_operator1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5A_operator1_t.java index 49df8dc81e7..6060c3cb150 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5A_operator1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5A_operator1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5A_operator1_t)(hid_t, const char *, void *) @@ -19,7 +19,8 @@ */ public class H5A_operator1_t { - H5A_operator1_t() { + H5A_operator1_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long location_id, MemorySegment attr_name, MemorySegment operator_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5A_operator1_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5A_operator1_t.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(H5A_operator1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5A_operator1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5A_operator1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long location_id, MemorySegment attr_name, MemorySegment operator_data) { + public static int invoke(MemorySegment funcPtr, long location_id, MemorySegment attr_name, + MemorySegment operator_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, location_id, attr_name, operator_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, location_id, attr_name, operator_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5A_operator2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5A_operator2_t.java index 07bb04ed8bc..5d65c2c7b3e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5A_operator2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5A_operator2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5A_operator2_t)(hid_t, const char *, const H5A_info_t *, void *) @@ -19,7 +19,8 @@ */ public class H5A_operator2_t { - H5A_operator2_t() { + H5A_operator2_t() + { // Should not be called directly } @@ -31,27 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5A_operator2_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5A_operator2_t.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(H5A_operator2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5A_operator2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5A_operator2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long location_id, MemorySegment attr_name, MemorySegment ainfo, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long location_id, MemorySegment attr_name, + MemorySegment ainfo, MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, location_id, attr_name, ainfo, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, location_id, attr_name, ainfo, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5D_append_cb_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5D_append_cb_t.java index 163a92b8edd..015269b5f31 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5D_append_cb_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5D_append_cb_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5D_append_cb_t)(hid_t, hsize_t *, void *) @@ -19,7 +19,8 @@ */ public class H5D_append_cb_t { - H5D_append_cb_t() { + H5D_append_cb_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long dataset_id, MemorySegment cur_dims, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5D_append_cb_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5D_append_cb_t.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(H5D_append_cb_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5D_append_cb_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5D_append_cb_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long dataset_id, MemorySegment cur_dims, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long dataset_id, MemorySegment cur_dims, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, dataset_id, cur_dims, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, dataset_id, cur_dims, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5D_chunk_iter_op_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5D_chunk_iter_op_t.java index cdc0adf8885..ecfd49aed64 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5D_chunk_iter_op_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5D_chunk_iter_op_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (*H5D_chunk_iter_op_t)(const hsize_t *, unsigned int, haddr_t, hsize_t, void *) @@ -19,7 +19,8 @@ */ public class H5D_chunk_iter_op_t { - H5D_chunk_iter_op_t() { + H5D_chunk_iter_op_t() + { // Should not be called directly } @@ -31,28 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5D_chunk_iter_op_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5D_chunk_iter_op_t.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(H5D_chunk_iter_op_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5D_chunk_iter_op_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -61,12 +56,14 @@ public static MemorySegment allocate(H5D_chunk_iter_op_t.Function fi, Arena aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment offset, int filter_mask, long addr, long size, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment offset, int filter_mask, long addr, + long size, MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, offset, filter_mask, addr, size, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, offset, filter_mask, addr, size, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5D_gather_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5D_gather_func_t.java index 1d61a478a7a..ad8c03471d4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5D_gather_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5D_gather_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5D_gather_func_t)(const void *, size_t, void *) @@ -19,7 +19,8 @@ */ public class H5D_gather_func_t { - H5D_gather_func_t() { + H5D_gather_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment dst_buf, long dst_buf_bytes_used, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5D_gather_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5D_gather_func_t.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(H5D_gather_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5D_gather_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5D_gather_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment dst_buf, long dst_buf_bytes_used, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment dst_buf, long dst_buf_bytes_used, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, dst_buf, dst_buf_bytes_used, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, dst_buf, dst_buf_bytes_used, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5D_operator_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5D_operator_t.java index 5cb397c5699..970216e70b5 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5D_operator_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5D_operator_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5D_operator_t)(void *, hid_t, unsigned int, const hsize_t *, void *) @@ -19,7 +19,8 @@ */ public class H5D_operator_t { - H5D_operator_t() { + H5D_operator_t() + { // Should not be called directly } @@ -27,32 +28,27 @@ public class H5D_operator_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment elem, long type_id, int ndim, MemorySegment point, MemorySegment operator_data); + int apply(MemorySegment elem, long type_id, int ndim, MemorySegment point, + MemorySegment operator_data); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5D_operator_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5D_operator_t.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(H5D_operator_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5D_operator_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -61,12 +57,14 @@ public static MemorySegment allocate(H5D_operator_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment elem, long type_id, int ndim, MemorySegment point, MemorySegment operator_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment elem, long type_id, int ndim, + MemorySegment point, MemorySegment operator_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, elem, type_id, ndim, point, operator_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, elem, type_id, ndim, point, operator_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5D_scatter_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5D_scatter_func_t.java index f6e89dfe4e6..1da536d39f7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5D_scatter_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5D_scatter_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5D_scatter_func_t)(const void **, size_t *, void *) @@ -19,7 +19,8 @@ */ public class H5D_scatter_func_t { - H5D_scatter_func_t() { + H5D_scatter_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment src_buf, MemorySegment src_buf_bytes_used, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5D_scatter_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5D_scatter_func_t.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(H5D_scatter_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5D_scatter_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5D_scatter_func_t.Function fi, Arena arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment src_buf, MemorySegment src_buf_bytes_used, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment src_buf, MemorySegment src_buf_bytes_used, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, src_buf, src_buf_bytes_used, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, src_buf, src_buf_bytes_used, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5ES_err_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5ES_err_info_t.java index 44ccbf7b4ab..6b992a120c0 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5ES_err_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5ES_err_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5ES_err_info_t { @@ -30,32 +30,28 @@ */ public class H5ES_err_info_t { - H5ES_err_info_t() { + H5ES_err_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("api_name"), - hdf5_h.C_POINTER.withName("api_args"), - hdf5_h.C_POINTER.withName("app_file_name"), - hdf5_h.C_POINTER.withName("app_func_name"), - hdf5_h.C_INT.withName("app_line_num"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("op_ins_count"), - hdf5_h.C_LONG.withName("op_ins_ts"), - hdf5_h.C_LONG.withName("op_exec_ts"), - hdf5_h.C_LONG.withName("op_exec_time"), - hdf5_h.C_LONG.withName("err_stack_id") - ).withName("H5ES_err_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("api_name"), hdf5_h.C_POINTER.withName("api_args"), + hdf5_h.C_POINTER.withName("app_file_name"), + hdf5_h.C_POINTER.withName("app_func_name"), hdf5_h.C_INT.withName("app_line_num"), + MemoryLayout.paddingLayout(4), hdf5_h.C_LONG.withName("op_ins_count"), + hdf5_h.C_LONG.withName("op_ins_ts"), hdf5_h.C_LONG.withName("op_exec_ts"), + hdf5_h.C_LONG.withName("op_exec_time"), hdf5_h.C_LONG.withName("err_stack_id")) + .withName("H5ES_err_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout api_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("api_name")); + private static final AddressLayout api_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("api_name")); /** * Layout for field: @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * char *api_name * } */ - public static final AddressLayout api_name$layout() { - return api_name$LAYOUT; - } + public static final AddressLayout api_name$layout() { return api_name$LAYOUT; } private static final long api_name$OFFSET = 0; @@ -75,9 +69,7 @@ public static final GroupLayout layout() { * char *api_name * } */ - public static final long api_name$offset() { - return api_name$OFFSET; - } + public static final long api_name$offset() { return api_name$OFFSET; } /** * Getter for field: @@ -85,7 +77,8 @@ public static final GroupLayout layout() { * char *api_name * } */ - public static MemorySegment api_name(MemorySegment struct) { + public static MemorySegment api_name(MemorySegment struct) + { return struct.get(api_name$LAYOUT, api_name$OFFSET); } @@ -95,11 +88,13 @@ public static MemorySegment api_name(MemorySegment struct) { * char *api_name * } */ - public static void api_name(MemorySegment struct, MemorySegment fieldValue) { + public static void api_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(api_name$LAYOUT, api_name$OFFSET, fieldValue); } - private static final AddressLayout api_args$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("api_args")); + private static final AddressLayout api_args$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("api_args")); /** * Layout for field: @@ -107,9 +102,7 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static final AddressLayout api_args$layout() { - return api_args$LAYOUT; - } + public static final AddressLayout api_args$layout() { return api_args$LAYOUT; } private static final long api_args$OFFSET = 8; @@ -119,9 +112,7 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static final long api_args$offset() { - return api_args$OFFSET; - } + public static final long api_args$offset() { return api_args$OFFSET; } /** * Getter for field: @@ -129,7 +120,8 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static MemorySegment api_args(MemorySegment struct) { + public static MemorySegment api_args(MemorySegment struct) + { return struct.get(api_args$LAYOUT, api_args$OFFSET); } @@ -139,11 +131,13 @@ public static MemorySegment api_args(MemorySegment struct) { * char *api_args * } */ - public static void api_args(MemorySegment struct, MemorySegment fieldValue) { + public static void api_args(MemorySegment struct, MemorySegment fieldValue) + { struct.set(api_args$LAYOUT, api_args$OFFSET, fieldValue); } - private static final AddressLayout app_file_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("app_file_name")); + private static final AddressLayout app_file_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("app_file_name")); /** * Layout for field: @@ -151,9 +145,7 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * char *app_file_name * } */ - public static final AddressLayout app_file_name$layout() { - return app_file_name$LAYOUT; - } + public static final AddressLayout app_file_name$layout() { return app_file_name$LAYOUT; } private static final long app_file_name$OFFSET = 16; @@ -163,9 +155,7 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * char *app_file_name * } */ - public static final long app_file_name$offset() { - return app_file_name$OFFSET; - } + public static final long app_file_name$offset() { return app_file_name$OFFSET; } /** * Getter for field: @@ -173,7 +163,8 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * char *app_file_name * } */ - public static MemorySegment app_file_name(MemorySegment struct) { + public static MemorySegment app_file_name(MemorySegment struct) + { return struct.get(app_file_name$LAYOUT, app_file_name$OFFSET); } @@ -183,11 +174,13 @@ public static MemorySegment app_file_name(MemorySegment struct) { * char *app_file_name * } */ - public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) { + public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(app_file_name$LAYOUT, app_file_name$OFFSET, fieldValue); } - private static final AddressLayout app_func_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("app_func_name")); + private static final AddressLayout app_func_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("app_func_name")); /** * Layout for field: @@ -195,9 +188,7 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * char *app_func_name * } */ - public static final AddressLayout app_func_name$layout() { - return app_func_name$LAYOUT; - } + public static final AddressLayout app_func_name$layout() { return app_func_name$LAYOUT; } private static final long app_func_name$OFFSET = 24; @@ -207,9 +198,7 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * char *app_func_name * } */ - public static final long app_func_name$offset() { - return app_func_name$OFFSET; - } + public static final long app_func_name$offset() { return app_func_name$OFFSET; } /** * Getter for field: @@ -217,7 +206,8 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * char *app_func_name * } */ - public static MemorySegment app_func_name(MemorySegment struct) { + public static MemorySegment app_func_name(MemorySegment struct) + { return struct.get(app_func_name$LAYOUT, app_func_name$OFFSET); } @@ -227,7 +217,8 @@ public static MemorySegment app_func_name(MemorySegment struct) { * char *app_func_name * } */ - public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) { + public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(app_func_name$LAYOUT, app_func_name$OFFSET, fieldValue); } @@ -239,9 +230,7 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static final OfInt app_line_num$layout() { - return app_line_num$LAYOUT; - } + public static final OfInt app_line_num$layout() { return app_line_num$LAYOUT; } private static final long app_line_num$OFFSET = 32; @@ -251,9 +240,7 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static final long app_line_num$offset() { - return app_line_num$OFFSET; - } + public static final long app_line_num$offset() { return app_line_num$OFFSET; } /** * Getter for field: @@ -261,7 +248,8 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static int app_line_num(MemorySegment struct) { + public static int app_line_num(MemorySegment struct) + { return struct.get(app_line_num$LAYOUT, app_line_num$OFFSET); } @@ -271,7 +259,8 @@ public static int app_line_num(MemorySegment struct) { * unsigned int app_line_num * } */ - public static void app_line_num(MemorySegment struct, int fieldValue) { + public static void app_line_num(MemorySegment struct, int fieldValue) + { struct.set(app_line_num$LAYOUT, app_line_num$OFFSET, fieldValue); } @@ -283,9 +272,7 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static final OfLong op_ins_count$layout() { - return op_ins_count$LAYOUT; - } + public static final OfLong op_ins_count$layout() { return op_ins_count$LAYOUT; } private static final long op_ins_count$OFFSET = 40; @@ -295,9 +282,7 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static final long op_ins_count$offset() { - return op_ins_count$OFFSET; - } + public static final long op_ins_count$offset() { return op_ins_count$OFFSET; } /** * Getter for field: @@ -305,7 +290,8 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static long op_ins_count(MemorySegment struct) { + public static long op_ins_count(MemorySegment struct) + { return struct.get(op_ins_count$LAYOUT, op_ins_count$OFFSET); } @@ -315,7 +301,8 @@ public static long op_ins_count(MemorySegment struct) { * uint64_t op_ins_count * } */ - public static void op_ins_count(MemorySegment struct, long fieldValue) { + public static void op_ins_count(MemorySegment struct, long fieldValue) + { struct.set(op_ins_count$LAYOUT, op_ins_count$OFFSET, fieldValue); } @@ -327,9 +314,7 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static final OfLong op_ins_ts$layout() { - return op_ins_ts$LAYOUT; - } + public static final OfLong op_ins_ts$layout() { return op_ins_ts$LAYOUT; } private static final long op_ins_ts$OFFSET = 48; @@ -339,9 +324,7 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static final long op_ins_ts$offset() { - return op_ins_ts$OFFSET; - } + public static final long op_ins_ts$offset() { return op_ins_ts$OFFSET; } /** * Getter for field: @@ -349,7 +332,8 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static long op_ins_ts(MemorySegment struct) { + public static long op_ins_ts(MemorySegment struct) + { return struct.get(op_ins_ts$LAYOUT, op_ins_ts$OFFSET); } @@ -359,7 +343,8 @@ public static long op_ins_ts(MemorySegment struct) { * uint64_t op_ins_ts * } */ - public static void op_ins_ts(MemorySegment struct, long fieldValue) { + public static void op_ins_ts(MemorySegment struct, long fieldValue) + { struct.set(op_ins_ts$LAYOUT, op_ins_ts$OFFSET, fieldValue); } @@ -371,9 +356,7 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static final OfLong op_exec_ts$layout() { - return op_exec_ts$LAYOUT; - } + public static final OfLong op_exec_ts$layout() { return op_exec_ts$LAYOUT; } private static final long op_exec_ts$OFFSET = 56; @@ -383,9 +366,7 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static final long op_exec_ts$offset() { - return op_exec_ts$OFFSET; - } + public static final long op_exec_ts$offset() { return op_exec_ts$OFFSET; } /** * Getter for field: @@ -393,7 +374,8 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static long op_exec_ts(MemorySegment struct) { + public static long op_exec_ts(MemorySegment struct) + { return struct.get(op_exec_ts$LAYOUT, op_exec_ts$OFFSET); } @@ -403,7 +385,8 @@ public static long op_exec_ts(MemorySegment struct) { * uint64_t op_exec_ts * } */ - public static void op_exec_ts(MemorySegment struct, long fieldValue) { + public static void op_exec_ts(MemorySegment struct, long fieldValue) + { struct.set(op_exec_ts$LAYOUT, op_exec_ts$OFFSET, fieldValue); } @@ -415,9 +398,7 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static final OfLong op_exec_time$layout() { - return op_exec_time$LAYOUT; - } + public static final OfLong op_exec_time$layout() { return op_exec_time$LAYOUT; } private static final long op_exec_time$OFFSET = 64; @@ -427,9 +408,7 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static final long op_exec_time$offset() { - return op_exec_time$OFFSET; - } + public static final long op_exec_time$offset() { return op_exec_time$OFFSET; } /** * Getter for field: @@ -437,7 +416,8 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static long op_exec_time(MemorySegment struct) { + public static long op_exec_time(MemorySegment struct) + { return struct.get(op_exec_time$LAYOUT, op_exec_time$OFFSET); } @@ -447,7 +427,8 @@ public static long op_exec_time(MemorySegment struct) { * uint64_t op_exec_time * } */ - public static void op_exec_time(MemorySegment struct, long fieldValue) { + public static void op_exec_time(MemorySegment struct, long fieldValue) + { struct.set(op_exec_time$LAYOUT, op_exec_time$OFFSET, fieldValue); } @@ -459,9 +440,7 @@ public static void op_exec_time(MemorySegment struct, long fieldValue) { * hid_t err_stack_id * } */ - public static final OfLong err_stack_id$layout() { - return err_stack_id$LAYOUT; - } + public static final OfLong err_stack_id$layout() { return err_stack_id$LAYOUT; } private static final long err_stack_id$OFFSET = 72; @@ -471,9 +450,7 @@ public static void op_exec_time(MemorySegment struct, long fieldValue) { * hid_t err_stack_id * } */ - public static final long err_stack_id$offset() { - return err_stack_id$OFFSET; - } + public static final long err_stack_id$offset() { return err_stack_id$OFFSET; } /** * Getter for field: @@ -481,7 +458,8 @@ public static void op_exec_time(MemorySegment struct, long fieldValue) { * hid_t err_stack_id * } */ - public static long err_stack_id(MemorySegment struct) { + public static long err_stack_id(MemorySegment struct) + { return struct.get(err_stack_id$LAYOUT, err_stack_id$OFFSET); } @@ -491,7 +469,8 @@ public static long err_stack_id(MemorySegment struct) { * hid_t err_stack_id * } */ - public static void err_stack_id(MemorySegment struct, long fieldValue) { + public static void err_stack_id(MemorySegment struct, long fieldValue) + { struct.set(err_stack_id$LAYOUT, err_stack_id$OFFSET, fieldValue); } @@ -499,7 +478,8 @@ public static void err_stack_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -511,15 +491,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -527,7 +506,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -535,8 +515,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_complete_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_complete_func_t.java index 40d67f2b38a..6e015774546 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_complete_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_complete_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (*H5ES_event_complete_func_t)(const H5ES_op_info_t *, H5ES_status_t, hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5ES_event_complete_func_t { - H5ES_event_complete_func_t() { + H5ES_event_complete_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(MemorySegment op_info, int status, long err_stack, MemorySegment ctx); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5ES_event_complete_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5ES_event_complete_func_t.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(H5ES_event_complete_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5ES_event_complete_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5ES_event_complete_func_t.Function fi, Are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment op_info, int status, long err_stack, MemorySegment ctx) { + public static int invoke(MemorySegment funcPtr, MemorySegment op_info, int status, long err_stack, + MemorySegment ctx) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, op_info, status, err_stack, ctx); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, op_info, status, err_stack, ctx); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_insert_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_insert_func_t.java index d33d43d1346..ca980e11949 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_insert_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5ES_event_insert_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (*H5ES_event_insert_func_t)(const H5ES_op_info_t *, void *) @@ -19,7 +19,8 @@ */ public class H5ES_event_insert_func_t { - H5ES_event_insert_func_t() { + H5ES_event_insert_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(MemorySegment op_info, MemorySegment ctx); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5ES_event_insert_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5ES_event_insert_func_t.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(H5ES_event_insert_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5ES_event_insert_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5ES_event_insert_func_t.Function fi, Arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment op_info, MemorySegment ctx) { + public static int invoke(MemorySegment funcPtr, MemorySegment op_info, MemorySegment ctx) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, op_info, ctx); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, op_info, ctx); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5ES_op_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5ES_op_info_t.java index 471c9bda8b3..b3539847cc7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5ES_op_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5ES_op_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5ES_op_info_t { @@ -29,31 +29,28 @@ */ public class H5ES_op_info_t { - H5ES_op_info_t() { + H5ES_op_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("api_name"), - hdf5_h.C_POINTER.withName("api_args"), - hdf5_h.C_POINTER.withName("app_file_name"), - hdf5_h.C_POINTER.withName("app_func_name"), - hdf5_h.C_INT.withName("app_line_num"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("op_ins_count"), - hdf5_h.C_LONG.withName("op_ins_ts"), - hdf5_h.C_LONG.withName("op_exec_ts"), - hdf5_h.C_LONG.withName("op_exec_time") - ).withName("H5ES_op_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("api_name"), hdf5_h.C_POINTER.withName("api_args"), + hdf5_h.C_POINTER.withName("app_file_name"), + hdf5_h.C_POINTER.withName("app_func_name"), hdf5_h.C_INT.withName("app_line_num"), + MemoryLayout.paddingLayout(4), hdf5_h.C_LONG.withName("op_ins_count"), + hdf5_h.C_LONG.withName("op_ins_ts"), hdf5_h.C_LONG.withName("op_exec_ts"), + hdf5_h.C_LONG.withName("op_exec_time")) + .withName("H5ES_op_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout api_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("api_name")); + private static final AddressLayout api_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("api_name")); /** * Layout for field: @@ -61,9 +58,7 @@ public static final GroupLayout layout() { * const char *api_name * } */ - public static final AddressLayout api_name$layout() { - return api_name$LAYOUT; - } + public static final AddressLayout api_name$layout() { return api_name$LAYOUT; } private static final long api_name$OFFSET = 0; @@ -73,9 +68,7 @@ public static final GroupLayout layout() { * const char *api_name * } */ - public static final long api_name$offset() { - return api_name$OFFSET; - } + public static final long api_name$offset() { return api_name$OFFSET; } /** * Getter for field: @@ -83,7 +76,8 @@ public static final GroupLayout layout() { * const char *api_name * } */ - public static MemorySegment api_name(MemorySegment struct) { + public static MemorySegment api_name(MemorySegment struct) + { return struct.get(api_name$LAYOUT, api_name$OFFSET); } @@ -93,11 +87,13 @@ public static MemorySegment api_name(MemorySegment struct) { * const char *api_name * } */ - public static void api_name(MemorySegment struct, MemorySegment fieldValue) { + public static void api_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(api_name$LAYOUT, api_name$OFFSET, fieldValue); } - private static final AddressLayout api_args$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("api_args")); + private static final AddressLayout api_args$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("api_args")); /** * Layout for field: @@ -105,9 +101,7 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static final AddressLayout api_args$layout() { - return api_args$LAYOUT; - } + public static final AddressLayout api_args$layout() { return api_args$LAYOUT; } private static final long api_args$OFFSET = 8; @@ -117,9 +111,7 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static final long api_args$offset() { - return api_args$OFFSET; - } + public static final long api_args$offset() { return api_args$OFFSET; } /** * Getter for field: @@ -127,7 +119,8 @@ public static void api_name(MemorySegment struct, MemorySegment fieldValue) { * char *api_args * } */ - public static MemorySegment api_args(MemorySegment struct) { + public static MemorySegment api_args(MemorySegment struct) + { return struct.get(api_args$LAYOUT, api_args$OFFSET); } @@ -137,11 +130,13 @@ public static MemorySegment api_args(MemorySegment struct) { * char *api_args * } */ - public static void api_args(MemorySegment struct, MemorySegment fieldValue) { + public static void api_args(MemorySegment struct, MemorySegment fieldValue) + { struct.set(api_args$LAYOUT, api_args$OFFSET, fieldValue); } - private static final AddressLayout app_file_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("app_file_name")); + private static final AddressLayout app_file_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("app_file_name")); /** * Layout for field: @@ -149,9 +144,7 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * const char *app_file_name * } */ - public static final AddressLayout app_file_name$layout() { - return app_file_name$LAYOUT; - } + public static final AddressLayout app_file_name$layout() { return app_file_name$LAYOUT; } private static final long app_file_name$OFFSET = 16; @@ -161,9 +154,7 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * const char *app_file_name * } */ - public static final long app_file_name$offset() { - return app_file_name$OFFSET; - } + public static final long app_file_name$offset() { return app_file_name$OFFSET; } /** * Getter for field: @@ -171,7 +162,8 @@ public static void api_args(MemorySegment struct, MemorySegment fieldValue) { * const char *app_file_name * } */ - public static MemorySegment app_file_name(MemorySegment struct) { + public static MemorySegment app_file_name(MemorySegment struct) + { return struct.get(app_file_name$LAYOUT, app_file_name$OFFSET); } @@ -181,11 +173,13 @@ public static MemorySegment app_file_name(MemorySegment struct) { * const char *app_file_name * } */ - public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) { + public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(app_file_name$LAYOUT, app_file_name$OFFSET, fieldValue); } - private static final AddressLayout app_func_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("app_func_name")); + private static final AddressLayout app_func_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("app_func_name")); /** * Layout for field: @@ -193,9 +187,7 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * const char *app_func_name * } */ - public static final AddressLayout app_func_name$layout() { - return app_func_name$LAYOUT; - } + public static final AddressLayout app_func_name$layout() { return app_func_name$LAYOUT; } private static final long app_func_name$OFFSET = 24; @@ -205,9 +197,7 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * const char *app_func_name * } */ - public static final long app_func_name$offset() { - return app_func_name$OFFSET; - } + public static final long app_func_name$offset() { return app_func_name$OFFSET; } /** * Getter for field: @@ -215,7 +205,8 @@ public static void app_file_name(MemorySegment struct, MemorySegment fieldValue) * const char *app_func_name * } */ - public static MemorySegment app_func_name(MemorySegment struct) { + public static MemorySegment app_func_name(MemorySegment struct) + { return struct.get(app_func_name$LAYOUT, app_func_name$OFFSET); } @@ -225,7 +216,8 @@ public static MemorySegment app_func_name(MemorySegment struct) { * const char *app_func_name * } */ - public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) { + public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(app_func_name$LAYOUT, app_func_name$OFFSET, fieldValue); } @@ -237,9 +229,7 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static final OfInt app_line_num$layout() { - return app_line_num$LAYOUT; - } + public static final OfInt app_line_num$layout() { return app_line_num$LAYOUT; } private static final long app_line_num$OFFSET = 32; @@ -249,9 +239,7 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static final long app_line_num$offset() { - return app_line_num$OFFSET; - } + public static final long app_line_num$offset() { return app_line_num$OFFSET; } /** * Getter for field: @@ -259,7 +247,8 @@ public static void app_func_name(MemorySegment struct, MemorySegment fieldValue) * unsigned int app_line_num * } */ - public static int app_line_num(MemorySegment struct) { + public static int app_line_num(MemorySegment struct) + { return struct.get(app_line_num$LAYOUT, app_line_num$OFFSET); } @@ -269,7 +258,8 @@ public static int app_line_num(MemorySegment struct) { * unsigned int app_line_num * } */ - public static void app_line_num(MemorySegment struct, int fieldValue) { + public static void app_line_num(MemorySegment struct, int fieldValue) + { struct.set(app_line_num$LAYOUT, app_line_num$OFFSET, fieldValue); } @@ -281,9 +271,7 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static final OfLong op_ins_count$layout() { - return op_ins_count$LAYOUT; - } + public static final OfLong op_ins_count$layout() { return op_ins_count$LAYOUT; } private static final long op_ins_count$OFFSET = 40; @@ -293,9 +281,7 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static final long op_ins_count$offset() { - return op_ins_count$OFFSET; - } + public static final long op_ins_count$offset() { return op_ins_count$OFFSET; } /** * Getter for field: @@ -303,7 +289,8 @@ public static void app_line_num(MemorySegment struct, int fieldValue) { * uint64_t op_ins_count * } */ - public static long op_ins_count(MemorySegment struct) { + public static long op_ins_count(MemorySegment struct) + { return struct.get(op_ins_count$LAYOUT, op_ins_count$OFFSET); } @@ -313,7 +300,8 @@ public static long op_ins_count(MemorySegment struct) { * uint64_t op_ins_count * } */ - public static void op_ins_count(MemorySegment struct, long fieldValue) { + public static void op_ins_count(MemorySegment struct, long fieldValue) + { struct.set(op_ins_count$LAYOUT, op_ins_count$OFFSET, fieldValue); } @@ -325,9 +313,7 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static final OfLong op_ins_ts$layout() { - return op_ins_ts$LAYOUT; - } + public static final OfLong op_ins_ts$layout() { return op_ins_ts$LAYOUT; } private static final long op_ins_ts$OFFSET = 48; @@ -337,9 +323,7 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static final long op_ins_ts$offset() { - return op_ins_ts$OFFSET; - } + public static final long op_ins_ts$offset() { return op_ins_ts$OFFSET; } /** * Getter for field: @@ -347,7 +331,8 @@ public static void op_ins_count(MemorySegment struct, long fieldValue) { * uint64_t op_ins_ts * } */ - public static long op_ins_ts(MemorySegment struct) { + public static long op_ins_ts(MemorySegment struct) + { return struct.get(op_ins_ts$LAYOUT, op_ins_ts$OFFSET); } @@ -357,7 +342,8 @@ public static long op_ins_ts(MemorySegment struct) { * uint64_t op_ins_ts * } */ - public static void op_ins_ts(MemorySegment struct, long fieldValue) { + public static void op_ins_ts(MemorySegment struct, long fieldValue) + { struct.set(op_ins_ts$LAYOUT, op_ins_ts$OFFSET, fieldValue); } @@ -369,9 +355,7 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static final OfLong op_exec_ts$layout() { - return op_exec_ts$LAYOUT; - } + public static final OfLong op_exec_ts$layout() { return op_exec_ts$LAYOUT; } private static final long op_exec_ts$OFFSET = 56; @@ -381,9 +365,7 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static final long op_exec_ts$offset() { - return op_exec_ts$OFFSET; - } + public static final long op_exec_ts$offset() { return op_exec_ts$OFFSET; } /** * Getter for field: @@ -391,7 +373,8 @@ public static void op_ins_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_ts * } */ - public static long op_exec_ts(MemorySegment struct) { + public static long op_exec_ts(MemorySegment struct) + { return struct.get(op_exec_ts$LAYOUT, op_exec_ts$OFFSET); } @@ -401,7 +384,8 @@ public static long op_exec_ts(MemorySegment struct) { * uint64_t op_exec_ts * } */ - public static void op_exec_ts(MemorySegment struct, long fieldValue) { + public static void op_exec_ts(MemorySegment struct, long fieldValue) + { struct.set(op_exec_ts$LAYOUT, op_exec_ts$OFFSET, fieldValue); } @@ -413,9 +397,7 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static final OfLong op_exec_time$layout() { - return op_exec_time$LAYOUT; - } + public static final OfLong op_exec_time$layout() { return op_exec_time$LAYOUT; } private static final long op_exec_time$OFFSET = 64; @@ -425,9 +407,7 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static final long op_exec_time$offset() { - return op_exec_time$OFFSET; - } + public static final long op_exec_time$offset() { return op_exec_time$OFFSET; } /** * Getter for field: @@ -435,7 +415,8 @@ public static void op_exec_ts(MemorySegment struct, long fieldValue) { * uint64_t op_exec_time * } */ - public static long op_exec_time(MemorySegment struct) { + public static long op_exec_time(MemorySegment struct) + { return struct.get(op_exec_time$LAYOUT, op_exec_time$OFFSET); } @@ -445,7 +426,8 @@ public static long op_exec_time(MemorySegment struct) { * uint64_t op_exec_time * } */ - public static void op_exec_time(MemorySegment struct, long fieldValue) { + public static void op_exec_time(MemorySegment struct, long fieldValue) + { struct.set(op_exec_time$LAYOUT, op_exec_time$OFFSET, fieldValue); } @@ -453,7 +435,8 @@ public static void op_exec_time(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -465,15 +448,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -481,7 +463,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -489,8 +472,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_auto1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_auto1_t.java index 832eec4fd70..bfeb2507e62 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_auto1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_auto1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5E_auto1_t)(void *) @@ -19,7 +19,8 @@ */ public class H5E_auto1_t { - H5E_auto1_t() { + H5E_auto1_t() + { // Should not be called directly } @@ -30,17 +31,12 @@ public interface Function { int apply(MemorySegment client_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5E_auto1_t.Function.class, "apply", $DESC); @@ -48,7 +44,8 @@ public static FunctionDescriptor descriptor() { * 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(H5E_auto1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5E_auto1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -57,12 +54,13 @@ public static MemorySegment allocate(H5E_auto1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment client_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment client_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, client_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, client_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_auto2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_auto2_t.java index 6f4ab1244e2..86a9f9ac398 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_auto2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_auto2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5E_auto2_t)(hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5E_auto2_t { - H5E_auto2_t() { + H5E_auto2_t() + { // Should not be called directly } @@ -30,18 +31,13 @@ public interface Function { int apply(long estack, MemorySegment client_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5E_auto2_t.Function.class, "apply", $DESC); @@ -49,7 +45,8 @@ public static FunctionDescriptor descriptor() { * 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(H5E_auto2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5E_auto2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +55,13 @@ public static MemorySegment allocate(H5E_auto2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long estack, MemorySegment client_data) { + public static int invoke(MemorySegment funcPtr, long estack, MemorySegment client_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, estack, client_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, estack, client_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_error1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_error1_t.java index 2697b60156d..2d98d4459c3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_error1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_error1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5E_error1_t { @@ -26,26 +26,23 @@ */ public class H5E_error1_t { - H5E_error1_t() { + H5E_error1_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("maj_num"), - hdf5_h.C_LONG.withName("min_num"), - hdf5_h.C_POINTER.withName("func_name"), - hdf5_h.C_POINTER.withName("file_name"), - hdf5_h.C_INT.withName("line"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("desc") - ).withName("H5E_error1_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("maj_num"), hdf5_h.C_LONG.withName("min_num"), + hdf5_h.C_POINTER.withName("func_name"), hdf5_h.C_POINTER.withName("file_name"), + hdf5_h.C_INT.withName("line"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("desc")) + .withName("H5E_error1_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong maj_num$LAYOUT = (OfLong)$LAYOUT.select(groupElement("maj_num")); @@ -55,9 +52,7 @@ public static final GroupLayout layout() { * H5E_major_t maj_num * } */ - public static final OfLong maj_num$layout() { - return maj_num$LAYOUT; - } + public static final OfLong maj_num$layout() { return maj_num$LAYOUT; } private static final long maj_num$OFFSET = 0; @@ -67,9 +62,7 @@ public static final GroupLayout layout() { * H5E_major_t maj_num * } */ - public static final long maj_num$offset() { - return maj_num$OFFSET; - } + public static final long maj_num$offset() { return maj_num$OFFSET; } /** * Getter for field: @@ -77,9 +70,7 @@ public static final GroupLayout layout() { * H5E_major_t maj_num * } */ - public static long maj_num(MemorySegment struct) { - return struct.get(maj_num$LAYOUT, maj_num$OFFSET); - } + public static long maj_num(MemorySegment struct) { return struct.get(maj_num$LAYOUT, maj_num$OFFSET); } /** * Setter for field: @@ -87,7 +78,8 @@ public static long maj_num(MemorySegment struct) { * H5E_major_t maj_num * } */ - public static void maj_num(MemorySegment struct, long fieldValue) { + public static void maj_num(MemorySegment struct, long fieldValue) + { struct.set(maj_num$LAYOUT, maj_num$OFFSET, fieldValue); } @@ -99,9 +91,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * H5E_minor_t min_num * } */ - public static final OfLong min_num$layout() { - return min_num$LAYOUT; - } + public static final OfLong min_num$layout() { return min_num$LAYOUT; } private static final long min_num$OFFSET = 8; @@ -111,9 +101,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * H5E_minor_t min_num * } */ - public static final long min_num$offset() { - return min_num$OFFSET; - } + public static final long min_num$offset() { return min_num$OFFSET; } /** * Getter for field: @@ -121,9 +109,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * H5E_minor_t min_num * } */ - public static long min_num(MemorySegment struct) { - return struct.get(min_num$LAYOUT, min_num$OFFSET); - } + public static long min_num(MemorySegment struct) { return struct.get(min_num$LAYOUT, min_num$OFFSET); } /** * Setter for field: @@ -131,11 +117,13 @@ public static long min_num(MemorySegment struct) { * H5E_minor_t min_num * } */ - public static void min_num(MemorySegment struct, long fieldValue) { + public static void min_num(MemorySegment struct, long fieldValue) + { struct.set(min_num$LAYOUT, min_num$OFFSET, fieldValue); } - private static final AddressLayout func_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("func_name")); + private static final AddressLayout func_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("func_name")); /** * Layout for field: @@ -143,9 +131,7 @@ public static void min_num(MemorySegment struct, long fieldValue) { * const char *func_name * } */ - public static final AddressLayout func_name$layout() { - return func_name$LAYOUT; - } + public static final AddressLayout func_name$layout() { return func_name$LAYOUT; } private static final long func_name$OFFSET = 16; @@ -155,9 +141,7 @@ public static void min_num(MemorySegment struct, long fieldValue) { * const char *func_name * } */ - public static final long func_name$offset() { - return func_name$OFFSET; - } + public static final long func_name$offset() { return func_name$OFFSET; } /** * Getter for field: @@ -165,7 +149,8 @@ public static void min_num(MemorySegment struct, long fieldValue) { * const char *func_name * } */ - public static MemorySegment func_name(MemorySegment struct) { + public static MemorySegment func_name(MemorySegment struct) + { return struct.get(func_name$LAYOUT, func_name$OFFSET); } @@ -175,11 +160,13 @@ public static MemorySegment func_name(MemorySegment struct) { * const char *func_name * } */ - public static void func_name(MemorySegment struct, MemorySegment fieldValue) { + public static void func_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(func_name$LAYOUT, func_name$OFFSET, fieldValue); } - private static final AddressLayout file_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file_name")); + private static final AddressLayout file_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file_name")); /** * Layout for field: @@ -187,9 +174,7 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static final AddressLayout file_name$layout() { - return file_name$LAYOUT; - } + public static final AddressLayout file_name$layout() { return file_name$LAYOUT; } private static final long file_name$OFFSET = 24; @@ -199,9 +184,7 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static final long file_name$offset() { - return file_name$OFFSET; - } + public static final long file_name$offset() { return file_name$OFFSET; } /** * Getter for field: @@ -209,7 +192,8 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static MemorySegment file_name(MemorySegment struct) { + public static MemorySegment file_name(MemorySegment struct) + { return struct.get(file_name$LAYOUT, file_name$OFFSET); } @@ -219,7 +203,8 @@ public static MemorySegment file_name(MemorySegment struct) { * const char *file_name * } */ - public static void file_name(MemorySegment struct, MemorySegment fieldValue) { + public static void file_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file_name$LAYOUT, file_name$OFFSET, fieldValue); } @@ -231,9 +216,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int line * } */ - public static final OfInt line$layout() { - return line$LAYOUT; - } + public static final OfInt line$layout() { return line$LAYOUT; } private static final long line$OFFSET = 32; @@ -243,9 +226,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int line * } */ - public static final long line$offset() { - return line$OFFSET; - } + public static final long line$offset() { return line$OFFSET; } /** * Getter for field: @@ -253,9 +234,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int line * } */ - public static int line(MemorySegment struct) { - return struct.get(line$LAYOUT, line$OFFSET); - } + public static int line(MemorySegment struct) { return struct.get(line$LAYOUT, line$OFFSET); } /** * Setter for field: @@ -263,7 +242,8 @@ public static int line(MemorySegment struct) { * unsigned int line * } */ - public static void line(MemorySegment struct, int fieldValue) { + public static void line(MemorySegment struct, int fieldValue) + { struct.set(line$LAYOUT, line$OFFSET, fieldValue); } @@ -275,9 +255,7 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *desc * } */ - public static final AddressLayout desc$layout() { - return desc$LAYOUT; - } + public static final AddressLayout desc$layout() { return desc$LAYOUT; } private static final long desc$OFFSET = 40; @@ -287,9 +265,7 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *desc * } */ - public static final long desc$offset() { - return desc$OFFSET; - } + public static final long desc$offset() { return desc$OFFSET; } /** * Getter for field: @@ -297,9 +273,7 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *desc * } */ - public static MemorySegment desc(MemorySegment struct) { - return struct.get(desc$LAYOUT, desc$OFFSET); - } + public static MemorySegment desc(MemorySegment struct) { return struct.get(desc$LAYOUT, desc$OFFSET); } /** * Setter for field: @@ -307,7 +281,8 @@ public static MemorySegment desc(MemorySegment struct) { * const char *desc * } */ - public static void desc(MemorySegment struct, MemorySegment fieldValue) { + public static void desc(MemorySegment struct, MemorySegment fieldValue) + { struct.set(desc$LAYOUT, desc$OFFSET, fieldValue); } @@ -315,7 +290,8 @@ public static void desc(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -327,15 +303,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -343,7 +318,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -351,8 +327,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_error2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_error2_t.java index fabd4d92ee7..e30b1683f8b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_error2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_error2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5E_error2_t { @@ -27,27 +27,23 @@ */ public class H5E_error2_t { - H5E_error2_t() { + H5E_error2_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("cls_id"), - hdf5_h.C_LONG.withName("maj_num"), - hdf5_h.C_LONG.withName("min_num"), - hdf5_h.C_INT.withName("line"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("func_name"), - hdf5_h.C_POINTER.withName("file_name"), - hdf5_h.C_POINTER.withName("desc") - ).withName("H5E_error2_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("cls_id"), hdf5_h.C_LONG.withName("maj_num"), + hdf5_h.C_LONG.withName("min_num"), hdf5_h.C_INT.withName("line"), + MemoryLayout.paddingLayout(4), hdf5_h.C_POINTER.withName("func_name"), + hdf5_h.C_POINTER.withName("file_name"), hdf5_h.C_POINTER.withName("desc")) + .withName("H5E_error2_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong cls_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("cls_id")); @@ -57,9 +53,7 @@ public static final GroupLayout layout() { * hid_t cls_id * } */ - public static final OfLong cls_id$layout() { - return cls_id$LAYOUT; - } + public static final OfLong cls_id$layout() { return cls_id$LAYOUT; } private static final long cls_id$OFFSET = 0; @@ -69,9 +63,7 @@ public static final GroupLayout layout() { * hid_t cls_id * } */ - public static final long cls_id$offset() { - return cls_id$OFFSET; - } + public static final long cls_id$offset() { return cls_id$OFFSET; } /** * Getter for field: @@ -79,9 +71,7 @@ public static final GroupLayout layout() { * hid_t cls_id * } */ - public static long cls_id(MemorySegment struct) { - return struct.get(cls_id$LAYOUT, cls_id$OFFSET); - } + public static long cls_id(MemorySegment struct) { return struct.get(cls_id$LAYOUT, cls_id$OFFSET); } /** * Setter for field: @@ -89,7 +79,8 @@ public static long cls_id(MemorySegment struct) { * hid_t cls_id * } */ - public static void cls_id(MemorySegment struct, long fieldValue) { + public static void cls_id(MemorySegment struct, long fieldValue) + { struct.set(cls_id$LAYOUT, cls_id$OFFSET, fieldValue); } @@ -101,9 +92,7 @@ public static void cls_id(MemorySegment struct, long fieldValue) { * hid_t maj_num * } */ - public static final OfLong maj_num$layout() { - return maj_num$LAYOUT; - } + public static final OfLong maj_num$layout() { return maj_num$LAYOUT; } private static final long maj_num$OFFSET = 8; @@ -113,9 +102,7 @@ public static void cls_id(MemorySegment struct, long fieldValue) { * hid_t maj_num * } */ - public static final long maj_num$offset() { - return maj_num$OFFSET; - } + public static final long maj_num$offset() { return maj_num$OFFSET; } /** * Getter for field: @@ -123,9 +110,7 @@ public static void cls_id(MemorySegment struct, long fieldValue) { * hid_t maj_num * } */ - public static long maj_num(MemorySegment struct) { - return struct.get(maj_num$LAYOUT, maj_num$OFFSET); - } + public static long maj_num(MemorySegment struct) { return struct.get(maj_num$LAYOUT, maj_num$OFFSET); } /** * Setter for field: @@ -133,7 +118,8 @@ public static long maj_num(MemorySegment struct) { * hid_t maj_num * } */ - public static void maj_num(MemorySegment struct, long fieldValue) { + public static void maj_num(MemorySegment struct, long fieldValue) + { struct.set(maj_num$LAYOUT, maj_num$OFFSET, fieldValue); } @@ -145,9 +131,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * hid_t min_num * } */ - public static final OfLong min_num$layout() { - return min_num$LAYOUT; - } + public static final OfLong min_num$layout() { return min_num$LAYOUT; } private static final long min_num$OFFSET = 16; @@ -157,9 +141,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * hid_t min_num * } */ - public static final long min_num$offset() { - return min_num$OFFSET; - } + public static final long min_num$offset() { return min_num$OFFSET; } /** * Getter for field: @@ -167,9 +149,7 @@ public static void maj_num(MemorySegment struct, long fieldValue) { * hid_t min_num * } */ - public static long min_num(MemorySegment struct) { - return struct.get(min_num$LAYOUT, min_num$OFFSET); - } + public static long min_num(MemorySegment struct) { return struct.get(min_num$LAYOUT, min_num$OFFSET); } /** * Setter for field: @@ -177,7 +157,8 @@ public static long min_num(MemorySegment struct) { * hid_t min_num * } */ - public static void min_num(MemorySegment struct, long fieldValue) { + public static void min_num(MemorySegment struct, long fieldValue) + { struct.set(min_num$LAYOUT, min_num$OFFSET, fieldValue); } @@ -189,9 +170,7 @@ public static void min_num(MemorySegment struct, long fieldValue) { * unsigned int line * } */ - public static final OfInt line$layout() { - return line$LAYOUT; - } + public static final OfInt line$layout() { return line$LAYOUT; } private static final long line$OFFSET = 24; @@ -201,9 +180,7 @@ public static void min_num(MemorySegment struct, long fieldValue) { * unsigned int line * } */ - public static final long line$offset() { - return line$OFFSET; - } + public static final long line$offset() { return line$OFFSET; } /** * Getter for field: @@ -211,9 +188,7 @@ public static void min_num(MemorySegment struct, long fieldValue) { * unsigned int line * } */ - public static int line(MemorySegment struct) { - return struct.get(line$LAYOUT, line$OFFSET); - } + public static int line(MemorySegment struct) { return struct.get(line$LAYOUT, line$OFFSET); } /** * Setter for field: @@ -221,11 +196,13 @@ public static int line(MemorySegment struct) { * unsigned int line * } */ - public static void line(MemorySegment struct, int fieldValue) { + public static void line(MemorySegment struct, int fieldValue) + { struct.set(line$LAYOUT, line$OFFSET, fieldValue); } - private static final AddressLayout func_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("func_name")); + private static final AddressLayout func_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("func_name")); /** * Layout for field: @@ -233,9 +210,7 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *func_name * } */ - public static final AddressLayout func_name$layout() { - return func_name$LAYOUT; - } + public static final AddressLayout func_name$layout() { return func_name$LAYOUT; } private static final long func_name$OFFSET = 32; @@ -245,9 +220,7 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *func_name * } */ - public static final long func_name$offset() { - return func_name$OFFSET; - } + public static final long func_name$offset() { return func_name$OFFSET; } /** * Getter for field: @@ -255,7 +228,8 @@ public static void line(MemorySegment struct, int fieldValue) { * const char *func_name * } */ - public static MemorySegment func_name(MemorySegment struct) { + public static MemorySegment func_name(MemorySegment struct) + { return struct.get(func_name$LAYOUT, func_name$OFFSET); } @@ -265,11 +239,13 @@ public static MemorySegment func_name(MemorySegment struct) { * const char *func_name * } */ - public static void func_name(MemorySegment struct, MemorySegment fieldValue) { + public static void func_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(func_name$LAYOUT, func_name$OFFSET, fieldValue); } - private static final AddressLayout file_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file_name")); + private static final AddressLayout file_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file_name")); /** * Layout for field: @@ -277,9 +253,7 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static final AddressLayout file_name$layout() { - return file_name$LAYOUT; - } + public static final AddressLayout file_name$layout() { return file_name$LAYOUT; } private static final long file_name$OFFSET = 40; @@ -289,9 +263,7 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static final long file_name$offset() { - return file_name$OFFSET; - } + public static final long file_name$offset() { return file_name$OFFSET; } /** * Getter for field: @@ -299,7 +271,8 @@ public static void func_name(MemorySegment struct, MemorySegment fieldValue) { * const char *file_name * } */ - public static MemorySegment file_name(MemorySegment struct) { + public static MemorySegment file_name(MemorySegment struct) + { return struct.get(file_name$LAYOUT, file_name$OFFSET); } @@ -309,7 +282,8 @@ public static MemorySegment file_name(MemorySegment struct) { * const char *file_name * } */ - public static void file_name(MemorySegment struct, MemorySegment fieldValue) { + public static void file_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file_name$LAYOUT, file_name$OFFSET, fieldValue); } @@ -321,9 +295,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * const char *desc * } */ - public static final AddressLayout desc$layout() { - return desc$LAYOUT; - } + public static final AddressLayout desc$layout() { return desc$LAYOUT; } private static final long desc$OFFSET = 48; @@ -333,9 +305,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * const char *desc * } */ - public static final long desc$offset() { - return desc$OFFSET; - } + public static final long desc$offset() { return desc$OFFSET; } /** * Getter for field: @@ -343,9 +313,7 @@ public static void file_name(MemorySegment struct, MemorySegment fieldValue) { * const char *desc * } */ - public static MemorySegment desc(MemorySegment struct) { - return struct.get(desc$LAYOUT, desc$OFFSET); - } + public static MemorySegment desc(MemorySegment struct) { return struct.get(desc$LAYOUT, desc$OFFSET); } /** * Setter for field: @@ -353,7 +321,8 @@ public static MemorySegment desc(MemorySegment struct) { * const char *desc * } */ - public static void desc(MemorySegment struct, MemorySegment fieldValue) { + public static void desc(MemorySegment struct, MemorySegment fieldValue) + { struct.set(desc$LAYOUT, desc$OFFSET, fieldValue); } @@ -361,7 +330,8 @@ public static void desc(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -373,15 +343,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -389,7 +358,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -397,8 +367,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_walk1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_walk1_t.java index 1272c9c53ba..67afaaecd47 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_walk1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_walk1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5E_walk1_t)(int, H5E_error1_t *, void *) @@ -19,7 +19,8 @@ */ public class H5E_walk1_t { - H5E_walk1_t() { + H5E_walk1_t() + { // Should not be called directly } @@ -30,19 +31,13 @@ public interface Function { int apply(int n, MemorySegment err_desc, MemorySegment client_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5E_walk1_t.Function.class, "apply", $DESC); @@ -50,7 +45,8 @@ public static FunctionDescriptor descriptor() { * 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(H5E_walk1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5E_walk1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +55,13 @@ public static MemorySegment allocate(H5E_walk1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,int n, MemorySegment err_desc, MemorySegment client_data) { + public static int invoke(MemorySegment funcPtr, int n, MemorySegment err_desc, MemorySegment client_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, n, err_desc, client_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, n, err_desc, client_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5E_walk2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5E_walk2_t.java index c9da6cd7526..a7d198f8bca 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5E_walk2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5E_walk2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5E_walk2_t)(unsigned int, const H5E_error2_t *, void *) @@ -19,7 +19,8 @@ */ public class H5E_walk2_t { - H5E_walk2_t() { + H5E_walk2_t() + { // Should not be called directly } @@ -30,19 +31,13 @@ public interface Function { int apply(int n, MemorySegment err_desc, MemorySegment client_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5E_walk2_t.Function.class, "apply", $DESC); @@ -50,7 +45,8 @@ public static FunctionDescriptor descriptor() { * 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(H5E_walk2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5E_walk2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +55,13 @@ public static MemorySegment allocate(H5E_walk2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,int n, MemorySegment err_desc, MemorySegment client_data) { + public static int invoke(MemorySegment funcPtr, int n, MemorySegment err_desc, MemorySegment client_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, n, err_desc, client_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, n, err_desc, client_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_class_t.java index 4f78b5e745d..7e0daa7677a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_class_t { @@ -46,75 +46,52 @@ * herr_t (*write)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, const void *); * herr_t (*read_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, void **); * herr_t (*write_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, const void **); - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **); - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **); - * herr_t (*flush)(H5FD_t *, hid_t, hbool_t); - * herr_t (*truncate)(H5FD_t *, hid_t, hbool_t); - * herr_t (*lock)(H5FD_t *, hbool_t); - * herr_t (*unlock)(H5FD_t *); - * herr_t (*del)(const char *, hid_t); - * herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **); - * H5FD_mem_t fl_map[7]; + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **); herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, + * size_t *, const void **); herr_t (*flush)(H5FD_t *, hid_t, hbool_t); herr_t (*truncate)(H5FD_t *, hid_t, + * hbool_t); herr_t (*lock)(H5FD_t *, hbool_t); herr_t (*unlock)(H5FD_t *); herr_t (*del)(const char *, + * hid_t); herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **); H5FD_mem_t fl_map[7]; * } * } */ public class H5FD_class_t { - H5FD_class_t() { + H5FD_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("value"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_LONG.withName("maxaddr"), - hdf5_h.C_INT.withName("fc_degree"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("terminate"), - hdf5_h.C_POINTER.withName("sb_size"), - hdf5_h.C_POINTER.withName("sb_encode"), - hdf5_h.C_POINTER.withName("sb_decode"), - hdf5_h.C_LONG.withName("fapl_size"), - hdf5_h.C_POINTER.withName("fapl_get"), - hdf5_h.C_POINTER.withName("fapl_copy"), - hdf5_h.C_POINTER.withName("fapl_free"), - hdf5_h.C_LONG.withName("dxpl_size"), - hdf5_h.C_POINTER.withName("dxpl_copy"), - hdf5_h.C_POINTER.withName("dxpl_free"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("close"), - hdf5_h.C_POINTER.withName("cmp"), - hdf5_h.C_POINTER.withName("query"), - hdf5_h.C_POINTER.withName("get_type_map"), - hdf5_h.C_POINTER.withName("alloc"), - hdf5_h.C_POINTER.withName("free"), - hdf5_h.C_POINTER.withName("get_eoa"), - hdf5_h.C_POINTER.withName("set_eoa"), - hdf5_h.C_POINTER.withName("get_eof"), - hdf5_h.C_POINTER.withName("get_handle"), - hdf5_h.C_POINTER.withName("read"), - hdf5_h.C_POINTER.withName("write"), - hdf5_h.C_POINTER.withName("read_vector"), - hdf5_h.C_POINTER.withName("write_vector"), - hdf5_h.C_POINTER.withName("read_selection"), - hdf5_h.C_POINTER.withName("write_selection"), - hdf5_h.C_POINTER.withName("flush"), - hdf5_h.C_POINTER.withName("truncate"), - hdf5_h.C_POINTER.withName("lock"), - hdf5_h.C_POINTER.withName("unlock"), - hdf5_h.C_POINTER.withName("del"), - hdf5_h.C_POINTER.withName("ctl"), - MemoryLayout.sequenceLayout(7, hdf5_h.C_INT).withName("fl_map"), - MemoryLayout.paddingLayout(4) - ).withName("H5FD_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("value"), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_LONG.withName("maxaddr"), + hdf5_h.C_INT.withName("fc_degree"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("terminate"), hdf5_h.C_POINTER.withName("sb_size"), + hdf5_h.C_POINTER.withName("sb_encode"), hdf5_h.C_POINTER.withName("sb_decode"), + hdf5_h.C_LONG.withName("fapl_size"), hdf5_h.C_POINTER.withName("fapl_get"), + hdf5_h.C_POINTER.withName("fapl_copy"), hdf5_h.C_POINTER.withName("fapl_free"), + hdf5_h.C_LONG.withName("dxpl_size"), hdf5_h.C_POINTER.withName("dxpl_copy"), + hdf5_h.C_POINTER.withName("dxpl_free"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("close"), hdf5_h.C_POINTER.withName("cmp"), + hdf5_h.C_POINTER.withName("query"), hdf5_h.C_POINTER.withName("get_type_map"), + hdf5_h.C_POINTER.withName("alloc"), hdf5_h.C_POINTER.withName("free"), + hdf5_h.C_POINTER.withName("get_eoa"), hdf5_h.C_POINTER.withName("set_eoa"), + hdf5_h.C_POINTER.withName("get_eof"), hdf5_h.C_POINTER.withName("get_handle"), + hdf5_h.C_POINTER.withName("read"), hdf5_h.C_POINTER.withName("write"), + hdf5_h.C_POINTER.withName("read_vector"), hdf5_h.C_POINTER.withName("write_vector"), + hdf5_h.C_POINTER.withName("read_selection"), + hdf5_h.C_POINTER.withName("write_selection"), hdf5_h.C_POINTER.withName("flush"), + hdf5_h.C_POINTER.withName("truncate"), hdf5_h.C_POINTER.withName("lock"), + hdf5_h.C_POINTER.withName("unlock"), hdf5_h.C_POINTER.withName("del"), + hdf5_h.C_POINTER.withName("ctl"), + MemoryLayout.sequenceLayout(7, hdf5_h.C_INT).withName("fl_map"), + MemoryLayout.paddingLayout(4)) + .withName("H5FD_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -124,9 +101,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -136,9 +111,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -146,9 +119,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -156,7 +127,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -168,9 +140,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5FD_class_value_t value * } */ - public static final OfInt value$layout() { - return value$LAYOUT; - } + public static final OfInt value$layout() { return value$LAYOUT; } private static final long value$OFFSET = 4; @@ -180,9 +150,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5FD_class_value_t value * } */ - public static final long value$offset() { - return value$OFFSET; - } + public static final long value$offset() { return value$OFFSET; } /** * Getter for field: @@ -190,9 +158,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5FD_class_value_t value * } */ - public static int value(MemorySegment struct) { - return struct.get(value$LAYOUT, value$OFFSET); - } + public static int value(MemorySegment struct) { return struct.get(value$LAYOUT, value$OFFSET); } /** * Setter for field: @@ -200,7 +166,8 @@ public static int value(MemorySegment struct) { * H5FD_class_value_t value * } */ - public static void value(MemorySegment struct, int fieldValue) { + public static void value(MemorySegment struct, int fieldValue) + { struct.set(value$LAYOUT, value$OFFSET, fieldValue); } @@ -212,9 +179,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 8; @@ -224,9 +189,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -234,9 +197,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -244,7 +205,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -256,9 +218,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * haddr_t maxaddr * } */ - public static final OfLong maxaddr$layout() { - return maxaddr$LAYOUT; - } + public static final OfLong maxaddr$layout() { return maxaddr$LAYOUT; } private static final long maxaddr$OFFSET = 16; @@ -268,9 +228,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * haddr_t maxaddr * } */ - public static final long maxaddr$offset() { - return maxaddr$OFFSET; - } + public static final long maxaddr$offset() { return maxaddr$OFFSET; } /** * Getter for field: @@ -278,9 +236,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * haddr_t maxaddr * } */ - public static long maxaddr(MemorySegment struct) { - return struct.get(maxaddr$LAYOUT, maxaddr$OFFSET); - } + public static long maxaddr(MemorySegment struct) { return struct.get(maxaddr$LAYOUT, maxaddr$OFFSET); } /** * Setter for field: @@ -288,7 +244,8 @@ public static long maxaddr(MemorySegment struct) { * haddr_t maxaddr * } */ - public static void maxaddr(MemorySegment struct, long fieldValue) { + public static void maxaddr(MemorySegment struct, long fieldValue) + { struct.set(maxaddr$LAYOUT, maxaddr$OFFSET, fieldValue); } @@ -300,9 +257,7 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * H5F_close_degree_t fc_degree * } */ - public static final OfInt fc_degree$layout() { - return fc_degree$LAYOUT; - } + public static final OfInt fc_degree$layout() { return fc_degree$LAYOUT; } private static final long fc_degree$OFFSET = 24; @@ -312,9 +267,7 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * H5F_close_degree_t fc_degree * } */ - public static final long fc_degree$offset() { - return fc_degree$OFFSET; - } + public static final long fc_degree$offset() { return fc_degree$OFFSET; } /** * Getter for field: @@ -322,7 +275,8 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * H5F_close_degree_t fc_degree * } */ - public static int fc_degree(MemorySegment struct) { + public static int fc_degree(MemorySegment struct) + { return struct.get(fc_degree$LAYOUT, fc_degree$OFFSET); } @@ -332,7 +286,8 @@ public static int fc_degree(MemorySegment struct) { * H5F_close_degree_t fc_degree * } */ - public static void fc_degree(MemorySegment struct, int fieldValue) { + public static void fc_degree(MemorySegment struct, int fieldValue) + { struct.set(fc_degree$LAYOUT, fc_degree$OFFSET, fieldValue); } @@ -343,7 +298,8 @@ public static void fc_degree(MemorySegment struct, int fieldValue) { */ public static class terminate { - terminate() { + terminate() + { // Should not be called directly } @@ -354,23 +310,22 @@ public interface Function { int apply(); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(terminate.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(terminate.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(terminate.Function fi, Arena arena) { + public static MemorySegment allocate(terminate.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -379,16 +334,19 @@ public static MemorySegment allocate(terminate.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr) { + public static int invoke(MemorySegment funcPtr) + { try { - return (int) DOWN$MH.invokeExact(funcPtr); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout terminate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("terminate")); + private static final AddressLayout terminate$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("terminate")); /** * Layout for field: @@ -396,9 +354,7 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static final AddressLayout terminate$layout() { - return terminate$LAYOUT; - } + public static final AddressLayout terminate$layout() { return terminate$LAYOUT; } private static final long terminate$OFFSET = 32; @@ -408,9 +364,7 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static final long terminate$offset() { - return terminate$OFFSET; - } + public static final long terminate$offset() { return terminate$OFFSET; } /** * Getter for field: @@ -418,7 +372,8 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static MemorySegment terminate(MemorySegment struct) { + public static MemorySegment terminate(MemorySegment struct) + { return struct.get(terminate$LAYOUT, terminate$OFFSET); } @@ -428,7 +383,8 @@ public static MemorySegment terminate(MemorySegment struct) { * herr_t (*terminate)(void) * } */ - public static void terminate(MemorySegment struct, MemorySegment fieldValue) { + public static void terminate(MemorySegment struct, MemorySegment fieldValue) + { struct.set(terminate$LAYOUT, terminate$OFFSET, fieldValue); } @@ -439,7 +395,8 @@ public static void terminate(MemorySegment struct, MemorySegment fieldValue) { */ public static class sb_size { - sb_size() { + sb_size() + { // Should not be called directly } @@ -450,17 +407,13 @@ public interface Function { long apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(sb_size.Function.class, "apply", $DESC); @@ -468,7 +421,8 @@ public static FunctionDescriptor descriptor() { * 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(sb_size.Function fi, Arena arena) { + public static MemorySegment allocate(sb_size.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -477,16 +431,19 @@ public static MemorySegment allocate(sb_size.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static long invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout sb_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sb_size")); + private static final AddressLayout sb_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("sb_size")); /** * Layout for field: @@ -494,9 +451,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0) { * hsize_t (*sb_size)(H5FD_t *) * } */ - public static final AddressLayout sb_size$layout() { - return sb_size$LAYOUT; - } + public static final AddressLayout sb_size$layout() { return sb_size$LAYOUT; } private static final long sb_size$OFFSET = 40; @@ -506,9 +461,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0) { * hsize_t (*sb_size)(H5FD_t *) * } */ - public static final long sb_size$offset() { - return sb_size$OFFSET; - } + public static final long sb_size$offset() { return sb_size$OFFSET; } /** * Getter for field: @@ -516,7 +469,8 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0) { * hsize_t (*sb_size)(H5FD_t *) * } */ - public static MemorySegment sb_size(MemorySegment struct) { + public static MemorySegment sb_size(MemorySegment struct) + { return struct.get(sb_size$LAYOUT, sb_size$OFFSET); } @@ -526,7 +480,8 @@ public static MemorySegment sb_size(MemorySegment struct) { * hsize_t (*sb_size)(H5FD_t *) * } */ - public static void sb_size(MemorySegment struct, MemorySegment fieldValue) { + public static void sb_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(sb_size$LAYOUT, sb_size$OFFSET, fieldValue); } @@ -537,7 +492,8 @@ public static void sb_size(MemorySegment struct, MemorySegment fieldValue) { */ public static class sb_encode { - sb_encode() { + sb_encode() + { // Should not be called directly } @@ -548,27 +504,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(sb_encode.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(sb_encode.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(sb_encode.Function fi, Arena arena) { + public static MemorySegment allocate(sb_encode.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -577,16 +529,20 @@ public static MemorySegment allocate(sb_encode.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout sb_encode$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sb_encode")); + private static final AddressLayout sb_encode$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("sb_encode")); /** * Layout for field: @@ -594,9 +550,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_encode)(H5FD_t *, char *, unsigned char *) * } */ - public static final AddressLayout sb_encode$layout() { - return sb_encode$LAYOUT; - } + public static final AddressLayout sb_encode$layout() { return sb_encode$LAYOUT; } private static final long sb_encode$OFFSET = 48; @@ -606,9 +560,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_encode)(H5FD_t *, char *, unsigned char *) * } */ - public static final long sb_encode$offset() { - return sb_encode$OFFSET; - } + public static final long sb_encode$offset() { return sb_encode$OFFSET; } /** * Getter for field: @@ -616,7 +568,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_encode)(H5FD_t *, char *, unsigned char *) * } */ - public static MemorySegment sb_encode(MemorySegment struct) { + public static MemorySegment sb_encode(MemorySegment struct) + { return struct.get(sb_encode$LAYOUT, sb_encode$OFFSET); } @@ -626,7 +579,8 @@ public static MemorySegment sb_encode(MemorySegment struct) { * herr_t (*sb_encode)(H5FD_t *, char *, unsigned char *) * } */ - public static void sb_encode(MemorySegment struct, MemorySegment fieldValue) { + public static void sb_encode(MemorySegment struct, MemorySegment fieldValue) + { struct.set(sb_encode$LAYOUT, sb_encode$OFFSET, fieldValue); } @@ -637,7 +591,8 @@ public static void sb_encode(MemorySegment struct, MemorySegment fieldValue) { */ public static class sb_decode { - sb_decode() { + sb_decode() + { // Should not be called directly } @@ -648,27 +603,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(sb_decode.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(sb_decode.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(sb_decode.Function fi, Arena arena) { + public static MemorySegment allocate(sb_decode.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -677,16 +628,20 @@ public static MemorySegment allocate(sb_decode.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout sb_decode$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sb_decode")); + private static final AddressLayout sb_decode$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("sb_decode")); /** * Layout for field: @@ -694,9 +649,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_decode)(H5FD_t *, const char *, const unsigned char *) * } */ - public static final AddressLayout sb_decode$layout() { - return sb_decode$LAYOUT; - } + public static final AddressLayout sb_decode$layout() { return sb_decode$LAYOUT; } private static final long sb_decode$OFFSET = 56; @@ -706,9 +659,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_decode)(H5FD_t *, const char *, const unsigned char *) * } */ - public static final long sb_decode$offset() { - return sb_decode$OFFSET; - } + public static final long sb_decode$offset() { return sb_decode$OFFSET; } /** * Getter for field: @@ -716,7 +667,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*sb_decode)(H5FD_t *, const char *, const unsigned char *) * } */ - public static MemorySegment sb_decode(MemorySegment struct) { + public static MemorySegment sb_decode(MemorySegment struct) + { return struct.get(sb_decode$LAYOUT, sb_decode$OFFSET); } @@ -726,7 +678,8 @@ public static MemorySegment sb_decode(MemorySegment struct) { * herr_t (*sb_decode)(H5FD_t *, const char *, const unsigned char *) * } */ - public static void sb_decode(MemorySegment struct, MemorySegment fieldValue) { + public static void sb_decode(MemorySegment struct, MemorySegment fieldValue) + { struct.set(sb_decode$LAYOUT, sb_decode$OFFSET, fieldValue); } @@ -738,9 +691,7 @@ public static void sb_decode(MemorySegment struct, MemorySegment fieldValue) { * size_t fapl_size * } */ - public static final OfLong fapl_size$layout() { - return fapl_size$LAYOUT; - } + public static final OfLong fapl_size$layout() { return fapl_size$LAYOUT; } private static final long fapl_size$OFFSET = 64; @@ -750,9 +701,7 @@ public static void sb_decode(MemorySegment struct, MemorySegment fieldValue) { * size_t fapl_size * } */ - public static final long fapl_size$offset() { - return fapl_size$OFFSET; - } + public static final long fapl_size$offset() { return fapl_size$OFFSET; } /** * Getter for field: @@ -760,7 +709,8 @@ public static void sb_decode(MemorySegment struct, MemorySegment fieldValue) { * size_t fapl_size * } */ - public static long fapl_size(MemorySegment struct) { + public static long fapl_size(MemorySegment struct) + { return struct.get(fapl_size$LAYOUT, fapl_size$OFFSET); } @@ -770,7 +720,8 @@ public static long fapl_size(MemorySegment struct) { * size_t fapl_size * } */ - public static void fapl_size(MemorySegment struct, long fieldValue) { + public static void fapl_size(MemorySegment struct, long fieldValue) + { struct.set(fapl_size$LAYOUT, fapl_size$OFFSET, fieldValue); } @@ -781,7 +732,8 @@ public static void fapl_size(MemorySegment struct, long fieldValue) { */ public static class fapl_get { - fapl_get() { + fapl_get() + { // Should not be called directly } @@ -792,25 +744,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(fapl_get.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(fapl_get.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(fapl_get.Function fi, Arena arena) { + public static MemorySegment allocate(fapl_get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -819,16 +769,19 @@ public static MemorySegment allocate(fapl_get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout fapl_get$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("fapl_get")); + private static final AddressLayout fapl_get$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("fapl_get")); /** * Layout for field: @@ -836,9 +789,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_get)(H5FD_t *) * } */ - public static final AddressLayout fapl_get$layout() { - return fapl_get$LAYOUT; - } + public static final AddressLayout fapl_get$layout() { return fapl_get$LAYOUT; } private static final long fapl_get$OFFSET = 72; @@ -848,9 +799,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_get)(H5FD_t *) * } */ - public static final long fapl_get$offset() { - return fapl_get$OFFSET; - } + public static final long fapl_get$offset() { return fapl_get$OFFSET; } /** * Getter for field: @@ -858,7 +807,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_get)(H5FD_t *) * } */ - public static MemorySegment fapl_get(MemorySegment struct) { + public static MemorySegment fapl_get(MemorySegment struct) + { return struct.get(fapl_get$LAYOUT, fapl_get$OFFSET); } @@ -868,7 +818,8 @@ public static MemorySegment fapl_get(MemorySegment struct) { * void *(*fapl_get)(H5FD_t *) * } */ - public static void fapl_get(MemorySegment struct, MemorySegment fieldValue) { + public static void fapl_get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(fapl_get$LAYOUT, fapl_get$OFFSET, fieldValue); } @@ -879,7 +830,8 @@ public static void fapl_get(MemorySegment struct, MemorySegment fieldValue) { */ public static class fapl_copy { - fapl_copy() { + fapl_copy() + { // Should not be called directly } @@ -890,25 +842,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(fapl_copy.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(fapl_copy.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(fapl_copy.Function fi, Arena arena) { + public static MemorySegment allocate(fapl_copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -917,16 +867,19 @@ public static MemorySegment allocate(fapl_copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout fapl_copy$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("fapl_copy")); + private static final AddressLayout fapl_copy$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("fapl_copy")); /** * Layout for field: @@ -934,9 +887,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_copy)(const void *) * } */ - public static final AddressLayout fapl_copy$layout() { - return fapl_copy$LAYOUT; - } + public static final AddressLayout fapl_copy$layout() { return fapl_copy$LAYOUT; } private static final long fapl_copy$OFFSET = 80; @@ -946,9 +897,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_copy)(const void *) * } */ - public static final long fapl_copy$offset() { - return fapl_copy$OFFSET; - } + public static final long fapl_copy$offset() { return fapl_copy$OFFSET; } /** * Getter for field: @@ -956,7 +905,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*fapl_copy)(const void *) * } */ - public static MemorySegment fapl_copy(MemorySegment struct) { + public static MemorySegment fapl_copy(MemorySegment struct) + { return struct.get(fapl_copy$LAYOUT, fapl_copy$OFFSET); } @@ -966,7 +916,8 @@ public static MemorySegment fapl_copy(MemorySegment struct) { * void *(*fapl_copy)(const void *) * } */ - public static void fapl_copy(MemorySegment struct, MemorySegment fieldValue) { + public static void fapl_copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(fapl_copy$LAYOUT, fapl_copy$OFFSET, fieldValue); } @@ -977,7 +928,8 @@ public static void fapl_copy(MemorySegment struct, MemorySegment fieldValue) { */ public static class fapl_free { - fapl_free() { + fapl_free() + { // Should not be called directly } @@ -988,25 +940,22 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(fapl_free.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(fapl_free.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(fapl_free.Function fi, Arena arena) { + public static MemorySegment allocate(fapl_free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1015,16 +964,19 @@ public static MemorySegment allocate(fapl_free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout fapl_free$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("fapl_free")); + private static final AddressLayout fapl_free$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("fapl_free")); /** * Layout for field: @@ -1032,9 +984,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*fapl_free)(void *) * } */ - public static final AddressLayout fapl_free$layout() { - return fapl_free$LAYOUT; - } + public static final AddressLayout fapl_free$layout() { return fapl_free$LAYOUT; } private static final long fapl_free$OFFSET = 88; @@ -1044,9 +994,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*fapl_free)(void *) * } */ - public static final long fapl_free$offset() { - return fapl_free$OFFSET; - } + public static final long fapl_free$offset() { return fapl_free$OFFSET; } /** * Getter for field: @@ -1054,7 +1002,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*fapl_free)(void *) * } */ - public static MemorySegment fapl_free(MemorySegment struct) { + public static MemorySegment fapl_free(MemorySegment struct) + { return struct.get(fapl_free$LAYOUT, fapl_free$OFFSET); } @@ -1064,7 +1013,8 @@ public static MemorySegment fapl_free(MemorySegment struct) { * herr_t (*fapl_free)(void *) * } */ - public static void fapl_free(MemorySegment struct, MemorySegment fieldValue) { + public static void fapl_free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(fapl_free$LAYOUT, fapl_free$OFFSET, fieldValue); } @@ -1076,9 +1026,7 @@ public static void fapl_free(MemorySegment struct, MemorySegment fieldValue) { * size_t dxpl_size * } */ - public static final OfLong dxpl_size$layout() { - return dxpl_size$LAYOUT; - } + public static final OfLong dxpl_size$layout() { return dxpl_size$LAYOUT; } private static final long dxpl_size$OFFSET = 96; @@ -1088,9 +1036,7 @@ public static void fapl_free(MemorySegment struct, MemorySegment fieldValue) { * size_t dxpl_size * } */ - public static final long dxpl_size$offset() { - return dxpl_size$OFFSET; - } + public static final long dxpl_size$offset() { return dxpl_size$OFFSET; } /** * Getter for field: @@ -1098,7 +1044,8 @@ public static void fapl_free(MemorySegment struct, MemorySegment fieldValue) { * size_t dxpl_size * } */ - public static long dxpl_size(MemorySegment struct) { + public static long dxpl_size(MemorySegment struct) + { return struct.get(dxpl_size$LAYOUT, dxpl_size$OFFSET); } @@ -1108,7 +1055,8 @@ public static long dxpl_size(MemorySegment struct) { * size_t dxpl_size * } */ - public static void dxpl_size(MemorySegment struct, long fieldValue) { + public static void dxpl_size(MemorySegment struct, long fieldValue) + { struct.set(dxpl_size$LAYOUT, dxpl_size$OFFSET, fieldValue); } @@ -1119,7 +1067,8 @@ public static void dxpl_size(MemorySegment struct, long fieldValue) { */ public static class dxpl_copy { - dxpl_copy() { + dxpl_copy() + { // Should not be called directly } @@ -1130,25 +1079,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(dxpl_copy.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(dxpl_copy.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(dxpl_copy.Function fi, Arena arena) { + public static MemorySegment allocate(dxpl_copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1157,16 +1104,19 @@ public static MemorySegment allocate(dxpl_copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout dxpl_copy$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("dxpl_copy")); + private static final AddressLayout dxpl_copy$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("dxpl_copy")); /** * Layout for field: @@ -1174,9 +1124,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*dxpl_copy)(const void *) * } */ - public static final AddressLayout dxpl_copy$layout() { - return dxpl_copy$LAYOUT; - } + public static final AddressLayout dxpl_copy$layout() { return dxpl_copy$LAYOUT; } private static final long dxpl_copy$OFFSET = 104; @@ -1186,9 +1134,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*dxpl_copy)(const void *) * } */ - public static final long dxpl_copy$offset() { - return dxpl_copy$OFFSET; - } + public static final long dxpl_copy$offset() { return dxpl_copy$OFFSET; } /** * Getter for field: @@ -1196,7 +1142,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*dxpl_copy)(const void *) * } */ - public static MemorySegment dxpl_copy(MemorySegment struct) { + public static MemorySegment dxpl_copy(MemorySegment struct) + { return struct.get(dxpl_copy$LAYOUT, dxpl_copy$OFFSET); } @@ -1206,7 +1153,8 @@ public static MemorySegment dxpl_copy(MemorySegment struct) { * void *(*dxpl_copy)(const void *) * } */ - public static void dxpl_copy(MemorySegment struct, MemorySegment fieldValue) { + public static void dxpl_copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(dxpl_copy$LAYOUT, dxpl_copy$OFFSET, fieldValue); } @@ -1217,7 +1165,8 @@ public static void dxpl_copy(MemorySegment struct, MemorySegment fieldValue) { */ public static class dxpl_free { - dxpl_free() { + dxpl_free() + { // Should not be called directly } @@ -1228,25 +1177,22 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(dxpl_free.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(dxpl_free.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(dxpl_free.Function fi, Arena arena) { + public static MemorySegment allocate(dxpl_free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1255,16 +1201,19 @@ public static MemorySegment allocate(dxpl_free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout dxpl_free$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("dxpl_free")); + private static final AddressLayout dxpl_free$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("dxpl_free")); /** * Layout for field: @@ -1272,9 +1221,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*dxpl_free)(void *) * } */ - public static final AddressLayout dxpl_free$layout() { - return dxpl_free$LAYOUT; - } + public static final AddressLayout dxpl_free$layout() { return dxpl_free$LAYOUT; } private static final long dxpl_free$OFFSET = 112; @@ -1284,9 +1231,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*dxpl_free)(void *) * } */ - public static final long dxpl_free$offset() { - return dxpl_free$OFFSET; - } + public static final long dxpl_free$offset() { return dxpl_free$OFFSET; } /** * Getter for field: @@ -1294,7 +1239,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*dxpl_free)(void *) * } */ - public static MemorySegment dxpl_free(MemorySegment struct) { + public static MemorySegment dxpl_free(MemorySegment struct) + { return struct.get(dxpl_free$LAYOUT, dxpl_free$OFFSET); } @@ -1304,7 +1250,8 @@ public static MemorySegment dxpl_free(MemorySegment struct) { * herr_t (*dxpl_free)(void *) * } */ - public static void dxpl_free(MemorySegment struct, MemorySegment fieldValue) { + public static void dxpl_free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(dxpl_free$LAYOUT, dxpl_free$OFFSET, fieldValue); } @@ -1315,7 +1262,8 @@ public static void dxpl_free(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -1327,19 +1275,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -1347,7 +1288,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1356,10 +1298,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, + long _x3) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1373,9 +1318,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * H5FD_t *(*open)(const char *, unsigned int, hid_t, haddr_t) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 120; @@ -1385,9 +1328,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * H5FD_t *(*open)(const char *, unsigned int, hid_t, haddr_t) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -1395,9 +1336,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * H5FD_t *(*open)(const char *, unsigned int, hid_t, haddr_t) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -1405,7 +1344,8 @@ public static MemorySegment open(MemorySegment struct) { * H5FD_t *(*open)(const char *, unsigned int, hid_t, haddr_t) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -1416,7 +1356,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -1427,17 +1368,12 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -1445,7 +1381,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1454,10 +1391,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1471,9 +1410,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*close)(H5FD_t *) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 128; @@ -1483,9 +1420,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*close)(H5FD_t *) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -1493,9 +1428,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*close)(H5FD_t *) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -1503,7 +1436,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(H5FD_t *) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -1514,7 +1448,8 @@ public static void close(MemorySegment struct, MemorySegment fieldValue) { */ public static class cmp { - cmp() { + cmp() + { // Should not be called directly } @@ -1525,18 +1460,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cmp.Function.class, "apply", $DESC); @@ -1544,7 +1474,8 @@ public static FunctionDescriptor descriptor() { * 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(cmp.Function fi, Arena arena) { + public static MemorySegment allocate(cmp.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1553,10 +1484,12 @@ public static MemorySegment allocate(cmp.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1570,9 +1503,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * int (*cmp)(const H5FD_t *, const H5FD_t *) * } */ - public static final AddressLayout cmp$layout() { - return cmp$LAYOUT; - } + public static final AddressLayout cmp$layout() { return cmp$LAYOUT; } private static final long cmp$OFFSET = 136; @@ -1582,9 +1513,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * int (*cmp)(const H5FD_t *, const H5FD_t *) * } */ - public static final long cmp$offset() { - return cmp$OFFSET; - } + public static final long cmp$offset() { return cmp$OFFSET; } /** * Getter for field: @@ -1592,9 +1521,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * int (*cmp)(const H5FD_t *, const H5FD_t *) * } */ - public static MemorySegment cmp(MemorySegment struct) { - return struct.get(cmp$LAYOUT, cmp$OFFSET); - } + public static MemorySegment cmp(MemorySegment struct) { return struct.get(cmp$LAYOUT, cmp$OFFSET); } /** * Setter for field: @@ -1602,7 +1529,8 @@ public static MemorySegment cmp(MemorySegment struct) { * int (*cmp)(const H5FD_t *, const H5FD_t *) * } */ - public static void cmp(MemorySegment struct, MemorySegment fieldValue) { + public static void cmp(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cmp$LAYOUT, cmp$OFFSET, fieldValue); } @@ -1613,7 +1541,8 @@ public static void cmp(MemorySegment struct, MemorySegment fieldValue) { */ public static class query { - query() { + query() + { // Should not be called directly } @@ -1624,18 +1553,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(query.Function.class, "apply", $DESC); @@ -1643,7 +1567,8 @@ public static FunctionDescriptor descriptor() { * 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(query.Function fi, Arena arena) { + public static MemorySegment allocate(query.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1652,10 +1577,12 @@ public static MemorySegment allocate(query.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1669,9 +1596,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*query)(const H5FD_t *, unsigned long *) * } */ - public static final AddressLayout query$layout() { - return query$LAYOUT; - } + public static final AddressLayout query$layout() { return query$LAYOUT; } private static final long query$OFFSET = 144; @@ -1681,9 +1606,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*query)(const H5FD_t *, unsigned long *) * } */ - public static final long query$offset() { - return query$OFFSET; - } + public static final long query$offset() { return query$OFFSET; } /** * Getter for field: @@ -1691,9 +1614,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*query)(const H5FD_t *, unsigned long *) * } */ - public static MemorySegment query(MemorySegment struct) { - return struct.get(query$LAYOUT, query$OFFSET); - } + public static MemorySegment query(MemorySegment struct) { return struct.get(query$LAYOUT, query$OFFSET); } /** * Setter for field: @@ -1701,7 +1622,8 @@ public static MemorySegment query(MemorySegment struct) { * herr_t (*query)(const H5FD_t *, unsigned long *) * } */ - public static void query(MemorySegment struct, MemorySegment fieldValue) { + public static void query(MemorySegment struct, MemorySegment fieldValue) + { struct.set(query$LAYOUT, query$OFFSET, fieldValue); } @@ -1712,7 +1634,8 @@ public static void query(MemorySegment struct, MemorySegment fieldValue) { */ public static class get_type_map { - get_type_map() { + get_type_map() + { // Should not be called directly } @@ -1723,26 +1646,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_type_map.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_type_map.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(get_type_map.Function fi, Arena arena) { + public static MemorySegment allocate(get_type_map.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1751,16 +1671,19 @@ public static MemorySegment allocate(get_type_map.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_type_map$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_type_map")); + private static final AddressLayout get_type_map$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_type_map")); /** * Layout for field: @@ -1768,9 +1691,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_type_map)(const H5FD_t *, H5FD_mem_t *) * } */ - public static final AddressLayout get_type_map$layout() { - return get_type_map$LAYOUT; - } + public static final AddressLayout get_type_map$layout() { return get_type_map$LAYOUT; } private static final long get_type_map$OFFSET = 152; @@ -1780,9 +1701,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_type_map)(const H5FD_t *, H5FD_mem_t *) * } */ - public static final long get_type_map$offset() { - return get_type_map$OFFSET; - } + public static final long get_type_map$offset() { return get_type_map$OFFSET; } /** * Getter for field: @@ -1790,7 +1709,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_type_map)(const H5FD_t *, H5FD_mem_t *) * } */ - public static MemorySegment get_type_map(MemorySegment struct) { + public static MemorySegment get_type_map(MemorySegment struct) + { return struct.get(get_type_map$LAYOUT, get_type_map$OFFSET); } @@ -1800,7 +1720,8 @@ public static MemorySegment get_type_map(MemorySegment struct) { * herr_t (*get_type_map)(const H5FD_t *, H5FD_mem_t *) * } */ - public static void get_type_map(MemorySegment struct, MemorySegment fieldValue) { + public static void get_type_map(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_type_map$LAYOUT, get_type_map$OFFSET, fieldValue); } @@ -1811,7 +1732,8 @@ public static void get_type_map(MemorySegment struct, MemorySegment fieldValue) */ public static class alloc { - alloc() { + alloc() + { // Should not be called directly } @@ -1823,19 +1745,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(alloc.Function.class, "apply", $DESC); @@ -1843,7 +1758,8 @@ public static FunctionDescriptor descriptor() { * 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(alloc.Function fi, Arena arena) { + public static MemorySegment allocate(alloc.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1852,10 +1768,12 @@ public static MemorySegment allocate(alloc.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3) { + public static long invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1869,9 +1787,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * haddr_t (*alloc)(H5FD_t *, H5FD_mem_t, hid_t, hsize_t) * } */ - public static final AddressLayout alloc$layout() { - return alloc$LAYOUT; - } + public static final AddressLayout alloc$layout() { return alloc$LAYOUT; } private static final long alloc$OFFSET = 160; @@ -1881,9 +1797,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * haddr_t (*alloc)(H5FD_t *, H5FD_mem_t, hid_t, hsize_t) * } */ - public static final long alloc$offset() { - return alloc$OFFSET; - } + public static final long alloc$offset() { return alloc$OFFSET; } /** * Getter for field: @@ -1891,9 +1805,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * haddr_t (*alloc)(H5FD_t *, H5FD_mem_t, hid_t, hsize_t) * } */ - public static MemorySegment alloc(MemorySegment struct) { - return struct.get(alloc$LAYOUT, alloc$OFFSET); - } + public static MemorySegment alloc(MemorySegment struct) { return struct.get(alloc$LAYOUT, alloc$OFFSET); } /** * Setter for field: @@ -1901,7 +1813,8 @@ public static MemorySegment alloc(MemorySegment struct) { * haddr_t (*alloc)(H5FD_t *, H5FD_mem_t, hid_t, hsize_t) * } */ - public static void alloc(MemorySegment struct, MemorySegment fieldValue) { + public static void alloc(MemorySegment struct, MemorySegment fieldValue) + { struct.set(alloc$LAYOUT, alloc$OFFSET, fieldValue); } @@ -1912,7 +1825,8 @@ public static void alloc(MemorySegment struct, MemorySegment fieldValue) { */ public static class free { - free() { + free() + { // Should not be called directly } @@ -1924,20 +1838,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(free.Function.class, "apply", $DESC); @@ -1945,7 +1851,8 @@ public static FunctionDescriptor descriptor() { * 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(free.Function fi, Arena arena) { + public static MemorySegment allocate(free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1954,10 +1861,13 @@ public static MemorySegment allocate(free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, long _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3, + long _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -1971,9 +1881,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*free)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, hsize_t) * } */ - public static final AddressLayout free$layout() { - return free$LAYOUT; - } + public static final AddressLayout free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 168; @@ -1983,9 +1891,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*free)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, hsize_t) * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -1993,9 +1899,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*free)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, hsize_t) * } */ - public static MemorySegment free(MemorySegment struct) { - return struct.get(free$LAYOUT, free$OFFSET); - } + public static MemorySegment free(MemorySegment struct) { return struct.get(free$LAYOUT, free$OFFSET); } /** * Setter for field: @@ -2003,7 +1907,8 @@ public static MemorySegment free(MemorySegment struct) { * herr_t (*free)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, hsize_t) * } */ - public static void free(MemorySegment struct, MemorySegment fieldValue) { + public static void free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(free$LAYOUT, free$OFFSET, fieldValue); } @@ -2014,7 +1919,8 @@ public static void free(MemorySegment struct, MemorySegment fieldValue) { */ public static class get_eoa { - get_eoa() { + get_eoa() + { // Should not be called directly } @@ -2025,18 +1931,13 @@ public interface Function { long apply(MemorySegment _x0, int _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_eoa.Function.class, "apply", $DESC); @@ -2044,7 +1945,8 @@ public static FunctionDescriptor descriptor() { * 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(get_eoa.Function fi, Arena arena) { + public static MemorySegment allocate(get_eoa.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2053,16 +1955,19 @@ public static MemorySegment allocate(get_eoa.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { + public static long invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_eoa$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_eoa")); + private static final AddressLayout get_eoa$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_eoa")); /** * Layout for field: @@ -2070,9 +1975,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eoa)(const H5FD_t *, H5FD_mem_t) * } */ - public static final AddressLayout get_eoa$layout() { - return get_eoa$LAYOUT; - } + public static final AddressLayout get_eoa$layout() { return get_eoa$LAYOUT; } private static final long get_eoa$OFFSET = 176; @@ -2082,9 +1985,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eoa)(const H5FD_t *, H5FD_mem_t) * } */ - public static final long get_eoa$offset() { - return get_eoa$OFFSET; - } + public static final long get_eoa$offset() { return get_eoa$OFFSET; } /** * Getter for field: @@ -2092,7 +1993,8 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eoa)(const H5FD_t *, H5FD_mem_t) * } */ - public static MemorySegment get_eoa(MemorySegment struct) { + public static MemorySegment get_eoa(MemorySegment struct) + { return struct.get(get_eoa$LAYOUT, get_eoa$OFFSET); } @@ -2102,7 +2004,8 @@ public static MemorySegment get_eoa(MemorySegment struct) { * haddr_t (*get_eoa)(const H5FD_t *, H5FD_mem_t) * } */ - public static void get_eoa(MemorySegment struct, MemorySegment fieldValue) { + public static void get_eoa(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_eoa$LAYOUT, get_eoa$OFFSET, fieldValue); } @@ -2113,7 +2016,8 @@ public static void get_eoa(MemorySegment struct, MemorySegment fieldValue) { */ public static class set_eoa { - set_eoa() { + set_eoa() + { // Should not be called directly } @@ -2124,19 +2028,13 @@ public interface Function { int apply(MemorySegment _x0, int _x1, long _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(set_eoa.Function.class, "apply", $DESC); @@ -2144,7 +2042,8 @@ public static FunctionDescriptor descriptor() { * 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(set_eoa.Function fi, Arena arena) { + public static MemorySegment allocate(set_eoa.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2153,16 +2052,19 @@ public static MemorySegment allocate(set_eoa.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout set_eoa$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("set_eoa")); + private static final AddressLayout set_eoa$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("set_eoa")); /** * Layout for field: @@ -2170,9 +2072,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*set_eoa)(H5FD_t *, H5FD_mem_t, haddr_t) * } */ - public static final AddressLayout set_eoa$layout() { - return set_eoa$LAYOUT; - } + public static final AddressLayout set_eoa$layout() { return set_eoa$LAYOUT; } private static final long set_eoa$OFFSET = 184; @@ -2182,9 +2082,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*set_eoa)(H5FD_t *, H5FD_mem_t, haddr_t) * } */ - public static final long set_eoa$offset() { - return set_eoa$OFFSET; - } + public static final long set_eoa$offset() { return set_eoa$OFFSET; } /** * Getter for field: @@ -2192,7 +2090,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*set_eoa)(H5FD_t *, H5FD_mem_t, haddr_t) * } */ - public static MemorySegment set_eoa(MemorySegment struct) { + public static MemorySegment set_eoa(MemorySegment struct) + { return struct.get(set_eoa$LAYOUT, set_eoa$OFFSET); } @@ -2202,7 +2101,8 @@ public static MemorySegment set_eoa(MemorySegment struct) { * herr_t (*set_eoa)(H5FD_t *, H5FD_mem_t, haddr_t) * } */ - public static void set_eoa(MemorySegment struct, MemorySegment fieldValue) { + public static void set_eoa(MemorySegment struct, MemorySegment fieldValue) + { struct.set(set_eoa$LAYOUT, set_eoa$OFFSET, fieldValue); } @@ -2213,7 +2113,8 @@ public static void set_eoa(MemorySegment struct, MemorySegment fieldValue) { */ public static class get_eof { - get_eof() { + get_eof() + { // Should not be called directly } @@ -2224,18 +2125,13 @@ public interface Function { long apply(MemorySegment _x0, int _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_eof.Function.class, "apply", $DESC); @@ -2243,7 +2139,8 @@ public static FunctionDescriptor descriptor() { * 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(get_eof.Function fi, Arena arena) { + public static MemorySegment allocate(get_eof.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2252,16 +2149,19 @@ public static MemorySegment allocate(get_eof.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { + public static long invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_eof$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_eof")); + private static final AddressLayout get_eof$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_eof")); /** * Layout for field: @@ -2269,9 +2169,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eof)(const H5FD_t *, H5FD_mem_t) * } */ - public static final AddressLayout get_eof$layout() { - return get_eof$LAYOUT; - } + public static final AddressLayout get_eof$layout() { return get_eof$LAYOUT; } private static final long get_eof$OFFSET = 192; @@ -2281,9 +2179,7 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eof)(const H5FD_t *, H5FD_mem_t) * } */ - public static final long get_eof$offset() { - return get_eof$OFFSET; - } + public static final long get_eof$offset() { return get_eof$OFFSET; } /** * Getter for field: @@ -2291,7 +2187,8 @@ public static long invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1) { * haddr_t (*get_eof)(const H5FD_t *, H5FD_mem_t) * } */ - public static MemorySegment get_eof(MemorySegment struct) { + public static MemorySegment get_eof(MemorySegment struct) + { return struct.get(get_eof$LAYOUT, get_eof$OFFSET); } @@ -2301,7 +2198,8 @@ public static MemorySegment get_eof(MemorySegment struct) { * haddr_t (*get_eof)(const H5FD_t *, H5FD_mem_t) * } */ - public static void get_eof(MemorySegment struct, MemorySegment fieldValue) { + public static void get_eof(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_eof$LAYOUT, get_eof$OFFSET, fieldValue); } @@ -2312,7 +2210,8 @@ public static void get_eof(MemorySegment struct, MemorySegment fieldValue) { */ public static class get_handle { - get_handle() { + get_handle() + { // Should not be called directly } @@ -2323,27 +2222,23 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_handle.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_handle.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(get_handle.Function fi, Arena arena) { + public static MemorySegment allocate(get_handle.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2352,16 +2247,19 @@ public static MemorySegment allocate(get_handle.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_handle$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_handle")); + private static final AddressLayout get_handle$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_handle")); /** * Layout for field: @@ -2369,9 +2267,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*get_handle)(H5FD_t *, hid_t, void **) * } */ - public static final AddressLayout get_handle$layout() { - return get_handle$LAYOUT; - } + public static final AddressLayout get_handle$layout() { return get_handle$LAYOUT; } private static final long get_handle$OFFSET = 200; @@ -2381,9 +2277,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*get_handle)(H5FD_t *, hid_t, void **) * } */ - public static final long get_handle$offset() { - return get_handle$OFFSET; - } + public static final long get_handle$offset() { return get_handle$OFFSET; } /** * Getter for field: @@ -2391,7 +2285,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*get_handle)(H5FD_t *, hid_t, void **) * } */ - public static MemorySegment get_handle(MemorySegment struct) { + public static MemorySegment get_handle(MemorySegment struct) + { return struct.get(get_handle$LAYOUT, get_handle$OFFSET); } @@ -2401,7 +2296,8 @@ public static MemorySegment get_handle(MemorySegment struct) { * herr_t (*get_handle)(H5FD_t *, hid_t, void **) * } */ - public static void get_handle(MemorySegment struct, MemorySegment fieldValue) { + public static void get_handle(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_handle$LAYOUT, get_handle$OFFSET, fieldValue); } @@ -2412,7 +2308,8 @@ public static void get_handle(MemorySegment struct, MemorySegment fieldValue) { */ public static class read { - read() { + read() + { // Should not be called directly } @@ -2423,22 +2320,14 @@ public interface Function { int apply(MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(read.Function.class, "apply", $DESC); @@ -2446,7 +2335,8 @@ public static FunctionDescriptor descriptor() { * 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(read.Function fi, Arena arena) { + public static MemorySegment allocate(read.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2455,10 +2345,13 @@ public static MemorySegment allocate(read.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3, + long _x4, MemorySegment _x5) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -2472,9 +2365,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*read)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, void *) * } */ - public static final AddressLayout read$layout() { - return read$LAYOUT; - } + public static final AddressLayout read$layout() { return read$LAYOUT; } private static final long read$OFFSET = 208; @@ -2484,9 +2375,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*read)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, void *) * } */ - public static final long read$offset() { - return read$OFFSET; - } + public static final long read$offset() { return read$OFFSET; } /** * Getter for field: @@ -2494,9 +2383,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*read)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, void *) * } */ - public static MemorySegment read(MemorySegment struct) { - return struct.get(read$LAYOUT, read$OFFSET); - } + public static MemorySegment read(MemorySegment struct) { return struct.get(read$LAYOUT, read$OFFSET); } /** * Setter for field: @@ -2504,7 +2391,8 @@ public static MemorySegment read(MemorySegment struct) { * herr_t (*read)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, void *) * } */ - public static void read(MemorySegment struct, MemorySegment fieldValue) { + public static void read(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read$LAYOUT, read$OFFSET, fieldValue); } @@ -2515,7 +2403,8 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { */ public static class write { - write() { + write() + { // Should not be called directly } @@ -2526,22 +2415,14 @@ public interface Function { int apply(MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(write.Function.class, "apply", $DESC); @@ -2549,7 +2430,8 @@ public static FunctionDescriptor descriptor() { * 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(write.Function fi, Arena arena) { + public static MemorySegment allocate(write.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2558,10 +2440,13 @@ public static MemorySegment allocate(write.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3, + long _x4, MemorySegment _x5) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -2575,9 +2460,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*write)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, const void *) * } */ - public static final AddressLayout write$layout() { - return write$LAYOUT; - } + public static final AddressLayout write$layout() { return write$LAYOUT; } private static final long write$OFFSET = 216; @@ -2587,9 +2470,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*write)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, const void *) * } */ - public static final long write$offset() { - return write$OFFSET; - } + public static final long write$offset() { return write$OFFSET; } /** * Getter for field: @@ -2597,9 +2478,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long * herr_t (*write)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, const void *) * } */ - public static MemorySegment write(MemorySegment struct) { - return struct.get(write$LAYOUT, write$OFFSET); - } + public static MemorySegment write(MemorySegment struct) { return struct.get(write$LAYOUT, write$OFFSET); } /** * Setter for field: @@ -2607,7 +2486,8 @@ public static MemorySegment write(MemorySegment struct) { * herr_t (*write)(H5FD_t *, H5FD_mem_t, hid_t, haddr_t, size_t, const void *) * } */ - public static void write(MemorySegment struct, MemorySegment fieldValue) { + public static void write(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write$LAYOUT, write$OFFSET, fieldValue); } @@ -2618,7 +2498,8 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { */ public static class read_vector { - read_vector() { + read_vector() + { // Should not be called directly } @@ -2626,34 +2507,28 @@ public static class read_vector { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6); + int apply(MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, + MemorySegment _x5, MemorySegment _x6); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(read_vector.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(read_vector.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(read_vector.Function fi, Arena arena) { + public static MemorySegment allocate(read_vector.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2662,16 +2537,20 @@ public static MemorySegment allocate(read_vector.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, int _x2, + MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout read_vector$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("read_vector")); + private static final AddressLayout read_vector$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("read_vector")); /** * Layout for field: @@ -2679,9 +2558,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*read_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, void **) * } */ - public static final AddressLayout read_vector$layout() { - return read_vector$LAYOUT; - } + public static final AddressLayout read_vector$layout() { return read_vector$LAYOUT; } private static final long read_vector$OFFSET = 224; @@ -2691,9 +2568,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*read_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, void **) * } */ - public static final long read_vector$offset() { - return read_vector$OFFSET; - } + public static final long read_vector$offset() { return read_vector$OFFSET; } /** * Getter for field: @@ -2701,7 +2576,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*read_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, void **) * } */ - public static MemorySegment read_vector(MemorySegment struct) { + public static MemorySegment read_vector(MemorySegment struct) + { return struct.get(read_vector$LAYOUT, read_vector$OFFSET); } @@ -2711,7 +2587,8 @@ public static MemorySegment read_vector(MemorySegment struct) { * herr_t (*read_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, void **) * } */ - public static void read_vector(MemorySegment struct, MemorySegment fieldValue) { + public static void read_vector(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read_vector$LAYOUT, read_vector$OFFSET, fieldValue); } @@ -2722,7 +2599,8 @@ public static void read_vector(MemorySegment struct, MemorySegment fieldValue) { */ public static class write_vector { - write_vector() { + write_vector() + { // Should not be called directly } @@ -2730,34 +2608,28 @@ public static class write_vector { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6); + int apply(MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, + MemorySegment _x5, MemorySegment _x6); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(write_vector.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(write_vector.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(write_vector.Function fi, Arena arena) { + public static MemorySegment allocate(write_vector.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2766,16 +2638,20 @@ public static MemorySegment allocate(write_vector.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, int _x2, + MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout write_vector$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("write_vector")); + private static final AddressLayout write_vector$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("write_vector")); /** * Layout for field: @@ -2783,9 +2659,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*write_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, const void **) * } */ - public static final AddressLayout write_vector$layout() { - return write_vector$LAYOUT; - } + public static final AddressLayout write_vector$layout() { return write_vector$LAYOUT; } private static final long write_vector$OFFSET = 232; @@ -2795,9 +2669,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*write_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, const void **) * } */ - public static final long write_vector$offset() { - return write_vector$OFFSET; - } + public static final long write_vector$offset() { return write_vector$OFFSET; } /** * Getter for field: @@ -2805,7 +2677,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int * herr_t (*write_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, const void **) * } */ - public static MemorySegment write_vector(MemorySegment struct) { + public static MemorySegment write_vector(MemorySegment struct) + { return struct.get(write_vector$LAYOUT, write_vector$OFFSET); } @@ -2815,18 +2688,21 @@ public static MemorySegment write_vector(MemorySegment struct) { * herr_t (*write_vector)(H5FD_t *, hid_t, uint32_t, H5FD_mem_t *, haddr_t *, size_t *, const void **) * } */ - public static void write_vector(MemorySegment struct, MemorySegment fieldValue) { + public static void write_vector(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write_vector$LAYOUT, write_vector$OFFSET, fieldValue); } /** * {@snippet lang=c : - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **) + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **) * } */ public static class read_selection { - read_selection() { + read_selection() + { // Should not be called directly } @@ -2834,36 +2710,28 @@ public static class read_selection { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, MemorySegment _x8); + int apply(MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, + MemorySegment _x6, MemorySegment _x7, MemorySegment _x8); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(read_selection.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(read_selection.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(read_selection.Function fi, Arena arena) { + public static MemorySegment allocate(read_selection.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2872,67 +2740,76 @@ public static MemorySegment allocate(read_selection.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, MemorySegment _x8) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3, + MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, + MemorySegment _x8) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout read_selection$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("read_selection")); + private static final AddressLayout read_selection$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("read_selection")); /** * Layout for field: * {@snippet lang=c : - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **) + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **) * } */ - public static final AddressLayout read_selection$layout() { - return read_selection$LAYOUT; - } + public static final AddressLayout read_selection$layout() { return read_selection$LAYOUT; } private static final long read_selection$OFFSET = 240; /** * Offset for field: * {@snippet lang=c : - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **) + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **) * } */ - public static final long read_selection$offset() { - return read_selection$OFFSET; - } + public static final long read_selection$offset() { return read_selection$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **) + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **) * } */ - public static MemorySegment read_selection(MemorySegment struct) { + public static MemorySegment read_selection(MemorySegment struct) + { return struct.get(read_selection$LAYOUT, read_selection$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, void **) + * herr_t (*read_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * void **) * } */ - public static void read_selection(MemorySegment struct, MemorySegment fieldValue) { + public static void read_selection(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read_selection$LAYOUT, read_selection$OFFSET, fieldValue); } /** * {@snippet lang=c : - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **) + * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * const void **) * } */ public static class write_selection { - write_selection() { + write_selection() + { // Should not be called directly } @@ -2940,36 +2817,28 @@ public static class write_selection { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, MemorySegment _x8); + int apply(MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, + MemorySegment _x6, MemorySegment _x7, MemorySegment _x8); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(write_selection.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(write_selection.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(write_selection.Function fi, Arena arena) { + public static MemorySegment allocate(write_selection.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -2978,56 +2847,63 @@ public static MemorySegment allocate(write_selection.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, MemorySegment _x8) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, long _x3, + MemorySegment _x4, MemorySegment _x5, MemorySegment _x6, MemorySegment _x7, + MemorySegment _x8) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout write_selection$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("write_selection")); + private static final AddressLayout write_selection$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("write_selection")); /** * Layout for field: * {@snippet lang=c : - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **) + * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * const void **) * } */ - public static final AddressLayout write_selection$layout() { - return write_selection$LAYOUT; - } + public static final AddressLayout write_selection$layout() { return write_selection$LAYOUT; } private static final long write_selection$OFFSET = 248; /** * Offset for field: * {@snippet lang=c : - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **) + * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * const void **) * } */ - public static final long write_selection$offset() { - return write_selection$OFFSET; - } + public static final long write_selection$offset() { return write_selection$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **) + * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * const void **) * } */ - public static MemorySegment write_selection(MemorySegment struct) { + public static MemorySegment write_selection(MemorySegment struct) + { return struct.get(write_selection$LAYOUT, write_selection$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, const void **) + * herr_t (*write_selection)(H5FD_t *, H5FD_mem_t, hid_t, size_t, hid_t *, hid_t *, haddr_t *, size_t *, + * const void **) * } */ - public static void write_selection(MemorySegment struct, MemorySegment fieldValue) { + public static void write_selection(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write_selection$LAYOUT, write_selection$OFFSET, fieldValue); } @@ -3038,7 +2914,8 @@ public static void write_selection(MemorySegment struct, MemorySegment fieldValu */ public static class flush { - flush() { + flush() + { // Should not be called directly } @@ -3049,19 +2926,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, boolean _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_BOOL); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(flush.Function.class, "apply", $DESC); @@ -3069,7 +2940,8 @@ public static FunctionDescriptor descriptor() { * 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(flush.Function fi, Arena arena) { + public static MemorySegment allocate(flush.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3078,10 +2950,12 @@ public static MemorySegment allocate(flush.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, boolean _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, boolean _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -3095,9 +2969,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*flush)(H5FD_t *, hid_t, hbool_t) * } */ - public static final AddressLayout flush$layout() { - return flush$LAYOUT; - } + public static final AddressLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 256; @@ -3107,9 +2979,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*flush)(H5FD_t *, hid_t, hbool_t) * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -3117,9 +2987,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*flush)(H5FD_t *, hid_t, hbool_t) * } */ - public static MemorySegment flush(MemorySegment struct) { - return struct.get(flush$LAYOUT, flush$OFFSET); - } + public static MemorySegment flush(MemorySegment struct) { return struct.get(flush$LAYOUT, flush$OFFSET); } /** * Setter for field: @@ -3127,7 +2995,8 @@ public static MemorySegment flush(MemorySegment struct) { * herr_t (*flush)(H5FD_t *, hid_t, hbool_t) * } */ - public static void flush(MemorySegment struct, MemorySegment fieldValue) { + public static void flush(MemorySegment struct, MemorySegment fieldValue) + { struct.set(flush$LAYOUT, flush$OFFSET, fieldValue); } @@ -3138,7 +3007,8 @@ public static void flush(MemorySegment struct, MemorySegment fieldValue) { */ public static class truncate { - truncate() { + truncate() + { // Should not be called directly } @@ -3149,27 +3019,23 @@ public interface Function { int apply(MemorySegment _x0, long _x1, boolean _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_BOOL); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(truncate.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(truncate.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(truncate.Function fi, Arena arena) { + public static MemorySegment allocate(truncate.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3178,16 +3044,19 @@ public static MemorySegment allocate(truncate.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, boolean _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, boolean _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout truncate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("truncate")); + private static final AddressLayout truncate$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("truncate")); /** * Layout for field: @@ -3195,9 +3064,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*truncate)(H5FD_t *, hid_t, hbool_t) * } */ - public static final AddressLayout truncate$layout() { - return truncate$LAYOUT; - } + public static final AddressLayout truncate$layout() { return truncate$LAYOUT; } private static final long truncate$OFFSET = 264; @@ -3207,9 +3074,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*truncate)(H5FD_t *, hid_t, hbool_t) * } */ - public static final long truncate$offset() { - return truncate$OFFSET; - } + public static final long truncate$offset() { return truncate$OFFSET; } /** * Getter for field: @@ -3217,7 +3082,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, bool * herr_t (*truncate)(H5FD_t *, hid_t, hbool_t) * } */ - public static MemorySegment truncate(MemorySegment struct) { + public static MemorySegment truncate(MemorySegment struct) + { return struct.get(truncate$LAYOUT, truncate$OFFSET); } @@ -3227,7 +3093,8 @@ public static MemorySegment truncate(MemorySegment struct) { * herr_t (*truncate)(H5FD_t *, hid_t, hbool_t) * } */ - public static void truncate(MemorySegment struct, MemorySegment fieldValue) { + public static void truncate(MemorySegment struct, MemorySegment fieldValue) + { struct.set(truncate$LAYOUT, truncate$OFFSET, fieldValue); } @@ -3238,7 +3105,8 @@ public static void truncate(MemorySegment struct, MemorySegment fieldValue) { */ public static class lock { - lock() { + lock() + { // Should not be called directly } @@ -3249,18 +3117,13 @@ public interface Function { int apply(MemorySegment _x0, boolean _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_BOOL - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_BOOL); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(lock.Function.class, "apply", $DESC); @@ -3268,7 +3131,8 @@ public static FunctionDescriptor descriptor() { * 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(lock.Function fi, Arena arena) { + public static MemorySegment allocate(lock.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3277,10 +3141,12 @@ public static MemorySegment allocate(lock.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, boolean _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, boolean _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -3294,9 +3160,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, boolean _x1) { * herr_t (*lock)(H5FD_t *, hbool_t) * } */ - public static final AddressLayout lock$layout() { - return lock$LAYOUT; - } + public static final AddressLayout lock$layout() { return lock$LAYOUT; } private static final long lock$OFFSET = 272; @@ -3306,9 +3170,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, boolean _x1) { * herr_t (*lock)(H5FD_t *, hbool_t) * } */ - public static final long lock$offset() { - return lock$OFFSET; - } + public static final long lock$offset() { return lock$OFFSET; } /** * Getter for field: @@ -3316,9 +3178,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, boolean _x1) { * herr_t (*lock)(H5FD_t *, hbool_t) * } */ - public static MemorySegment lock(MemorySegment struct) { - return struct.get(lock$LAYOUT, lock$OFFSET); - } + public static MemorySegment lock(MemorySegment struct) { return struct.get(lock$LAYOUT, lock$OFFSET); } /** * Setter for field: @@ -3326,7 +3186,8 @@ public static MemorySegment lock(MemorySegment struct) { * herr_t (*lock)(H5FD_t *, hbool_t) * } */ - public static void lock(MemorySegment struct, MemorySegment fieldValue) { + public static void lock(MemorySegment struct, MemorySegment fieldValue) + { struct.set(lock$LAYOUT, lock$OFFSET, fieldValue); } @@ -3337,7 +3198,8 @@ public static void lock(MemorySegment struct, MemorySegment fieldValue) { */ public static class unlock { - unlock() { + unlock() + { // Should not be called directly } @@ -3348,17 +3210,12 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(unlock.Function.class, "apply", $DESC); @@ -3366,7 +3223,8 @@ public static FunctionDescriptor descriptor() { * 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(unlock.Function fi, Arena arena) { + public static MemorySegment allocate(unlock.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3375,10 +3233,12 @@ public static MemorySegment allocate(unlock.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -3392,9 +3252,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*unlock)(H5FD_t *) * } */ - public static final AddressLayout unlock$layout() { - return unlock$LAYOUT; - } + public static final AddressLayout unlock$layout() { return unlock$LAYOUT; } private static final long unlock$OFFSET = 280; @@ -3404,9 +3262,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*unlock)(H5FD_t *) * } */ - public static final long unlock$offset() { - return unlock$OFFSET; - } + public static final long unlock$offset() { return unlock$OFFSET; } /** * Getter for field: @@ -3414,7 +3270,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*unlock)(H5FD_t *) * } */ - public static MemorySegment unlock(MemorySegment struct) { + public static MemorySegment unlock(MemorySegment struct) + { return struct.get(unlock$LAYOUT, unlock$OFFSET); } @@ -3424,7 +3281,8 @@ public static MemorySegment unlock(MemorySegment struct) { * herr_t (*unlock)(H5FD_t *) * } */ - public static void unlock(MemorySegment struct, MemorySegment fieldValue) { + public static void unlock(MemorySegment struct, MemorySegment fieldValue) + { struct.set(unlock$LAYOUT, unlock$OFFSET, fieldValue); } @@ -3435,7 +3293,8 @@ public static void unlock(MemorySegment struct, MemorySegment fieldValue) { */ public static class del { - del() { + del() + { // Should not be called directly } @@ -3446,18 +3305,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(del.Function.class, "apply", $DESC); @@ -3465,7 +3319,8 @@ public static FunctionDescriptor descriptor() { * 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(del.Function fi, Arena arena) { + public static MemorySegment allocate(del.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3474,10 +3329,12 @@ public static MemorySegment allocate(del.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -3491,9 +3348,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1) { * herr_t (*del)(const char *, hid_t) * } */ - public static final AddressLayout del$layout() { - return del$LAYOUT; - } + public static final AddressLayout del$layout() { return del$LAYOUT; } private static final long del$OFFSET = 288; @@ -3503,9 +3358,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1) { * herr_t (*del)(const char *, hid_t) * } */ - public static final long del$offset() { - return del$OFFSET; - } + public static final long del$offset() { return del$OFFSET; } /** * Getter for field: @@ -3513,9 +3366,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1) { * herr_t (*del)(const char *, hid_t) * } */ - public static MemorySegment del(MemorySegment struct) { - return struct.get(del$LAYOUT, del$OFFSET); - } + public static MemorySegment del(MemorySegment struct) { return struct.get(del$LAYOUT, del$OFFSET); } /** * Setter for field: @@ -3523,7 +3374,8 @@ public static MemorySegment del(MemorySegment struct) { * herr_t (*del)(const char *, hid_t) * } */ - public static void del(MemorySegment struct, MemorySegment fieldValue) { + public static void del(MemorySegment struct, MemorySegment fieldValue) + { struct.set(del$LAYOUT, del$OFFSET, fieldValue); } @@ -3534,7 +3386,8 @@ public static void del(MemorySegment struct, MemorySegment fieldValue) { */ public static class ctl { - ctl() { + ctl() + { // Should not be called directly } @@ -3546,20 +3399,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(ctl.Function.class, "apply", $DESC); @@ -3567,7 +3412,8 @@ public static FunctionDescriptor descriptor() { * 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(ctl.Function fi, Arena arena) { + public static MemorySegment allocate(ctl.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -3576,10 +3422,13 @@ public static MemorySegment allocate(ctl.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, long _x2, MemorySegment _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, long _x2, + MemorySegment _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -3593,9 +3442,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, long * herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **) * } */ - public static final AddressLayout ctl$layout() { - return ctl$LAYOUT; - } + public static final AddressLayout ctl$layout() { return ctl$LAYOUT; } private static final long ctl$OFFSET = 296; @@ -3605,9 +3452,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, long * herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **) * } */ - public static final long ctl$offset() { - return ctl$OFFSET; - } + public static final long ctl$offset() { return ctl$OFFSET; } /** * Getter for field: @@ -3615,9 +3460,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, long * herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **) * } */ - public static MemorySegment ctl(MemorySegment struct) { - return struct.get(ctl$LAYOUT, ctl$OFFSET); - } + public static MemorySegment ctl(MemorySegment struct) { return struct.get(ctl$LAYOUT, ctl$OFFSET); } /** * Setter for field: @@ -3625,11 +3468,13 @@ public static MemorySegment ctl(MemorySegment struct) { * herr_t (*ctl)(H5FD_t *, uint64_t, uint64_t, const void *, void **) * } */ - public static void ctl(MemorySegment struct, MemorySegment fieldValue) { + public static void ctl(MemorySegment struct, MemorySegment fieldValue) + { struct.set(ctl$LAYOUT, ctl$OFFSET, fieldValue); } - private static final SequenceLayout fl_map$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("fl_map")); + private static final SequenceLayout fl_map$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("fl_map")); /** * Layout for field: @@ -3637,9 +3482,7 @@ public static void ctl(MemorySegment struct, MemorySegment fieldValue) { * H5FD_mem_t fl_map[7] * } */ - public static final SequenceLayout fl_map$layout() { - return fl_map$LAYOUT; - } + public static final SequenceLayout fl_map$layout() { return fl_map$LAYOUT; } private static final long fl_map$OFFSET = 304; @@ -3649,9 +3492,7 @@ public static void ctl(MemorySegment struct, MemorySegment fieldValue) { * H5FD_mem_t fl_map[7] * } */ - public static final long fl_map$offset() { - return fl_map$OFFSET; - } + public static final long fl_map$offset() { return fl_map$OFFSET; } /** * Getter for field: @@ -3659,7 +3500,8 @@ public static void ctl(MemorySegment struct, MemorySegment fieldValue) { * H5FD_mem_t fl_map[7] * } */ - public static MemorySegment fl_map(MemorySegment struct) { + public static MemorySegment fl_map(MemorySegment struct) + { return struct.asSlice(fl_map$OFFSET, fl_map$LAYOUT.byteSize()); } @@ -3669,11 +3511,12 @@ public static MemorySegment fl_map(MemorySegment struct) { * H5FD_mem_t fl_map[7] * } */ - public static void fl_map(MemorySegment struct, MemorySegment fieldValue) { + public static void fl_map(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, fl_map$OFFSET, fl_map$LAYOUT.byteSize()); } - private static long[] fl_map$DIMS = { 7 }; + private static long[] fl_map$DIMS = {7}; /** * Dimensions for array field: @@ -3681,9 +3524,7 @@ public static void fl_map(MemorySegment struct, MemorySegment fieldValue) { * H5FD_mem_t fl_map[7] * } */ - public static long[] fl_map$dimensions() { - return fl_map$DIMS; - } + public static long[] fl_map$dimensions() { return fl_map$DIMS; } private static final VarHandle fl_map$ELEM_HANDLE = fl_map$LAYOUT.varHandle(sequenceElement()); /** @@ -3692,7 +3533,8 @@ public static void fl_map(MemorySegment struct, MemorySegment fieldValue) { * H5FD_mem_t fl_map[7] * } */ - public static int fl_map(MemorySegment struct, long index0) { + public static int fl_map(MemorySegment struct, long index0) + { return (int)fl_map$ELEM_HANDLE.get(struct, 0L, index0); } @@ -3702,7 +3544,8 @@ public static int fl_map(MemorySegment struct, long index0) { * H5FD_mem_t fl_map[7] * } */ - public static void fl_map(MemorySegment struct, long index0, int fieldValue) { + public static void fl_map(MemorySegment struct, long index0, int fieldValue) + { fl_map$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -3710,7 +3553,8 @@ public static void fl_map(MemorySegment struct, long index0, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -3722,15 +3566,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -3738,7 +3581,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -3746,8 +3590,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_ctl_memcpy_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_ctl_memcpy_args_t.java index 9fc3e24da23..c3bbbc08ff1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_ctl_memcpy_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_ctl_memcpy_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_ctl_memcpy_args_t { @@ -25,24 +25,22 @@ */ public class H5FD_ctl_memcpy_args_t { - H5FD_ctl_memcpy_args_t() { + H5FD_ctl_memcpy_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("dstbuf"), - hdf5_h.C_LONG.withName("dst_off"), - hdf5_h.C_POINTER.withName("srcbuf"), - hdf5_h.C_LONG.withName("src_off"), - hdf5_h.C_LONG.withName("len") - ).withName("H5FD_ctl_memcpy_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("dstbuf"), hdf5_h.C_LONG.withName("dst_off"), + hdf5_h.C_POINTER.withName("srcbuf"), hdf5_h.C_LONG.withName("src_off"), + hdf5_h.C_LONG.withName("len")) + .withName("H5FD_ctl_memcpy_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout dstbuf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("dstbuf")); @@ -52,9 +50,7 @@ public static final GroupLayout layout() { * void *dstbuf * } */ - public static final AddressLayout dstbuf$layout() { - return dstbuf$LAYOUT; - } + public static final AddressLayout dstbuf$layout() { return dstbuf$LAYOUT; } private static final long dstbuf$OFFSET = 0; @@ -64,9 +60,7 @@ public static final GroupLayout layout() { * void *dstbuf * } */ - public static final long dstbuf$offset() { - return dstbuf$OFFSET; - } + public static final long dstbuf$offset() { return dstbuf$OFFSET; } /** * Getter for field: @@ -74,7 +68,8 @@ public static final GroupLayout layout() { * void *dstbuf * } */ - public static MemorySegment dstbuf(MemorySegment struct) { + public static MemorySegment dstbuf(MemorySegment struct) + { return struct.get(dstbuf$LAYOUT, dstbuf$OFFSET); } @@ -84,7 +79,8 @@ public static MemorySegment dstbuf(MemorySegment struct) { * void *dstbuf * } */ - public static void dstbuf(MemorySegment struct, MemorySegment fieldValue) { + public static void dstbuf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(dstbuf$LAYOUT, dstbuf$OFFSET, fieldValue); } @@ -96,9 +92,7 @@ public static void dstbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t dst_off * } */ - public static final OfLong dst_off$layout() { - return dst_off$LAYOUT; - } + public static final OfLong dst_off$layout() { return dst_off$LAYOUT; } private static final long dst_off$OFFSET = 8; @@ -108,9 +102,7 @@ public static void dstbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t dst_off * } */ - public static final long dst_off$offset() { - return dst_off$OFFSET; - } + public static final long dst_off$offset() { return dst_off$OFFSET; } /** * Getter for field: @@ -118,9 +110,7 @@ public static void dstbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t dst_off * } */ - public static long dst_off(MemorySegment struct) { - return struct.get(dst_off$LAYOUT, dst_off$OFFSET); - } + public static long dst_off(MemorySegment struct) { return struct.get(dst_off$LAYOUT, dst_off$OFFSET); } /** * Setter for field: @@ -128,7 +118,8 @@ public static long dst_off(MemorySegment struct) { * hsize_t dst_off * } */ - public static void dst_off(MemorySegment struct, long fieldValue) { + public static void dst_off(MemorySegment struct, long fieldValue) + { struct.set(dst_off$LAYOUT, dst_off$OFFSET, fieldValue); } @@ -140,9 +131,7 @@ public static void dst_off(MemorySegment struct, long fieldValue) { * const void *srcbuf * } */ - public static final AddressLayout srcbuf$layout() { - return srcbuf$LAYOUT; - } + public static final AddressLayout srcbuf$layout() { return srcbuf$LAYOUT; } private static final long srcbuf$OFFSET = 16; @@ -152,9 +141,7 @@ public static void dst_off(MemorySegment struct, long fieldValue) { * const void *srcbuf * } */ - public static final long srcbuf$offset() { - return srcbuf$OFFSET; - } + public static final long srcbuf$offset() { return srcbuf$OFFSET; } /** * Getter for field: @@ -162,7 +149,8 @@ public static void dst_off(MemorySegment struct, long fieldValue) { * const void *srcbuf * } */ - public static MemorySegment srcbuf(MemorySegment struct) { + public static MemorySegment srcbuf(MemorySegment struct) + { return struct.get(srcbuf$LAYOUT, srcbuf$OFFSET); } @@ -172,7 +160,8 @@ public static MemorySegment srcbuf(MemorySegment struct) { * const void *srcbuf * } */ - public static void srcbuf(MemorySegment struct, MemorySegment fieldValue) { + public static void srcbuf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(srcbuf$LAYOUT, srcbuf$OFFSET, fieldValue); } @@ -184,9 +173,7 @@ public static void srcbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t src_off * } */ - public static final OfLong src_off$layout() { - return src_off$LAYOUT; - } + public static final OfLong src_off$layout() { return src_off$LAYOUT; } private static final long src_off$OFFSET = 24; @@ -196,9 +183,7 @@ public static void srcbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t src_off * } */ - public static final long src_off$offset() { - return src_off$OFFSET; - } + public static final long src_off$offset() { return src_off$OFFSET; } /** * Getter for field: @@ -206,9 +191,7 @@ public static void srcbuf(MemorySegment struct, MemorySegment fieldValue) { * hsize_t src_off * } */ - public static long src_off(MemorySegment struct) { - return struct.get(src_off$LAYOUT, src_off$OFFSET); - } + public static long src_off(MemorySegment struct) { return struct.get(src_off$LAYOUT, src_off$OFFSET); } /** * Setter for field: @@ -216,7 +199,8 @@ public static long src_off(MemorySegment struct) { * hsize_t src_off * } */ - public static void src_off(MemorySegment struct, long fieldValue) { + public static void src_off(MemorySegment struct, long fieldValue) + { struct.set(src_off$LAYOUT, src_off$OFFSET, fieldValue); } @@ -228,9 +212,7 @@ public static void src_off(MemorySegment struct, long fieldValue) { * size_t len * } */ - public static final OfLong len$layout() { - return len$LAYOUT; - } + public static final OfLong len$layout() { return len$LAYOUT; } private static final long len$OFFSET = 32; @@ -240,9 +222,7 @@ public static void src_off(MemorySegment struct, long fieldValue) { * size_t len * } */ - public static final long len$offset() { - return len$OFFSET; - } + public static final long len$offset() { return len$OFFSET; } /** * Getter for field: @@ -250,9 +230,7 @@ public static void src_off(MemorySegment struct, long fieldValue) { * size_t len * } */ - public static long len(MemorySegment struct) { - return struct.get(len$LAYOUT, len$OFFSET); - } + public static long len(MemorySegment struct) { return struct.get(len$LAYOUT, len$OFFSET); } /** * Setter for field: @@ -260,7 +238,8 @@ public static long len(MemorySegment struct) { * size_t len * } */ - public static void len(MemorySegment struct, long fieldValue) { + public static void len(MemorySegment struct, long fieldValue) + { struct.set(len$LAYOUT, len$OFFSET, fieldValue); } @@ -268,7 +247,8 @@ public static void len(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -280,15 +260,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -296,7 +275,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -304,8 +284,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_file_image_callbacks_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_file_image_callbacks_t.java index 1eac055ccdc..702e187568a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_file_image_callbacks_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_file_image_callbacks_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -27,26 +27,24 @@ */ public class H5FD_file_image_callbacks_t { - H5FD_file_image_callbacks_t() { + H5FD_file_image_callbacks_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("image_malloc"), - hdf5_h.C_POINTER.withName("image_memcpy"), - hdf5_h.C_POINTER.withName("image_realloc"), - hdf5_h.C_POINTER.withName("image_free"), - hdf5_h.C_POINTER.withName("udata_copy"), - hdf5_h.C_POINTER.withName("udata_free"), - hdf5_h.C_POINTER.withName("udata") - ).withName("$anon$303:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("image_malloc"), + hdf5_h.C_POINTER.withName("image_memcpy"), + hdf5_h.C_POINTER.withName("image_realloc"), hdf5_h.C_POINTER.withName("image_free"), + hdf5_h.C_POINTER.withName("udata_copy"), hdf5_h.C_POINTER.withName("udata_free"), + hdf5_h.C_POINTER.withName("udata")) + .withName("$anon$303:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -55,7 +53,8 @@ public static final GroupLayout layout() { */ public static class image_malloc { - image_malloc() { + image_malloc() + { // Should not be called directly } @@ -66,27 +65,23 @@ public interface Function { MemorySegment apply(long _x0, int _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(image_malloc.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(image_malloc.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(image_malloc.Function fi, Arena arena) { + public static MemorySegment allocate(image_malloc.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -95,16 +90,19 @@ public static MemorySegment allocate(image_malloc.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,long _x0, int _x1, MemorySegment _x2) { + public static MemorySegment invoke(MemorySegment funcPtr, long _x0, int _x1, MemorySegment _x2) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout image_malloc$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("image_malloc")); + private static final AddressLayout image_malloc$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("image_malloc")); /** * Layout for field: @@ -112,9 +110,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,long _x0, int _x1, Memo * void *(*image_malloc)(size_t, H5FD_file_image_op_t, void *) * } */ - public static final AddressLayout image_malloc$layout() { - return image_malloc$LAYOUT; - } + public static final AddressLayout image_malloc$layout() { return image_malloc$LAYOUT; } private static final long image_malloc$OFFSET = 0; @@ -124,9 +120,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,long _x0, int _x1, Memo * void *(*image_malloc)(size_t, H5FD_file_image_op_t, void *) * } */ - public static final long image_malloc$offset() { - return image_malloc$OFFSET; - } + public static final long image_malloc$offset() { return image_malloc$OFFSET; } /** * Getter for field: @@ -134,7 +128,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,long _x0, int _x1, Memo * void *(*image_malloc)(size_t, H5FD_file_image_op_t, void *) * } */ - public static MemorySegment image_malloc(MemorySegment struct) { + public static MemorySegment image_malloc(MemorySegment struct) + { return struct.get(image_malloc$LAYOUT, image_malloc$OFFSET); } @@ -144,7 +139,8 @@ public static MemorySegment image_malloc(MemorySegment struct) { * void *(*image_malloc)(size_t, H5FD_file_image_op_t, void *) * } */ - public static void image_malloc(MemorySegment struct, MemorySegment fieldValue) { + public static void image_malloc(MemorySegment struct, MemorySegment fieldValue) + { struct.set(image_malloc$LAYOUT, image_malloc$OFFSET, fieldValue); } @@ -155,7 +151,8 @@ public static void image_malloc(MemorySegment struct, MemorySegment fieldValue) */ public static class image_memcpy { - image_memcpy() { + image_memcpy() + { // Should not be called directly } @@ -166,29 +163,24 @@ public interface Function { MemorySegment apply(MemorySegment _x0, MemorySegment _x1, long _x2, int _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(image_memcpy.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(image_memcpy.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(image_memcpy.Function fi, Arena arena) { + public static MemorySegment allocate(image_memcpy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -197,16 +189,20 @@ public static MemorySegment allocate(image_memcpy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, int _x3, MemorySegment _x4) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + long _x2, int _x3, MemorySegment _x4) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout image_memcpy$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("image_memcpy")); + private static final AddressLayout image_memcpy$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("image_memcpy")); /** * Layout for field: @@ -214,9 +210,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*image_memcpy)(void *, const void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static final AddressLayout image_memcpy$layout() { - return image_memcpy$LAYOUT; - } + public static final AddressLayout image_memcpy$layout() { return image_memcpy$LAYOUT; } private static final long image_memcpy$OFFSET = 8; @@ -226,9 +220,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*image_memcpy)(void *, const void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static final long image_memcpy$offset() { - return image_memcpy$OFFSET; - } + public static final long image_memcpy$offset() { return image_memcpy$OFFSET; } /** * Getter for field: @@ -236,7 +228,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*image_memcpy)(void *, const void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static MemorySegment image_memcpy(MemorySegment struct) { + public static MemorySegment image_memcpy(MemorySegment struct) + { return struct.get(image_memcpy$LAYOUT, image_memcpy$OFFSET); } @@ -246,7 +239,8 @@ public static MemorySegment image_memcpy(MemorySegment struct) { * void *(*image_memcpy)(void *, const void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static void image_memcpy(MemorySegment struct, MemorySegment fieldValue) { + public static void image_memcpy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(image_memcpy$LAYOUT, image_memcpy$OFFSET, fieldValue); } @@ -257,7 +251,8 @@ public static void image_memcpy(MemorySegment struct, MemorySegment fieldValue) */ public static class image_realloc { - image_realloc() { + image_realloc() + { // Should not be called directly } @@ -269,27 +264,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(image_realloc.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(image_realloc.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(image_realloc.Function fi, Arena arena) { + public static MemorySegment allocate(image_realloc.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -298,16 +288,20 @@ public static MemorySegment allocate(image_realloc.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int _x2, MemorySegment _x3) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, int _x2, + MemorySegment _x3) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout image_realloc$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("image_realloc")); + private static final AddressLayout image_realloc$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("image_realloc")); /** * Layout for field: @@ -315,9 +309,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, long * void *(*image_realloc)(void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static final AddressLayout image_realloc$layout() { - return image_realloc$LAYOUT; - } + public static final AddressLayout image_realloc$layout() { return image_realloc$LAYOUT; } private static final long image_realloc$OFFSET = 16; @@ -327,9 +319,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, long * void *(*image_realloc)(void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static final long image_realloc$offset() { - return image_realloc$OFFSET; - } + public static final long image_realloc$offset() { return image_realloc$OFFSET; } /** * Getter for field: @@ -337,7 +327,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, long * void *(*image_realloc)(void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static MemorySegment image_realloc(MemorySegment struct) { + public static MemorySegment image_realloc(MemorySegment struct) + { return struct.get(image_realloc$LAYOUT, image_realloc$OFFSET); } @@ -347,7 +338,8 @@ public static MemorySegment image_realloc(MemorySegment struct) { * void *(*image_realloc)(void *, size_t, H5FD_file_image_op_t, void *) * } */ - public static void image_realloc(MemorySegment struct, MemorySegment fieldValue) { + public static void image_realloc(MemorySegment struct, MemorySegment fieldValue) + { struct.set(image_realloc$LAYOUT, image_realloc$OFFSET, fieldValue); } @@ -358,7 +350,8 @@ public static void image_realloc(MemorySegment struct, MemorySegment fieldValue) */ public static class image_free { - image_free() { + image_free() + { // Should not be called directly } @@ -369,27 +362,23 @@ public interface Function { int apply(MemorySegment _x0, int _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(image_free.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(image_free.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(image_free.Function fi, Arena arena) { + public static MemorySegment allocate(image_free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -398,16 +387,19 @@ public static MemorySegment allocate(image_free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout image_free$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("image_free")); + private static final AddressLayout image_free$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("image_free")); /** * Layout for field: @@ -415,9 +407,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*image_free)(void *, H5FD_file_image_op_t, void *) * } */ - public static final AddressLayout image_free$layout() { - return image_free$LAYOUT; - } + public static final AddressLayout image_free$layout() { return image_free$LAYOUT; } private static final long image_free$OFFSET = 24; @@ -427,9 +417,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*image_free)(void *, H5FD_file_image_op_t, void *) * } */ - public static final long image_free$offset() { - return image_free$OFFSET; - } + public static final long image_free$offset() { return image_free$OFFSET; } /** * Getter for field: @@ -437,7 +425,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*image_free)(void *, H5FD_file_image_op_t, void *) * } */ - public static MemorySegment image_free(MemorySegment struct) { + public static MemorySegment image_free(MemorySegment struct) + { return struct.get(image_free$LAYOUT, image_free$OFFSET); } @@ -447,7 +436,8 @@ public static MemorySegment image_free(MemorySegment struct) { * herr_t (*image_free)(void *, H5FD_file_image_op_t, void *) * } */ - public static void image_free(MemorySegment struct, MemorySegment fieldValue) { + public static void image_free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(image_free$LAYOUT, image_free$OFFSET, fieldValue); } @@ -458,7 +448,8 @@ public static void image_free(MemorySegment struct, MemorySegment fieldValue) { */ public static class udata_copy { - udata_copy() { + udata_copy() + { // Should not be called directly } @@ -469,25 +460,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(udata_copy.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(udata_copy.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(udata_copy.Function fi, Arena arena) { + public static MemorySegment allocate(udata_copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -496,16 +485,19 @@ public static MemorySegment allocate(udata_copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout udata_copy$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("udata_copy")); + private static final AddressLayout udata_copy$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("udata_copy")); /** * Layout for field: @@ -513,9 +505,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*udata_copy)(void *) * } */ - public static final AddressLayout udata_copy$layout() { - return udata_copy$LAYOUT; - } + public static final AddressLayout udata_copy$layout() { return udata_copy$LAYOUT; } private static final long udata_copy$OFFSET = 32; @@ -525,9 +515,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*udata_copy)(void *) * } */ - public static final long udata_copy$offset() { - return udata_copy$OFFSET; - } + public static final long udata_copy$offset() { return udata_copy$OFFSET; } /** * Getter for field: @@ -535,7 +523,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*udata_copy)(void *) * } */ - public static MemorySegment udata_copy(MemorySegment struct) { + public static MemorySegment udata_copy(MemorySegment struct) + { return struct.get(udata_copy$LAYOUT, udata_copy$OFFSET); } @@ -545,7 +534,8 @@ public static MemorySegment udata_copy(MemorySegment struct) { * void *(*udata_copy)(void *) * } */ - public static void udata_copy(MemorySegment struct, MemorySegment fieldValue) { + public static void udata_copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(udata_copy$LAYOUT, udata_copy$OFFSET, fieldValue); } @@ -556,7 +546,8 @@ public static void udata_copy(MemorySegment struct, MemorySegment fieldValue) { */ public static class udata_free { - udata_free() { + udata_free() + { // Should not be called directly } @@ -567,25 +558,22 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(udata_free.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(udata_free.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(udata_free.Function fi, Arena arena) { + public static MemorySegment allocate(udata_free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -594,16 +582,19 @@ public static MemorySegment allocate(udata_free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout udata_free$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("udata_free")); + private static final AddressLayout udata_free$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("udata_free")); /** * Layout for field: @@ -611,9 +602,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*udata_free)(void *) * } */ - public static final AddressLayout udata_free$layout() { - return udata_free$LAYOUT; - } + public static final AddressLayout udata_free$layout() { return udata_free$LAYOUT; } private static final long udata_free$OFFSET = 40; @@ -623,9 +612,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*udata_free)(void *) * } */ - public static final long udata_free$offset() { - return udata_free$OFFSET; - } + public static final long udata_free$offset() { return udata_free$OFFSET; } /** * Getter for field: @@ -633,7 +620,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*udata_free)(void *) * } */ - public static MemorySegment udata_free(MemorySegment struct) { + public static MemorySegment udata_free(MemorySegment struct) + { return struct.get(udata_free$LAYOUT, udata_free$OFFSET); } @@ -643,7 +631,8 @@ public static MemorySegment udata_free(MemorySegment struct) { * herr_t (*udata_free)(void *) * } */ - public static void udata_free(MemorySegment struct, MemorySegment fieldValue) { + public static void udata_free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(udata_free$LAYOUT, udata_free$OFFSET, fieldValue); } @@ -655,9 +644,7 @@ public static void udata_free(MemorySegment struct, MemorySegment fieldValue) { * void *udata * } */ - public static final AddressLayout udata$layout() { - return udata$LAYOUT; - } + public static final AddressLayout udata$layout() { return udata$LAYOUT; } private static final long udata$OFFSET = 48; @@ -667,9 +654,7 @@ public static void udata_free(MemorySegment struct, MemorySegment fieldValue) { * void *udata * } */ - public static final long udata$offset() { - return udata$OFFSET; - } + public static final long udata$offset() { return udata$OFFSET; } /** * Getter for field: @@ -677,9 +662,7 @@ public static void udata_free(MemorySegment struct, MemorySegment fieldValue) { * void *udata * } */ - public static MemorySegment udata(MemorySegment struct) { - return struct.get(udata$LAYOUT, udata$OFFSET); - } + public static MemorySegment udata(MemorySegment struct) { return struct.get(udata$LAYOUT, udata$OFFSET); } /** * Setter for field: @@ -687,7 +670,8 @@ public static MemorySegment udata(MemorySegment struct) { * void *udata * } */ - public static void udata(MemorySegment struct, MemorySegment fieldValue) { + public static void udata(MemorySegment struct, MemorySegment fieldValue) + { struct.set(udata$LAYOUT, udata$OFFSET, fieldValue); } @@ -695,7 +679,8 @@ public static void udata(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -707,15 +692,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -723,7 +707,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -731,8 +716,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_free_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_free_t.java index bd0b959b7b6..2d16f20f4f3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_free_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_free_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_free_t { @@ -23,22 +23,21 @@ */ public class H5FD_free_t { - H5FD_free_t() { + H5FD_free_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("addr"), - hdf5_h.C_LONG.withName("size"), - hdf5_h.C_POINTER.withName("next") - ).withName("H5FD_free_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("addr"), hdf5_h.C_LONG.withName("size"), + hdf5_h.C_POINTER.withName("next")) + .withName("H5FD_free_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong addr$LAYOUT = (OfLong)$LAYOUT.select(groupElement("addr")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static final OfLong addr$layout() { - return addr$LAYOUT; - } + public static final OfLong addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static long addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static long addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -80,7 +73,8 @@ public static long addr(MemorySegment struct) { * haddr_t addr * } */ - public static void addr(MemorySegment struct, long fieldValue) { + public static void addr(MemorySegment struct, long fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -92,9 +86,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static final OfLong size$layout() { - return size$LAYOUT; - } + public static final OfLong size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 8; @@ -104,9 +96,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -114,9 +104,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static long size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static long size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -124,7 +112,8 @@ public static long size(MemorySegment struct) { * hsize_t size * } */ - public static void size(MemorySegment struct, long fieldValue) { + public static void size(MemorySegment struct, long fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -136,9 +125,7 @@ public static void size(MemorySegment struct, long fieldValue) { * struct H5FD_free_t *next * } */ - public static final AddressLayout next$layout() { - return next$LAYOUT; - } + public static final AddressLayout next$layout() { return next$LAYOUT; } private static final long next$OFFSET = 16; @@ -148,9 +135,7 @@ public static void size(MemorySegment struct, long fieldValue) { * struct H5FD_free_t *next * } */ - public static final long next$offset() { - return next$OFFSET; - } + public static final long next$offset() { return next$OFFSET; } /** * Getter for field: @@ -158,9 +143,7 @@ public static void size(MemorySegment struct, long fieldValue) { * struct H5FD_free_t *next * } */ - public static MemorySegment next(MemorySegment struct) { - return struct.get(next$LAYOUT, next$OFFSET); - } + public static MemorySegment next(MemorySegment struct) { return struct.get(next$LAYOUT, next$OFFSET); } /** * Setter for field: @@ -168,7 +151,8 @@ public static MemorySegment next(MemorySegment struct) { * struct H5FD_free_t *next * } */ - public static void next(MemorySegment struct, MemorySegment fieldValue) { + public static void next(MemorySegment struct, MemorySegment fieldValue) + { struct.set(next$LAYOUT, next$OFFSET, fieldValue); } @@ -176,7 +160,8 @@ public static void next(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +173,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +188,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +197,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_init_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_init_t.java index 18878ed6a3a..b2ab948dffc 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_init_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_init_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef hid_t (*H5FD_init_t)(void) @@ -19,7 +19,8 @@ */ public class H5FD_init_t { - H5FD_init_t() { + H5FD_init_t() + { // Should not be called directly } @@ -30,15 +31,12 @@ public interface Function { long apply(); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5FD_init_t.Function.class, "apply", $DESC); @@ -46,7 +44,8 @@ public static FunctionDescriptor descriptor() { * 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(H5FD_init_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5FD_init_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -55,12 +54,13 @@ public static MemorySegment allocate(H5FD_init_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr) { + public static long invoke(MemorySegment funcPtr) + { try { - return (long) DOWN$MH.invokeExact(funcPtr); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_onion_fapl_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_onion_fapl_info_t.java index 3f707483e09..048c2c097b1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_onion_fapl_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_onion_fapl_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_onion_fapl_info_t { @@ -28,29 +28,26 @@ */ public class H5FD_onion_fapl_info_t { - H5FD_onion_fapl_info_t() { + H5FD_onion_fapl_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_CHAR.withName("version"), - MemoryLayout.paddingLayout(7), - hdf5_h.C_LONG.withName("backing_fapl_id"), - hdf5_h.C_INT.withName("page_size"), - hdf5_h.C_INT.withName("store_target"), - hdf5_h.C_LONG.withName("revision_num"), - hdf5_h.C_CHAR.withName("force_write_open"), - hdf5_h.C_CHAR.withName("creation_flags"), - MemoryLayout.sequenceLayout(256, hdf5_h.C_CHAR).withName("comment"), - MemoryLayout.paddingLayout(6) - ).withName("H5FD_onion_fapl_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_CHAR.withName("version"), MemoryLayout.paddingLayout(7), + hdf5_h.C_LONG.withName("backing_fapl_id"), hdf5_h.C_INT.withName("page_size"), + hdf5_h.C_INT.withName("store_target"), hdf5_h.C_LONG.withName("revision_num"), + hdf5_h.C_CHAR.withName("force_write_open"), + hdf5_h.C_CHAR.withName("creation_flags"), + MemoryLayout.sequenceLayout(256, hdf5_h.C_CHAR).withName("comment"), + MemoryLayout.paddingLayout(6)) + .withName("H5FD_onion_fapl_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfByte version$LAYOUT = (OfByte)$LAYOUT.select(groupElement("version")); @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * uint8_t version * } */ - public static final OfByte version$layout() { - return version$LAYOUT; - } + public static final OfByte version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -72,9 +67,7 @@ public static final GroupLayout layout() { * uint8_t version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -82,9 +75,7 @@ public static final GroupLayout layout() { * uint8_t version * } */ - public static byte version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static byte version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -92,11 +83,13 @@ public static byte version(MemorySegment struct) { * uint8_t version * } */ - public static void version(MemorySegment struct, byte fieldValue) { + public static void version(MemorySegment struct, byte fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } - private static final OfLong backing_fapl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("backing_fapl_id")); + private static final OfLong backing_fapl_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("backing_fapl_id")); /** * Layout for field: @@ -104,9 +97,7 @@ public static void version(MemorySegment struct, byte fieldValue) { * hid_t backing_fapl_id * } */ - public static final OfLong backing_fapl_id$layout() { - return backing_fapl_id$LAYOUT; - } + public static final OfLong backing_fapl_id$layout() { return backing_fapl_id$LAYOUT; } private static final long backing_fapl_id$OFFSET = 8; @@ -116,9 +107,7 @@ public static void version(MemorySegment struct, byte fieldValue) { * hid_t backing_fapl_id * } */ - public static final long backing_fapl_id$offset() { - return backing_fapl_id$OFFSET; - } + public static final long backing_fapl_id$offset() { return backing_fapl_id$OFFSET; } /** * Getter for field: @@ -126,7 +115,8 @@ public static void version(MemorySegment struct, byte fieldValue) { * hid_t backing_fapl_id * } */ - public static long backing_fapl_id(MemorySegment struct) { + public static long backing_fapl_id(MemorySegment struct) + { return struct.get(backing_fapl_id$LAYOUT, backing_fapl_id$OFFSET); } @@ -136,7 +126,8 @@ public static long backing_fapl_id(MemorySegment struct) { * hid_t backing_fapl_id * } */ - public static void backing_fapl_id(MemorySegment struct, long fieldValue) { + public static void backing_fapl_id(MemorySegment struct, long fieldValue) + { struct.set(backing_fapl_id$LAYOUT, backing_fapl_id$OFFSET, fieldValue); } @@ -148,9 +139,7 @@ public static void backing_fapl_id(MemorySegment struct, long fieldValue) { * uint32_t page_size * } */ - public static final OfInt page_size$layout() { - return page_size$LAYOUT; - } + public static final OfInt page_size$layout() { return page_size$LAYOUT; } private static final long page_size$OFFSET = 16; @@ -160,9 +149,7 @@ public static void backing_fapl_id(MemorySegment struct, long fieldValue) { * uint32_t page_size * } */ - public static final long page_size$offset() { - return page_size$OFFSET; - } + public static final long page_size$offset() { return page_size$OFFSET; } /** * Getter for field: @@ -170,7 +157,8 @@ public static void backing_fapl_id(MemorySegment struct, long fieldValue) { * uint32_t page_size * } */ - public static int page_size(MemorySegment struct) { + public static int page_size(MemorySegment struct) + { return struct.get(page_size$LAYOUT, page_size$OFFSET); } @@ -180,7 +168,8 @@ public static int page_size(MemorySegment struct) { * uint32_t page_size * } */ - public static void page_size(MemorySegment struct, int fieldValue) { + public static void page_size(MemorySegment struct, int fieldValue) + { struct.set(page_size$LAYOUT, page_size$OFFSET, fieldValue); } @@ -192,9 +181,7 @@ public static void page_size(MemorySegment struct, int fieldValue) { * H5FD_onion_target_file_constant_t store_target * } */ - public static final OfInt store_target$layout() { - return store_target$LAYOUT; - } + public static final OfInt store_target$layout() { return store_target$LAYOUT; } private static final long store_target$OFFSET = 20; @@ -204,9 +191,7 @@ public static void page_size(MemorySegment struct, int fieldValue) { * H5FD_onion_target_file_constant_t store_target * } */ - public static final long store_target$offset() { - return store_target$OFFSET; - } + public static final long store_target$offset() { return store_target$OFFSET; } /** * Getter for field: @@ -214,7 +199,8 @@ public static void page_size(MemorySegment struct, int fieldValue) { * H5FD_onion_target_file_constant_t store_target * } */ - public static int store_target(MemorySegment struct) { + public static int store_target(MemorySegment struct) + { return struct.get(store_target$LAYOUT, store_target$OFFSET); } @@ -224,7 +210,8 @@ public static int store_target(MemorySegment struct) { * H5FD_onion_target_file_constant_t store_target * } */ - public static void store_target(MemorySegment struct, int fieldValue) { + public static void store_target(MemorySegment struct, int fieldValue) + { struct.set(store_target$LAYOUT, store_target$OFFSET, fieldValue); } @@ -236,9 +223,7 @@ public static void store_target(MemorySegment struct, int fieldValue) { * uint64_t revision_num * } */ - public static final OfLong revision_num$layout() { - return revision_num$LAYOUT; - } + public static final OfLong revision_num$layout() { return revision_num$LAYOUT; } private static final long revision_num$OFFSET = 24; @@ -248,9 +233,7 @@ public static void store_target(MemorySegment struct, int fieldValue) { * uint64_t revision_num * } */ - public static final long revision_num$offset() { - return revision_num$OFFSET; - } + public static final long revision_num$offset() { return revision_num$OFFSET; } /** * Getter for field: @@ -258,7 +241,8 @@ public static void store_target(MemorySegment struct, int fieldValue) { * uint64_t revision_num * } */ - public static long revision_num(MemorySegment struct) { + public static long revision_num(MemorySegment struct) + { return struct.get(revision_num$LAYOUT, revision_num$OFFSET); } @@ -268,11 +252,13 @@ public static long revision_num(MemorySegment struct) { * uint64_t revision_num * } */ - public static void revision_num(MemorySegment struct, long fieldValue) { + public static void revision_num(MemorySegment struct, long fieldValue) + { struct.set(revision_num$LAYOUT, revision_num$OFFSET, fieldValue); } - private static final OfByte force_write_open$LAYOUT = (OfByte)$LAYOUT.select(groupElement("force_write_open")); + private static final OfByte force_write_open$LAYOUT = + (OfByte)$LAYOUT.select(groupElement("force_write_open")); /** * Layout for field: @@ -280,9 +266,7 @@ public static void revision_num(MemorySegment struct, long fieldValue) { * uint8_t force_write_open * } */ - public static final OfByte force_write_open$layout() { - return force_write_open$LAYOUT; - } + public static final OfByte force_write_open$layout() { return force_write_open$LAYOUT; } private static final long force_write_open$OFFSET = 32; @@ -292,9 +276,7 @@ public static void revision_num(MemorySegment struct, long fieldValue) { * uint8_t force_write_open * } */ - public static final long force_write_open$offset() { - return force_write_open$OFFSET; - } + public static final long force_write_open$offset() { return force_write_open$OFFSET; } /** * Getter for field: @@ -302,7 +284,8 @@ public static void revision_num(MemorySegment struct, long fieldValue) { * uint8_t force_write_open * } */ - public static byte force_write_open(MemorySegment struct) { + public static byte force_write_open(MemorySegment struct) + { return struct.get(force_write_open$LAYOUT, force_write_open$OFFSET); } @@ -312,11 +295,13 @@ public static byte force_write_open(MemorySegment struct) { * uint8_t force_write_open * } */ - public static void force_write_open(MemorySegment struct, byte fieldValue) { + public static void force_write_open(MemorySegment struct, byte fieldValue) + { struct.set(force_write_open$LAYOUT, force_write_open$OFFSET, fieldValue); } - private static final OfByte creation_flags$LAYOUT = (OfByte)$LAYOUT.select(groupElement("creation_flags")); + private static final OfByte creation_flags$LAYOUT = + (OfByte)$LAYOUT.select(groupElement("creation_flags")); /** * Layout for field: @@ -324,9 +309,7 @@ public static void force_write_open(MemorySegment struct, byte fieldValue) { * uint8_t creation_flags * } */ - public static final OfByte creation_flags$layout() { - return creation_flags$LAYOUT; - } + public static final OfByte creation_flags$layout() { return creation_flags$LAYOUT; } private static final long creation_flags$OFFSET = 33; @@ -336,9 +319,7 @@ public static void force_write_open(MemorySegment struct, byte fieldValue) { * uint8_t creation_flags * } */ - public static final long creation_flags$offset() { - return creation_flags$OFFSET; - } + public static final long creation_flags$offset() { return creation_flags$OFFSET; } /** * Getter for field: @@ -346,7 +327,8 @@ public static void force_write_open(MemorySegment struct, byte fieldValue) { * uint8_t creation_flags * } */ - public static byte creation_flags(MemorySegment struct) { + public static byte creation_flags(MemorySegment struct) + { return struct.get(creation_flags$LAYOUT, creation_flags$OFFSET); } @@ -356,11 +338,13 @@ public static byte creation_flags(MemorySegment struct) { * uint8_t creation_flags * } */ - public static void creation_flags(MemorySegment struct, byte fieldValue) { + public static void creation_flags(MemorySegment struct, byte fieldValue) + { struct.set(creation_flags$LAYOUT, creation_flags$OFFSET, fieldValue); } - private static final SequenceLayout comment$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("comment")); + private static final SequenceLayout comment$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("comment")); /** * Layout for field: @@ -368,9 +352,7 @@ public static void creation_flags(MemorySegment struct, byte fieldValue) { * char comment[256] * } */ - public static final SequenceLayout comment$layout() { - return comment$LAYOUT; - } + public static final SequenceLayout comment$layout() { return comment$LAYOUT; } private static final long comment$OFFSET = 34; @@ -380,9 +362,7 @@ public static void creation_flags(MemorySegment struct, byte fieldValue) { * char comment[256] * } */ - public static final long comment$offset() { - return comment$OFFSET; - } + public static final long comment$offset() { return comment$OFFSET; } /** * Getter for field: @@ -390,7 +370,8 @@ public static void creation_flags(MemorySegment struct, byte fieldValue) { * char comment[256] * } */ - public static MemorySegment comment(MemorySegment struct) { + public static MemorySegment comment(MemorySegment struct) + { return struct.asSlice(comment$OFFSET, comment$LAYOUT.byteSize()); } @@ -400,11 +381,12 @@ public static MemorySegment comment(MemorySegment struct) { * char comment[256] * } */ - public static void comment(MemorySegment struct, MemorySegment fieldValue) { + public static void comment(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, comment$OFFSET, comment$LAYOUT.byteSize()); } - private static long[] comment$DIMS = { 256 }; + private static long[] comment$DIMS = {256}; /** * Dimensions for array field: @@ -412,9 +394,7 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * char comment[256] * } */ - public static long[] comment$dimensions() { - return comment$DIMS; - } + public static long[] comment$dimensions() { return comment$DIMS; } private static final VarHandle comment$ELEM_HANDLE = comment$LAYOUT.varHandle(sequenceElement()); /** @@ -423,7 +403,8 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * char comment[256] * } */ - public static byte comment(MemorySegment struct, long index0) { + public static byte comment(MemorySegment struct, long index0) + { return (byte)comment$ELEM_HANDLE.get(struct, 0L, index0); } @@ -433,7 +414,8 @@ public static byte comment(MemorySegment struct, long index0) { * char comment[256] * } */ - public static void comment(MemorySegment struct, long index0, byte fieldValue) { + public static void comment(MemorySegment struct, long index0, byte fieldValue) + { comment$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -441,7 +423,8 @@ public static void comment(MemorySegment struct, long index0, byte 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -453,15 +436,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -469,7 +451,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -477,8 +460,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_splitter_vfd_config_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_splitter_vfd_config_t.java index 594cbc95458..aa631aec238 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_splitter_vfd_config_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_splitter_vfd_config_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_splitter_vfd_config_t { @@ -27,27 +27,24 @@ */ public class H5FD_splitter_vfd_config_t { - H5FD_splitter_vfd_config_t() { + H5FD_splitter_vfd_config_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("magic"), - hdf5_h.C_INT.withName("version"), - hdf5_h.C_LONG.withName("rw_fapl_id"), - hdf5_h.C_LONG.withName("wo_fapl_id"), - MemoryLayout.sequenceLayout(4097, hdf5_h.C_CHAR).withName("wo_path"), - MemoryLayout.sequenceLayout(4097, hdf5_h.C_CHAR).withName("log_file_path"), - hdf5_h.C_BOOL.withName("ignore_wo_errs"), - MemoryLayout.paddingLayout(5) - ).withName("H5FD_splitter_vfd_config_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("magic"), hdf5_h.C_INT.withName("version"), + hdf5_h.C_LONG.withName("rw_fapl_id"), hdf5_h.C_LONG.withName("wo_fapl_id"), + MemoryLayout.sequenceLayout(4097, hdf5_h.C_CHAR).withName("wo_path"), + MemoryLayout.sequenceLayout(4097, hdf5_h.C_CHAR).withName("log_file_path"), + hdf5_h.C_BOOL.withName("ignore_wo_errs"), MemoryLayout.paddingLayout(5)) + .withName("H5FD_splitter_vfd_config_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt magic$LAYOUT = (OfInt)$LAYOUT.select(groupElement("magic")); @@ -57,9 +54,7 @@ public static final GroupLayout layout() { * int32_t magic * } */ - public static final OfInt magic$layout() { - return magic$LAYOUT; - } + public static final OfInt magic$layout() { return magic$LAYOUT; } private static final long magic$OFFSET = 0; @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * int32_t magic * } */ - public static final long magic$offset() { - return magic$OFFSET; - } + public static final long magic$offset() { return magic$OFFSET; } /** * Getter for field: @@ -79,9 +72,7 @@ public static final GroupLayout layout() { * int32_t magic * } */ - public static int magic(MemorySegment struct) { - return struct.get(magic$LAYOUT, magic$OFFSET); - } + public static int magic(MemorySegment struct) { return struct.get(magic$LAYOUT, magic$OFFSET); } /** * Setter for field: @@ -89,7 +80,8 @@ public static int magic(MemorySegment struct) { * int32_t magic * } */ - public static void magic(MemorySegment struct, int fieldValue) { + public static void magic(MemorySegment struct, int fieldValue) + { struct.set(magic$LAYOUT, magic$OFFSET, fieldValue); } @@ -101,9 +93,7 @@ public static void magic(MemorySegment struct, int fieldValue) { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 4; @@ -113,9 +103,7 @@ public static void magic(MemorySegment struct, int fieldValue) { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -123,9 +111,7 @@ public static void magic(MemorySegment struct, int fieldValue) { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -133,7 +119,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -145,9 +132,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hid_t rw_fapl_id * } */ - public static final OfLong rw_fapl_id$layout() { - return rw_fapl_id$LAYOUT; - } + public static final OfLong rw_fapl_id$layout() { return rw_fapl_id$LAYOUT; } private static final long rw_fapl_id$OFFSET = 8; @@ -157,9 +142,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hid_t rw_fapl_id * } */ - public static final long rw_fapl_id$offset() { - return rw_fapl_id$OFFSET; - } + public static final long rw_fapl_id$offset() { return rw_fapl_id$OFFSET; } /** * Getter for field: @@ -167,7 +150,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hid_t rw_fapl_id * } */ - public static long rw_fapl_id(MemorySegment struct) { + public static long rw_fapl_id(MemorySegment struct) + { return struct.get(rw_fapl_id$LAYOUT, rw_fapl_id$OFFSET); } @@ -177,7 +161,8 @@ public static long rw_fapl_id(MemorySegment struct) { * hid_t rw_fapl_id * } */ - public static void rw_fapl_id(MemorySegment struct, long fieldValue) { + public static void rw_fapl_id(MemorySegment struct, long fieldValue) + { struct.set(rw_fapl_id$LAYOUT, rw_fapl_id$OFFSET, fieldValue); } @@ -189,9 +174,7 @@ public static void rw_fapl_id(MemorySegment struct, long fieldValue) { * hid_t wo_fapl_id * } */ - public static final OfLong wo_fapl_id$layout() { - return wo_fapl_id$LAYOUT; - } + public static final OfLong wo_fapl_id$layout() { return wo_fapl_id$LAYOUT; } private static final long wo_fapl_id$OFFSET = 16; @@ -201,9 +184,7 @@ public static void rw_fapl_id(MemorySegment struct, long fieldValue) { * hid_t wo_fapl_id * } */ - public static final long wo_fapl_id$offset() { - return wo_fapl_id$OFFSET; - } + public static final long wo_fapl_id$offset() { return wo_fapl_id$OFFSET; } /** * Getter for field: @@ -211,7 +192,8 @@ public static void rw_fapl_id(MemorySegment struct, long fieldValue) { * hid_t wo_fapl_id * } */ - public static long wo_fapl_id(MemorySegment struct) { + public static long wo_fapl_id(MemorySegment struct) + { return struct.get(wo_fapl_id$LAYOUT, wo_fapl_id$OFFSET); } @@ -221,11 +203,13 @@ public static long wo_fapl_id(MemorySegment struct) { * hid_t wo_fapl_id * } */ - public static void wo_fapl_id(MemorySegment struct, long fieldValue) { + public static void wo_fapl_id(MemorySegment struct, long fieldValue) + { struct.set(wo_fapl_id$LAYOUT, wo_fapl_id$OFFSET, fieldValue); } - private static final SequenceLayout wo_path$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("wo_path")); + private static final SequenceLayout wo_path$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("wo_path")); /** * Layout for field: @@ -233,9 +217,7 @@ public static void wo_fapl_id(MemorySegment struct, long fieldValue) { * char wo_path[4097] * } */ - public static final SequenceLayout wo_path$layout() { - return wo_path$LAYOUT; - } + public static final SequenceLayout wo_path$layout() { return wo_path$LAYOUT; } private static final long wo_path$OFFSET = 24; @@ -245,9 +227,7 @@ public static void wo_fapl_id(MemorySegment struct, long fieldValue) { * char wo_path[4097] * } */ - public static final long wo_path$offset() { - return wo_path$OFFSET; - } + public static final long wo_path$offset() { return wo_path$OFFSET; } /** * Getter for field: @@ -255,7 +235,8 @@ public static void wo_fapl_id(MemorySegment struct, long fieldValue) { * char wo_path[4097] * } */ - public static MemorySegment wo_path(MemorySegment struct) { + public static MemorySegment wo_path(MemorySegment struct) + { return struct.asSlice(wo_path$OFFSET, wo_path$LAYOUT.byteSize()); } @@ -265,11 +246,12 @@ public static MemorySegment wo_path(MemorySegment struct) { * char wo_path[4097] * } */ - public static void wo_path(MemorySegment struct, MemorySegment fieldValue) { + public static void wo_path(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, wo_path$OFFSET, wo_path$LAYOUT.byteSize()); } - private static long[] wo_path$DIMS = { 4097 }; + private static long[] wo_path$DIMS = {4097}; /** * Dimensions for array field: @@ -277,9 +259,7 @@ public static void wo_path(MemorySegment struct, MemorySegment fieldValue) { * char wo_path[4097] * } */ - public static long[] wo_path$dimensions() { - return wo_path$DIMS; - } + public static long[] wo_path$dimensions() { return wo_path$DIMS; } private static final VarHandle wo_path$ELEM_HANDLE = wo_path$LAYOUT.varHandle(sequenceElement()); /** @@ -288,7 +268,8 @@ public static void wo_path(MemorySegment struct, MemorySegment fieldValue) { * char wo_path[4097] * } */ - public static byte wo_path(MemorySegment struct, long index0) { + public static byte wo_path(MemorySegment struct, long index0) + { return (byte)wo_path$ELEM_HANDLE.get(struct, 0L, index0); } @@ -298,11 +279,13 @@ public static byte wo_path(MemorySegment struct, long index0) { * char wo_path[4097] * } */ - public static void wo_path(MemorySegment struct, long index0, byte fieldValue) { + public static void wo_path(MemorySegment struct, long index0, byte fieldValue) + { wo_path$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } - private static final SequenceLayout log_file_path$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("log_file_path")); + private static final SequenceLayout log_file_path$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("log_file_path")); /** * Layout for field: @@ -310,9 +293,7 @@ public static void wo_path(MemorySegment struct, long index0, byte fieldValue) { * char log_file_path[4097] * } */ - public static final SequenceLayout log_file_path$layout() { - return log_file_path$LAYOUT; - } + public static final SequenceLayout log_file_path$layout() { return log_file_path$LAYOUT; } private static final long log_file_path$OFFSET = 4121; @@ -322,9 +303,7 @@ public static void wo_path(MemorySegment struct, long index0, byte fieldValue) { * char log_file_path[4097] * } */ - public static final long log_file_path$offset() { - return log_file_path$OFFSET; - } + public static final long log_file_path$offset() { return log_file_path$OFFSET; } /** * Getter for field: @@ -332,7 +311,8 @@ public static void wo_path(MemorySegment struct, long index0, byte fieldValue) { * char log_file_path[4097] * } */ - public static MemorySegment log_file_path(MemorySegment struct) { + public static MemorySegment log_file_path(MemorySegment struct) + { return struct.asSlice(log_file_path$OFFSET, log_file_path$LAYOUT.byteSize()); } @@ -342,11 +322,12 @@ public static MemorySegment log_file_path(MemorySegment struct) { * char log_file_path[4097] * } */ - public static void log_file_path(MemorySegment struct, MemorySegment fieldValue) { + public static void log_file_path(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, log_file_path$OFFSET, log_file_path$LAYOUT.byteSize()); } - private static long[] log_file_path$DIMS = { 4097 }; + private static long[] log_file_path$DIMS = {4097}; /** * Dimensions for array field: @@ -354,10 +335,9 @@ public static void log_file_path(MemorySegment struct, MemorySegment fieldValue) * char log_file_path[4097] * } */ - public static long[] log_file_path$dimensions() { - return log_file_path$DIMS; - } - private static final VarHandle log_file_path$ELEM_HANDLE = log_file_path$LAYOUT.varHandle(sequenceElement()); + public static long[] log_file_path$dimensions() { return log_file_path$DIMS; } + private static final VarHandle log_file_path$ELEM_HANDLE = + log_file_path$LAYOUT.varHandle(sequenceElement()); /** * Indexed getter for field: @@ -365,7 +345,8 @@ public static void log_file_path(MemorySegment struct, MemorySegment fieldValue) * char log_file_path[4097] * } */ - public static byte log_file_path(MemorySegment struct, long index0) { + public static byte log_file_path(MemorySegment struct, long index0) + { return (byte)log_file_path$ELEM_HANDLE.get(struct, 0L, index0); } @@ -375,11 +356,13 @@ public static byte log_file_path(MemorySegment struct, long index0) { * char log_file_path[4097] * } */ - public static void log_file_path(MemorySegment struct, long index0, byte fieldValue) { + public static void log_file_path(MemorySegment struct, long index0, byte fieldValue) + { log_file_path$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } - private static final OfBoolean ignore_wo_errs$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("ignore_wo_errs")); + private static final OfBoolean ignore_wo_errs$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("ignore_wo_errs")); /** * Layout for field: @@ -387,9 +370,7 @@ public static void log_file_path(MemorySegment struct, long index0, byte fieldVa * hbool_t ignore_wo_errs * } */ - public static final OfBoolean ignore_wo_errs$layout() { - return ignore_wo_errs$LAYOUT; - } + public static final OfBoolean ignore_wo_errs$layout() { return ignore_wo_errs$LAYOUT; } private static final long ignore_wo_errs$OFFSET = 8218; @@ -399,9 +380,7 @@ public static void log_file_path(MemorySegment struct, long index0, byte fieldVa * hbool_t ignore_wo_errs * } */ - public static final long ignore_wo_errs$offset() { - return ignore_wo_errs$OFFSET; - } + public static final long ignore_wo_errs$offset() { return ignore_wo_errs$OFFSET; } /** * Getter for field: @@ -409,7 +388,8 @@ public static void log_file_path(MemorySegment struct, long index0, byte fieldVa * hbool_t ignore_wo_errs * } */ - public static boolean ignore_wo_errs(MemorySegment struct) { + public static boolean ignore_wo_errs(MemorySegment struct) + { return struct.get(ignore_wo_errs$LAYOUT, ignore_wo_errs$OFFSET); } @@ -419,7 +399,8 @@ public static boolean ignore_wo_errs(MemorySegment struct) { * hbool_t ignore_wo_errs * } */ - public static void ignore_wo_errs(MemorySegment struct, boolean fieldValue) { + public static void ignore_wo_errs(MemorySegment struct, boolean fieldValue) + { struct.set(ignore_wo_errs$LAYOUT, ignore_wo_errs$OFFSET, fieldValue); } @@ -427,7 +408,8 @@ public static void ignore_wo_errs(MemorySegment struct, boolean 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -439,15 +421,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -455,7 +436,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -463,8 +445,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5FD_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5FD_t.java index 81d9475841e..9a4d6248aae 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5FD_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5FD_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5FD_t { @@ -30,31 +30,25 @@ */ public class H5FD_t { - H5FD_t() { + H5FD_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("driver_id"), - hdf5_h.C_POINTER.withName("cls"), - hdf5_h.C_LONG.withName("fileno"), - hdf5_h.C_INT.withName("access_flags"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("feature_flags"), - hdf5_h.C_LONG.withName("maxaddr"), - hdf5_h.C_LONG.withName("base_addr"), - hdf5_h.C_LONG.withName("threshold"), - hdf5_h.C_LONG.withName("alignment"), - hdf5_h.C_BOOL.withName("paged_aggr"), - MemoryLayout.paddingLayout(7) - ).withName("H5FD_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("driver_id"), hdf5_h.C_POINTER.withName("cls"), + hdf5_h.C_LONG.withName("fileno"), hdf5_h.C_INT.withName("access_flags"), + MemoryLayout.paddingLayout(4), hdf5_h.C_LONG.withName("feature_flags"), + hdf5_h.C_LONG.withName("maxaddr"), hdf5_h.C_LONG.withName("base_addr"), + hdf5_h.C_LONG.withName("threshold"), hdf5_h.C_LONG.withName("alignment"), + hdf5_h.C_BOOL.withName("paged_aggr"), MemoryLayout.paddingLayout(7)) + .withName("H5FD_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong driver_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("driver_id")); @@ -64,9 +58,7 @@ public static final GroupLayout layout() { * hid_t driver_id * } */ - public static final OfLong driver_id$layout() { - return driver_id$LAYOUT; - } + public static final OfLong driver_id$layout() { return driver_id$LAYOUT; } private static final long driver_id$OFFSET = 0; @@ -76,9 +68,7 @@ public static final GroupLayout layout() { * hid_t driver_id * } */ - public static final long driver_id$offset() { - return driver_id$OFFSET; - } + public static final long driver_id$offset() { return driver_id$OFFSET; } /** * Getter for field: @@ -86,7 +76,8 @@ public static final GroupLayout layout() { * hid_t driver_id * } */ - public static long driver_id(MemorySegment struct) { + public static long driver_id(MemorySegment struct) + { return struct.get(driver_id$LAYOUT, driver_id$OFFSET); } @@ -96,7 +87,8 @@ public static long driver_id(MemorySegment struct) { * hid_t driver_id * } */ - public static void driver_id(MemorySegment struct, long fieldValue) { + public static void driver_id(MemorySegment struct, long fieldValue) + { struct.set(driver_id$LAYOUT, driver_id$OFFSET, fieldValue); } @@ -108,9 +100,7 @@ public static void driver_id(MemorySegment struct, long fieldValue) { * const H5FD_class_t *cls * } */ - public static final AddressLayout cls$layout() { - return cls$LAYOUT; - } + public static final AddressLayout cls$layout() { return cls$LAYOUT; } private static final long cls$OFFSET = 8; @@ -120,9 +110,7 @@ public static void driver_id(MemorySegment struct, long fieldValue) { * const H5FD_class_t *cls * } */ - public static final long cls$offset() { - return cls$OFFSET; - } + public static final long cls$offset() { return cls$OFFSET; } /** * Getter for field: @@ -130,9 +118,7 @@ public static void driver_id(MemorySegment struct, long fieldValue) { * const H5FD_class_t *cls * } */ - public static MemorySegment cls(MemorySegment struct) { - return struct.get(cls$LAYOUT, cls$OFFSET); - } + public static MemorySegment cls(MemorySegment struct) { return struct.get(cls$LAYOUT, cls$OFFSET); } /** * Setter for field: @@ -140,7 +126,8 @@ public static MemorySegment cls(MemorySegment struct) { * const H5FD_class_t *cls * } */ - public static void cls(MemorySegment struct, MemorySegment fieldValue) { + public static void cls(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cls$LAYOUT, cls$OFFSET, fieldValue); } @@ -152,9 +139,7 @@ public static void cls(MemorySegment struct, MemorySegment fieldValue) { * unsigned long fileno * } */ - public static final OfLong fileno$layout() { - return fileno$LAYOUT; - } + public static final OfLong fileno$layout() { return fileno$LAYOUT; } private static final long fileno$OFFSET = 16; @@ -164,9 +149,7 @@ public static void cls(MemorySegment struct, MemorySegment fieldValue) { * unsigned long fileno * } */ - public static final long fileno$offset() { - return fileno$OFFSET; - } + public static final long fileno$offset() { return fileno$OFFSET; } /** * Getter for field: @@ -174,9 +157,7 @@ public static void cls(MemorySegment struct, MemorySegment fieldValue) { * unsigned long fileno * } */ - public static long fileno(MemorySegment struct) { - return struct.get(fileno$LAYOUT, fileno$OFFSET); - } + public static long fileno(MemorySegment struct) { return struct.get(fileno$LAYOUT, fileno$OFFSET); } /** * Setter for field: @@ -184,7 +165,8 @@ public static long fileno(MemorySegment struct) { * unsigned long fileno * } */ - public static void fileno(MemorySegment struct, long fieldValue) { + public static void fileno(MemorySegment struct, long fieldValue) + { struct.set(fileno$LAYOUT, fileno$OFFSET, fieldValue); } @@ -196,9 +178,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * unsigned int access_flags * } */ - public static final OfInt access_flags$layout() { - return access_flags$LAYOUT; - } + public static final OfInt access_flags$layout() { return access_flags$LAYOUT; } private static final long access_flags$OFFSET = 24; @@ -208,9 +188,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * unsigned int access_flags * } */ - public static final long access_flags$offset() { - return access_flags$OFFSET; - } + public static final long access_flags$offset() { return access_flags$OFFSET; } /** * Getter for field: @@ -218,7 +196,8 @@ public static void fileno(MemorySegment struct, long fieldValue) { * unsigned int access_flags * } */ - public static int access_flags(MemorySegment struct) { + public static int access_flags(MemorySegment struct) + { return struct.get(access_flags$LAYOUT, access_flags$OFFSET); } @@ -228,7 +207,8 @@ public static int access_flags(MemorySegment struct) { * unsigned int access_flags * } */ - public static void access_flags(MemorySegment struct, int fieldValue) { + public static void access_flags(MemorySegment struct, int fieldValue) + { struct.set(access_flags$LAYOUT, access_flags$OFFSET, fieldValue); } @@ -240,9 +220,7 @@ public static void access_flags(MemorySegment struct, int fieldValue) { * unsigned long feature_flags * } */ - public static final OfLong feature_flags$layout() { - return feature_flags$LAYOUT; - } + public static final OfLong feature_flags$layout() { return feature_flags$LAYOUT; } private static final long feature_flags$OFFSET = 32; @@ -252,9 +230,7 @@ public static void access_flags(MemorySegment struct, int fieldValue) { * unsigned long feature_flags * } */ - public static final long feature_flags$offset() { - return feature_flags$OFFSET; - } + public static final long feature_flags$offset() { return feature_flags$OFFSET; } /** * Getter for field: @@ -262,7 +238,8 @@ public static void access_flags(MemorySegment struct, int fieldValue) { * unsigned long feature_flags * } */ - public static long feature_flags(MemorySegment struct) { + public static long feature_flags(MemorySegment struct) + { return struct.get(feature_flags$LAYOUT, feature_flags$OFFSET); } @@ -272,7 +249,8 @@ public static long feature_flags(MemorySegment struct) { * unsigned long feature_flags * } */ - public static void feature_flags(MemorySegment struct, long fieldValue) { + public static void feature_flags(MemorySegment struct, long fieldValue) + { struct.set(feature_flags$LAYOUT, feature_flags$OFFSET, fieldValue); } @@ -284,9 +262,7 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * haddr_t maxaddr * } */ - public static final OfLong maxaddr$layout() { - return maxaddr$LAYOUT; - } + public static final OfLong maxaddr$layout() { return maxaddr$LAYOUT; } private static final long maxaddr$OFFSET = 40; @@ -296,9 +272,7 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * haddr_t maxaddr * } */ - public static final long maxaddr$offset() { - return maxaddr$OFFSET; - } + public static final long maxaddr$offset() { return maxaddr$OFFSET; } /** * Getter for field: @@ -306,9 +280,7 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * haddr_t maxaddr * } */ - public static long maxaddr(MemorySegment struct) { - return struct.get(maxaddr$LAYOUT, maxaddr$OFFSET); - } + public static long maxaddr(MemorySegment struct) { return struct.get(maxaddr$LAYOUT, maxaddr$OFFSET); } /** * Setter for field: @@ -316,7 +288,8 @@ public static long maxaddr(MemorySegment struct) { * haddr_t maxaddr * } */ - public static void maxaddr(MemorySegment struct, long fieldValue) { + public static void maxaddr(MemorySegment struct, long fieldValue) + { struct.set(maxaddr$LAYOUT, maxaddr$OFFSET, fieldValue); } @@ -328,9 +301,7 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * haddr_t base_addr * } */ - public static final OfLong base_addr$layout() { - return base_addr$LAYOUT; - } + public static final OfLong base_addr$layout() { return base_addr$LAYOUT; } private static final long base_addr$OFFSET = 48; @@ -340,9 +311,7 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * haddr_t base_addr * } */ - public static final long base_addr$offset() { - return base_addr$OFFSET; - } + public static final long base_addr$offset() { return base_addr$OFFSET; } /** * Getter for field: @@ -350,7 +319,8 @@ public static void maxaddr(MemorySegment struct, long fieldValue) { * haddr_t base_addr * } */ - public static long base_addr(MemorySegment struct) { + public static long base_addr(MemorySegment struct) + { return struct.get(base_addr$LAYOUT, base_addr$OFFSET); } @@ -360,7 +330,8 @@ public static long base_addr(MemorySegment struct) { * haddr_t base_addr * } */ - public static void base_addr(MemorySegment struct, long fieldValue) { + public static void base_addr(MemorySegment struct, long fieldValue) + { struct.set(base_addr$LAYOUT, base_addr$OFFSET, fieldValue); } @@ -372,9 +343,7 @@ public static void base_addr(MemorySegment struct, long fieldValue) { * hsize_t threshold * } */ - public static final OfLong threshold$layout() { - return threshold$LAYOUT; - } + public static final OfLong threshold$layout() { return threshold$LAYOUT; } private static final long threshold$OFFSET = 56; @@ -384,9 +353,7 @@ public static void base_addr(MemorySegment struct, long fieldValue) { * hsize_t threshold * } */ - public static final long threshold$offset() { - return threshold$OFFSET; - } + public static final long threshold$offset() { return threshold$OFFSET; } /** * Getter for field: @@ -394,7 +361,8 @@ public static void base_addr(MemorySegment struct, long fieldValue) { * hsize_t threshold * } */ - public static long threshold(MemorySegment struct) { + public static long threshold(MemorySegment struct) + { return struct.get(threshold$LAYOUT, threshold$OFFSET); } @@ -404,7 +372,8 @@ public static long threshold(MemorySegment struct) { * hsize_t threshold * } */ - public static void threshold(MemorySegment struct, long fieldValue) { + public static void threshold(MemorySegment struct, long fieldValue) + { struct.set(threshold$LAYOUT, threshold$OFFSET, fieldValue); } @@ -416,9 +385,7 @@ public static void threshold(MemorySegment struct, long fieldValue) { * hsize_t alignment * } */ - public static final OfLong alignment$layout() { - return alignment$LAYOUT; - } + public static final OfLong alignment$layout() { return alignment$LAYOUT; } private static final long alignment$OFFSET = 64; @@ -428,9 +395,7 @@ public static void threshold(MemorySegment struct, long fieldValue) { * hsize_t alignment * } */ - public static final long alignment$offset() { - return alignment$OFFSET; - } + public static final long alignment$offset() { return alignment$OFFSET; } /** * Getter for field: @@ -438,7 +403,8 @@ public static void threshold(MemorySegment struct, long fieldValue) { * hsize_t alignment * } */ - public static long alignment(MemorySegment struct) { + public static long alignment(MemorySegment struct) + { return struct.get(alignment$LAYOUT, alignment$OFFSET); } @@ -448,7 +414,8 @@ public static long alignment(MemorySegment struct) { * hsize_t alignment * } */ - public static void alignment(MemorySegment struct, long fieldValue) { + public static void alignment(MemorySegment struct, long fieldValue) + { struct.set(alignment$LAYOUT, alignment$OFFSET, fieldValue); } @@ -460,9 +427,7 @@ public static void alignment(MemorySegment struct, long fieldValue) { * hbool_t paged_aggr * } */ - public static final OfBoolean paged_aggr$layout() { - return paged_aggr$LAYOUT; - } + public static final OfBoolean paged_aggr$layout() { return paged_aggr$LAYOUT; } private static final long paged_aggr$OFFSET = 72; @@ -472,9 +437,7 @@ public static void alignment(MemorySegment struct, long fieldValue) { * hbool_t paged_aggr * } */ - public static final long paged_aggr$offset() { - return paged_aggr$OFFSET; - } + public static final long paged_aggr$offset() { return paged_aggr$OFFSET; } /** * Getter for field: @@ -482,7 +445,8 @@ public static void alignment(MemorySegment struct, long fieldValue) { * hbool_t paged_aggr * } */ - public static boolean paged_aggr(MemorySegment struct) { + public static boolean paged_aggr(MemorySegment struct) + { return struct.get(paged_aggr$LAYOUT, paged_aggr$OFFSET); } @@ -492,7 +456,8 @@ public static boolean paged_aggr(MemorySegment struct) { * hbool_t paged_aggr * } */ - public static void paged_aggr(MemorySegment struct, boolean fieldValue) { + public static void paged_aggr(MemorySegment struct, boolean fieldValue) + { struct.set(paged_aggr$LAYOUT, paged_aggr$OFFSET, fieldValue); } @@ -500,7 +465,8 @@ public static void paged_aggr(MemorySegment struct, boolean 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -512,15 +478,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -528,7 +493,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -536,8 +502,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5F_flush_cb_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5F_flush_cb_t.java index 71c0fa6245d..8fcf40b45f0 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5F_flush_cb_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5F_flush_cb_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5F_flush_cb_t)(hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5F_flush_cb_t { - H5F_flush_cb_t() { + H5F_flush_cb_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(long object_id, MemorySegment udata); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5F_flush_cb_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5F_flush_cb_t.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(H5F_flush_cb_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5F_flush_cb_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5F_flush_cb_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long object_id, MemorySegment udata) { + public static int invoke(MemorySegment funcPtr, long object_id, MemorySegment udata) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, object_id, udata); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, object_id, udata); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5F_info1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5F_info1_t.java index 5b79daad9df..ef5e2ea5440 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5F_info1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5F_info1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5F_info1_t { @@ -25,23 +25,23 @@ */ public class H5F_info1_t { - H5F_info1_t() { + H5F_info1_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("super_ext_size"), - H5F_info1_t.sohm.layout().withName("sohm") - ).withName("H5F_info1_t"); + private static final GroupLayout $LAYOUT = MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("super_ext_size"), + H5F_info1_t.sohm.layout().withName("sohm")) + .withName("H5F_info1_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong super_ext_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("super_ext_size")); + private static final OfLong super_ext_size$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("super_ext_size")); /** * Layout for field: @@ -49,9 +49,7 @@ public static final GroupLayout layout() { * hsize_t super_ext_size * } */ - public static final OfLong super_ext_size$layout() { - return super_ext_size$LAYOUT; - } + public static final OfLong super_ext_size$layout() { return super_ext_size$LAYOUT; } private static final long super_ext_size$OFFSET = 0; @@ -61,9 +59,7 @@ public static final GroupLayout layout() { * hsize_t super_ext_size * } */ - public static final long super_ext_size$offset() { - return super_ext_size$OFFSET; - } + public static final long super_ext_size$offset() { return super_ext_size$OFFSET; } /** * Getter for field: @@ -71,7 +67,8 @@ public static final GroupLayout layout() { * hsize_t super_ext_size * } */ - public static long super_ext_size(MemorySegment struct) { + public static long super_ext_size(MemorySegment struct) + { return struct.get(super_ext_size$LAYOUT, super_ext_size$OFFSET); } @@ -81,7 +78,8 @@ public static long super_ext_size(MemorySegment struct) { * hsize_t super_ext_size * } */ - public static void super_ext_size(MemorySegment struct, long fieldValue) { + public static void super_ext_size(MemorySegment struct, long fieldValue) + { struct.set(super_ext_size$LAYOUT, super_ext_size$OFFSET, fieldValue); } @@ -95,21 +93,20 @@ public static void super_ext_size(MemorySegment struct, long fieldValue) { */ public static class sohm { - sohm() { + sohm() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("hdr_size"), - H5_ih_info_t.layout().withName("msgs_info") - ).withName("$anon$1892:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("hdr_size"), H5_ih_info_t.layout().withName("msgs_info")) + .withName("$anon$1892:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong hdr_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("hdr_size")); @@ -119,9 +116,7 @@ public static final GroupLayout layout() { * hsize_t hdr_size * } */ - public static final OfLong hdr_size$layout() { - return hdr_size$LAYOUT; - } + public static final OfLong hdr_size$layout() { return hdr_size$LAYOUT; } private static final long hdr_size$OFFSET = 0; @@ -131,9 +126,7 @@ public static final GroupLayout layout() { * hsize_t hdr_size * } */ - public static final long hdr_size$offset() { - return hdr_size$OFFSET; - } + public static final long hdr_size$offset() { return hdr_size$OFFSET; } /** * Getter for field: @@ -141,7 +134,8 @@ public static final GroupLayout layout() { * hsize_t hdr_size * } */ - public static long hdr_size(MemorySegment struct) { + public static long hdr_size(MemorySegment struct) + { return struct.get(hdr_size$LAYOUT, hdr_size$OFFSET); } @@ -151,11 +145,13 @@ public static long hdr_size(MemorySegment struct) { * hsize_t hdr_size * } */ - public static void hdr_size(MemorySegment struct, long fieldValue) { + public static void hdr_size(MemorySegment struct, long fieldValue) + { struct.set(hdr_size$LAYOUT, hdr_size$OFFSET, fieldValue); } - private static final GroupLayout msgs_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("msgs_info")); + private static final GroupLayout msgs_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("msgs_info")); /** * Layout for field: @@ -163,9 +159,7 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static final GroupLayout msgs_info$layout() { - return msgs_info$LAYOUT; - } + public static final GroupLayout msgs_info$layout() { return msgs_info$LAYOUT; } private static final long msgs_info$OFFSET = 8; @@ -175,9 +169,7 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static final long msgs_info$offset() { - return msgs_info$OFFSET; - } + public static final long msgs_info$offset() { return msgs_info$OFFSET; } /** * Getter for field: @@ -185,7 +177,8 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static MemorySegment msgs_info(MemorySegment struct) { + public static MemorySegment msgs_info(MemorySegment struct) + { return struct.asSlice(msgs_info$OFFSET, msgs_info$LAYOUT.byteSize()); } @@ -195,7 +188,8 @@ public static MemorySegment msgs_info(MemorySegment struct) { * H5_ih_info_t msgs_info * } */ - public static void msgs_info(MemorySegment struct, MemorySegment fieldValue) { + public static void msgs_info(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, msgs_info$OFFSET, msgs_info$LAYOUT.byteSize()); } @@ -203,7 +197,8 @@ public static void msgs_info(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -215,7 +210,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -223,7 +219,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -231,7 +228,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -239,7 +238,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -255,9 +256,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static final GroupLayout sohm$layout() { - return sohm$LAYOUT; - } + public static final GroupLayout sohm$layout() { return sohm$LAYOUT; } private static final long sohm$OFFSET = 8; @@ -270,9 +269,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static final long sohm$offset() { - return sohm$OFFSET; - } + public static final long sohm$offset() { return sohm$OFFSET; } /** * Getter for field: @@ -283,7 +280,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static MemorySegment sohm(MemorySegment struct) { + public static MemorySegment sohm(MemorySegment struct) + { return struct.asSlice(sohm$OFFSET, sohm$LAYOUT.byteSize()); } @@ -296,7 +294,8 @@ public static MemorySegment sohm(MemorySegment struct) { * } sohm * } */ - public static void sohm(MemorySegment struct, MemorySegment fieldValue) { + public static void sohm(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, sohm$OFFSET, sohm$LAYOUT.byteSize()); } @@ -304,7 +303,8 @@ public static void sohm(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -316,15 +316,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -332,7 +331,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -340,8 +340,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5F_info2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5F_info2_t.java index e2f23692a91..5e0983445f0 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5F_info2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5F_info2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5F_info2_t { @@ -35,22 +35,22 @@ */ public class H5F_info2_t { - H5F_info2_t() { + H5F_info2_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5F_info2_t.super_.layout().withName("super"), - H5F_info2_t.free.layout().withName("free"), - H5F_info2_t.sohm.layout().withName("sohm") - ).withName("H5F_info2_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5F_info2_t.super_.layout().withName("super"), + H5F_info2_t.free.layout().withName("free"), + H5F_info2_t.sohm.layout().withName("sohm")) + .withName("H5F_info2_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -63,23 +63,21 @@ public static final GroupLayout layout() { */ public static class super_ { - super_() { + super_() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("super_size"), - hdf5_h.C_LONG.withName("super_ext_size") - ).withName("$anon$126:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("super_size"), hdf5_h.C_LONG.withName("super_ext_size")) + .withName("$anon$126:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -89,9 +87,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -101,9 +97,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -111,9 +105,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -121,7 +113,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -133,9 +126,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t super_size * } */ - public static final OfLong super_size$layout() { - return super_size$LAYOUT; - } + public static final OfLong super_size$layout() { return super_size$LAYOUT; } private static final long super_size$OFFSET = 8; @@ -145,9 +136,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t super_size * } */ - public static final long super_size$offset() { - return super_size$OFFSET; - } + public static final long super_size$offset() { return super_size$OFFSET; } /** * Getter for field: @@ -155,7 +144,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t super_size * } */ - public static long super_size(MemorySegment struct) { + public static long super_size(MemorySegment struct) + { return struct.get(super_size$LAYOUT, super_size$OFFSET); } @@ -165,11 +155,13 @@ public static long super_size(MemorySegment struct) { * hsize_t super_size * } */ - public static void super_size(MemorySegment struct, long fieldValue) { + public static void super_size(MemorySegment struct, long fieldValue) + { struct.set(super_size$LAYOUT, super_size$OFFSET, fieldValue); } - private static final OfLong super_ext_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("super_ext_size")); + private static final OfLong super_ext_size$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("super_ext_size")); /** * Layout for field: @@ -177,9 +169,7 @@ public static void super_size(MemorySegment struct, long fieldValue) { * hsize_t super_ext_size * } */ - public static final OfLong super_ext_size$layout() { - return super_ext_size$LAYOUT; - } + public static final OfLong super_ext_size$layout() { return super_ext_size$LAYOUT; } private static final long super_ext_size$OFFSET = 16; @@ -189,9 +179,7 @@ public static void super_size(MemorySegment struct, long fieldValue) { * hsize_t super_ext_size * } */ - public static final long super_ext_size$offset() { - return super_ext_size$OFFSET; - } + public static final long super_ext_size$offset() { return super_ext_size$OFFSET; } /** * Getter for field: @@ -199,7 +187,8 @@ public static void super_size(MemorySegment struct, long fieldValue) { * hsize_t super_ext_size * } */ - public static long super_ext_size(MemorySegment struct) { + public static long super_ext_size(MemorySegment struct) + { return struct.get(super_ext_size$LAYOUT, super_ext_size$OFFSET); } @@ -209,7 +198,8 @@ public static long super_ext_size(MemorySegment struct) { * hsize_t super_ext_size * } */ - public static void super_ext_size(MemorySegment struct, long fieldValue) { + public static void super_ext_size(MemorySegment struct, long fieldValue) + { struct.set(super_ext_size$LAYOUT, super_ext_size$OFFSET, fieldValue); } @@ -217,7 +207,8 @@ public static void super_ext_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -229,7 +220,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -237,7 +229,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -245,7 +238,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -253,7 +248,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -270,9 +267,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } super * } */ - public static final GroupLayout super_$layout() { - return super_$LAYOUT; - } + public static final GroupLayout super_$layout() { return super_$LAYOUT; } private static final long super_$OFFSET = 0; @@ -286,9 +281,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } super * } */ - public static final long super_$offset() { - return super_$OFFSET; - } + public static final long super_$offset() { return super_$OFFSET; } /** * Getter for field: @@ -300,7 +293,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } super * } */ - public static MemorySegment super_(MemorySegment struct) { + public static MemorySegment super_(MemorySegment struct) + { return struct.asSlice(super_$OFFSET, super_$LAYOUT.byteSize()); } @@ -314,7 +308,8 @@ public static MemorySegment super_(MemorySegment struct) { * } super * } */ - public static void super_(MemorySegment struct, MemorySegment fieldValue) { + public static void super_(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, super_$OFFSET, super_$LAYOUT.byteSize()); } @@ -329,23 +324,21 @@ public static void super_(MemorySegment struct, MemorySegment fieldValue) { */ public static class free { - free() { + free() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("meta_size"), - hdf5_h.C_LONG.withName("tot_space") - ).withName("$anon$131:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("meta_size"), hdf5_h.C_LONG.withName("tot_space")) + .withName("$anon$131:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -355,9 +348,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -367,9 +358,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -377,9 +366,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -387,7 +374,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -399,9 +387,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t meta_size * } */ - public static final OfLong meta_size$layout() { - return meta_size$LAYOUT; - } + public static final OfLong meta_size$layout() { return meta_size$LAYOUT; } private static final long meta_size$OFFSET = 8; @@ -411,9 +397,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t meta_size * } */ - public static final long meta_size$offset() { - return meta_size$OFFSET; - } + public static final long meta_size$offset() { return meta_size$OFFSET; } /** * Getter for field: @@ -421,7 +405,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t meta_size * } */ - public static long meta_size(MemorySegment struct) { + public static long meta_size(MemorySegment struct) + { return struct.get(meta_size$LAYOUT, meta_size$OFFSET); } @@ -431,7 +416,8 @@ public static long meta_size(MemorySegment struct) { * hsize_t meta_size * } */ - public static void meta_size(MemorySegment struct, long fieldValue) { + public static void meta_size(MemorySegment struct, long fieldValue) + { struct.set(meta_size$LAYOUT, meta_size$OFFSET, fieldValue); } @@ -443,9 +429,7 @@ public static void meta_size(MemorySegment struct, long fieldValue) { * hsize_t tot_space * } */ - public static final OfLong tot_space$layout() { - return tot_space$LAYOUT; - } + public static final OfLong tot_space$layout() { return tot_space$LAYOUT; } private static final long tot_space$OFFSET = 16; @@ -455,9 +439,7 @@ public static void meta_size(MemorySegment struct, long fieldValue) { * hsize_t tot_space * } */ - public static final long tot_space$offset() { - return tot_space$OFFSET; - } + public static final long tot_space$offset() { return tot_space$OFFSET; } /** * Getter for field: @@ -465,7 +447,8 @@ public static void meta_size(MemorySegment struct, long fieldValue) { * hsize_t tot_space * } */ - public static long tot_space(MemorySegment struct) { + public static long tot_space(MemorySegment struct) + { return struct.get(tot_space$LAYOUT, tot_space$OFFSET); } @@ -475,7 +458,8 @@ public static long tot_space(MemorySegment struct) { * hsize_t tot_space * } */ - public static void tot_space(MemorySegment struct, long fieldValue) { + public static void tot_space(MemorySegment struct, long fieldValue) + { struct.set(tot_space$LAYOUT, tot_space$OFFSET, fieldValue); } @@ -483,7 +467,8 @@ public static void tot_space(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -495,7 +480,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -503,7 +489,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -511,7 +498,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -519,7 +508,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -536,9 +527,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } free * } */ - public static final GroupLayout free$layout() { - return free$LAYOUT; - } + public static final GroupLayout free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 24; @@ -552,9 +541,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } free * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -566,7 +553,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } free * } */ - public static MemorySegment free(MemorySegment struct) { + public static MemorySegment free(MemorySegment struct) + { return struct.asSlice(free$OFFSET, free$LAYOUT.byteSize()); } @@ -580,7 +568,8 @@ public static MemorySegment free(MemorySegment struct) { * } free * } */ - public static void free(MemorySegment struct, MemorySegment fieldValue) { + public static void free(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, free$OFFSET, free$LAYOUT.byteSize()); } @@ -595,23 +584,21 @@ public static void free(MemorySegment struct, MemorySegment fieldValue) { */ public static class sohm { - sohm() { + sohm() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("hdr_size"), - H5_ih_info_t.layout().withName("msgs_info") - ).withName("$anon$136:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("hdr_size"), H5_ih_info_t.layout().withName("msgs_info")) + .withName("$anon$136:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -621,9 +608,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -633,9 +618,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -643,9 +626,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -653,7 +634,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -665,9 +647,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t hdr_size * } */ - public static final OfLong hdr_size$layout() { - return hdr_size$LAYOUT; - } + public static final OfLong hdr_size$layout() { return hdr_size$LAYOUT; } private static final long hdr_size$OFFSET = 8; @@ -677,9 +657,7 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t hdr_size * } */ - public static final long hdr_size$offset() { - return hdr_size$OFFSET; - } + public static final long hdr_size$offset() { return hdr_size$OFFSET; } /** * Getter for field: @@ -687,7 +665,8 @@ public static void version(MemorySegment struct, int fieldValue) { * hsize_t hdr_size * } */ - public static long hdr_size(MemorySegment struct) { + public static long hdr_size(MemorySegment struct) + { return struct.get(hdr_size$LAYOUT, hdr_size$OFFSET); } @@ -697,11 +676,13 @@ public static long hdr_size(MemorySegment struct) { * hsize_t hdr_size * } */ - public static void hdr_size(MemorySegment struct, long fieldValue) { + public static void hdr_size(MemorySegment struct, long fieldValue) + { struct.set(hdr_size$LAYOUT, hdr_size$OFFSET, fieldValue); } - private static final GroupLayout msgs_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("msgs_info")); + private static final GroupLayout msgs_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("msgs_info")); /** * Layout for field: @@ -709,9 +690,7 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static final GroupLayout msgs_info$layout() { - return msgs_info$LAYOUT; - } + public static final GroupLayout msgs_info$layout() { return msgs_info$LAYOUT; } private static final long msgs_info$OFFSET = 16; @@ -721,9 +700,7 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static final long msgs_info$offset() { - return msgs_info$OFFSET; - } + public static final long msgs_info$offset() { return msgs_info$OFFSET; } /** * Getter for field: @@ -731,7 +708,8 @@ public static void hdr_size(MemorySegment struct, long fieldValue) { * H5_ih_info_t msgs_info * } */ - public static MemorySegment msgs_info(MemorySegment struct) { + public static MemorySegment msgs_info(MemorySegment struct) + { return struct.asSlice(msgs_info$OFFSET, msgs_info$LAYOUT.byteSize()); } @@ -741,7 +719,8 @@ public static MemorySegment msgs_info(MemorySegment struct) { * H5_ih_info_t msgs_info * } */ - public static void msgs_info(MemorySegment struct, MemorySegment fieldValue) { + public static void msgs_info(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, msgs_info$OFFSET, msgs_info$LAYOUT.byteSize()); } @@ -749,7 +728,8 @@ public static void msgs_info(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -761,7 +741,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -769,7 +750,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -777,7 +759,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -785,7 +769,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -802,9 +788,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static final GroupLayout sohm$layout() { - return sohm$LAYOUT; - } + public static final GroupLayout sohm$layout() { return sohm$LAYOUT; } private static final long sohm$OFFSET = 48; @@ -818,9 +802,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static final long sohm$offset() { - return sohm$OFFSET; - } + public static final long sohm$offset() { return sohm$OFFSET; } /** * Getter for field: @@ -832,7 +814,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } sohm * } */ - public static MemorySegment sohm(MemorySegment struct) { + public static MemorySegment sohm(MemorySegment struct) + { return struct.asSlice(sohm$OFFSET, sohm$LAYOUT.byteSize()); } @@ -846,7 +829,8 @@ public static MemorySegment sohm(MemorySegment struct) { * } sohm * } */ - public static void sohm(MemorySegment struct, MemorySegment fieldValue) { + public static void sohm(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, sohm$OFFSET, sohm$LAYOUT.byteSize()); } @@ -854,7 +838,8 @@ public static void sohm(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -866,15 +851,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -882,7 +866,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -890,8 +875,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5F_retry_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5F_retry_info_t.java index 71bb2d52e47..deb6a8c9a27 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5F_retry_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5F_retry_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5F_retry_info_t { @@ -22,22 +22,21 @@ */ public class H5F_retry_info_t { - H5F_retry_info_t() { + H5F_retry_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("nbins"), - MemoryLayout.paddingLayout(4), - MemoryLayout.sequenceLayout(21, hdf5_h.C_POINTER).withName("retries") - ).withName("H5F_retry_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("nbins"), MemoryLayout.paddingLayout(4), + MemoryLayout.sequenceLayout(21, hdf5_h.C_POINTER).withName("retries")) + .withName("H5F_retry_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt nbins$LAYOUT = (OfInt)$LAYOUT.select(groupElement("nbins")); @@ -47,9 +46,7 @@ public static final GroupLayout layout() { * unsigned int nbins * } */ - public static final OfInt nbins$layout() { - return nbins$LAYOUT; - } + public static final OfInt nbins$layout() { return nbins$LAYOUT; } private static final long nbins$OFFSET = 0; @@ -59,9 +56,7 @@ public static final GroupLayout layout() { * unsigned int nbins * } */ - public static final long nbins$offset() { - return nbins$OFFSET; - } + public static final long nbins$offset() { return nbins$OFFSET; } /** * Getter for field: @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * unsigned int nbins * } */ - public static int nbins(MemorySegment struct) { - return struct.get(nbins$LAYOUT, nbins$OFFSET); - } + public static int nbins(MemorySegment struct) { return struct.get(nbins$LAYOUT, nbins$OFFSET); } /** * Setter for field: @@ -79,11 +72,13 @@ public static int nbins(MemorySegment struct) { * unsigned int nbins * } */ - public static void nbins(MemorySegment struct, int fieldValue) { + public static void nbins(MemorySegment struct, int fieldValue) + { struct.set(nbins$LAYOUT, nbins$OFFSET, fieldValue); } - private static final SequenceLayout retries$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("retries")); + private static final SequenceLayout retries$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("retries")); /** * Layout for field: @@ -91,9 +86,7 @@ public static void nbins(MemorySegment struct, int fieldValue) { * uint32_t *retries[21] * } */ - public static final SequenceLayout retries$layout() { - return retries$LAYOUT; - } + public static final SequenceLayout retries$layout() { return retries$LAYOUT; } private static final long retries$OFFSET = 8; @@ -103,9 +96,7 @@ public static void nbins(MemorySegment struct, int fieldValue) { * uint32_t *retries[21] * } */ - public static final long retries$offset() { - return retries$OFFSET; - } + public static final long retries$offset() { return retries$OFFSET; } /** * Getter for field: @@ -113,7 +104,8 @@ public static void nbins(MemorySegment struct, int fieldValue) { * uint32_t *retries[21] * } */ - public static MemorySegment retries(MemorySegment struct) { + public static MemorySegment retries(MemorySegment struct) + { return struct.asSlice(retries$OFFSET, retries$LAYOUT.byteSize()); } @@ -123,11 +115,12 @@ public static MemorySegment retries(MemorySegment struct) { * uint32_t *retries[21] * } */ - public static void retries(MemorySegment struct, MemorySegment fieldValue) { + public static void retries(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, retries$OFFSET, retries$LAYOUT.byteSize()); } - private static long[] retries$DIMS = { 21 }; + private static long[] retries$DIMS = {21}; /** * Dimensions for array field: @@ -135,9 +128,7 @@ public static void retries(MemorySegment struct, MemorySegment fieldValue) { * uint32_t *retries[21] * } */ - public static long[] retries$dimensions() { - return retries$DIMS; - } + public static long[] retries$dimensions() { return retries$DIMS; } private static final VarHandle retries$ELEM_HANDLE = retries$LAYOUT.varHandle(sequenceElement()); /** @@ -146,7 +137,8 @@ public static void retries(MemorySegment struct, MemorySegment fieldValue) { * uint32_t *retries[21] * } */ - public static MemorySegment retries(MemorySegment struct, long index0) { + public static MemorySegment retries(MemorySegment struct, long index0) + { return (MemorySegment)retries$ELEM_HANDLE.get(struct, 0L, index0); } @@ -156,7 +148,8 @@ public static MemorySegment retries(MemorySegment struct, long index0) { * uint32_t *retries[21] * } */ - public static void retries(MemorySegment struct, long index0, MemorySegment fieldValue) { + public static void retries(MemorySegment struct, long index0, MemorySegment fieldValue) + { retries$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -164,7 +157,8 @@ public static void retries(MemorySegment struct, long index0, MemorySegment fiel * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -176,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -192,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -200,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5F_sect_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5F_sect_info_t.java index 43405db057c..4f289f021c3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5F_sect_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5F_sect_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5F_sect_info_t { @@ -22,21 +22,19 @@ */ public class H5F_sect_info_t { - H5F_sect_info_t() { + H5F_sect_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("addr"), - hdf5_h.C_LONG.withName("size") - ).withName("H5F_sect_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("addr"), hdf5_h.C_LONG.withName("size")) + .withName("H5F_sect_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong addr$LAYOUT = (OfLong)$LAYOUT.select(groupElement("addr")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static final OfLong addr$layout() { - return addr$LAYOUT; - } + public static final OfLong addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * haddr_t addr * } */ - public static long addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static long addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long addr(MemorySegment struct) { * haddr_t addr * } */ - public static void addr(MemorySegment struct, long fieldValue) { + public static void addr(MemorySegment struct, long fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static final OfLong size$layout() { - return size$LAYOUT; - } + public static final OfLong size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 8; @@ -102,9 +93,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * hsize_t size * } */ - public static long size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static long size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static long size(MemorySegment struct) { * hsize_t size * } */ - public static void size(MemorySegment struct, long fieldValue) { + public static void size(MemorySegment struct, long fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5G_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5G_info_t.java index f72fdd838d7..d882c2b1c33 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5G_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5G_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5G_info_t { @@ -24,25 +24,22 @@ */ public class H5G_info_t { - H5G_info_t() { + H5G_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("storage_type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("nlinks"), - hdf5_h.C_LONG.withName("max_corder"), - hdf5_h.C_BOOL.withName("mounted"), - MemoryLayout.paddingLayout(7) - ).withName("H5G_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("storage_type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("nlinks"), hdf5_h.C_LONG.withName("max_corder"), + hdf5_h.C_BOOL.withName("mounted"), MemoryLayout.paddingLayout(7)) + .withName("H5G_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt storage_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("storage_type")); @@ -52,9 +49,7 @@ public static final GroupLayout layout() { * H5G_storage_type_t storage_type * } */ - public static final OfInt storage_type$layout() { - return storage_type$LAYOUT; - } + public static final OfInt storage_type$layout() { return storage_type$LAYOUT; } private static final long storage_type$OFFSET = 0; @@ -64,9 +59,7 @@ public static final GroupLayout layout() { * H5G_storage_type_t storage_type * } */ - public static final long storage_type$offset() { - return storage_type$OFFSET; - } + public static final long storage_type$offset() { return storage_type$OFFSET; } /** * Getter for field: @@ -74,7 +67,8 @@ public static final GroupLayout layout() { * H5G_storage_type_t storage_type * } */ - public static int storage_type(MemorySegment struct) { + public static int storage_type(MemorySegment struct) + { return struct.get(storage_type$LAYOUT, storage_type$OFFSET); } @@ -84,7 +78,8 @@ public static int storage_type(MemorySegment struct) { * H5G_storage_type_t storage_type * } */ - public static void storage_type(MemorySegment struct, int fieldValue) { + public static void storage_type(MemorySegment struct, int fieldValue) + { struct.set(storage_type$LAYOUT, storage_type$OFFSET, fieldValue); } @@ -96,9 +91,7 @@ public static void storage_type(MemorySegment struct, int fieldValue) { * hsize_t nlinks * } */ - public static final OfLong nlinks$layout() { - return nlinks$LAYOUT; - } + public static final OfLong nlinks$layout() { return nlinks$LAYOUT; } private static final long nlinks$OFFSET = 8; @@ -108,9 +101,7 @@ public static void storage_type(MemorySegment struct, int fieldValue) { * hsize_t nlinks * } */ - public static final long nlinks$offset() { - return nlinks$OFFSET; - } + public static final long nlinks$offset() { return nlinks$OFFSET; } /** * Getter for field: @@ -118,9 +109,7 @@ public static void storage_type(MemorySegment struct, int fieldValue) { * hsize_t nlinks * } */ - public static long nlinks(MemorySegment struct) { - return struct.get(nlinks$LAYOUT, nlinks$OFFSET); - } + public static long nlinks(MemorySegment struct) { return struct.get(nlinks$LAYOUT, nlinks$OFFSET); } /** * Setter for field: @@ -128,7 +117,8 @@ public static long nlinks(MemorySegment struct) { * hsize_t nlinks * } */ - public static void nlinks(MemorySegment struct, long fieldValue) { + public static void nlinks(MemorySegment struct, long fieldValue) + { struct.set(nlinks$LAYOUT, nlinks$OFFSET, fieldValue); } @@ -140,9 +130,7 @@ public static void nlinks(MemorySegment struct, long fieldValue) { * int64_t max_corder * } */ - public static final OfLong max_corder$layout() { - return max_corder$LAYOUT; - } + public static final OfLong max_corder$layout() { return max_corder$LAYOUT; } private static final long max_corder$OFFSET = 16; @@ -152,9 +140,7 @@ public static void nlinks(MemorySegment struct, long fieldValue) { * int64_t max_corder * } */ - public static final long max_corder$offset() { - return max_corder$OFFSET; - } + public static final long max_corder$offset() { return max_corder$OFFSET; } /** * Getter for field: @@ -162,7 +148,8 @@ public static void nlinks(MemorySegment struct, long fieldValue) { * int64_t max_corder * } */ - public static long max_corder(MemorySegment struct) { + public static long max_corder(MemorySegment struct) + { return struct.get(max_corder$LAYOUT, max_corder$OFFSET); } @@ -172,7 +159,8 @@ public static long max_corder(MemorySegment struct) { * int64_t max_corder * } */ - public static void max_corder(MemorySegment struct, long fieldValue) { + public static void max_corder(MemorySegment struct, long fieldValue) + { struct.set(max_corder$LAYOUT, max_corder$OFFSET, fieldValue); } @@ -184,9 +172,7 @@ public static void max_corder(MemorySegment struct, long fieldValue) { * hbool_t mounted * } */ - public static final OfBoolean mounted$layout() { - return mounted$LAYOUT; - } + public static final OfBoolean mounted$layout() { return mounted$LAYOUT; } private static final long mounted$OFFSET = 24; @@ -196,9 +182,7 @@ public static void max_corder(MemorySegment struct, long fieldValue) { * hbool_t mounted * } */ - public static final long mounted$offset() { - return mounted$OFFSET; - } + public static final long mounted$offset() { return mounted$OFFSET; } /** * Getter for field: @@ -206,9 +190,7 @@ public static void max_corder(MemorySegment struct, long fieldValue) { * hbool_t mounted * } */ - public static boolean mounted(MemorySegment struct) { - return struct.get(mounted$LAYOUT, mounted$OFFSET); - } + public static boolean mounted(MemorySegment struct) { return struct.get(mounted$LAYOUT, mounted$OFFSET); } /** * Setter for field: @@ -216,7 +198,8 @@ public static boolean mounted(MemorySegment struct) { * hbool_t mounted * } */ - public static void mounted(MemorySegment struct, boolean fieldValue) { + public static void mounted(MemorySegment struct, boolean fieldValue) + { struct.set(mounted$LAYOUT, mounted$OFFSET, fieldValue); } @@ -224,7 +207,8 @@ public static void mounted(MemorySegment struct, boolean 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -236,15 +220,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -252,7 +235,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -260,8 +244,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5G_iterate_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5G_iterate_t.java index 38496140c76..778200a459c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5G_iterate_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5G_iterate_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5G_iterate_t)(hid_t, const char *, void *) @@ -19,7 +19,8 @@ */ public class H5G_iterate_t { - H5G_iterate_t() { + H5G_iterate_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long group, MemorySegment name, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5G_iterate_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5G_iterate_t.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(H5G_iterate_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5G_iterate_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5G_iterate_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long group, MemorySegment name, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long group, MemorySegment name, MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, group, name, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, group, name, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5G_stat_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5G_stat_t.java index 80281fad564..989da157887 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5G_stat_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5G_stat_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5G_stat_t { @@ -27,28 +27,27 @@ */ public class H5G_stat_t { - H5G_stat_t() { + H5G_stat_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(2, hdf5_h.C_LONG).withName("fileno"), - MemoryLayout.sequenceLayout(2, hdf5_h.C_LONG).withName("objno"), - hdf5_h.C_INT.withName("nlink"), - hdf5_h.C_INT.withName("type"), - hdf5_h.C_LONG.withName("mtime"), - hdf5_h.C_LONG.withName("linklen"), - H5O_stat_t.layout().withName("ohdr") - ).withName("H5G_stat_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(MemoryLayout.sequenceLayout(2, hdf5_h.C_LONG).withName("fileno"), + MemoryLayout.sequenceLayout(2, hdf5_h.C_LONG).withName("objno"), + hdf5_h.C_INT.withName("nlink"), hdf5_h.C_INT.withName("type"), + hdf5_h.C_LONG.withName("mtime"), hdf5_h.C_LONG.withName("linklen"), + H5O_stat_t.layout().withName("ohdr")) + .withName("H5G_stat_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout fileno$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("fileno")); + private static final SequenceLayout fileno$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("fileno")); /** * Layout for field: @@ -56,9 +55,7 @@ public static final GroupLayout layout() { * unsigned long fileno[2] * } */ - public static final SequenceLayout fileno$layout() { - return fileno$LAYOUT; - } + public static final SequenceLayout fileno$layout() { return fileno$LAYOUT; } private static final long fileno$OFFSET = 0; @@ -68,9 +65,7 @@ public static final GroupLayout layout() { * unsigned long fileno[2] * } */ - public static final long fileno$offset() { - return fileno$OFFSET; - } + public static final long fileno$offset() { return fileno$OFFSET; } /** * Getter for field: @@ -78,7 +73,8 @@ public static final GroupLayout layout() { * unsigned long fileno[2] * } */ - public static MemorySegment fileno(MemorySegment struct) { + public static MemorySegment fileno(MemorySegment struct) + { return struct.asSlice(fileno$OFFSET, fileno$LAYOUT.byteSize()); } @@ -88,11 +84,12 @@ public static MemorySegment fileno(MemorySegment struct) { * unsigned long fileno[2] * } */ - public static void fileno(MemorySegment struct, MemorySegment fieldValue) { + public static void fileno(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, fileno$OFFSET, fileno$LAYOUT.byteSize()); } - private static long[] fileno$DIMS = { 2 }; + private static long[] fileno$DIMS = {2}; /** * Dimensions for array field: @@ -100,9 +97,7 @@ public static void fileno(MemorySegment struct, MemorySegment fieldValue) { * unsigned long fileno[2] * } */ - public static long[] fileno$dimensions() { - return fileno$DIMS; - } + public static long[] fileno$dimensions() { return fileno$DIMS; } private static final VarHandle fileno$ELEM_HANDLE = fileno$LAYOUT.varHandle(sequenceElement()); /** @@ -111,7 +106,8 @@ public static void fileno(MemorySegment struct, MemorySegment fieldValue) { * unsigned long fileno[2] * } */ - public static long fileno(MemorySegment struct, long index0) { + public static long fileno(MemorySegment struct, long index0) + { return (long)fileno$ELEM_HANDLE.get(struct, 0L, index0); } @@ -121,7 +117,8 @@ public static long fileno(MemorySegment struct, long index0) { * unsigned long fileno[2] * } */ - public static void fileno(MemorySegment struct, long index0, long fieldValue) { + public static void fileno(MemorySegment struct, long index0, long fieldValue) + { fileno$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -133,9 +130,7 @@ public static void fileno(MemorySegment struct, long index0, long fieldValue) { * unsigned long objno[2] * } */ - public static final SequenceLayout objno$layout() { - return objno$LAYOUT; - } + public static final SequenceLayout objno$layout() { return objno$LAYOUT; } private static final long objno$OFFSET = 16; @@ -145,9 +140,7 @@ public static void fileno(MemorySegment struct, long index0, long fieldValue) { * unsigned long objno[2] * } */ - public static final long objno$offset() { - return objno$OFFSET; - } + public static final long objno$offset() { return objno$OFFSET; } /** * Getter for field: @@ -155,7 +148,8 @@ public static void fileno(MemorySegment struct, long index0, long fieldValue) { * unsigned long objno[2] * } */ - public static MemorySegment objno(MemorySegment struct) { + public static MemorySegment objno(MemorySegment struct) + { return struct.asSlice(objno$OFFSET, objno$LAYOUT.byteSize()); } @@ -165,11 +159,12 @@ public static MemorySegment objno(MemorySegment struct) { * unsigned long objno[2] * } */ - public static void objno(MemorySegment struct, MemorySegment fieldValue) { + public static void objno(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, objno$OFFSET, objno$LAYOUT.byteSize()); } - private static long[] objno$DIMS = { 2 }; + private static long[] objno$DIMS = {2}; /** * Dimensions for array field: @@ -177,9 +172,7 @@ public static void objno(MemorySegment struct, MemorySegment fieldValue) { * unsigned long objno[2] * } */ - public static long[] objno$dimensions() { - return objno$DIMS; - } + public static long[] objno$dimensions() { return objno$DIMS; } private static final VarHandle objno$ELEM_HANDLE = objno$LAYOUT.varHandle(sequenceElement()); /** @@ -188,7 +181,8 @@ public static void objno(MemorySegment struct, MemorySegment fieldValue) { * unsigned long objno[2] * } */ - public static long objno(MemorySegment struct, long index0) { + public static long objno(MemorySegment struct, long index0) + { return (long)objno$ELEM_HANDLE.get(struct, 0L, index0); } @@ -198,7 +192,8 @@ public static long objno(MemorySegment struct, long index0) { * unsigned long objno[2] * } */ - public static void objno(MemorySegment struct, long index0, long fieldValue) { + public static void objno(MemorySegment struct, long index0, long fieldValue) + { objno$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -210,9 +205,7 @@ public static void objno(MemorySegment struct, long index0, long fieldValue) { * unsigned int nlink * } */ - public static final OfInt nlink$layout() { - return nlink$LAYOUT; - } + public static final OfInt nlink$layout() { return nlink$LAYOUT; } private static final long nlink$OFFSET = 32; @@ -222,9 +215,7 @@ public static void objno(MemorySegment struct, long index0, long fieldValue) { * unsigned int nlink * } */ - public static final long nlink$offset() { - return nlink$OFFSET; - } + public static final long nlink$offset() { return nlink$OFFSET; } /** * Getter for field: @@ -232,9 +223,7 @@ public static void objno(MemorySegment struct, long index0, long fieldValue) { * unsigned int nlink * } */ - public static int nlink(MemorySegment struct) { - return struct.get(nlink$LAYOUT, nlink$OFFSET); - } + public static int nlink(MemorySegment struct) { return struct.get(nlink$LAYOUT, nlink$OFFSET); } /** * Setter for field: @@ -242,7 +231,8 @@ public static int nlink(MemorySegment struct) { * unsigned int nlink * } */ - public static void nlink(MemorySegment struct, int fieldValue) { + public static void nlink(MemorySegment struct, int fieldValue) + { struct.set(nlink$LAYOUT, nlink$OFFSET, fieldValue); } @@ -254,9 +244,7 @@ public static void nlink(MemorySegment struct, int fieldValue) { * H5G_obj_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 36; @@ -266,9 +254,7 @@ public static void nlink(MemorySegment struct, int fieldValue) { * H5G_obj_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -276,9 +262,7 @@ public static void nlink(MemorySegment struct, int fieldValue) { * H5G_obj_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -286,7 +270,8 @@ public static int type(MemorySegment struct) { * H5G_obj_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -298,9 +283,7 @@ public static void type(MemorySegment struct, int fieldValue) { * time_t mtime * } */ - public static final OfLong mtime$layout() { - return mtime$LAYOUT; - } + public static final OfLong mtime$layout() { return mtime$LAYOUT; } private static final long mtime$OFFSET = 40; @@ -310,9 +293,7 @@ public static void type(MemorySegment struct, int fieldValue) { * time_t mtime * } */ - public static final long mtime$offset() { - return mtime$OFFSET; - } + public static final long mtime$offset() { return mtime$OFFSET; } /** * Getter for field: @@ -320,9 +301,7 @@ public static void type(MemorySegment struct, int fieldValue) { * time_t mtime * } */ - public static long mtime(MemorySegment struct) { - return struct.get(mtime$LAYOUT, mtime$OFFSET); - } + public static long mtime(MemorySegment struct) { return struct.get(mtime$LAYOUT, mtime$OFFSET); } /** * Setter for field: @@ -330,7 +309,8 @@ public static long mtime(MemorySegment struct) { * time_t mtime * } */ - public static void mtime(MemorySegment struct, long fieldValue) { + public static void mtime(MemorySegment struct, long fieldValue) + { struct.set(mtime$LAYOUT, mtime$OFFSET, fieldValue); } @@ -342,9 +322,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * size_t linklen * } */ - public static final OfLong linklen$layout() { - return linklen$LAYOUT; - } + public static final OfLong linklen$layout() { return linklen$LAYOUT; } private static final long linklen$OFFSET = 48; @@ -354,9 +332,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * size_t linklen * } */ - public static final long linklen$offset() { - return linklen$OFFSET; - } + public static final long linklen$offset() { return linklen$OFFSET; } /** * Getter for field: @@ -364,9 +340,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * size_t linklen * } */ - public static long linklen(MemorySegment struct) { - return struct.get(linklen$LAYOUT, linklen$OFFSET); - } + public static long linklen(MemorySegment struct) { return struct.get(linklen$LAYOUT, linklen$OFFSET); } /** * Setter for field: @@ -374,7 +348,8 @@ public static long linklen(MemorySegment struct) { * size_t linklen * } */ - public static void linklen(MemorySegment struct, long fieldValue) { + public static void linklen(MemorySegment struct, long fieldValue) + { struct.set(linklen$LAYOUT, linklen$OFFSET, fieldValue); } @@ -386,9 +361,7 @@ public static void linklen(MemorySegment struct, long fieldValue) { * H5O_stat_t ohdr * } */ - public static final GroupLayout ohdr$layout() { - return ohdr$LAYOUT; - } + public static final GroupLayout ohdr$layout() { return ohdr$LAYOUT; } private static final long ohdr$OFFSET = 56; @@ -398,9 +371,7 @@ public static void linklen(MemorySegment struct, long fieldValue) { * H5O_stat_t ohdr * } */ - public static final long ohdr$offset() { - return ohdr$OFFSET; - } + public static final long ohdr$offset() { return ohdr$OFFSET; } /** * Getter for field: @@ -408,7 +379,8 @@ public static void linklen(MemorySegment struct, long fieldValue) { * H5O_stat_t ohdr * } */ - public static MemorySegment ohdr(MemorySegment struct) { + public static MemorySegment ohdr(MemorySegment struct) + { return struct.asSlice(ohdr$OFFSET, ohdr$LAYOUT.byteSize()); } @@ -418,7 +390,8 @@ public static MemorySegment ohdr(MemorySegment struct) { * H5O_stat_t ohdr * } */ - public static void ohdr(MemorySegment struct, MemorySegment fieldValue) { + public static void ohdr(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, ohdr$OFFSET, ohdr$LAYOUT.byteSize()); } @@ -426,7 +399,8 @@ public static void ohdr(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -438,15 +412,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -454,7 +427,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -462,8 +436,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5I_free_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5I_free_t.java index 430e13097a0..1332a0e11b4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5I_free_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5I_free_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5I_free_t)(void *, void **) @@ -19,7 +19,8 @@ */ public class H5I_free_t { - H5I_free_t() { + H5I_free_t() + { // Should not be called directly } @@ -30,18 +31,13 @@ public interface Function { int apply(MemorySegment obj, MemorySegment request); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5I_free_t.Function.class, "apply", $DESC); @@ -49,7 +45,8 @@ public static FunctionDescriptor descriptor() { * 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(H5I_free_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5I_free_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +55,13 @@ public static MemorySegment allocate(H5I_free_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment obj, MemorySegment request) { + public static int invoke(MemorySegment funcPtr, MemorySegment obj, MemorySegment request) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, obj, request); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, obj, request); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5I_future_discard_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5I_future_discard_func_t.java index a8740590070..a1bb722b3a2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5I_future_discard_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5I_future_discard_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5I_future_discard_func_t)(void *) @@ -19,7 +19,8 @@ */ public class H5I_future_discard_func_t { - H5I_future_discard_func_t() { + H5I_future_discard_func_t() + { // Should not be called directly } @@ -30,25 +31,22 @@ public interface Function { int apply(MemorySegment future_object); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5I_future_discard_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5I_future_discard_func_t.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(H5I_future_discard_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5I_future_discard_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -57,12 +55,13 @@ public static MemorySegment allocate(H5I_future_discard_func_t.Function fi, Aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment future_object) { + public static int invoke(MemorySegment funcPtr, MemorySegment future_object) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, future_object); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, future_object); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5I_future_realize_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5I_future_realize_func_t.java index 90c6009a0e5..873cb24fb4e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5I_future_realize_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5I_future_realize_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5I_future_realize_func_t)(void *, hid_t *) @@ -19,7 +19,8 @@ */ public class H5I_future_realize_func_t { - H5I_future_realize_func_t() { + H5I_future_realize_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(MemorySegment future_object, MemorySegment actual_object_id); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5I_future_realize_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5I_future_realize_func_t.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(H5I_future_realize_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5I_future_realize_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,14 @@ public static MemorySegment allocate(H5I_future_realize_func_t.Function fi, Aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment future_object, MemorySegment actual_object_id) { + public static int invoke(MemorySegment funcPtr, MemorySegment future_object, + MemorySegment actual_object_id) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, future_object, actual_object_id); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, future_object, actual_object_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5I_iterate_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5I_iterate_func_t.java index 392afd7233c..0828e166d50 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5I_iterate_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5I_iterate_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5I_iterate_func_t)(hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5I_iterate_func_t { - H5I_iterate_func_t() { + H5I_iterate_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(long id, MemorySegment udata); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5I_iterate_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5I_iterate_func_t.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(H5I_iterate_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5I_iterate_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5I_iterate_func_t.Function fi, Arena arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long id, MemorySegment udata) { + public static int invoke(MemorySegment funcPtr, long id, MemorySegment udata) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, id, udata); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, id, udata); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5I_search_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5I_search_func_t.java index bed90d42b64..dcabe089536 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5I_search_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5I_search_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (*H5I_search_func_t)(void *, hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5I_search_func_t { - H5I_search_func_t() { + H5I_search_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment obj, long id, MemorySegment key); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5I_search_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5I_search_func_t.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(H5I_search_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5I_search_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5I_search_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment obj, long id, MemorySegment key) { + public static int invoke(MemorySegment funcPtr, MemorySegment obj, long id, MemorySegment key) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, obj, id, key); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, obj, id, key); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_class_0_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_class_0_t.java index 72cdf1218b4..6d6e480fcce 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_class_0_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_class_0_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -29,28 +29,24 @@ */ public class H5L_class_0_t { - H5L_class_0_t() { + H5L_class_0_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("id"), - hdf5_h.C_POINTER.withName("comment"), - hdf5_h.C_POINTER.withName("create_func"), - hdf5_h.C_POINTER.withName("move_func"), - hdf5_h.C_POINTER.withName("copy_func"), - hdf5_h.C_POINTER.withName("trav_func"), - hdf5_h.C_POINTER.withName("del_func"), - hdf5_h.C_POINTER.withName("query_func") - ).withName("$anon$310:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("id"), + hdf5_h.C_POINTER.withName("comment"), hdf5_h.C_POINTER.withName("create_func"), + hdf5_h.C_POINTER.withName("move_func"), hdf5_h.C_POINTER.withName("copy_func"), + hdf5_h.C_POINTER.withName("trav_func"), hdf5_h.C_POINTER.withName("del_func"), + hdf5_h.C_POINTER.withName("query_func")) + .withName("$anon$310:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -60,9 +56,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -82,9 +74,7 @@ public static final GroupLayout layout() { * int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -92,7 +82,8 @@ public static int version(MemorySegment struct) { * int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -104,9 +95,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static final OfInt id$layout() { - return id$LAYOUT; - } + public static final OfInt id$layout() { return id$LAYOUT; } private static final long id$OFFSET = 4; @@ -116,9 +105,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static final long id$offset() { - return id$OFFSET; - } + public static final long id$offset() { return id$OFFSET; } /** * Getter for field: @@ -126,9 +113,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static int id(MemorySegment struct) { - return struct.get(id$LAYOUT, id$OFFSET); - } + public static int id(MemorySegment struct) { return struct.get(id$LAYOUT, id$OFFSET); } /** * Setter for field: @@ -136,11 +121,13 @@ public static int id(MemorySegment struct) { * H5L_type_t id * } */ - public static void id(MemorySegment struct, int fieldValue) { + public static void id(MemorySegment struct, int fieldValue) + { struct.set(id$LAYOUT, id$OFFSET, fieldValue); } - private static final AddressLayout comment$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("comment")); + private static final AddressLayout comment$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("comment")); /** * Layout for field: @@ -148,9 +135,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static final AddressLayout comment$layout() { - return comment$LAYOUT; - } + public static final AddressLayout comment$layout() { return comment$LAYOUT; } private static final long comment$OFFSET = 8; @@ -160,9 +145,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static final long comment$offset() { - return comment$OFFSET; - } + public static final long comment$offset() { return comment$OFFSET; } /** * Getter for field: @@ -170,7 +153,8 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static MemorySegment comment(MemorySegment struct) { + public static MemorySegment comment(MemorySegment struct) + { return struct.get(comment$LAYOUT, comment$OFFSET); } @@ -180,11 +164,13 @@ public static MemorySegment comment(MemorySegment struct) { * const char *comment * } */ - public static void comment(MemorySegment struct, MemorySegment fieldValue) { + public static void comment(MemorySegment struct, MemorySegment fieldValue) + { struct.set(comment$LAYOUT, comment$OFFSET, fieldValue); } - private static final AddressLayout create_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("create_func")); + private static final AddressLayout create_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("create_func")); /** * Layout for field: @@ -192,9 +178,7 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static final AddressLayout create_func$layout() { - return create_func$LAYOUT; - } + public static final AddressLayout create_func$layout() { return create_func$LAYOUT; } private static final long create_func$OFFSET = 16; @@ -204,9 +188,7 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static final long create_func$offset() { - return create_func$OFFSET; - } + public static final long create_func$offset() { return create_func$OFFSET; } /** * Getter for field: @@ -214,7 +196,8 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static MemorySegment create_func(MemorySegment struct) { + public static MemorySegment create_func(MemorySegment struct) + { return struct.get(create_func$LAYOUT, create_func$OFFSET); } @@ -224,11 +207,13 @@ public static MemorySegment create_func(MemorySegment struct) { * H5L_create_func_t create_func * } */ - public static void create_func(MemorySegment struct, MemorySegment fieldValue) { + public static void create_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create_func$LAYOUT, create_func$OFFSET, fieldValue); } - private static final AddressLayout move_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("move_func")); + private static final AddressLayout move_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("move_func")); /** * Layout for field: @@ -236,9 +221,7 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static final AddressLayout move_func$layout() { - return move_func$LAYOUT; - } + public static final AddressLayout move_func$layout() { return move_func$LAYOUT; } private static final long move_func$OFFSET = 24; @@ -248,9 +231,7 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static final long move_func$offset() { - return move_func$OFFSET; - } + public static final long move_func$offset() { return move_func$OFFSET; } /** * Getter for field: @@ -258,7 +239,8 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static MemorySegment move_func(MemorySegment struct) { + public static MemorySegment move_func(MemorySegment struct) + { return struct.get(move_func$LAYOUT, move_func$OFFSET); } @@ -268,11 +250,13 @@ public static MemorySegment move_func(MemorySegment struct) { * H5L_move_func_t move_func * } */ - public static void move_func(MemorySegment struct, MemorySegment fieldValue) { + public static void move_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(move_func$LAYOUT, move_func$OFFSET, fieldValue); } - private static final AddressLayout copy_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("copy_func")); + private static final AddressLayout copy_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("copy_func")); /** * Layout for field: @@ -280,9 +264,7 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static final AddressLayout copy_func$layout() { - return copy_func$LAYOUT; - } + public static final AddressLayout copy_func$layout() { return copy_func$LAYOUT; } private static final long copy_func$OFFSET = 32; @@ -292,9 +274,7 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static final long copy_func$offset() { - return copy_func$OFFSET; - } + public static final long copy_func$offset() { return copy_func$OFFSET; } /** * Getter for field: @@ -302,7 +282,8 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static MemorySegment copy_func(MemorySegment struct) { + public static MemorySegment copy_func(MemorySegment struct) + { return struct.get(copy_func$LAYOUT, copy_func$OFFSET); } @@ -312,11 +293,13 @@ public static MemorySegment copy_func(MemorySegment struct) { * H5L_copy_func_t copy_func * } */ - public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { + public static void copy_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(copy_func$LAYOUT, copy_func$OFFSET, fieldValue); } - private static final AddressLayout trav_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("trav_func")); + private static final AddressLayout trav_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("trav_func")); /** * Layout for field: @@ -324,9 +307,7 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_0_func_t trav_func * } */ - public static final AddressLayout trav_func$layout() { - return trav_func$LAYOUT; - } + public static final AddressLayout trav_func$layout() { return trav_func$LAYOUT; } private static final long trav_func$OFFSET = 40; @@ -336,9 +317,7 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_0_func_t trav_func * } */ - public static final long trav_func$offset() { - return trav_func$OFFSET; - } + public static final long trav_func$offset() { return trav_func$OFFSET; } /** * Getter for field: @@ -346,7 +325,8 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_0_func_t trav_func * } */ - public static MemorySegment trav_func(MemorySegment struct) { + public static MemorySegment trav_func(MemorySegment struct) + { return struct.get(trav_func$LAYOUT, trav_func$OFFSET); } @@ -356,11 +336,13 @@ public static MemorySegment trav_func(MemorySegment struct) { * H5L_traverse_0_func_t trav_func * } */ - public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { + public static void trav_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(trav_func$LAYOUT, trav_func$OFFSET, fieldValue); } - private static final AddressLayout del_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("del_func")); + private static final AddressLayout del_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("del_func")); /** * Layout for field: @@ -368,9 +350,7 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static final AddressLayout del_func$layout() { - return del_func$LAYOUT; - } + public static final AddressLayout del_func$layout() { return del_func$LAYOUT; } private static final long del_func$OFFSET = 48; @@ -380,9 +360,7 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static final long del_func$offset() { - return del_func$OFFSET; - } + public static final long del_func$offset() { return del_func$OFFSET; } /** * Getter for field: @@ -390,7 +368,8 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static MemorySegment del_func(MemorySegment struct) { + public static MemorySegment del_func(MemorySegment struct) + { return struct.get(del_func$LAYOUT, del_func$OFFSET); } @@ -400,11 +379,13 @@ public static MemorySegment del_func(MemorySegment struct) { * H5L_delete_func_t del_func * } */ - public static void del_func(MemorySegment struct, MemorySegment fieldValue) { + public static void del_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(del_func$LAYOUT, del_func$OFFSET, fieldValue); } - private static final AddressLayout query_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("query_func")); + private static final AddressLayout query_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("query_func")); /** * Layout for field: @@ -412,9 +393,7 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static final AddressLayout query_func$layout() { - return query_func$LAYOUT; - } + public static final AddressLayout query_func$layout() { return query_func$LAYOUT; } private static final long query_func$OFFSET = 56; @@ -424,9 +403,7 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static final long query_func$offset() { - return query_func$OFFSET; - } + public static final long query_func$offset() { return query_func$OFFSET; } /** * Getter for field: @@ -434,7 +411,8 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static MemorySegment query_func(MemorySegment struct) { + public static MemorySegment query_func(MemorySegment struct) + { return struct.get(query_func$LAYOUT, query_func$OFFSET); } @@ -444,7 +422,8 @@ public static MemorySegment query_func(MemorySegment struct) { * H5L_query_func_t query_func * } */ - public static void query_func(MemorySegment struct, MemorySegment fieldValue) { + public static void query_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(query_func$LAYOUT, query_func$OFFSET, fieldValue); } @@ -452,7 +431,8 @@ public static void query_func(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -464,15 +444,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -480,7 +459,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -488,8 +468,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_class_t.java index 660fefb6d94..8049043a1f9 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -29,28 +29,24 @@ */ public class H5L_class_t { - H5L_class_t() { + H5L_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("id"), - hdf5_h.C_POINTER.withName("comment"), - hdf5_h.C_POINTER.withName("create_func"), - hdf5_h.C_POINTER.withName("move_func"), - hdf5_h.C_POINTER.withName("copy_func"), - hdf5_h.C_POINTER.withName("trav_func"), - hdf5_h.C_POINTER.withName("del_func"), - hdf5_h.C_POINTER.withName("query_func") - ).withName("$anon$93:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("id"), + hdf5_h.C_POINTER.withName("comment"), hdf5_h.C_POINTER.withName("create_func"), + hdf5_h.C_POINTER.withName("move_func"), hdf5_h.C_POINTER.withName("copy_func"), + hdf5_h.C_POINTER.withName("trav_func"), hdf5_h.C_POINTER.withName("del_func"), + hdf5_h.C_POINTER.withName("query_func")) + .withName("$anon$93:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -60,9 +56,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -82,9 +74,7 @@ public static final GroupLayout layout() { * int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -92,7 +82,8 @@ public static int version(MemorySegment struct) { * int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -104,9 +95,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static final OfInt id$layout() { - return id$LAYOUT; - } + public static final OfInt id$layout() { return id$LAYOUT; } private static final long id$OFFSET = 4; @@ -116,9 +105,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static final long id$offset() { - return id$OFFSET; - } + public static final long id$offset() { return id$OFFSET; } /** * Getter for field: @@ -126,9 +113,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5L_type_t id * } */ - public static int id(MemorySegment struct) { - return struct.get(id$LAYOUT, id$OFFSET); - } + public static int id(MemorySegment struct) { return struct.get(id$LAYOUT, id$OFFSET); } /** * Setter for field: @@ -136,11 +121,13 @@ public static int id(MemorySegment struct) { * H5L_type_t id * } */ - public static void id(MemorySegment struct, int fieldValue) { + public static void id(MemorySegment struct, int fieldValue) + { struct.set(id$LAYOUT, id$OFFSET, fieldValue); } - private static final AddressLayout comment$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("comment")); + private static final AddressLayout comment$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("comment")); /** * Layout for field: @@ -148,9 +135,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static final AddressLayout comment$layout() { - return comment$LAYOUT; - } + public static final AddressLayout comment$layout() { return comment$LAYOUT; } private static final long comment$OFFSET = 8; @@ -160,9 +145,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static final long comment$offset() { - return comment$OFFSET; - } + public static final long comment$offset() { return comment$OFFSET; } /** * Getter for field: @@ -170,7 +153,8 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *comment * } */ - public static MemorySegment comment(MemorySegment struct) { + public static MemorySegment comment(MemorySegment struct) + { return struct.get(comment$LAYOUT, comment$OFFSET); } @@ -180,11 +164,13 @@ public static MemorySegment comment(MemorySegment struct) { * const char *comment * } */ - public static void comment(MemorySegment struct, MemorySegment fieldValue) { + public static void comment(MemorySegment struct, MemorySegment fieldValue) + { struct.set(comment$LAYOUT, comment$OFFSET, fieldValue); } - private static final AddressLayout create_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("create_func")); + private static final AddressLayout create_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("create_func")); /** * Layout for field: @@ -192,9 +178,7 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static final AddressLayout create_func$layout() { - return create_func$LAYOUT; - } + public static final AddressLayout create_func$layout() { return create_func$LAYOUT; } private static final long create_func$OFFSET = 16; @@ -204,9 +188,7 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static final long create_func$offset() { - return create_func$OFFSET; - } + public static final long create_func$offset() { return create_func$OFFSET; } /** * Getter for field: @@ -214,7 +196,8 @@ public static void comment(MemorySegment struct, MemorySegment fieldValue) { * H5L_create_func_t create_func * } */ - public static MemorySegment create_func(MemorySegment struct) { + public static MemorySegment create_func(MemorySegment struct) + { return struct.get(create_func$LAYOUT, create_func$OFFSET); } @@ -224,11 +207,13 @@ public static MemorySegment create_func(MemorySegment struct) { * H5L_create_func_t create_func * } */ - public static void create_func(MemorySegment struct, MemorySegment fieldValue) { + public static void create_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create_func$LAYOUT, create_func$OFFSET, fieldValue); } - private static final AddressLayout move_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("move_func")); + private static final AddressLayout move_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("move_func")); /** * Layout for field: @@ -236,9 +221,7 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static final AddressLayout move_func$layout() { - return move_func$LAYOUT; - } + public static final AddressLayout move_func$layout() { return move_func$LAYOUT; } private static final long move_func$OFFSET = 24; @@ -248,9 +231,7 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static final long move_func$offset() { - return move_func$OFFSET; - } + public static final long move_func$offset() { return move_func$OFFSET; } /** * Getter for field: @@ -258,7 +239,8 @@ public static void create_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_move_func_t move_func * } */ - public static MemorySegment move_func(MemorySegment struct) { + public static MemorySegment move_func(MemorySegment struct) + { return struct.get(move_func$LAYOUT, move_func$OFFSET); } @@ -268,11 +250,13 @@ public static MemorySegment move_func(MemorySegment struct) { * H5L_move_func_t move_func * } */ - public static void move_func(MemorySegment struct, MemorySegment fieldValue) { + public static void move_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(move_func$LAYOUT, move_func$OFFSET, fieldValue); } - private static final AddressLayout copy_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("copy_func")); + private static final AddressLayout copy_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("copy_func")); /** * Layout for field: @@ -280,9 +264,7 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static final AddressLayout copy_func$layout() { - return copy_func$LAYOUT; - } + public static final AddressLayout copy_func$layout() { return copy_func$LAYOUT; } private static final long copy_func$OFFSET = 32; @@ -292,9 +274,7 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static final long copy_func$offset() { - return copy_func$OFFSET; - } + public static final long copy_func$offset() { return copy_func$OFFSET; } /** * Getter for field: @@ -302,7 +282,8 @@ public static void move_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_copy_func_t copy_func * } */ - public static MemorySegment copy_func(MemorySegment struct) { + public static MemorySegment copy_func(MemorySegment struct) + { return struct.get(copy_func$LAYOUT, copy_func$OFFSET); } @@ -312,11 +293,13 @@ public static MemorySegment copy_func(MemorySegment struct) { * H5L_copy_func_t copy_func * } */ - public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { + public static void copy_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(copy_func$LAYOUT, copy_func$OFFSET, fieldValue); } - private static final AddressLayout trav_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("trav_func")); + private static final AddressLayout trav_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("trav_func")); /** * Layout for field: @@ -324,9 +307,7 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_func_t trav_func * } */ - public static final AddressLayout trav_func$layout() { - return trav_func$LAYOUT; - } + public static final AddressLayout trav_func$layout() { return trav_func$LAYOUT; } private static final long trav_func$OFFSET = 40; @@ -336,9 +317,7 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_func_t trav_func * } */ - public static final long trav_func$offset() { - return trav_func$OFFSET; - } + public static final long trav_func$offset() { return trav_func$OFFSET; } /** * Getter for field: @@ -346,7 +325,8 @@ public static void copy_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_traverse_func_t trav_func * } */ - public static MemorySegment trav_func(MemorySegment struct) { + public static MemorySegment trav_func(MemorySegment struct) + { return struct.get(trav_func$LAYOUT, trav_func$OFFSET); } @@ -356,11 +336,13 @@ public static MemorySegment trav_func(MemorySegment struct) { * H5L_traverse_func_t trav_func * } */ - public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { + public static void trav_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(trav_func$LAYOUT, trav_func$OFFSET, fieldValue); } - private static final AddressLayout del_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("del_func")); + private static final AddressLayout del_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("del_func")); /** * Layout for field: @@ -368,9 +350,7 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static final AddressLayout del_func$layout() { - return del_func$LAYOUT; - } + public static final AddressLayout del_func$layout() { return del_func$LAYOUT; } private static final long del_func$OFFSET = 48; @@ -380,9 +360,7 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static final long del_func$offset() { - return del_func$OFFSET; - } + public static final long del_func$offset() { return del_func$OFFSET; } /** * Getter for field: @@ -390,7 +368,8 @@ public static void trav_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_delete_func_t del_func * } */ - public static MemorySegment del_func(MemorySegment struct) { + public static MemorySegment del_func(MemorySegment struct) + { return struct.get(del_func$LAYOUT, del_func$OFFSET); } @@ -400,11 +379,13 @@ public static MemorySegment del_func(MemorySegment struct) { * H5L_delete_func_t del_func * } */ - public static void del_func(MemorySegment struct, MemorySegment fieldValue) { + public static void del_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(del_func$LAYOUT, del_func$OFFSET, fieldValue); } - private static final AddressLayout query_func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("query_func")); + private static final AddressLayout query_func$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("query_func")); /** * Layout for field: @@ -412,9 +393,7 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static final AddressLayout query_func$layout() { - return query_func$LAYOUT; - } + public static final AddressLayout query_func$layout() { return query_func$LAYOUT; } private static final long query_func$OFFSET = 56; @@ -424,9 +403,7 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static final long query_func$offset() { - return query_func$OFFSET; - } + public static final long query_func$offset() { return query_func$OFFSET; } /** * Getter for field: @@ -434,7 +411,8 @@ public static void del_func(MemorySegment struct, MemorySegment fieldValue) { * H5L_query_func_t query_func * } */ - public static MemorySegment query_func(MemorySegment struct) { + public static MemorySegment query_func(MemorySegment struct) + { return struct.get(query_func$LAYOUT, query_func$OFFSET); } @@ -444,7 +422,8 @@ public static MemorySegment query_func(MemorySegment struct) { * H5L_query_func_t query_func * } */ - public static void query_func(MemorySegment struct, MemorySegment fieldValue) { + public static void query_func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(query_func$LAYOUT, query_func$OFFSET, fieldValue); } @@ -452,7 +431,8 @@ public static void query_func(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -464,15 +444,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -480,7 +459,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -488,8 +468,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_copy_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_copy_func_t.java index d1f78933753..b634b866535 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_copy_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_copy_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_copy_func_t)(const char *, hid_t, const void *, size_t) @@ -19,7 +19,8 @@ */ public class H5L_copy_func_t { - H5L_copy_func_t() { + H5L_copy_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(MemorySegment new_name, long new_loc, MemorySegment lnkdata, long lnkdata_size); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_copy_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_copy_func_t.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(H5L_copy_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_copy_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5L_copy_func_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment new_name, long new_loc, MemorySegment lnkdata, long lnkdata_size) { + public static int invoke(MemorySegment funcPtr, MemorySegment new_name, long new_loc, + MemorySegment lnkdata, long lnkdata_size) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, new_name, new_loc, lnkdata, lnkdata_size); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, new_name, new_loc, lnkdata, lnkdata_size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_create_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_create_func_t.java index eef8f2e3683..5aeae9dfbe4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_create_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_create_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_create_func_t)(const char *, hid_t, const void *, size_t, hid_t) @@ -19,7 +19,8 @@ */ public class H5L_create_func_t { - H5L_create_func_t() { + H5L_create_func_t() + { // Should not be called directly } @@ -27,32 +28,27 @@ public class H5L_create_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment link_name, long loc_group, MemorySegment lnkdata, long lnkdata_size, long lcpl_id); + int apply(MemorySegment link_name, long loc_group, MemorySegment lnkdata, long lnkdata_size, + long lcpl_id); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_create_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_create_func_t.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(H5L_create_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_create_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -61,12 +57,14 @@ public static MemorySegment allocate(H5L_create_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment link_name, long loc_group, MemorySegment lnkdata, long lnkdata_size, long lcpl_id) { + public static int invoke(MemorySegment funcPtr, MemorySegment link_name, long loc_group, + MemorySegment lnkdata, long lnkdata_size, long lcpl_id) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, link_name, loc_group, lnkdata, lnkdata_size, lcpl_id); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, link_name, loc_group, lnkdata, lnkdata_size, lcpl_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_delete_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_delete_func_t.java index 770144bcb6a..ef04f394d94 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_delete_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_delete_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_delete_func_t)(const char *, hid_t, const void *, size_t) @@ -19,7 +19,8 @@ */ public class H5L_delete_func_t { - H5L_delete_func_t() { + H5L_delete_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(MemorySegment link_name, long file, MemorySegment lnkdata, long lnkdata_size); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_delete_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_delete_func_t.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(H5L_delete_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_delete_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5L_delete_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment link_name, long file, MemorySegment lnkdata, long lnkdata_size) { + public static int invoke(MemorySegment funcPtr, MemorySegment link_name, long file, MemorySegment lnkdata, + long lnkdata_size) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, link_name, file, lnkdata, lnkdata_size); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, link_name, file, lnkdata, lnkdata_size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_elink_traverse_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_elink_traverse_t.java index 1879a9e4da9..411620302d1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_elink_traverse_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_elink_traverse_t.java @@ -2,24 +2,26 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : - * typedef herr_t (*H5L_elink_traverse_t)(const char *, const char *, const char *, const char *, unsigned int *, hid_t, void *) + * typedef herr_t (*H5L_elink_traverse_t)(const char *, const char *, const char *, const char *, unsigned int + * *, hid_t, void *) * } */ public class H5L_elink_traverse_t { - H5L_elink_traverse_t() { + H5L_elink_traverse_t() + { // Should not be called directly } @@ -27,34 +29,29 @@ public class H5L_elink_traverse_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment parent_file_name, MemorySegment parent_group_name, MemorySegment child_file_name, MemorySegment child_object_name, MemorySegment acc_flags, long fapl_id, MemorySegment op_data); + int apply(MemorySegment parent_file_name, MemorySegment parent_group_name, + MemorySegment child_file_name, MemorySegment child_object_name, MemorySegment acc_flags, + long fapl_id, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_elink_traverse_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_elink_traverse_t.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(H5L_elink_traverse_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_elink_traverse_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -63,12 +60,17 @@ public static MemorySegment allocate(H5L_elink_traverse_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment parent_file_name, MemorySegment parent_group_name, MemorySegment child_file_name, MemorySegment child_object_name, MemorySegment acc_flags, long fapl_id, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment parent_file_name, + MemorySegment parent_group_name, MemorySegment child_file_name, + MemorySegment child_object_name, MemorySegment acc_flags, long fapl_id, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, parent_file_name, parent_group_name, child_file_name, child_object_name, acc_flags, fapl_id, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, parent_file_name, parent_group_name, child_file_name, + child_object_name, acc_flags, fapl_id, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_info1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_info1_t.java index 68f794697e8..0328ea497f4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_info1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_info1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -28,26 +28,23 @@ */ public class H5L_info1_t { - H5L_info1_t() { + H5L_info1_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - hdf5_h.C_BOOL.withName("corder_valid"), - MemoryLayout.paddingLayout(3), - hdf5_h.C_LONG.withName("corder"), - hdf5_h.C_INT.withName("cset"), - MemoryLayout.paddingLayout(4), - H5L_info1_t.u.layout().withName("u") - ).withName("$anon$1462:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), hdf5_h.C_BOOL.withName("corder_valid"), + MemoryLayout.paddingLayout(3), hdf5_h.C_LONG.withName("corder"), + hdf5_h.C_INT.withName("cset"), MemoryLayout.paddingLayout(4), + H5L_info1_t.u.layout().withName("u")) + .withName("$anon$1462:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -57,9 +54,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -79,9 +72,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -89,11 +80,13 @@ public static int type(MemorySegment struct) { * H5L_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } - private static final OfBoolean corder_valid$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); + private static final OfBoolean corder_valid$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); /** * Layout for field: @@ -101,9 +94,7 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static final OfBoolean corder_valid$layout() { - return corder_valid$LAYOUT; - } + public static final OfBoolean corder_valid$layout() { return corder_valid$LAYOUT; } private static final long corder_valid$OFFSET = 4; @@ -113,9 +104,7 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static final long corder_valid$offset() { - return corder_valid$OFFSET; - } + public static final long corder_valid$offset() { return corder_valid$OFFSET; } /** * Getter for field: @@ -123,7 +112,8 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static boolean corder_valid(MemorySegment struct) { + public static boolean corder_valid(MemorySegment struct) + { return struct.get(corder_valid$LAYOUT, corder_valid$OFFSET); } @@ -133,7 +123,8 @@ public static boolean corder_valid(MemorySegment struct) { * hbool_t corder_valid * } */ - public static void corder_valid(MemorySegment struct, boolean fieldValue) { + public static void corder_valid(MemorySegment struct, boolean fieldValue) + { struct.set(corder_valid$LAYOUT, corder_valid$OFFSET, fieldValue); } @@ -145,9 +136,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static final OfLong corder$layout() { - return corder$LAYOUT; - } + public static final OfLong corder$layout() { return corder$LAYOUT; } private static final long corder$OFFSET = 8; @@ -157,9 +146,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static final long corder$offset() { - return corder$OFFSET; - } + public static final long corder$offset() { return corder$OFFSET; } /** * Getter for field: @@ -167,9 +154,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static long corder(MemorySegment struct) { - return struct.get(corder$LAYOUT, corder$OFFSET); - } + public static long corder(MemorySegment struct) { return struct.get(corder$LAYOUT, corder$OFFSET); } /** * Setter for field: @@ -177,7 +162,8 @@ public static long corder(MemorySegment struct) { * int64_t corder * } */ - public static void corder(MemorySegment struct, long fieldValue) { + public static void corder(MemorySegment struct, long fieldValue) + { struct.set(corder$LAYOUT, corder$OFFSET, fieldValue); } @@ -189,9 +175,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static final OfInt cset$layout() { - return cset$LAYOUT; - } + public static final OfInt cset$layout() { return cset$LAYOUT; } private static final long cset$OFFSET = 16; @@ -201,9 +185,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static final long cset$offset() { - return cset$OFFSET; - } + public static final long cset$offset() { return cset$OFFSET; } /** * Getter for field: @@ -211,9 +193,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static int cset(MemorySegment struct) { - return struct.get(cset$LAYOUT, cset$OFFSET); - } + public static int cset(MemorySegment struct) { return struct.get(cset$LAYOUT, cset$OFFSET); } /** * Setter for field: @@ -221,7 +201,8 @@ public static int cset(MemorySegment struct) { * H5T_cset_t cset * } */ - public static void cset(MemorySegment struct, int fieldValue) { + public static void cset(MemorySegment struct, int fieldValue) + { struct.set(cset$LAYOUT, cset$OFFSET, fieldValue); } @@ -235,21 +216,19 @@ public static void cset(MemorySegment struct, int fieldValue) { */ public static class u { - u() { + u() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - hdf5_h.C_LONG.withName("address"), - hdf5_h.C_LONG.withName("val_size") - ).withName("$anon$1467:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.unionLayout(hdf5_h.C_LONG.withName("address"), hdf5_h.C_LONG.withName("val_size")) + .withName("$anon$1467:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong address$LAYOUT = (OfLong)$LAYOUT.select(groupElement("address")); @@ -259,9 +238,7 @@ public static final GroupLayout layout() { * haddr_t address * } */ - public static final OfLong address$layout() { - return address$LAYOUT; - } + public static final OfLong address$layout() { return address$LAYOUT; } private static final long address$OFFSET = 0; @@ -271,9 +248,7 @@ public static final GroupLayout layout() { * haddr_t address * } */ - public static final long address$offset() { - return address$OFFSET; - } + public static final long address$offset() { return address$OFFSET; } /** * Getter for field: @@ -281,9 +256,7 @@ public static final GroupLayout layout() { * haddr_t address * } */ - public static long address(MemorySegment union) { - return union.get(address$LAYOUT, address$OFFSET); - } + public static long address(MemorySegment union) { return union.get(address$LAYOUT, address$OFFSET); } /** * Setter for field: @@ -291,7 +264,8 @@ public static long address(MemorySegment union) { * haddr_t address * } */ - public static void address(MemorySegment union, long fieldValue) { + public static void address(MemorySegment union, long fieldValue) + { union.set(address$LAYOUT, address$OFFSET, fieldValue); } @@ -303,9 +277,7 @@ public static void address(MemorySegment union, long fieldValue) { * size_t val_size * } */ - public static final OfLong val_size$layout() { - return val_size$LAYOUT; - } + public static final OfLong val_size$layout() { return val_size$LAYOUT; } private static final long val_size$OFFSET = 0; @@ -315,9 +287,7 @@ public static void address(MemorySegment union, long fieldValue) { * size_t val_size * } */ - public static final long val_size$offset() { - return val_size$OFFSET; - } + public static final long val_size$offset() { return val_size$OFFSET; } /** * Getter for field: @@ -325,7 +295,8 @@ public static void address(MemorySegment union, long fieldValue) { * size_t val_size * } */ - public static long val_size(MemorySegment union) { + public static long val_size(MemorySegment union) + { return union.get(val_size$LAYOUT, val_size$OFFSET); } @@ -335,7 +306,8 @@ public static long val_size(MemorySegment union) { * size_t val_size * } */ - public static void val_size(MemorySegment union, long fieldValue) { + public static void val_size(MemorySegment union, long fieldValue) + { union.set(val_size$LAYOUT, val_size$OFFSET, fieldValue); } @@ -343,7 +315,8 @@ public static void val_size(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -355,7 +328,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -363,7 +337,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -371,7 +346,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -379,7 +356,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -395,9 +374,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final GroupLayout u$layout() { - return u$LAYOUT; - } + public static final GroupLayout u$layout() { return u$LAYOUT; } private static final long u$OFFSET = 24; @@ -410,9 +387,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final long u$offset() { - return u$OFFSET; - } + public static final long u$offset() { return u$OFFSET; } /** * Getter for field: @@ -423,7 +398,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static MemorySegment u(MemorySegment struct) { + public static MemorySegment u(MemorySegment struct) + { return struct.asSlice(u$OFFSET, u$LAYOUT.byteSize()); } @@ -436,7 +412,8 @@ public static MemorySegment u(MemorySegment struct) { * } u * } */ - public static void u(MemorySegment struct, MemorySegment fieldValue) { + public static void u(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, u$OFFSET, u$LAYOUT.byteSize()); } @@ -444,7 +421,8 @@ public static void u(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -456,15 +434,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -472,7 +449,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -480,8 +458,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_info2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_info2_t.java index 16c085442f4..874f28e4adf 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_info2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_info2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -28,26 +28,23 @@ */ public class H5L_info2_t { - H5L_info2_t() { + H5L_info2_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - hdf5_h.C_BOOL.withName("corder_valid"), - MemoryLayout.paddingLayout(3), - hdf5_h.C_LONG.withName("corder"), - hdf5_h.C_INT.withName("cset"), - MemoryLayout.paddingLayout(4), - H5L_info2_t.u.layout().withName("u") - ).withName("$anon$87:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), hdf5_h.C_BOOL.withName("corder_valid"), + MemoryLayout.paddingLayout(3), hdf5_h.C_LONG.withName("corder"), + hdf5_h.C_INT.withName("cset"), MemoryLayout.paddingLayout(4), + H5L_info2_t.u.layout().withName("u")) + .withName("$anon$87:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -57,9 +54,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -79,9 +72,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -89,11 +80,13 @@ public static int type(MemorySegment struct) { * H5L_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } - private static final OfBoolean corder_valid$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); + private static final OfBoolean corder_valid$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("corder_valid")); /** * Layout for field: @@ -101,9 +94,7 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static final OfBoolean corder_valid$layout() { - return corder_valid$LAYOUT; - } + public static final OfBoolean corder_valid$layout() { return corder_valid$LAYOUT; } private static final long corder_valid$OFFSET = 4; @@ -113,9 +104,7 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static final long corder_valid$offset() { - return corder_valid$OFFSET; - } + public static final long corder_valid$offset() { return corder_valid$OFFSET; } /** * Getter for field: @@ -123,7 +112,8 @@ public static void type(MemorySegment struct, int fieldValue) { * hbool_t corder_valid * } */ - public static boolean corder_valid(MemorySegment struct) { + public static boolean corder_valid(MemorySegment struct) + { return struct.get(corder_valid$LAYOUT, corder_valid$OFFSET); } @@ -133,7 +123,8 @@ public static boolean corder_valid(MemorySegment struct) { * hbool_t corder_valid * } */ - public static void corder_valid(MemorySegment struct, boolean fieldValue) { + public static void corder_valid(MemorySegment struct, boolean fieldValue) + { struct.set(corder_valid$LAYOUT, corder_valid$OFFSET, fieldValue); } @@ -145,9 +136,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static final OfLong corder$layout() { - return corder$LAYOUT; - } + public static final OfLong corder$layout() { return corder$LAYOUT; } private static final long corder$OFFSET = 8; @@ -157,9 +146,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static final long corder$offset() { - return corder$OFFSET; - } + public static final long corder$offset() { return corder$OFFSET; } /** * Getter for field: @@ -167,9 +154,7 @@ public static void corder_valid(MemorySegment struct, boolean fieldValue) { * int64_t corder * } */ - public static long corder(MemorySegment struct) { - return struct.get(corder$LAYOUT, corder$OFFSET); - } + public static long corder(MemorySegment struct) { return struct.get(corder$LAYOUT, corder$OFFSET); } /** * Setter for field: @@ -177,7 +162,8 @@ public static long corder(MemorySegment struct) { * int64_t corder * } */ - public static void corder(MemorySegment struct, long fieldValue) { + public static void corder(MemorySegment struct, long fieldValue) + { struct.set(corder$LAYOUT, corder$OFFSET, fieldValue); } @@ -189,9 +175,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static final OfInt cset$layout() { - return cset$LAYOUT; - } + public static final OfInt cset$layout() { return cset$LAYOUT; } private static final long cset$OFFSET = 16; @@ -201,9 +185,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static final long cset$offset() { - return cset$OFFSET; - } + public static final long cset$offset() { return cset$OFFSET; } /** * Getter for field: @@ -211,9 +193,7 @@ public static void corder(MemorySegment struct, long fieldValue) { * H5T_cset_t cset * } */ - public static int cset(MemorySegment struct) { - return struct.get(cset$LAYOUT, cset$OFFSET); - } + public static int cset(MemorySegment struct) { return struct.get(cset$LAYOUT, cset$OFFSET); } /** * Setter for field: @@ -221,7 +201,8 @@ public static int cset(MemorySegment struct) { * H5T_cset_t cset * } */ - public static void cset(MemorySegment struct, int fieldValue) { + public static void cset(MemorySegment struct, int fieldValue) + { struct.set(cset$LAYOUT, cset$OFFSET, fieldValue); } @@ -235,21 +216,20 @@ public static void cset(MemorySegment struct, int fieldValue) { */ public static class u { - u() { + u() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5O_token_t.layout().withName("token"), - hdf5_h.C_LONG.withName("val_size") - ).withName("$anon$92:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5O_token_t.layout().withName("token"), hdf5_h.C_LONG.withName("val_size")) + .withName("$anon$92:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout token$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("token")); @@ -259,9 +239,7 @@ public static final GroupLayout layout() { * H5O_token_t token * } */ - public static final GroupLayout token$layout() { - return token$LAYOUT; - } + public static final GroupLayout token$layout() { return token$LAYOUT; } private static final long token$OFFSET = 0; @@ -271,9 +249,7 @@ public static final GroupLayout layout() { * H5O_token_t token * } */ - public static final long token$offset() { - return token$OFFSET; - } + public static final long token$offset() { return token$OFFSET; } /** * Getter for field: @@ -281,7 +257,8 @@ public static final GroupLayout layout() { * H5O_token_t token * } */ - public static MemorySegment token(MemorySegment union) { + public static MemorySegment token(MemorySegment union) + { return union.asSlice(token$OFFSET, token$LAYOUT.byteSize()); } @@ -291,7 +268,8 @@ public static MemorySegment token(MemorySegment union) { * H5O_token_t token * } */ - public static void token(MemorySegment union, MemorySegment fieldValue) { + public static void token(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, token$OFFSET, token$LAYOUT.byteSize()); } @@ -303,9 +281,7 @@ public static void token(MemorySegment union, MemorySegment fieldValue) { * size_t val_size * } */ - public static final OfLong val_size$layout() { - return val_size$LAYOUT; - } + public static final OfLong val_size$layout() { return val_size$LAYOUT; } private static final long val_size$OFFSET = 0; @@ -315,9 +291,7 @@ public static void token(MemorySegment union, MemorySegment fieldValue) { * size_t val_size * } */ - public static final long val_size$offset() { - return val_size$OFFSET; - } + public static final long val_size$offset() { return val_size$OFFSET; } /** * Getter for field: @@ -325,7 +299,8 @@ public static void token(MemorySegment union, MemorySegment fieldValue) { * size_t val_size * } */ - public static long val_size(MemorySegment union) { + public static long val_size(MemorySegment union) + { return union.get(val_size$LAYOUT, val_size$OFFSET); } @@ -335,7 +310,8 @@ public static long val_size(MemorySegment union) { * size_t val_size * } */ - public static void val_size(MemorySegment union, long fieldValue) { + public static void val_size(MemorySegment union, long fieldValue) + { union.set(val_size$LAYOUT, val_size$OFFSET, fieldValue); } @@ -343,7 +319,8 @@ public static void val_size(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -355,7 +332,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -363,7 +341,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -371,7 +350,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -379,7 +360,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -395,9 +378,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final GroupLayout u$layout() { - return u$LAYOUT; - } + public static final GroupLayout u$layout() { return u$LAYOUT; } private static final long u$OFFSET = 24; @@ -410,9 +391,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final long u$offset() { - return u$OFFSET; - } + public static final long u$offset() { return u$OFFSET; } /** * Getter for field: @@ -423,7 +402,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static MemorySegment u(MemorySegment struct) { + public static MemorySegment u(MemorySegment struct) + { return struct.asSlice(u$OFFSET, u$LAYOUT.byteSize()); } @@ -436,7 +416,8 @@ public static MemorySegment u(MemorySegment struct) { * } u * } */ - public static void u(MemorySegment struct, MemorySegment fieldValue) { + public static void u(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, u$OFFSET, u$LAYOUT.byteSize()); } @@ -444,7 +425,8 @@ public static void u(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -456,15 +438,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -472,7 +453,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -480,8 +462,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate1_t.java index 1e4aa4b9307..7979a047cd4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_iterate1_t)(hid_t, const char *, const H5L_info1_t *, void *) @@ -19,7 +19,8 @@ */ public class H5L_iterate1_t { - H5L_iterate1_t() { + H5L_iterate1_t() + { // Should not be called directly } @@ -31,27 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_iterate1_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_iterate1_t.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(H5L_iterate1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_iterate1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5L_iterate1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long group, MemorySegment name, MemorySegment info, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long group, MemorySegment name, MemorySegment info, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, group, name, info, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, group, name, info, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate2_t.java index ef6a4bf523f..d1cf13279be 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_iterate2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_iterate2_t)(hid_t, const char *, const H5L_info2_t *, void *) @@ -19,7 +19,8 @@ */ public class H5L_iterate2_t { - H5L_iterate2_t() { + H5L_iterate2_t() + { // Should not be called directly } @@ -31,27 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_iterate2_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_iterate2_t.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(H5L_iterate2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_iterate2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5L_iterate2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long group, MemorySegment name, MemorySegment info, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long group, MemorySegment name, MemorySegment info, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, group, name, info, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, group, name, info, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_move_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_move_func_t.java index b7f1481c890..6169b5e6aba 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_move_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_move_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5L_move_func_t)(const char *, hid_t, const void *, size_t) @@ -19,7 +19,8 @@ */ public class H5L_move_func_t { - H5L_move_func_t() { + H5L_move_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(MemorySegment new_name, long new_loc, MemorySegment lnkdata, long lnkdata_size); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_move_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_move_func_t.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(H5L_move_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_move_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5L_move_func_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment new_name, long new_loc, MemorySegment lnkdata, long lnkdata_size) { + public static int invoke(MemorySegment funcPtr, MemorySegment new_name, long new_loc, + MemorySegment lnkdata, long lnkdata_size) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, new_name, new_loc, lnkdata, lnkdata_size); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, new_name, new_loc, lnkdata, lnkdata_size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_query_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_query_func_t.java index 62c1ea20471..8928d96e9cf 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_query_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_query_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef ssize_t (*H5L_query_func_t)(const char *, const void *, size_t, void *, size_t) @@ -19,7 +19,8 @@ */ public class H5L_query_func_t { - H5L_query_func_t() { + H5L_query_func_t() + { // Should not be called directly } @@ -27,32 +28,27 @@ public class H5L_query_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - long apply(MemorySegment link_name, MemorySegment lnkdata, long lnkdata_size, MemorySegment buf, long buf_size); + long apply(MemorySegment link_name, MemorySegment lnkdata, long lnkdata_size, MemorySegment buf, + long buf_size); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_query_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_query_func_t.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(H5L_query_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_query_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -61,12 +57,14 @@ public static MemorySegment allocate(H5L_query_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment link_name, MemorySegment lnkdata, long lnkdata_size, MemorySegment buf, long buf_size) { + public static long invoke(MemorySegment funcPtr, MemorySegment link_name, MemorySegment lnkdata, + long lnkdata_size, MemorySegment buf, long buf_size) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, link_name, lnkdata, lnkdata_size, buf, buf_size); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, link_name, lnkdata, lnkdata_size, buf, buf_size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_0_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_0_func_t.java index 49e440acbee..9dcab6bf4dd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_0_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_0_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef hid_t (*H5L_traverse_0_func_t)(const char *, hid_t, const void *, size_t, hid_t) @@ -19,7 +19,8 @@ */ public class H5L_traverse_0_func_t { - H5L_traverse_0_func_t() { + H5L_traverse_0_func_t() + { // Should not be called directly } @@ -27,32 +28,27 @@ public class H5L_traverse_0_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - long apply(MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, long lapl_id); + long apply(MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, + long lapl_id); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_traverse_0_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_traverse_0_func_t.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(H5L_traverse_0_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_traverse_0_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -61,12 +57,14 @@ public static MemorySegment allocate(H5L_traverse_0_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, long lapl_id) { + public static long invoke(MemorySegment funcPtr, MemorySegment link_name, long cur_group, + MemorySegment lnkdata, long lnkdata_size, long lapl_id) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, link_name, cur_group, lnkdata, lnkdata_size, lapl_id); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, link_name, cur_group, lnkdata, lnkdata_size, lapl_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_func_t.java index 99b3db4940f..4b8e179361a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5L_traverse_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef hid_t (*H5L_traverse_func_t)(const char *, hid_t, const void *, size_t, hid_t, hid_t) @@ -19,7 +19,8 @@ */ public class H5L_traverse_func_t { - H5L_traverse_func_t() { + H5L_traverse_func_t() + { // Should not be called directly } @@ -27,33 +28,28 @@ public class H5L_traverse_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - long apply(MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, long lapl_id, long dxpl_id); + long apply(MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, + long lapl_id, long dxpl_id); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5L_traverse_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5L_traverse_func_t.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(H5L_traverse_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5L_traverse_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -62,12 +58,15 @@ public static MemorySegment allocate(H5L_traverse_func_t.Function fi, Arena aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment link_name, long cur_group, MemorySegment lnkdata, long lnkdata_size, long lapl_id, long dxpl_id) { + public static long invoke(MemorySegment funcPtr, MemorySegment link_name, long cur_group, + MemorySegment lnkdata, long lnkdata_size, long lapl_id, long dxpl_id) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, link_name, cur_group, lnkdata, lnkdata_size, lapl_id, dxpl_id); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, link_name, cur_group, lnkdata, lnkdata_size, lapl_id, + dxpl_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5MM_allocate_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5MM_allocate_t.java index 45937aea1f9..a6e049fedac 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5MM_allocate_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5MM_allocate_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef void *(*H5MM_allocate_t)(size_t, void *) @@ -19,7 +19,8 @@ */ public class H5MM_allocate_t { - H5MM_allocate_t() { + H5MM_allocate_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { MemorySegment apply(long size, MemorySegment alloc_info); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5MM_allocate_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5MM_allocate_t.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(H5MM_allocate_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5MM_allocate_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5MM_allocate_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,long size, MemorySegment alloc_info) { + public static MemorySegment invoke(MemorySegment funcPtr, long size, MemorySegment alloc_info) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, size, alloc_info); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, size, alloc_info); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5MM_free_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5MM_free_t.java index 6f96ba27ae0..e0ed2a91fed 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5MM_free_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5MM_free_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef void (*H5MM_free_t)(void *, void *) @@ -19,7 +19,8 @@ */ public class H5MM_free_t { - H5MM_free_t() { + H5MM_free_t() + { // Should not be called directly } @@ -30,17 +31,13 @@ public interface Function { void apply(MemorySegment mem, MemorySegment free_info); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.ofVoid(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5MM_free_t.Function.class, "apply", $DESC); @@ -48,7 +45,8 @@ public static FunctionDescriptor descriptor() { * 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(H5MM_free_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5MM_free_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -57,12 +55,13 @@ public static MemorySegment allocate(H5MM_free_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static void invoke(MemorySegment funcPtr,MemorySegment mem, MemorySegment free_info) { + public static void invoke(MemorySegment funcPtr, MemorySegment mem, MemorySegment free_info) + { try { - DOWN$MH.invokeExact(funcPtr, mem, free_info); - } catch (Throwable ex$) { + DOWN$MH.invokeExact(funcPtr, mem, free_info); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5M_iterate_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5M_iterate_t.java index 79cf9117357..6d821a4b07a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5M_iterate_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5M_iterate_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5M_iterate_t)(hid_t, const void *, void *) @@ -19,7 +19,8 @@ */ public class H5M_iterate_t { - H5M_iterate_t() { + H5M_iterate_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long map_id, MemorySegment key, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5M_iterate_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5M_iterate_t.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(H5M_iterate_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5M_iterate_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5M_iterate_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long map_id, MemorySegment key, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long map_id, MemorySegment key, MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, map_id, key, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, map_id, key, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_hdr_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_hdr_info_t.java index 9dc1a6f522d..a152fb68fb3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_hdr_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_hdr_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_hdr_info_t { @@ -34,25 +34,23 @@ */ public class H5O_hdr_info_t { - H5O_hdr_info_t() { + H5O_hdr_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("nmesgs"), - hdf5_h.C_INT.withName("nchunks"), - hdf5_h.C_INT.withName("flags"), - H5O_hdr_info_t.space.layout().withName("space"), - H5O_hdr_info_t.mesg.layout().withName("mesg") - ).withName("H5O_hdr_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("nmesgs"), + hdf5_h.C_INT.withName("nchunks"), hdf5_h.C_INT.withName("flags"), + H5O_hdr_info_t.space.layout().withName("space"), + H5O_hdr_info_t.mesg.layout().withName("mesg")) + .withName("H5O_hdr_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -62,9 +60,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -74,9 +70,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -84,9 +78,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -94,7 +86,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -106,9 +99,7 @@ public static void version(MemorySegment struct, int fieldValue) { * unsigned int nmesgs * } */ - public static final OfInt nmesgs$layout() { - return nmesgs$LAYOUT; - } + public static final OfInt nmesgs$layout() { return nmesgs$LAYOUT; } private static final long nmesgs$OFFSET = 4; @@ -118,9 +109,7 @@ public static void version(MemorySegment struct, int fieldValue) { * unsigned int nmesgs * } */ - public static final long nmesgs$offset() { - return nmesgs$OFFSET; - } + public static final long nmesgs$offset() { return nmesgs$OFFSET; } /** * Getter for field: @@ -128,9 +117,7 @@ public static void version(MemorySegment struct, int fieldValue) { * unsigned int nmesgs * } */ - public static int nmesgs(MemorySegment struct) { - return struct.get(nmesgs$LAYOUT, nmesgs$OFFSET); - } + public static int nmesgs(MemorySegment struct) { return struct.get(nmesgs$LAYOUT, nmesgs$OFFSET); } /** * Setter for field: @@ -138,7 +125,8 @@ public static int nmesgs(MemorySegment struct) { * unsigned int nmesgs * } */ - public static void nmesgs(MemorySegment struct, int fieldValue) { + public static void nmesgs(MemorySegment struct, int fieldValue) + { struct.set(nmesgs$LAYOUT, nmesgs$OFFSET, fieldValue); } @@ -150,9 +138,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static final OfInt nchunks$layout() { - return nchunks$LAYOUT; - } + public static final OfInt nchunks$layout() { return nchunks$LAYOUT; } private static final long nchunks$OFFSET = 8; @@ -162,9 +148,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static final long nchunks$offset() { - return nchunks$OFFSET; - } + public static final long nchunks$offset() { return nchunks$OFFSET; } /** * Getter for field: @@ -172,9 +156,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static int nchunks(MemorySegment struct) { - return struct.get(nchunks$LAYOUT, nchunks$OFFSET); - } + public static int nchunks(MemorySegment struct) { return struct.get(nchunks$LAYOUT, nchunks$OFFSET); } /** * Setter for field: @@ -182,7 +164,8 @@ public static int nchunks(MemorySegment struct) { * unsigned int nchunks * } */ - public static void nchunks(MemorySegment struct, int fieldValue) { + public static void nchunks(MemorySegment struct, int fieldValue) + { struct.set(nchunks$LAYOUT, nchunks$OFFSET, fieldValue); } @@ -194,9 +177,7 @@ public static void nchunks(MemorySegment struct, int fieldValue) { * unsigned int flags * } */ - public static final OfInt flags$layout() { - return flags$LAYOUT; - } + public static final OfInt flags$layout() { return flags$LAYOUT; } private static final long flags$OFFSET = 12; @@ -206,9 +187,7 @@ public static void nchunks(MemorySegment struct, int fieldValue) { * unsigned int flags * } */ - public static final long flags$offset() { - return flags$OFFSET; - } + public static final long flags$offset() { return flags$OFFSET; } /** * Getter for field: @@ -216,9 +195,7 @@ public static void nchunks(MemorySegment struct, int fieldValue) { * unsigned int flags * } */ - public static int flags(MemorySegment struct) { - return struct.get(flags$LAYOUT, flags$OFFSET); - } + public static int flags(MemorySegment struct) { return struct.get(flags$LAYOUT, flags$OFFSET); } /** * Setter for field: @@ -226,7 +203,8 @@ public static int flags(MemorySegment struct) { * unsigned int flags * } */ - public static void flags(MemorySegment struct, int fieldValue) { + public static void flags(MemorySegment struct, int fieldValue) + { struct.set(flags$LAYOUT, flags$OFFSET, fieldValue); } @@ -242,23 +220,21 @@ public static void flags(MemorySegment struct, int fieldValue) { */ public static class space { - space() { + space() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("total"), - hdf5_h.C_LONG.withName("meta"), - hdf5_h.C_LONG.withName("mesg"), - hdf5_h.C_LONG.withName("free") - ).withName("$anon$127:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("total"), hdf5_h.C_LONG.withName("meta"), + hdf5_h.C_LONG.withName("mesg"), hdf5_h.C_LONG.withName("free")) + .withName("$anon$127:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong total$LAYOUT = (OfLong)$LAYOUT.select(groupElement("total")); @@ -268,9 +244,7 @@ public static final GroupLayout layout() { * hsize_t total * } */ - public static final OfLong total$layout() { - return total$LAYOUT; - } + public static final OfLong total$layout() { return total$LAYOUT; } private static final long total$OFFSET = 0; @@ -280,9 +254,7 @@ public static final GroupLayout layout() { * hsize_t total * } */ - public static final long total$offset() { - return total$OFFSET; - } + public static final long total$offset() { return total$OFFSET; } /** * Getter for field: @@ -290,9 +262,7 @@ public static final GroupLayout layout() { * hsize_t total * } */ - public static long total(MemorySegment struct) { - return struct.get(total$LAYOUT, total$OFFSET); - } + public static long total(MemorySegment struct) { return struct.get(total$LAYOUT, total$OFFSET); } /** * Setter for field: @@ -300,7 +270,8 @@ public static long total(MemorySegment struct) { * hsize_t total * } */ - public static void total(MemorySegment struct, long fieldValue) { + public static void total(MemorySegment struct, long fieldValue) + { struct.set(total$LAYOUT, total$OFFSET, fieldValue); } @@ -312,9 +283,7 @@ public static void total(MemorySegment struct, long fieldValue) { * hsize_t meta * } */ - public static final OfLong meta$layout() { - return meta$LAYOUT; - } + public static final OfLong meta$layout() { return meta$LAYOUT; } private static final long meta$OFFSET = 8; @@ -324,9 +293,7 @@ public static void total(MemorySegment struct, long fieldValue) { * hsize_t meta * } */ - public static final long meta$offset() { - return meta$OFFSET; - } + public static final long meta$offset() { return meta$OFFSET; } /** * Getter for field: @@ -334,9 +301,7 @@ public static void total(MemorySegment struct, long fieldValue) { * hsize_t meta * } */ - public static long meta(MemorySegment struct) { - return struct.get(meta$LAYOUT, meta$OFFSET); - } + public static long meta(MemorySegment struct) { return struct.get(meta$LAYOUT, meta$OFFSET); } /** * Setter for field: @@ -344,7 +309,8 @@ public static long meta(MemorySegment struct) { * hsize_t meta * } */ - public static void meta(MemorySegment struct, long fieldValue) { + public static void meta(MemorySegment struct, long fieldValue) + { struct.set(meta$LAYOUT, meta$OFFSET, fieldValue); } @@ -356,9 +322,7 @@ public static void meta(MemorySegment struct, long fieldValue) { * hsize_t mesg * } */ - public static final OfLong mesg$layout() { - return mesg$LAYOUT; - } + public static final OfLong mesg$layout() { return mesg$LAYOUT; } private static final long mesg$OFFSET = 16; @@ -368,9 +332,7 @@ public static void meta(MemorySegment struct, long fieldValue) { * hsize_t mesg * } */ - public static final long mesg$offset() { - return mesg$OFFSET; - } + public static final long mesg$offset() { return mesg$OFFSET; } /** * Getter for field: @@ -378,9 +340,7 @@ public static void meta(MemorySegment struct, long fieldValue) { * hsize_t mesg * } */ - public static long mesg(MemorySegment struct) { - return struct.get(mesg$LAYOUT, mesg$OFFSET); - } + public static long mesg(MemorySegment struct) { return struct.get(mesg$LAYOUT, mesg$OFFSET); } /** * Setter for field: @@ -388,7 +348,8 @@ public static long mesg(MemorySegment struct) { * hsize_t mesg * } */ - public static void mesg(MemorySegment struct, long fieldValue) { + public static void mesg(MemorySegment struct, long fieldValue) + { struct.set(mesg$LAYOUT, mesg$OFFSET, fieldValue); } @@ -400,9 +361,7 @@ public static void mesg(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static final OfLong free$layout() { - return free$LAYOUT; - } + public static final OfLong free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 24; @@ -412,9 +371,7 @@ public static void mesg(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -422,9 +379,7 @@ public static void mesg(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static long free(MemorySegment struct) { - return struct.get(free$LAYOUT, free$OFFSET); - } + public static long free(MemorySegment struct) { return struct.get(free$LAYOUT, free$OFFSET); } /** * Setter for field: @@ -432,7 +387,8 @@ public static long free(MemorySegment struct) { * hsize_t free * } */ - public static void free(MemorySegment struct, long fieldValue) { + public static void free(MemorySegment struct, long fieldValue) + { struct.set(free$LAYOUT, free$OFFSET, fieldValue); } @@ -440,7 +396,8 @@ public static void free(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -452,7 +409,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -460,7 +418,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -468,7 +427,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -476,7 +437,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -494,9 +457,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } space * } */ - public static final GroupLayout space$layout() { - return space$LAYOUT; - } + public static final GroupLayout space$layout() { return space$LAYOUT; } private static final long space$OFFSET = 16; @@ -511,9 +472,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } space * } */ - public static final long space$offset() { - return space$OFFSET; - } + public static final long space$offset() { return space$OFFSET; } /** * Getter for field: @@ -526,7 +485,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } space * } */ - public static MemorySegment space(MemorySegment struct) { + public static MemorySegment space(MemorySegment struct) + { return struct.asSlice(space$OFFSET, space$LAYOUT.byteSize()); } @@ -541,7 +501,8 @@ public static MemorySegment space(MemorySegment struct) { * } space * } */ - public static void space(MemorySegment struct, MemorySegment fieldValue) { + public static void space(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, space$OFFSET, space$LAYOUT.byteSize()); } @@ -555,21 +516,19 @@ public static void space(MemorySegment struct, MemorySegment fieldValue) { */ public static class mesg { - mesg() { + mesg() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("present"), - hdf5_h.C_LONG.withName("shared") - ).withName("$anon$133:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("present"), hdf5_h.C_LONG.withName("shared")) + .withName("$anon$133:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong present$LAYOUT = (OfLong)$LAYOUT.select(groupElement("present")); @@ -579,9 +538,7 @@ public static final GroupLayout layout() { * uint64_t present * } */ - public static final OfLong present$layout() { - return present$LAYOUT; - } + public static final OfLong present$layout() { return present$LAYOUT; } private static final long present$OFFSET = 0; @@ -591,9 +548,7 @@ public static final GroupLayout layout() { * uint64_t present * } */ - public static final long present$offset() { - return present$OFFSET; - } + public static final long present$offset() { return present$OFFSET; } /** * Getter for field: @@ -601,7 +556,8 @@ public static final GroupLayout layout() { * uint64_t present * } */ - public static long present(MemorySegment struct) { + public static long present(MemorySegment struct) + { return struct.get(present$LAYOUT, present$OFFSET); } @@ -611,7 +567,8 @@ public static long present(MemorySegment struct) { * uint64_t present * } */ - public static void present(MemorySegment struct, long fieldValue) { + public static void present(MemorySegment struct, long fieldValue) + { struct.set(present$LAYOUT, present$OFFSET, fieldValue); } @@ -623,9 +580,7 @@ public static void present(MemorySegment struct, long fieldValue) { * uint64_t shared * } */ - public static final OfLong shared$layout() { - return shared$LAYOUT; - } + public static final OfLong shared$layout() { return shared$LAYOUT; } private static final long shared$OFFSET = 8; @@ -635,9 +590,7 @@ public static void present(MemorySegment struct, long fieldValue) { * uint64_t shared * } */ - public static final long shared$offset() { - return shared$OFFSET; - } + public static final long shared$offset() { return shared$OFFSET; } /** * Getter for field: @@ -645,9 +598,7 @@ public static void present(MemorySegment struct, long fieldValue) { * uint64_t shared * } */ - public static long shared(MemorySegment struct) { - return struct.get(shared$LAYOUT, shared$OFFSET); - } + public static long shared(MemorySegment struct) { return struct.get(shared$LAYOUT, shared$OFFSET); } /** * Setter for field: @@ -655,7 +606,8 @@ public static long shared(MemorySegment struct) { * uint64_t shared * } */ - public static void shared(MemorySegment struct, long fieldValue) { + public static void shared(MemorySegment struct, long fieldValue) + { struct.set(shared$LAYOUT, shared$OFFSET, fieldValue); } @@ -663,7 +615,8 @@ public static void shared(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -675,7 +628,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -683,7 +637,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -691,7 +646,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -699,7 +656,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -715,9 +674,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } mesg * } */ - public static final GroupLayout mesg$layout() { - return mesg$LAYOUT; - } + public static final GroupLayout mesg$layout() { return mesg$LAYOUT; } private static final long mesg$OFFSET = 48; @@ -730,9 +687,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } mesg * } */ - public static final long mesg$offset() { - return mesg$OFFSET; - } + public static final long mesg$offset() { return mesg$OFFSET; } /** * Getter for field: @@ -743,7 +698,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } mesg * } */ - public static MemorySegment mesg(MemorySegment struct) { + public static MemorySegment mesg(MemorySegment struct) + { return struct.asSlice(mesg$OFFSET, mesg$LAYOUT.byteSize()); } @@ -756,7 +712,8 @@ public static MemorySegment mesg(MemorySegment struct) { * } mesg * } */ - public static void mesg(MemorySegment struct, MemorySegment fieldValue) { + public static void mesg(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, mesg$OFFSET, mesg$LAYOUT.byteSize()); } @@ -764,7 +721,8 @@ public static void mesg(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -776,15 +734,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -792,7 +749,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -800,8 +758,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_info1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_info1_t.java index 09117f0fa5e..009d517505e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_info1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_info1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_info1_t { @@ -34,30 +34,25 @@ */ public class H5O_info1_t { - H5O_info1_t() { + H5O_info1_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("fileno"), - hdf5_h.C_LONG.withName("addr"), - hdf5_h.C_INT.withName("type"), - hdf5_h.C_INT.withName("rc"), - hdf5_h.C_LONG.withName("atime"), - hdf5_h.C_LONG.withName("mtime"), - hdf5_h.C_LONG.withName("ctime"), - hdf5_h.C_LONG.withName("btime"), - hdf5_h.C_LONG.withName("num_attrs"), - H5O_hdr_info_t.layout().withName("hdr"), - H5O_info1_t.meta_size.layout().withName("meta_size") - ).withName("H5O_info1_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("fileno"), hdf5_h.C_LONG.withName("addr"), + hdf5_h.C_INT.withName("type"), hdf5_h.C_INT.withName("rc"), + hdf5_h.C_LONG.withName("atime"), hdf5_h.C_LONG.withName("mtime"), + hdf5_h.C_LONG.withName("ctime"), hdf5_h.C_LONG.withName("btime"), + hdf5_h.C_LONG.withName("num_attrs"), H5O_hdr_info_t.layout().withName("hdr"), + H5O_info1_t.meta_size.layout().withName("meta_size")) + .withName("H5O_info1_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong fileno$LAYOUT = (OfLong)$LAYOUT.select(groupElement("fileno")); @@ -67,9 +62,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static final OfLong fileno$layout() { - return fileno$LAYOUT; - } + public static final OfLong fileno$layout() { return fileno$LAYOUT; } private static final long fileno$OFFSET = 0; @@ -79,9 +72,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static final long fileno$offset() { - return fileno$OFFSET; - } + public static final long fileno$offset() { return fileno$OFFSET; } /** * Getter for field: @@ -89,9 +80,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static long fileno(MemorySegment struct) { - return struct.get(fileno$LAYOUT, fileno$OFFSET); - } + public static long fileno(MemorySegment struct) { return struct.get(fileno$LAYOUT, fileno$OFFSET); } /** * Setter for field: @@ -99,7 +88,8 @@ public static long fileno(MemorySegment struct) { * unsigned long fileno * } */ - public static void fileno(MemorySegment struct, long fieldValue) { + public static void fileno(MemorySegment struct, long fieldValue) + { struct.set(fileno$LAYOUT, fileno$OFFSET, fieldValue); } @@ -111,9 +101,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * haddr_t addr * } */ - public static final OfLong addr$layout() { - return addr$LAYOUT; - } + public static final OfLong addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 8; @@ -123,9 +111,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * haddr_t addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -133,9 +119,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * haddr_t addr * } */ - public static long addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static long addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -143,7 +127,8 @@ public static long addr(MemorySegment struct) { * haddr_t addr * } */ - public static void addr(MemorySegment struct, long fieldValue) { + public static void addr(MemorySegment struct, long fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -155,9 +140,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * H5O_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 16; @@ -167,9 +150,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * H5O_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -177,9 +158,7 @@ public static void addr(MemorySegment struct, long fieldValue) { * H5O_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -187,7 +166,8 @@ public static int type(MemorySegment struct) { * H5O_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -199,9 +179,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static final OfInt rc$layout() { - return rc$LAYOUT; - } + public static final OfInt rc$layout() { return rc$LAYOUT; } private static final long rc$OFFSET = 20; @@ -211,9 +189,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static final long rc$offset() { - return rc$OFFSET; - } + public static final long rc$offset() { return rc$OFFSET; } /** * Getter for field: @@ -221,9 +197,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static int rc(MemorySegment struct) { - return struct.get(rc$LAYOUT, rc$OFFSET); - } + public static int rc(MemorySegment struct) { return struct.get(rc$LAYOUT, rc$OFFSET); } /** * Setter for field: @@ -231,7 +205,8 @@ public static int rc(MemorySegment struct) { * unsigned int rc * } */ - public static void rc(MemorySegment struct, int fieldValue) { + public static void rc(MemorySegment struct, int fieldValue) + { struct.set(rc$LAYOUT, rc$OFFSET, fieldValue); } @@ -243,9 +218,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static final OfLong atime$layout() { - return atime$LAYOUT; - } + public static final OfLong atime$layout() { return atime$LAYOUT; } private static final long atime$OFFSET = 24; @@ -255,9 +228,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static final long atime$offset() { - return atime$OFFSET; - } + public static final long atime$offset() { return atime$OFFSET; } /** * Getter for field: @@ -265,9 +236,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static long atime(MemorySegment struct) { - return struct.get(atime$LAYOUT, atime$OFFSET); - } + public static long atime(MemorySegment struct) { return struct.get(atime$LAYOUT, atime$OFFSET); } /** * Setter for field: @@ -275,7 +244,8 @@ public static long atime(MemorySegment struct) { * time_t atime * } */ - public static void atime(MemorySegment struct, long fieldValue) { + public static void atime(MemorySegment struct, long fieldValue) + { struct.set(atime$LAYOUT, atime$OFFSET, fieldValue); } @@ -287,9 +257,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static final OfLong mtime$layout() { - return mtime$LAYOUT; - } + public static final OfLong mtime$layout() { return mtime$LAYOUT; } private static final long mtime$OFFSET = 32; @@ -299,9 +267,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static final long mtime$offset() { - return mtime$OFFSET; - } + public static final long mtime$offset() { return mtime$OFFSET; } /** * Getter for field: @@ -309,9 +275,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static long mtime(MemorySegment struct) { - return struct.get(mtime$LAYOUT, mtime$OFFSET); - } + public static long mtime(MemorySegment struct) { return struct.get(mtime$LAYOUT, mtime$OFFSET); } /** * Setter for field: @@ -319,7 +283,8 @@ public static long mtime(MemorySegment struct) { * time_t mtime * } */ - public static void mtime(MemorySegment struct, long fieldValue) { + public static void mtime(MemorySegment struct, long fieldValue) + { struct.set(mtime$LAYOUT, mtime$OFFSET, fieldValue); } @@ -331,9 +296,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static final OfLong ctime$layout() { - return ctime$LAYOUT; - } + public static final OfLong ctime$layout() { return ctime$LAYOUT; } private static final long ctime$OFFSET = 40; @@ -343,9 +306,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static final long ctime$offset() { - return ctime$OFFSET; - } + public static final long ctime$offset() { return ctime$OFFSET; } /** * Getter for field: @@ -353,9 +314,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static long ctime(MemorySegment struct) { - return struct.get(ctime$LAYOUT, ctime$OFFSET); - } + public static long ctime(MemorySegment struct) { return struct.get(ctime$LAYOUT, ctime$OFFSET); } /** * Setter for field: @@ -363,7 +322,8 @@ public static long ctime(MemorySegment struct) { * time_t ctime * } */ - public static void ctime(MemorySegment struct, long fieldValue) { + public static void ctime(MemorySegment struct, long fieldValue) + { struct.set(ctime$LAYOUT, ctime$OFFSET, fieldValue); } @@ -375,9 +335,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static final OfLong btime$layout() { - return btime$LAYOUT; - } + public static final OfLong btime$layout() { return btime$LAYOUT; } private static final long btime$OFFSET = 48; @@ -387,9 +345,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static final long btime$offset() { - return btime$OFFSET; - } + public static final long btime$offset() { return btime$OFFSET; } /** * Getter for field: @@ -397,9 +353,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static long btime(MemorySegment struct) { - return struct.get(btime$LAYOUT, btime$OFFSET); - } + public static long btime(MemorySegment struct) { return struct.get(btime$LAYOUT, btime$OFFSET); } /** * Setter for field: @@ -407,7 +361,8 @@ public static long btime(MemorySegment struct) { * time_t btime * } */ - public static void btime(MemorySegment struct, long fieldValue) { + public static void btime(MemorySegment struct, long fieldValue) + { struct.set(btime$LAYOUT, btime$OFFSET, fieldValue); } @@ -419,9 +374,7 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static final OfLong num_attrs$layout() { - return num_attrs$LAYOUT; - } + public static final OfLong num_attrs$layout() { return num_attrs$LAYOUT; } private static final long num_attrs$OFFSET = 56; @@ -431,9 +384,7 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static final long num_attrs$offset() { - return num_attrs$OFFSET; - } + public static final long num_attrs$offset() { return num_attrs$OFFSET; } /** * Getter for field: @@ -441,7 +392,8 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static long num_attrs(MemorySegment struct) { + public static long num_attrs(MemorySegment struct) + { return struct.get(num_attrs$LAYOUT, num_attrs$OFFSET); } @@ -451,7 +403,8 @@ public static long num_attrs(MemorySegment struct) { * hsize_t num_attrs * } */ - public static void num_attrs(MemorySegment struct, long fieldValue) { + public static void num_attrs(MemorySegment struct, long fieldValue) + { struct.set(num_attrs$LAYOUT, num_attrs$OFFSET, fieldValue); } @@ -463,9 +416,7 @@ public static void num_attrs(MemorySegment struct, long fieldValue) { * H5O_hdr_info_t hdr * } */ - public static final GroupLayout hdr$layout() { - return hdr$LAYOUT; - } + public static final GroupLayout hdr$layout() { return hdr$LAYOUT; } private static final long hdr$OFFSET = 64; @@ -475,9 +426,7 @@ public static void num_attrs(MemorySegment struct, long fieldValue) { * H5O_hdr_info_t hdr * } */ - public static final long hdr$offset() { - return hdr$OFFSET; - } + public static final long hdr$offset() { return hdr$OFFSET; } /** * Getter for field: @@ -485,7 +434,8 @@ public static void num_attrs(MemorySegment struct, long fieldValue) { * H5O_hdr_info_t hdr * } */ - public static MemorySegment hdr(MemorySegment struct) { + public static MemorySegment hdr(MemorySegment struct) + { return struct.asSlice(hdr$OFFSET, hdr$LAYOUT.byteSize()); } @@ -495,7 +445,8 @@ public static MemorySegment hdr(MemorySegment struct) { * H5O_hdr_info_t hdr * } */ - public static void hdr(MemorySegment struct, MemorySegment fieldValue) { + public static void hdr(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, hdr$OFFSET, hdr$LAYOUT.byteSize()); } @@ -509,21 +460,20 @@ public static void hdr(MemorySegment struct, MemorySegment fieldValue) { */ public static class meta_size { - meta_size() { + meta_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5_ih_info_t.layout().withName("obj"), - H5_ih_info_t.layout().withName("attr") - ).withName("$anon$1735:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5_ih_info_t.layout().withName("obj"), H5_ih_info_t.layout().withName("attr")) + .withName("$anon$1735:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout obj$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("obj")); @@ -533,9 +483,7 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static final GroupLayout obj$layout() { - return obj$LAYOUT; - } + public static final GroupLayout obj$layout() { return obj$LAYOUT; } private static final long obj$OFFSET = 0; @@ -545,9 +493,7 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static final long obj$offset() { - return obj$OFFSET; - } + public static final long obj$offset() { return obj$OFFSET; } /** * Getter for field: @@ -555,7 +501,8 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static MemorySegment obj(MemorySegment struct) { + public static MemorySegment obj(MemorySegment struct) + { return struct.asSlice(obj$OFFSET, obj$LAYOUT.byteSize()); } @@ -565,7 +512,8 @@ public static MemorySegment obj(MemorySegment struct) { * H5_ih_info_t obj * } */ - public static void obj(MemorySegment struct, MemorySegment fieldValue) { + public static void obj(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, obj$OFFSET, obj$LAYOUT.byteSize()); } @@ -577,9 +525,7 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static final GroupLayout attr$layout() { - return attr$LAYOUT; - } + public static final GroupLayout attr$layout() { return attr$LAYOUT; } private static final long attr$OFFSET = 16; @@ -589,9 +535,7 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static final long attr$offset() { - return attr$OFFSET; - } + public static final long attr$offset() { return attr$OFFSET; } /** * Getter for field: @@ -599,7 +543,8 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static MemorySegment attr(MemorySegment struct) { + public static MemorySegment attr(MemorySegment struct) + { return struct.asSlice(attr$OFFSET, attr$LAYOUT.byteSize()); } @@ -609,7 +554,8 @@ public static MemorySegment attr(MemorySegment struct) { * H5_ih_info_t attr * } */ - public static void attr(MemorySegment struct, MemorySegment fieldValue) { + public static void attr(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, attr$OFFSET, attr$LAYOUT.byteSize()); } @@ -617,7 +563,8 @@ public static void attr(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -629,7 +576,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -637,7 +585,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -645,7 +594,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -653,12 +604,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout meta_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("meta_size")); + private static final GroupLayout meta_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("meta_size")); /** * Layout for field: @@ -669,9 +623,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static final GroupLayout meta_size$layout() { - return meta_size$LAYOUT; - } + public static final GroupLayout meta_size$layout() { return meta_size$LAYOUT; } private static final long meta_size$OFFSET = 128; @@ -684,9 +636,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static final long meta_size$offset() { - return meta_size$OFFSET; - } + public static final long meta_size$offset() { return meta_size$OFFSET; } /** * Getter for field: @@ -697,7 +647,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static MemorySegment meta_size(MemorySegment struct) { + public static MemorySegment meta_size(MemorySegment struct) + { return struct.asSlice(meta_size$OFFSET, meta_size$LAYOUT.byteSize()); } @@ -710,7 +661,8 @@ public static MemorySegment meta_size(MemorySegment struct) { * } meta_size * } */ - public static void meta_size(MemorySegment struct, MemorySegment fieldValue) { + public static void meta_size(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, meta_size$OFFSET, meta_size$LAYOUT.byteSize()); } @@ -718,7 +670,8 @@ public static void meta_size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -730,15 +683,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -746,7 +698,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -754,8 +707,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_info2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_info2_t.java index 212a7ef82a0..e1f00a15f16 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_info2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_info2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_info2_t { @@ -29,28 +29,24 @@ */ public class H5O_info2_t { - H5O_info2_t() { + H5O_info2_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("fileno"), - H5O_token_t.layout().withName("token"), - hdf5_h.C_INT.withName("type"), - hdf5_h.C_INT.withName("rc"), - hdf5_h.C_LONG.withName("atime"), - hdf5_h.C_LONG.withName("mtime"), - hdf5_h.C_LONG.withName("ctime"), - hdf5_h.C_LONG.withName("btime"), - hdf5_h.C_LONG.withName("num_attrs") - ).withName("H5O_info2_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("fileno"), H5O_token_t.layout().withName("token"), + hdf5_h.C_INT.withName("type"), hdf5_h.C_INT.withName("rc"), + hdf5_h.C_LONG.withName("atime"), hdf5_h.C_LONG.withName("mtime"), + hdf5_h.C_LONG.withName("ctime"), hdf5_h.C_LONG.withName("btime"), + hdf5_h.C_LONG.withName("num_attrs")) + .withName("H5O_info2_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong fileno$LAYOUT = (OfLong)$LAYOUT.select(groupElement("fileno")); @@ -60,9 +56,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static final OfLong fileno$layout() { - return fileno$LAYOUT; - } + public static final OfLong fileno$layout() { return fileno$LAYOUT; } private static final long fileno$OFFSET = 0; @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static final long fileno$offset() { - return fileno$OFFSET; - } + public static final long fileno$offset() { return fileno$OFFSET; } /** * Getter for field: @@ -82,9 +74,7 @@ public static final GroupLayout layout() { * unsigned long fileno * } */ - public static long fileno(MemorySegment struct) { - return struct.get(fileno$LAYOUT, fileno$OFFSET); - } + public static long fileno(MemorySegment struct) { return struct.get(fileno$LAYOUT, fileno$OFFSET); } /** * Setter for field: @@ -92,7 +82,8 @@ public static long fileno(MemorySegment struct) { * unsigned long fileno * } */ - public static void fileno(MemorySegment struct, long fieldValue) { + public static void fileno(MemorySegment struct, long fieldValue) + { struct.set(fileno$LAYOUT, fileno$OFFSET, fieldValue); } @@ -104,9 +95,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * H5O_token_t token * } */ - public static final GroupLayout token$layout() { - return token$LAYOUT; - } + public static final GroupLayout token$layout() { return token$LAYOUT; } private static final long token$OFFSET = 8; @@ -116,9 +105,7 @@ public static void fileno(MemorySegment struct, long fieldValue) { * H5O_token_t token * } */ - public static final long token$offset() { - return token$OFFSET; - } + public static final long token$offset() { return token$OFFSET; } /** * Getter for field: @@ -126,7 +113,8 @@ public static void fileno(MemorySegment struct, long fieldValue) { * H5O_token_t token * } */ - public static MemorySegment token(MemorySegment struct) { + public static MemorySegment token(MemorySegment struct) + { return struct.asSlice(token$OFFSET, token$LAYOUT.byteSize()); } @@ -136,7 +124,8 @@ public static MemorySegment token(MemorySegment struct) { * H5O_token_t token * } */ - public static void token(MemorySegment struct, MemorySegment fieldValue) { + public static void token(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, token$OFFSET, token$LAYOUT.byteSize()); } @@ -148,9 +137,7 @@ public static void token(MemorySegment struct, MemorySegment fieldValue) { * H5O_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 24; @@ -160,9 +147,7 @@ public static void token(MemorySegment struct, MemorySegment fieldValue) { * H5O_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -170,9 +155,7 @@ public static void token(MemorySegment struct, MemorySegment fieldValue) { * H5O_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -180,7 +163,8 @@ public static int type(MemorySegment struct) { * H5O_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -192,9 +176,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static final OfInt rc$layout() { - return rc$LAYOUT; - } + public static final OfInt rc$layout() { return rc$LAYOUT; } private static final long rc$OFFSET = 28; @@ -204,9 +186,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static final long rc$offset() { - return rc$OFFSET; - } + public static final long rc$offset() { return rc$OFFSET; } /** * Getter for field: @@ -214,9 +194,7 @@ public static void type(MemorySegment struct, int fieldValue) { * unsigned int rc * } */ - public static int rc(MemorySegment struct) { - return struct.get(rc$LAYOUT, rc$OFFSET); - } + public static int rc(MemorySegment struct) { return struct.get(rc$LAYOUT, rc$OFFSET); } /** * Setter for field: @@ -224,7 +202,8 @@ public static int rc(MemorySegment struct) { * unsigned int rc * } */ - public static void rc(MemorySegment struct, int fieldValue) { + public static void rc(MemorySegment struct, int fieldValue) + { struct.set(rc$LAYOUT, rc$OFFSET, fieldValue); } @@ -236,9 +215,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static final OfLong atime$layout() { - return atime$LAYOUT; - } + public static final OfLong atime$layout() { return atime$LAYOUT; } private static final long atime$OFFSET = 32; @@ -248,9 +225,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static final long atime$offset() { - return atime$OFFSET; - } + public static final long atime$offset() { return atime$OFFSET; } /** * Getter for field: @@ -258,9 +233,7 @@ public static void rc(MemorySegment struct, int fieldValue) { * time_t atime * } */ - public static long atime(MemorySegment struct) { - return struct.get(atime$LAYOUT, atime$OFFSET); - } + public static long atime(MemorySegment struct) { return struct.get(atime$LAYOUT, atime$OFFSET); } /** * Setter for field: @@ -268,7 +241,8 @@ public static long atime(MemorySegment struct) { * time_t atime * } */ - public static void atime(MemorySegment struct, long fieldValue) { + public static void atime(MemorySegment struct, long fieldValue) + { struct.set(atime$LAYOUT, atime$OFFSET, fieldValue); } @@ -280,9 +254,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static final OfLong mtime$layout() { - return mtime$LAYOUT; - } + public static final OfLong mtime$layout() { return mtime$LAYOUT; } private static final long mtime$OFFSET = 40; @@ -292,9 +264,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static final long mtime$offset() { - return mtime$OFFSET; - } + public static final long mtime$offset() { return mtime$OFFSET; } /** * Getter for field: @@ -302,9 +272,7 @@ public static void atime(MemorySegment struct, long fieldValue) { * time_t mtime * } */ - public static long mtime(MemorySegment struct) { - return struct.get(mtime$LAYOUT, mtime$OFFSET); - } + public static long mtime(MemorySegment struct) { return struct.get(mtime$LAYOUT, mtime$OFFSET); } /** * Setter for field: @@ -312,7 +280,8 @@ public static long mtime(MemorySegment struct) { * time_t mtime * } */ - public static void mtime(MemorySegment struct, long fieldValue) { + public static void mtime(MemorySegment struct, long fieldValue) + { struct.set(mtime$LAYOUT, mtime$OFFSET, fieldValue); } @@ -324,9 +293,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static final OfLong ctime$layout() { - return ctime$LAYOUT; - } + public static final OfLong ctime$layout() { return ctime$LAYOUT; } private static final long ctime$OFFSET = 48; @@ -336,9 +303,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static final long ctime$offset() { - return ctime$OFFSET; - } + public static final long ctime$offset() { return ctime$OFFSET; } /** * Getter for field: @@ -346,9 +311,7 @@ public static void mtime(MemorySegment struct, long fieldValue) { * time_t ctime * } */ - public static long ctime(MemorySegment struct) { - return struct.get(ctime$LAYOUT, ctime$OFFSET); - } + public static long ctime(MemorySegment struct) { return struct.get(ctime$LAYOUT, ctime$OFFSET); } /** * Setter for field: @@ -356,7 +319,8 @@ public static long ctime(MemorySegment struct) { * time_t ctime * } */ - public static void ctime(MemorySegment struct, long fieldValue) { + public static void ctime(MemorySegment struct, long fieldValue) + { struct.set(ctime$LAYOUT, ctime$OFFSET, fieldValue); } @@ -368,9 +332,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static final OfLong btime$layout() { - return btime$LAYOUT; - } + public static final OfLong btime$layout() { return btime$LAYOUT; } private static final long btime$OFFSET = 56; @@ -380,9 +342,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static final long btime$offset() { - return btime$OFFSET; - } + public static final long btime$offset() { return btime$OFFSET; } /** * Getter for field: @@ -390,9 +350,7 @@ public static void ctime(MemorySegment struct, long fieldValue) { * time_t btime * } */ - public static long btime(MemorySegment struct) { - return struct.get(btime$LAYOUT, btime$OFFSET); - } + public static long btime(MemorySegment struct) { return struct.get(btime$LAYOUT, btime$OFFSET); } /** * Setter for field: @@ -400,7 +358,8 @@ public static long btime(MemorySegment struct) { * time_t btime * } */ - public static void btime(MemorySegment struct, long fieldValue) { + public static void btime(MemorySegment struct, long fieldValue) + { struct.set(btime$LAYOUT, btime$OFFSET, fieldValue); } @@ -412,9 +371,7 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static final OfLong num_attrs$layout() { - return num_attrs$LAYOUT; - } + public static final OfLong num_attrs$layout() { return num_attrs$LAYOUT; } private static final long num_attrs$OFFSET = 64; @@ -424,9 +381,7 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static final long num_attrs$offset() { - return num_attrs$OFFSET; - } + public static final long num_attrs$offset() { return num_attrs$OFFSET; } /** * Getter for field: @@ -434,7 +389,8 @@ public static void btime(MemorySegment struct, long fieldValue) { * hsize_t num_attrs * } */ - public static long num_attrs(MemorySegment struct) { + public static long num_attrs(MemorySegment struct) + { return struct.get(num_attrs$LAYOUT, num_attrs$OFFSET); } @@ -444,7 +400,8 @@ public static long num_attrs(MemorySegment struct) { * hsize_t num_attrs * } */ - public static void num_attrs(MemorySegment struct, long fieldValue) { + public static void num_attrs(MemorySegment struct, long fieldValue) + { struct.set(num_attrs$LAYOUT, num_attrs$OFFSET, fieldValue); } @@ -452,7 +409,8 @@ public static void num_attrs(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -464,15 +422,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -480,7 +437,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -488,8 +446,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate1_t.java index 5dfdaf309f1..e31c395829a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5O_iterate1_t)(hid_t, const char *, const H5O_info1_t *, void *) @@ -19,7 +19,8 @@ */ public class H5O_iterate1_t { - H5O_iterate1_t() { + H5O_iterate1_t() + { // Should not be called directly } @@ -31,27 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5O_iterate1_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5O_iterate1_t.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(H5O_iterate1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5O_iterate1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5O_iterate1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long obj, MemorySegment name, MemorySegment info, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long obj, MemorySegment name, MemorySegment info, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, obj, name, info, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, obj, name, info, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate2_t.java index df7524b1483..c79db336411 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_iterate2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5O_iterate2_t)(hid_t, const char *, const H5O_info2_t *, void *) @@ -19,7 +19,8 @@ */ public class H5O_iterate2_t { - H5O_iterate2_t() { + H5O_iterate2_t() + { // Should not be called directly } @@ -31,27 +32,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5O_iterate2_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5O_iterate2_t.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(H5O_iterate2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5O_iterate2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5O_iterate2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long obj, MemorySegment name, MemorySegment info, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, long obj, MemorySegment name, MemorySegment info, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, obj, name, info, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, obj, name, info, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_mcdt_search_cb_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_mcdt_search_cb_t.java index e16efc4180b..ca269bdde18 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_mcdt_search_cb_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_mcdt_search_cb_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5O_mcdt_search_ret_t (*H5O_mcdt_search_cb_t)(void *) @@ -19,7 +19,8 @@ */ public class H5O_mcdt_search_cb_t { - H5O_mcdt_search_cb_t() { + H5O_mcdt_search_cb_t() + { // Should not be called directly } @@ -30,25 +31,22 @@ public interface Function { int apply(MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5O_mcdt_search_cb_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5O_mcdt_search_cb_t.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(H5O_mcdt_search_cb_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5O_mcdt_search_cb_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -57,12 +55,13 @@ public static MemorySegment allocate(H5O_mcdt_search_cb_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_native_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_native_info_t.java index 01d34881f13..b4aeff46487 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_native_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_native_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_native_info_t { @@ -25,21 +25,21 @@ */ public class H5O_native_info_t { - H5O_native_info_t() { + H5O_native_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5O_hdr_info_t.layout().withName("hdr"), - H5O_native_info_t.meta_size.layout().withName("meta_size") - ).withName("H5O_native_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5O_hdr_info_t.layout().withName("hdr"), + H5O_native_info_t.meta_size.layout().withName("meta_size")) + .withName("H5O_native_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout hdr$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("hdr")); @@ -49,9 +49,7 @@ public static final GroupLayout layout() { * H5O_hdr_info_t hdr * } */ - public static final GroupLayout hdr$layout() { - return hdr$LAYOUT; - } + public static final GroupLayout hdr$layout() { return hdr$LAYOUT; } private static final long hdr$OFFSET = 0; @@ -61,9 +59,7 @@ public static final GroupLayout layout() { * H5O_hdr_info_t hdr * } */ - public static final long hdr$offset() { - return hdr$OFFSET; - } + public static final long hdr$offset() { return hdr$OFFSET; } /** * Getter for field: @@ -71,7 +67,8 @@ public static final GroupLayout layout() { * H5O_hdr_info_t hdr * } */ - public static MemorySegment hdr(MemorySegment struct) { + public static MemorySegment hdr(MemorySegment struct) + { return struct.asSlice(hdr$OFFSET, hdr$LAYOUT.byteSize()); } @@ -81,7 +78,8 @@ public static MemorySegment hdr(MemorySegment struct) { * H5O_hdr_info_t hdr * } */ - public static void hdr(MemorySegment struct, MemorySegment fieldValue) { + public static void hdr(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, hdr$OFFSET, hdr$LAYOUT.byteSize()); } @@ -95,21 +93,20 @@ public static void hdr(MemorySegment struct, MemorySegment fieldValue) { */ public static class meta_size { - meta_size() { + meta_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5_ih_info_t.layout().withName("obj"), - H5_ih_info_t.layout().withName("attr") - ).withName("$anon$166:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5_ih_info_t.layout().withName("obj"), H5_ih_info_t.layout().withName("attr")) + .withName("$anon$166:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout obj$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("obj")); @@ -119,9 +116,7 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static final GroupLayout obj$layout() { - return obj$LAYOUT; - } + public static final GroupLayout obj$layout() { return obj$LAYOUT; } private static final long obj$OFFSET = 0; @@ -131,9 +126,7 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static final long obj$offset() { - return obj$OFFSET; - } + public static final long obj$offset() { return obj$OFFSET; } /** * Getter for field: @@ -141,7 +134,8 @@ public static final GroupLayout layout() { * H5_ih_info_t obj * } */ - public static MemorySegment obj(MemorySegment struct) { + public static MemorySegment obj(MemorySegment struct) + { return struct.asSlice(obj$OFFSET, obj$LAYOUT.byteSize()); } @@ -151,7 +145,8 @@ public static MemorySegment obj(MemorySegment struct) { * H5_ih_info_t obj * } */ - public static void obj(MemorySegment struct, MemorySegment fieldValue) { + public static void obj(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, obj$OFFSET, obj$LAYOUT.byteSize()); } @@ -163,9 +158,7 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static final GroupLayout attr$layout() { - return attr$LAYOUT; - } + public static final GroupLayout attr$layout() { return attr$LAYOUT; } private static final long attr$OFFSET = 16; @@ -175,9 +168,7 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static final long attr$offset() { - return attr$OFFSET; - } + public static final long attr$offset() { return attr$OFFSET; } /** * Getter for field: @@ -185,7 +176,8 @@ public static void obj(MemorySegment struct, MemorySegment fieldValue) { * H5_ih_info_t attr * } */ - public static MemorySegment attr(MemorySegment struct) { + public static MemorySegment attr(MemorySegment struct) + { return struct.asSlice(attr$OFFSET, attr$LAYOUT.byteSize()); } @@ -195,7 +187,8 @@ public static MemorySegment attr(MemorySegment struct) { * H5_ih_info_t attr * } */ - public static void attr(MemorySegment struct, MemorySegment fieldValue) { + public static void attr(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, attr$OFFSET, attr$LAYOUT.byteSize()); } @@ -203,7 +196,8 @@ public static void attr(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -215,7 +209,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -223,7 +218,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -231,7 +227,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -239,12 +237,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout meta_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("meta_size")); + private static final GroupLayout meta_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("meta_size")); /** * Layout for field: @@ -255,9 +256,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static final GroupLayout meta_size$layout() { - return meta_size$LAYOUT; - } + public static final GroupLayout meta_size$layout() { return meta_size$LAYOUT; } private static final long meta_size$OFFSET = 64; @@ -270,9 +269,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static final long meta_size$offset() { - return meta_size$OFFSET; - } + public static final long meta_size$offset() { return meta_size$OFFSET; } /** * Getter for field: @@ -283,7 +280,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } meta_size * } */ - public static MemorySegment meta_size(MemorySegment struct) { + public static MemorySegment meta_size(MemorySegment struct) + { return struct.asSlice(meta_size$OFFSET, meta_size$LAYOUT.byteSize()); } @@ -296,7 +294,8 @@ public static MemorySegment meta_size(MemorySegment struct) { * } meta_size * } */ - public static void meta_size(MemorySegment struct, MemorySegment fieldValue) { + public static void meta_size(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, meta_size$OFFSET, meta_size$LAYOUT.byteSize()); } @@ -304,7 +303,8 @@ public static void meta_size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -316,15 +316,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -332,7 +331,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -340,8 +340,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_stat_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_stat_t.java index 9752d7041c0..a989d5db0bd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_stat_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_stat_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_stat_t { @@ -24,23 +24,21 @@ */ public class H5O_stat_t { - H5O_stat_t() { + H5O_stat_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("size"), - hdf5_h.C_LONG.withName("free"), - hdf5_h.C_INT.withName("nmesgs"), - hdf5_h.C_INT.withName("nchunks") - ).withName("H5O_stat_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("size"), hdf5_h.C_LONG.withName("free"), + hdf5_h.C_INT.withName("nmesgs"), hdf5_h.C_INT.withName("nchunks")) + .withName("H5O_stat_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("size")); @@ -50,9 +48,7 @@ public static final GroupLayout layout() { * hsize_t size * } */ - public static final OfLong size$layout() { - return size$LAYOUT; - } + public static final OfLong size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -62,9 +58,7 @@ public static final GroupLayout layout() { * hsize_t size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * hsize_t size * } */ - public static long size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static long size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -82,7 +74,8 @@ public static long size(MemorySegment struct) { * hsize_t size * } */ - public static void size(MemorySegment struct, long fieldValue) { + public static void size(MemorySegment struct, long fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -94,9 +87,7 @@ public static void size(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static final OfLong free$layout() { - return free$LAYOUT; - } + public static final OfLong free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 8; @@ -106,9 +97,7 @@ public static void size(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -116,9 +105,7 @@ public static void size(MemorySegment struct, long fieldValue) { * hsize_t free * } */ - public static long free(MemorySegment struct) { - return struct.get(free$LAYOUT, free$OFFSET); - } + public static long free(MemorySegment struct) { return struct.get(free$LAYOUT, free$OFFSET); } /** * Setter for field: @@ -126,7 +113,8 @@ public static long free(MemorySegment struct) { * hsize_t free * } */ - public static void free(MemorySegment struct, long fieldValue) { + public static void free(MemorySegment struct, long fieldValue) + { struct.set(free$LAYOUT, free$OFFSET, fieldValue); } @@ -138,9 +126,7 @@ public static void free(MemorySegment struct, long fieldValue) { * unsigned int nmesgs * } */ - public static final OfInt nmesgs$layout() { - return nmesgs$LAYOUT; - } + public static final OfInt nmesgs$layout() { return nmesgs$LAYOUT; } private static final long nmesgs$OFFSET = 16; @@ -150,9 +136,7 @@ public static void free(MemorySegment struct, long fieldValue) { * unsigned int nmesgs * } */ - public static final long nmesgs$offset() { - return nmesgs$OFFSET; - } + public static final long nmesgs$offset() { return nmesgs$OFFSET; } /** * Getter for field: @@ -160,9 +144,7 @@ public static void free(MemorySegment struct, long fieldValue) { * unsigned int nmesgs * } */ - public static int nmesgs(MemorySegment struct) { - return struct.get(nmesgs$LAYOUT, nmesgs$OFFSET); - } + public static int nmesgs(MemorySegment struct) { return struct.get(nmesgs$LAYOUT, nmesgs$OFFSET); } /** * Setter for field: @@ -170,7 +152,8 @@ public static int nmesgs(MemorySegment struct) { * unsigned int nmesgs * } */ - public static void nmesgs(MemorySegment struct, int fieldValue) { + public static void nmesgs(MemorySegment struct, int fieldValue) + { struct.set(nmesgs$LAYOUT, nmesgs$OFFSET, fieldValue); } @@ -182,9 +165,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static final OfInt nchunks$layout() { - return nchunks$LAYOUT; - } + public static final OfInt nchunks$layout() { return nchunks$LAYOUT; } private static final long nchunks$OFFSET = 20; @@ -194,9 +175,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static final long nchunks$offset() { - return nchunks$OFFSET; - } + public static final long nchunks$offset() { return nchunks$OFFSET; } /** * Getter for field: @@ -204,9 +183,7 @@ public static void nmesgs(MemorySegment struct, int fieldValue) { * unsigned int nchunks * } */ - public static int nchunks(MemorySegment struct) { - return struct.get(nchunks$LAYOUT, nchunks$OFFSET); - } + public static int nchunks(MemorySegment struct) { return struct.get(nchunks$LAYOUT, nchunks$OFFSET); } /** * Setter for field: @@ -214,7 +191,8 @@ public static int nchunks(MemorySegment struct) { * unsigned int nchunks * } */ - public static void nchunks(MemorySegment struct, int fieldValue) { + public static void nchunks(MemorySegment struct, int fieldValue) + { struct.set(nchunks$LAYOUT, nchunks$OFFSET, fieldValue); } @@ -222,7 +200,8 @@ public static void nchunks(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +213,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +228,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +237,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5O_token_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5O_token_t.java index 3672b63ea3d..74941566f25 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5O_token_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5O_token_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5O_token_t { @@ -21,22 +21,22 @@ */ public class H5O_token_t { - H5O_token_t() { + H5O_token_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(16, hdf5_h.C_CHAR).withName("__data") - ).withName("H5O_token_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(MemoryLayout.sequenceLayout(16, hdf5_h.C_CHAR).withName("__data")) + .withName("H5O_token_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __data$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__data")); + private static final SequenceLayout __data$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__data")); /** * Layout for field: @@ -44,9 +44,7 @@ public static final GroupLayout layout() { * uint8_t __data[16] * } */ - public static final SequenceLayout __data$layout() { - return __data$LAYOUT; - } + public static final SequenceLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -56,9 +54,7 @@ public static final GroupLayout layout() { * uint8_t __data[16] * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -66,7 +62,8 @@ public static final GroupLayout layout() { * uint8_t __data[16] * } */ - public static MemorySegment __data(MemorySegment struct) { + public static MemorySegment __data(MemorySegment struct) + { return struct.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -76,11 +73,12 @@ public static MemorySegment __data(MemorySegment struct) { * uint8_t __data[16] * } */ - public static void __data(MemorySegment struct, MemorySegment fieldValue) { + public static void __data(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static long[] __data$DIMS = { 16 }; + private static long[] __data$DIMS = {16}; /** * Dimensions for array field: @@ -88,9 +86,7 @@ public static void __data(MemorySegment struct, MemorySegment fieldValue) { * uint8_t __data[16] * } */ - public static long[] __data$dimensions() { - return __data$DIMS; - } + public static long[] __data$dimensions() { return __data$DIMS; } private static final VarHandle __data$ELEM_HANDLE = __data$LAYOUT.varHandle(sequenceElement()); /** @@ -99,7 +95,8 @@ public static void __data(MemorySegment struct, MemorySegment fieldValue) { * uint8_t __data[16] * } */ - public static byte __data(MemorySegment struct, long index0) { + public static byte __data(MemorySegment struct, long index0) + { return (byte)__data$ELEM_HANDLE.get(struct, 0L, index0); } @@ -109,7 +106,8 @@ public static byte __data(MemorySegment struct, long index0) { * uint8_t __data[16] * } */ - public static void __data(MemorySegment struct, long index0, byte fieldValue) { + public static void __data(MemorySegment struct, long index0, byte fieldValue) + { __data$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -117,7 +115,8 @@ public static void __data(MemorySegment struct, long index0, byte 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -129,15 +128,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -145,7 +143,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -153,8 +152,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_close_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_close_func_t.java index 206261ad87d..110ff48ec9e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_close_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_close_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_cls_close_func_t)(hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5P_cls_close_func_t { - H5P_cls_close_func_t() { + H5P_cls_close_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(long prop_id, MemorySegment close_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_cls_close_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_cls_close_func_t.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(H5P_cls_close_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_cls_close_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5P_cls_close_func_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long prop_id, MemorySegment close_data) { + public static int invoke(MemorySegment funcPtr, long prop_id, MemorySegment close_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, prop_id, close_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, prop_id, close_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_copy_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_copy_func_t.java index b68425f319f..6765b14c305 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_copy_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_copy_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_cls_copy_func_t)(hid_t, hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5P_cls_copy_func_t { - H5P_cls_copy_func_t() { + H5P_cls_copy_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long new_prop_id, long old_prop_id, MemorySegment copy_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_cls_copy_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_cls_copy_func_t.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(H5P_cls_copy_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_cls_copy_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5P_cls_copy_func_t.Function fi, Arena aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long new_prop_id, long old_prop_id, MemorySegment copy_data) { + public static int invoke(MemorySegment funcPtr, long new_prop_id, long old_prop_id, + MemorySegment copy_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, new_prop_id, old_prop_id, copy_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, new_prop_id, old_prop_id, copy_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_create_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_create_func_t.java index c35ac2dc92a..b15171026bd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_create_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_cls_create_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_cls_create_func_t)(hid_t, void *) @@ -19,7 +19,8 @@ */ public class H5P_cls_create_func_t { - H5P_cls_create_func_t() { + H5P_cls_create_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(long prop_id, MemorySegment create_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_cls_create_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_cls_create_func_t.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(H5P_cls_create_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_cls_create_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5P_cls_create_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long prop_id, MemorySegment create_data) { + public static int invoke(MemorySegment funcPtr, long prop_id, MemorySegment create_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, prop_id, create_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, prop_id, create_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_iterate_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_iterate_t.java index 239805fcf5f..2910a5208da 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_iterate_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_iterate_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_iterate_t)(hid_t, const char *, void *) @@ -19,7 +19,8 @@ */ public class H5P_iterate_t { - H5P_iterate_t() { + H5P_iterate_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long id, MemorySegment name, MemorySegment iter_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_iterate_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_iterate_t.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(H5P_iterate_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_iterate_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_iterate_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long id, MemorySegment name, MemorySegment iter_data) { + public static int invoke(MemorySegment funcPtr, long id, MemorySegment name, MemorySegment iter_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, id, name, iter_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, id, name, iter_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb1_t.java index 0471a487872..ac08885ef11 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_prp_cb1_t)(const char *, size_t, void *) @@ -19,7 +19,8 @@ */ public class H5P_prp_cb1_t { - H5P_prp_cb1_t() { + H5P_prp_cb1_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment name, long size, MemorySegment value); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_cb1_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_cb1_t.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(H5P_prp_cb1_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_cb1_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_cb1_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment name, long size, MemorySegment value) { + public static int invoke(MemorySegment funcPtr, MemorySegment name, long size, MemorySegment value) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, name, size, value); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, name, size, value); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb2_t.java index 5a20d97b85b..6dc6b01bb90 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_cb2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_prp_cb2_t)(hid_t, const char *, size_t, void *) @@ -19,7 +19,8 @@ */ public class H5P_prp_cb2_t { - H5P_prp_cb2_t() { + H5P_prp_cb2_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(long prop_id, MemorySegment name, long size, MemorySegment value); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_cb2_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_cb2_t.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(H5P_prp_cb2_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_cb2_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5P_prp_cb2_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long prop_id, MemorySegment name, long size, MemorySegment value) { + public static int invoke(MemorySegment funcPtr, long prop_id, MemorySegment name, long size, + MemorySegment value) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, prop_id, name, size, value); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, prop_id, name, size, value); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_close_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_close_func_t.java index df9b546eea6..081a863f08a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_close_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_close_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb1_t H5P_prp_close_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_close_func_t { - H5P_prp_close_func_t() { + H5P_prp_close_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_close_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_close_func_t.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(H5P_prp_close_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_close_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_close_func_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_compare_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_compare_func_t.java index 40e24b79fd7..e9bdb19f137 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_compare_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_compare_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (*H5P_prp_compare_func_t)(const void *, const void *, size_t) @@ -19,7 +19,8 @@ */ public class H5P_prp_compare_func_t { - H5P_prp_compare_func_t() { + H5P_prp_compare_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment value1, MemorySegment value2, long size); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_compare_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_compare_func_t.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(H5P_prp_compare_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_compare_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_compare_func_t.Function fi, Arena a /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment value1, MemorySegment value2, long size) { + public static int invoke(MemorySegment funcPtr, MemorySegment value1, MemorySegment value2, long size) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, value1, value2, size); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, value1, value2, size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_copy_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_copy_func_t.java index c87862f8890..432c11d85c8 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_copy_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_copy_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb1_t H5P_prp_copy_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_copy_func_t { - H5P_prp_copy_func_t() { + H5P_prp_copy_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_copy_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_copy_func_t.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(H5P_prp_copy_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_copy_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_copy_func_t.Function fi, Arena aren /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_create_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_create_func_t.java index 381b93b3a4f..9a757821105 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_create_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_create_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb1_t H5P_prp_create_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_create_func_t { - H5P_prp_create_func_t() { + H5P_prp_create_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_create_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_create_func_t.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(H5P_prp_create_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_create_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_create_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_decode_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_decode_func_t.java index 89b42ecdff1..5df5c36e399 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_decode_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_decode_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_prp_decode_func_t)(const void **, void *) @@ -19,7 +19,8 @@ */ public class H5P_prp_decode_func_t { - H5P_prp_decode_func_t() { + H5P_prp_decode_func_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(MemorySegment buf, MemorySegment value); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_decode_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_decode_func_t.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(H5P_prp_decode_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_decode_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_decode_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment buf, MemorySegment value) { + public static int invoke(MemorySegment funcPtr, MemorySegment buf, MemorySegment value) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, buf, value); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, buf, value); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_delete_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_delete_func_t.java index 0e1b01401a3..72f1f230c98 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_delete_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_delete_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb2_t H5P_prp_delete_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_delete_func_t { - H5P_prp_delete_func_t() { + H5P_prp_delete_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(long _x0, MemorySegment _x1, long _x2, MemorySegment _x3); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_delete_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_delete_func_t.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(H5P_prp_delete_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_delete_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_delete_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_encode_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_encode_func_t.java index 3c41a0a604d..cfb856b2b4b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_encode_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_encode_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5P_prp_encode_func_t)(const void *, void **, size_t *) @@ -19,7 +19,8 @@ */ public class H5P_prp_encode_func_t { - H5P_prp_encode_func_t() { + H5P_prp_encode_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment value, MemorySegment buf, MemorySegment size); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_encode_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_encode_func_t.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(H5P_prp_encode_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_encode_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(H5P_prp_encode_func_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment value, MemorySegment buf, MemorySegment size) { + public static int invoke(MemorySegment funcPtr, MemorySegment value, MemorySegment buf, + MemorySegment size) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, value, buf, size); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, value, buf, size); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_get_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_get_func_t.java index eea016c79ac..f572e82c648 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_get_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_get_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb2_t H5P_prp_get_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_get_func_t { - H5P_prp_get_func_t() { + H5P_prp_get_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(long _x0, MemorySegment _x1, long _x2, MemorySegment _x3); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_get_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_get_func_t.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(H5P_prp_get_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_get_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_get_func_t.Function fi, Arena arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_set_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_set_func_t.java index d875040b955..cb42cd76439 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_set_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5P_prp_set_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5P_prp_cb2_t H5P_prp_set_func_t @@ -19,7 +19,8 @@ */ public class H5P_prp_set_func_t { - H5P_prp_set_func_t() { + H5P_prp_set_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(long _x0, MemorySegment _x1, long _x2, MemorySegment _x3); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5P_prp_set_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5P_prp_set_func_t.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(H5P_prp_set_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5P_prp_set_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,13 @@ public static MemorySegment allocate(H5P_prp_set_func_t.Function fi, Arena arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, long _x0, MemorySegment _x1, long _x2, MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5R_ref_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5R_ref_t.java index 03f6cc19aea..e1a5739182b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5R_ref_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5R_ref_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -24,20 +24,18 @@ */ public class H5R_ref_t { - H5R_ref_t() { + H5R_ref_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5R_ref_t.u.layout().withName("u") - ).withName("$anon$97:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(H5R_ref_t.u.layout().withName("u")).withName("$anon$97:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -49,23 +47,24 @@ public static final GroupLayout layout() { */ public static class u { - u() { + u() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(64, hdf5_h.C_CHAR).withName("__data"), - hdf5_h.C_LONG.withName("align") - ).withName("$anon$98:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(64, hdf5_h.C_CHAR).withName("__data"), + hdf5_h.C_LONG.withName("align")) + .withName("$anon$98:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __data$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__data")); + private static final SequenceLayout __data$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__data")); /** * Layout for field: @@ -73,9 +72,7 @@ public static final GroupLayout layout() { * uint8_t __data[64] * } */ - public static final SequenceLayout __data$layout() { - return __data$LAYOUT; - } + public static final SequenceLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -85,9 +82,7 @@ public static final GroupLayout layout() { * uint8_t __data[64] * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -95,7 +90,8 @@ public static final GroupLayout layout() { * uint8_t __data[64] * } */ - public static MemorySegment __data(MemorySegment union) { + public static MemorySegment __data(MemorySegment union) + { return union.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -105,11 +101,12 @@ public static MemorySegment __data(MemorySegment union) { * uint8_t __data[64] * } */ - public static void __data(MemorySegment union, MemorySegment fieldValue) { + public static void __data(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static long[] __data$DIMS = { 64 }; + private static long[] __data$DIMS = {64}; /** * Dimensions for array field: @@ -117,9 +114,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * uint8_t __data[64] * } */ - public static long[] __data$dimensions() { - return __data$DIMS; - } + public static long[] __data$dimensions() { return __data$DIMS; } private static final VarHandle __data$ELEM_HANDLE = __data$LAYOUT.varHandle(sequenceElement()); /** @@ -128,7 +123,8 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * uint8_t __data[64] * } */ - public static byte __data(MemorySegment union, long index0) { + public static byte __data(MemorySegment union, long index0) + { return (byte)__data$ELEM_HANDLE.get(union, 0L, index0); } @@ -138,7 +134,8 @@ public static byte __data(MemorySegment union, long index0) { * uint8_t __data[64] * } */ - public static void __data(MemorySegment union, long index0, byte fieldValue) { + public static void __data(MemorySegment union, long index0, byte fieldValue) + { __data$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -150,9 +147,7 @@ public static void __data(MemorySegment union, long index0, byte fieldValue) { * int64_t align * } */ - public static final OfLong align$layout() { - return align$LAYOUT; - } + public static final OfLong align$layout() { return align$LAYOUT; } private static final long align$OFFSET = 0; @@ -162,9 +157,7 @@ public static void __data(MemorySegment union, long index0, byte fieldValue) { * int64_t align * } */ - public static final long align$offset() { - return align$OFFSET; - } + public static final long align$offset() { return align$OFFSET; } /** * Getter for field: @@ -172,9 +165,7 @@ public static void __data(MemorySegment union, long index0, byte fieldValue) { * int64_t align * } */ - public static long align(MemorySegment union) { - return union.get(align$LAYOUT, align$OFFSET); - } + public static long align(MemorySegment union) { return union.get(align$LAYOUT, align$OFFSET); } /** * Setter for field: @@ -182,7 +173,8 @@ public static long align(MemorySegment union) { * int64_t align * } */ - public static void align(MemorySegment union, long fieldValue) { + public static void align(MemorySegment union, long fieldValue) + { union.set(align$LAYOUT, align$OFFSET, fieldValue); } @@ -190,7 +182,8 @@ public static void align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -202,7 +195,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -210,7 +204,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -218,7 +213,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -226,7 +223,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -242,9 +241,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final GroupLayout u$layout() { - return u$LAYOUT; - } + public static final GroupLayout u$layout() { return u$LAYOUT; } private static final long u$OFFSET = 0; @@ -257,9 +254,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static final long u$offset() { - return u$OFFSET; - } + public static final long u$offset() { return u$OFFSET; } /** * Getter for field: @@ -270,7 +265,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } u * } */ - public static MemorySegment u(MemorySegment struct) { + public static MemorySegment u(MemorySegment struct) + { return struct.asSlice(u$OFFSET, u$LAYOUT.byteSize()); } @@ -283,7 +279,8 @@ public static MemorySegment u(MemorySegment struct) { * } u * } */ - public static void u(MemorySegment struct, MemorySegment fieldValue) { + public static void u(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, u$OFFSET, u$LAYOUT.byteSize()); } @@ -291,7 +288,8 @@ public static void u(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -303,15 +301,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -319,7 +316,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -327,8 +325,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5T_cdata_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5T_cdata_t.java index 44c65d93931..dc436d3360a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5T_cdata_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5T_cdata_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5T_cdata_t { @@ -24,24 +24,22 @@ */ public class H5T_cdata_t { - H5T_cdata_t() { + H5T_cdata_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("command"), - hdf5_h.C_INT.withName("need_bkg"), - hdf5_h.C_BOOL.withName("recalc"), - MemoryLayout.paddingLayout(7), - hdf5_h.C_POINTER.withName("priv") - ).withName("H5T_cdata_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("command"), hdf5_h.C_INT.withName("need_bkg"), + hdf5_h.C_BOOL.withName("recalc"), MemoryLayout.paddingLayout(7), + hdf5_h.C_POINTER.withName("priv")) + .withName("H5T_cdata_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt command$LAYOUT = (OfInt)$LAYOUT.select(groupElement("command")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * H5T_cmd_t command * } */ - public static final OfInt command$layout() { - return command$LAYOUT; - } + public static final OfInt command$layout() { return command$LAYOUT; } private static final long command$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * H5T_cmd_t command * } */ - public static final long command$offset() { - return command$OFFSET; - } + public static final long command$offset() { return command$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * H5T_cmd_t command * } */ - public static int command(MemorySegment struct) { - return struct.get(command$LAYOUT, command$OFFSET); - } + public static int command(MemorySegment struct) { return struct.get(command$LAYOUT, command$OFFSET); } /** * Setter for field: @@ -83,7 +75,8 @@ public static int command(MemorySegment struct) { * H5T_cmd_t command * } */ - public static void command(MemorySegment struct, int fieldValue) { + public static void command(MemorySegment struct, int fieldValue) + { struct.set(command$LAYOUT, command$OFFSET, fieldValue); } @@ -95,9 +88,7 @@ public static void command(MemorySegment struct, int fieldValue) { * H5T_bkg_t need_bkg * } */ - public static final OfInt need_bkg$layout() { - return need_bkg$LAYOUT; - } + public static final OfInt need_bkg$layout() { return need_bkg$LAYOUT; } private static final long need_bkg$OFFSET = 4; @@ -107,9 +98,7 @@ public static void command(MemorySegment struct, int fieldValue) { * H5T_bkg_t need_bkg * } */ - public static final long need_bkg$offset() { - return need_bkg$OFFSET; - } + public static final long need_bkg$offset() { return need_bkg$OFFSET; } /** * Getter for field: @@ -117,9 +106,7 @@ public static void command(MemorySegment struct, int fieldValue) { * H5T_bkg_t need_bkg * } */ - public static int need_bkg(MemorySegment struct) { - return struct.get(need_bkg$LAYOUT, need_bkg$OFFSET); - } + public static int need_bkg(MemorySegment struct) { return struct.get(need_bkg$LAYOUT, need_bkg$OFFSET); } /** * Setter for field: @@ -127,7 +114,8 @@ public static int need_bkg(MemorySegment struct) { * H5T_bkg_t need_bkg * } */ - public static void need_bkg(MemorySegment struct, int fieldValue) { + public static void need_bkg(MemorySegment struct, int fieldValue) + { struct.set(need_bkg$LAYOUT, need_bkg$OFFSET, fieldValue); } @@ -139,9 +127,7 @@ public static void need_bkg(MemorySegment struct, int fieldValue) { * hbool_t recalc * } */ - public static final OfBoolean recalc$layout() { - return recalc$LAYOUT; - } + public static final OfBoolean recalc$layout() { return recalc$LAYOUT; } private static final long recalc$OFFSET = 8; @@ -151,9 +137,7 @@ public static void need_bkg(MemorySegment struct, int fieldValue) { * hbool_t recalc * } */ - public static final long recalc$offset() { - return recalc$OFFSET; - } + public static final long recalc$offset() { return recalc$OFFSET; } /** * Getter for field: @@ -161,9 +145,7 @@ public static void need_bkg(MemorySegment struct, int fieldValue) { * hbool_t recalc * } */ - public static boolean recalc(MemorySegment struct) { - return struct.get(recalc$LAYOUT, recalc$OFFSET); - } + public static boolean recalc(MemorySegment struct) { return struct.get(recalc$LAYOUT, recalc$OFFSET); } /** * Setter for field: @@ -171,7 +153,8 @@ public static boolean recalc(MemorySegment struct) { * hbool_t recalc * } */ - public static void recalc(MemorySegment struct, boolean fieldValue) { + public static void recalc(MemorySegment struct, boolean fieldValue) + { struct.set(recalc$LAYOUT, recalc$OFFSET, fieldValue); } @@ -183,9 +166,7 @@ public static void recalc(MemorySegment struct, boolean fieldValue) { * void *priv * } */ - public static final AddressLayout priv$layout() { - return priv$LAYOUT; - } + public static final AddressLayout priv$layout() { return priv$LAYOUT; } private static final long priv$OFFSET = 16; @@ -195,9 +176,7 @@ public static void recalc(MemorySegment struct, boolean fieldValue) { * void *priv * } */ - public static final long priv$offset() { - return priv$OFFSET; - } + public static final long priv$offset() { return priv$OFFSET; } /** * Getter for field: @@ -205,9 +184,7 @@ public static void recalc(MemorySegment struct, boolean fieldValue) { * void *priv * } */ - public static MemorySegment priv(MemorySegment struct) { - return struct.get(priv$LAYOUT, priv$OFFSET); - } + public static MemorySegment priv(MemorySegment struct) { return struct.get(priv$LAYOUT, priv$OFFSET); } /** * Setter for field: @@ -215,7 +192,8 @@ public static MemorySegment priv(MemorySegment struct) { * void *priv * } */ - public static void priv(MemorySegment struct, MemorySegment fieldValue) { + public static void priv(MemorySegment struct, MemorySegment fieldValue) + { struct.set(priv$LAYOUT, priv$OFFSET, fieldValue); } @@ -223,7 +201,8 @@ public static void priv(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +214,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +229,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +238,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_except_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_except_func_t.java index 460f560760a..a928d91273e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_except_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_except_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5T_conv_ret_t (*H5T_conv_except_func_t)(H5T_conv_except_t, hid_t, hid_t, void *, void *, void *) @@ -19,7 +19,8 @@ */ public class H5T_conv_except_func_t { - H5T_conv_except_func_t() { + H5T_conv_except_func_t() + { // Should not be called directly } @@ -27,33 +28,28 @@ public class H5T_conv_except_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(int except_type, long src_id, long dst_id, MemorySegment src_buf, MemorySegment dst_buf, MemorySegment user_data); + int apply(int except_type, long src_id, long dst_id, MemorySegment src_buf, MemorySegment dst_buf, + MemorySegment user_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5T_conv_except_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5T_conv_except_func_t.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(H5T_conv_except_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5T_conv_except_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -62,12 +58,15 @@ public static MemorySegment allocate(H5T_conv_except_func_t.Function fi, Arena a /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,int except_type, long src_id, long dst_id, MemorySegment src_buf, MemorySegment dst_buf, MemorySegment user_data) { + public static int invoke(MemorySegment funcPtr, int except_type, long src_id, long dst_id, + MemorySegment src_buf, MemorySegment dst_buf, MemorySegment user_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, except_type, src_id, dst_id, src_buf, dst_buf, user_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, except_type, src_id, dst_id, src_buf, dst_buf, + user_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_t.java index a1f7925bec9..7c27219028f 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5T_conv_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5T_conv_t)(hid_t, hid_t, H5T_cdata_t *, size_t, size_t, size_t, void *, void *, hid_t) @@ -19,7 +19,8 @@ */ public class H5T_conv_t { - H5T_conv_t() { + H5T_conv_t() + { // Should not be called directly } @@ -27,28 +28,18 @@ public class H5T_conv_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(long src_id, long dst_id, MemorySegment cdata, long nelmts, long buf_stride, long bkg_stride, MemorySegment buf, MemorySegment bkg, long dset_xfer_plist); + int apply(long src_id, long dst_id, MemorySegment cdata, long nelmts, long buf_stride, + long bkg_stride, MemorySegment buf, MemorySegment bkg, long dset_xfer_plist); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5T_conv_t.Function.class, "apply", $DESC); @@ -56,7 +47,8 @@ public static FunctionDescriptor descriptor() { * 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(H5T_conv_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5T_conv_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -65,12 +57,16 @@ public static MemorySegment allocate(H5T_conv_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long src_id, long dst_id, MemorySegment cdata, long nelmts, long buf_stride, long bkg_stride, MemorySegment buf, MemorySegment bkg, long dset_xfer_plist) { + public static int invoke(MemorySegment funcPtr, long src_id, long dst_id, MemorySegment cdata, + long nelmts, long buf_stride, long bkg_stride, MemorySegment buf, + MemorySegment bkg, long dset_xfer_plist) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, src_id, dst_id, cdata, nelmts, buf_stride, bkg_stride, buf, bkg, dset_xfer_plist); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, src_id, dst_id, cdata, nelmts, buf_stride, bkg_stride, + buf, bkg, dset_xfer_plist); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_class_t.java index aa21f8ba1f6..e8308557754 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_class_t.java @@ -2,62 +2,58 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_class_t { - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **); - * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); - * herr_t (*read)(void *, hid_t, void *, hid_t, void **); - * herr_t (*write)(void *, hid_t, const void *, hid_t, void **); - * herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **); - * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **); - * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **); - * herr_t (*close)(void *, hid_t, void **); + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **); void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); herr_t + * (*read)(void *, hid_t, void *, hid_t, void **); herr_t (*write)(void *, hid_t, const void *, hid_t, void + * **); herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **); herr_t (*specific)(void *, const + * H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **); herr_t (*optional)(void *, + * H5VL_optional_args_t *, hid_t, void **); herr_t (*close)(void *, hid_t, void **); * } * } */ public class H5VL_attr_class_t { - H5VL_attr_class_t() { + H5VL_attr_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("create"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("read"), - hdf5_h.C_POINTER.withName("write"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("close") - ).withName("H5VL_attr_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("create"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("read"), hdf5_h.C_POINTER.withName("write"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("close")) + .withName("H5VL_attr_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ public static class create { - create() { + create() + { // Should not be called directly } @@ -65,28 +61,18 @@ public static class create { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, MemorySegment _x8); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + long _x5, long _x6, long _x7, MemorySegment _x8); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(create.Function.class, "apply", $DESC); @@ -94,7 +80,8 @@ public static FunctionDescriptor descriptor() { * 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(create.Function fi, Arena arena) { + public static MemorySegment allocate(create.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -103,10 +90,15 @@ public static MemorySegment allocate(create.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, MemorySegment _x8) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, + long _x7, MemorySegment _x8) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, + _x8); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -117,42 +109,44 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo /** * Layout for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static final AddressLayout create$layout() { - return create$LAYOUT; - } + public static final AddressLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; /** * Offset for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static MemorySegment create(MemorySegment struct) { + public static MemorySegment create(MemorySegment struct) + { return struct.get(create$LAYOUT, create$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static void create(MemorySegment struct, MemorySegment fieldValue) { + public static void create(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create$LAYOUT, create$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void create(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -171,25 +166,18 @@ public static class open { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -197,7 +185,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -206,10 +195,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -223,9 +215,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 8; @@ -235,9 +225,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -245,9 +233,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -255,7 +241,8 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -266,7 +253,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class read { - read() { + read() + { // Should not be called directly } @@ -278,20 +266,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(read.Function.class, "apply", $DESC); @@ -299,7 +279,8 @@ public static FunctionDescriptor descriptor() { * 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(read.Function fi, Arena arena) { + public static MemorySegment allocate(read.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -308,10 +289,13 @@ public static MemorySegment allocate(read.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2, + long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -325,9 +309,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*read)(void *, hid_t, void *, hid_t, void **) * } */ - public static final AddressLayout read$layout() { - return read$LAYOUT; - } + public static final AddressLayout read$layout() { return read$LAYOUT; } private static final long read$OFFSET = 16; @@ -337,9 +319,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*read)(void *, hid_t, void *, hid_t, void **) * } */ - public static final long read$offset() { - return read$OFFSET; - } + public static final long read$offset() { return read$OFFSET; } /** * Getter for field: @@ -347,9 +327,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*read)(void *, hid_t, void *, hid_t, void **) * } */ - public static MemorySegment read(MemorySegment struct) { - return struct.get(read$LAYOUT, read$OFFSET); - } + public static MemorySegment read(MemorySegment struct) { return struct.get(read$LAYOUT, read$OFFSET); } /** * Setter for field: @@ -357,7 +335,8 @@ public static MemorySegment read(MemorySegment struct) { * herr_t (*read)(void *, hid_t, void *, hid_t, void **) * } */ - public static void read(MemorySegment struct, MemorySegment fieldValue) { + public static void read(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read$LAYOUT, read$OFFSET, fieldValue); } @@ -368,7 +347,8 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { */ public static class write { - write() { + write() + { // Should not be called directly } @@ -380,20 +360,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(write.Function.class, "apply", $DESC); @@ -401,7 +373,8 @@ public static FunctionDescriptor descriptor() { * 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(write.Function fi, Arena arena) { + public static MemorySegment allocate(write.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -410,10 +383,13 @@ public static MemorySegment allocate(write.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2, + long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -427,9 +403,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*write)(void *, hid_t, const void *, hid_t, void **) * } */ - public static final AddressLayout write$layout() { - return write$LAYOUT; - } + public static final AddressLayout write$layout() { return write$LAYOUT; } private static final long write$OFFSET = 24; @@ -439,9 +413,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*write)(void *, hid_t, const void *, hid_t, void **) * } */ - public static final long write$offset() { - return write$OFFSET; - } + public static final long write$offset() { return write$OFFSET; } /** * Getter for field: @@ -449,9 +421,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*write)(void *, hid_t, const void *, hid_t, void **) * } */ - public static MemorySegment write(MemorySegment struct) { - return struct.get(write$LAYOUT, write$OFFSET); - } + public static MemorySegment write(MemorySegment struct) { return struct.get(write$LAYOUT, write$OFFSET); } /** * Setter for field: @@ -459,7 +429,8 @@ public static MemorySegment write(MemorySegment struct) { * herr_t (*write)(void *, hid_t, const void *, hid_t, void **) * } */ - public static void write(MemorySegment struct, MemorySegment fieldValue) { + public static void write(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write$LAYOUT, write$OFFSET, fieldValue); } @@ -470,7 +441,8 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -482,19 +454,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -502,7 +467,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -511,10 +477,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -528,9 +497,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 32; @@ -540,9 +507,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -550,9 +515,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -560,7 +523,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, H5VL_attr_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -571,7 +535,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -582,29 +547,24 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -613,16 +573,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -630,9 +594,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 40; @@ -642,9 +604,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -652,7 +612,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -662,7 +623,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_attr_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -673,7 +635,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -685,27 +648,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -714,16 +672,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -731,9 +693,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 48; @@ -743,9 +703,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -753,7 +711,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -763,7 +722,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -774,7 +734,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -785,19 +746,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -805,7 +760,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -814,10 +770,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -831,9 +789,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 56; @@ -843,9 +799,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -853,9 +807,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -863,7 +815,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(void *, hid_t, void **) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -871,7 +824,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -883,15 +837,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -899,7 +852,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -907,8 +861,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_delete_by_idx_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_delete_by_idx_args_t.java index 763b0f685cb..a542851aafe 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_delete_by_idx_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_delete_by_idx_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_delete_by_idx_args_t { @@ -23,22 +23,21 @@ */ public class H5VL_attr_delete_by_idx_args_t { - H5VL_attr_delete_by_idx_args_t() { + H5VL_attr_delete_by_idx_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("idx_type"), - hdf5_h.C_INT.withName("order"), - hdf5_h.C_LONG.withName("n") - ).withName("H5VL_attr_delete_by_idx_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("idx_type"), hdf5_h.C_INT.withName("order"), + hdf5_h.C_LONG.withName("n")) + .withName("H5VL_attr_delete_by_idx_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt idx_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("idx_type")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final OfInt idx_type$layout() { - return idx_type$LAYOUT; - } + public static final OfInt idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static int idx_type(MemorySegment struct) { - return struct.get(idx_type$LAYOUT, idx_type$OFFSET); - } + public static int idx_type(MemorySegment struct) { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } /** * Setter for field: @@ -80,7 +73,8 @@ public static int idx_type(MemorySegment struct) { * H5_index_t idx_type * } */ - public static void idx_type(MemorySegment struct, int fieldValue) { + public static void idx_type(MemorySegment struct, int fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -92,9 +86,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final OfInt order$layout() { - return order$LAYOUT; - } + public static final OfInt order$layout() { return order$LAYOUT; } private static final long order$OFFSET = 4; @@ -104,9 +96,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final long order$offset() { - return order$OFFSET; - } + public static final long order$offset() { return order$OFFSET; } /** * Getter for field: @@ -114,9 +104,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static int order(MemorySegment struct) { - return struct.get(order$LAYOUT, order$OFFSET); - } + public static int order(MemorySegment struct) { return struct.get(order$LAYOUT, order$OFFSET); } /** * Setter for field: @@ -124,7 +112,8 @@ public static int order(MemorySegment struct) { * H5_iter_order_t order * } */ - public static void order(MemorySegment struct, int fieldValue) { + public static void order(MemorySegment struct, int fieldValue) + { struct.set(order$LAYOUT, order$OFFSET, fieldValue); } @@ -136,9 +125,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static final OfLong n$layout() { - return n$LAYOUT; - } + public static final OfLong n$layout() { return n$LAYOUT; } private static final long n$OFFSET = 8; @@ -148,9 +135,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static final long n$offset() { - return n$OFFSET; - } + public static final long n$offset() { return n$OFFSET; } /** * Getter for field: @@ -158,9 +143,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static long n(MemorySegment struct) { - return struct.get(n$LAYOUT, n$OFFSET); - } + public static long n(MemorySegment struct) { return struct.get(n$LAYOUT, n$OFFSET); } /** * Setter for field: @@ -168,7 +151,8 @@ public static long n(MemorySegment struct) { * hsize_t n * } */ - public static void n(MemorySegment struct, long fieldValue) { + public static void n(MemorySegment struct, long fieldValue) + { struct.set(n$LAYOUT, n$OFFSET, fieldValue); } @@ -176,7 +160,8 @@ public static void n(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +173,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +188,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +197,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_args_t.java index 3593152c9a2..67814b13135 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_get_args_t { @@ -37,22 +37,21 @@ */ public class H5VL_attr_get_args_t { - H5VL_attr_get_args_t() { + H5VL_attr_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_attr_get_args_t.args.layout().withName("args") - ).withName("H5VL_attr_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_attr_get_args_t.args.layout().withName("args")) + .withName("H5VL_attr_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -62,9 +61,7 @@ public static final GroupLayout layout() { * H5VL_attr_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -74,9 +71,7 @@ public static final GroupLayout layout() { * H5VL_attr_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -84,9 +79,7 @@ public static final GroupLayout layout() { * H5VL_attr_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -94,7 +87,8 @@ public static int op_type(MemorySegment struct) { * H5VL_attr_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -120,25 +114,25 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_attr_get_args_t.args.get_acpl.layout().withName("get_acpl"), - H5VL_attr_get_info_args_t.layout().withName("get_info"), - H5VL_attr_get_name_args_t.layout().withName("get_name"), - H5VL_attr_get_args_t.args.get_space.layout().withName("get_space"), - H5VL_attr_get_args_t.args.get_storage_size.layout().withName("get_storage_size"), - H5VL_attr_get_args_t.args.get_type.layout().withName("get_type") - ).withName("$anon$129:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_attr_get_args_t.args.get_acpl.layout().withName("get_acpl"), + H5VL_attr_get_info_args_t.layout().withName("get_info"), + H5VL_attr_get_name_args_t.layout().withName("get_name"), + H5VL_attr_get_args_t.args.get_space.layout().withName("get_space"), + H5VL_attr_get_args_t.args.get_storage_size.layout().withName("get_storage_size"), + H5VL_attr_get_args_t.args.get_type.layout().withName("get_type")) + .withName("$anon$129:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -149,20 +143,18 @@ public static final GroupLayout layout() { */ public static class get_acpl { - get_acpl() { + get_acpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("acpl_id") - ).withName("$anon$131:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("acpl_id")).withName("$anon$131:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong acpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("acpl_id")); @@ -172,9 +164,7 @@ public static final GroupLayout layout() { * hid_t acpl_id * } */ - public static final OfLong acpl_id$layout() { - return acpl_id$LAYOUT; - } + public static final OfLong acpl_id$layout() { return acpl_id$LAYOUT; } private static final long acpl_id$OFFSET = 0; @@ -184,9 +174,7 @@ public static final GroupLayout layout() { * hid_t acpl_id * } */ - public static final long acpl_id$offset() { - return acpl_id$OFFSET; - } + public static final long acpl_id$offset() { return acpl_id$OFFSET; } /** * Getter for field: @@ -194,7 +182,8 @@ public static final GroupLayout layout() { * hid_t acpl_id * } */ - public static long acpl_id(MemorySegment struct) { + public static long acpl_id(MemorySegment struct) + { return struct.get(acpl_id$LAYOUT, acpl_id$OFFSET); } @@ -204,7 +193,8 @@ public static long acpl_id(MemorySegment struct) { * hid_t acpl_id * } */ - public static void acpl_id(MemorySegment struct, long fieldValue) { + public static void acpl_id(MemorySegment struct, long fieldValue) + { struct.set(acpl_id$LAYOUT, acpl_id$OFFSET, fieldValue); } @@ -212,7 +202,8 @@ public static void acpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -224,7 +215,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -232,7 +224,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -240,7 +233,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -248,12 +243,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_acpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_acpl")); + private static final GroupLayout get_acpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_acpl")); /** * Layout for field: @@ -263,9 +261,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_acpl * } */ - public static final GroupLayout get_acpl$layout() { - return get_acpl$LAYOUT; - } + public static final GroupLayout get_acpl$layout() { return get_acpl$LAYOUT; } private static final long get_acpl$OFFSET = 0; @@ -277,9 +273,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_acpl * } */ - public static final long get_acpl$offset() { - return get_acpl$OFFSET; - } + public static final long get_acpl$offset() { return get_acpl$OFFSET; } /** * Getter for field: @@ -289,7 +283,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_acpl * } */ - public static MemorySegment get_acpl(MemorySegment union) { + public static MemorySegment get_acpl(MemorySegment union) + { return union.asSlice(get_acpl$OFFSET, get_acpl$LAYOUT.byteSize()); } @@ -301,11 +296,13 @@ public static MemorySegment get_acpl(MemorySegment union) { * } get_acpl * } */ - public static void get_acpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_acpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_acpl$OFFSET, get_acpl$LAYOUT.byteSize()); } - private static final GroupLayout get_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_info")); + private static final GroupLayout get_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_info")); /** * Layout for field: @@ -313,9 +310,7 @@ public static void get_acpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_info_args_t get_info * } */ - public static final GroupLayout get_info$layout() { - return get_info$LAYOUT; - } + public static final GroupLayout get_info$layout() { return get_info$LAYOUT; } private static final long get_info$OFFSET = 0; @@ -325,9 +320,7 @@ public static void get_acpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_info_args_t get_info * } */ - public static final long get_info$offset() { - return get_info$OFFSET; - } + public static final long get_info$offset() { return get_info$OFFSET; } /** * Getter for field: @@ -335,7 +328,8 @@ public static void get_acpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_info_args_t get_info * } */ - public static MemorySegment get_info(MemorySegment union) { + public static MemorySegment get_info(MemorySegment union) + { return union.asSlice(get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -345,11 +339,13 @@ public static MemorySegment get_info(MemorySegment union) { * H5VL_attr_get_info_args_t get_info * } */ - public static void get_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_info$OFFSET, get_info$LAYOUT.byteSize()); } - private static final GroupLayout get_name$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_name")); + private static final GroupLayout get_name$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_name")); /** * Layout for field: @@ -357,9 +353,7 @@ public static void get_info(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_name_args_t get_name * } */ - public static final GroupLayout get_name$layout() { - return get_name$LAYOUT; - } + public static final GroupLayout get_name$layout() { return get_name$LAYOUT; } private static final long get_name$OFFSET = 0; @@ -369,9 +363,7 @@ public static void get_info(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_name_args_t get_name * } */ - public static final long get_name$offset() { - return get_name$OFFSET; - } + public static final long get_name$offset() { return get_name$OFFSET; } /** * Getter for field: @@ -379,7 +371,8 @@ public static void get_info(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_get_name_args_t get_name * } */ - public static MemorySegment get_name(MemorySegment union) { + public static MemorySegment get_name(MemorySegment union) + { return union.asSlice(get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -389,7 +382,8 @@ public static MemorySegment get_name(MemorySegment union) { * H5VL_attr_get_name_args_t get_name * } */ - public static void get_name(MemorySegment union, MemorySegment fieldValue) { + public static void get_name(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -402,20 +396,18 @@ public static void get_name(MemorySegment union, MemorySegment fieldValue) { */ public static class get_space { - get_space() { + get_space() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("space_id") - ).withName("$anon$142:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("space_id")).withName("$anon$142:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong space_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("space_id")); @@ -425,9 +417,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final OfLong space_id$layout() { - return space_id$LAYOUT; - } + public static final OfLong space_id$layout() { return space_id$LAYOUT; } private static final long space_id$OFFSET = 0; @@ -437,9 +427,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final long space_id$offset() { - return space_id$OFFSET; - } + public static final long space_id$offset() { return space_id$OFFSET; } /** * Getter for field: @@ -447,7 +435,8 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static long space_id(MemorySegment struct) { + public static long space_id(MemorySegment struct) + { return struct.get(space_id$LAYOUT, space_id$OFFSET); } @@ -457,7 +446,8 @@ public static long space_id(MemorySegment struct) { * hid_t space_id * } */ - public static void space_id(MemorySegment struct, long fieldValue) { + public static void space_id(MemorySegment struct, long fieldValue) + { struct.set(space_id$LAYOUT, space_id$OFFSET, fieldValue); } @@ -465,7 +455,8 @@ public static void space_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -477,7 +468,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -485,7 +477,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -493,7 +486,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -501,12 +496,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_space$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_space")); + private static final GroupLayout get_space$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_space")); /** * Layout for field: @@ -516,9 +514,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static final GroupLayout get_space$layout() { - return get_space$LAYOUT; - } + public static final GroupLayout get_space$layout() { return get_space$LAYOUT; } private static final long get_space$OFFSET = 0; @@ -530,9 +526,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static final long get_space$offset() { - return get_space$OFFSET; - } + public static final long get_space$offset() { return get_space$OFFSET; } /** * Getter for field: @@ -542,7 +536,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static MemorySegment get_space(MemorySegment union) { + public static MemorySegment get_space(MemorySegment union) + { return union.asSlice(get_space$OFFSET, get_space$LAYOUT.byteSize()); } @@ -554,7 +549,8 @@ public static MemorySegment get_space(MemorySegment union) { * } get_space * } */ - public static void get_space(MemorySegment union, MemorySegment fieldValue) { + public static void get_space(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_space$OFFSET, get_space$LAYOUT.byteSize()); } @@ -567,22 +563,21 @@ public static void get_space(MemorySegment union, MemorySegment fieldValue) { */ public static class get_storage_size { - get_storage_size() { + get_storage_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("data_size") - ).withName("$anon$147:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("data_size")).withName("$anon$147:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout data_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("data_size")); + private static final AddressLayout data_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("data_size")); /** * Layout for field: @@ -590,9 +585,7 @@ public static final GroupLayout layout() { * hsize_t *data_size * } */ - public static final AddressLayout data_size$layout() { - return data_size$LAYOUT; - } + public static final AddressLayout data_size$layout() { return data_size$LAYOUT; } private static final long data_size$OFFSET = 0; @@ -602,9 +595,7 @@ public static final GroupLayout layout() { * hsize_t *data_size * } */ - public static final long data_size$offset() { - return data_size$OFFSET; - } + public static final long data_size$offset() { return data_size$OFFSET; } /** * Getter for field: @@ -612,7 +603,8 @@ public static final GroupLayout layout() { * hsize_t *data_size * } */ - public static MemorySegment data_size(MemorySegment struct) { + public static MemorySegment data_size(MemorySegment struct) + { return struct.get(data_size$LAYOUT, data_size$OFFSET); } @@ -622,7 +614,8 @@ public static MemorySegment data_size(MemorySegment struct) { * hsize_t *data_size * } */ - public static void data_size(MemorySegment struct, MemorySegment fieldValue) { + public static void data_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(data_size$LAYOUT, data_size$OFFSET, fieldValue); } @@ -630,7 +623,8 @@ public static void data_size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -642,7 +636,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -650,7 +645,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -658,7 +654,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -666,12 +664,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_storage_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_storage_size")); + private static final GroupLayout get_storage_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_storage_size")); /** * Layout for field: @@ -681,9 +682,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static final GroupLayout get_storage_size$layout() { - return get_storage_size$LAYOUT; - } + public static final GroupLayout get_storage_size$layout() { return get_storage_size$LAYOUT; } private static final long get_storage_size$OFFSET = 0; @@ -695,9 +694,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static final long get_storage_size$offset() { - return get_storage_size$OFFSET; - } + public static final long get_storage_size$offset() { return get_storage_size$OFFSET; } /** * Getter for field: @@ -707,7 +704,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static MemorySegment get_storage_size(MemorySegment union) { + public static MemorySegment get_storage_size(MemorySegment union) + { return union.asSlice(get_storage_size$OFFSET, get_storage_size$LAYOUT.byteSize()); } @@ -719,8 +717,10 @@ public static MemorySegment get_storage_size(MemorySegment union) { * } get_storage_size * } */ - public static void get_storage_size(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_storage_size$OFFSET, get_storage_size$LAYOUT.byteSize()); + public static void get_storage_size(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_storage_size$OFFSET, + get_storage_size$LAYOUT.byteSize()); } /** @@ -732,20 +732,18 @@ public static void get_storage_size(MemorySegment union, MemorySegment fieldValu */ public static class get_type { - get_type() { + get_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$152:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$152:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -755,9 +753,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -767,9 +763,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -777,7 +771,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -787,7 +782,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -795,7 +791,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -807,7 +804,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -815,7 +813,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -823,7 +822,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -831,12 +832,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_type")); + private static final GroupLayout get_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_type")); /** * Layout for field: @@ -846,9 +850,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final GroupLayout get_type$layout() { - return get_type$LAYOUT; - } + public static final GroupLayout get_type$layout() { return get_type$LAYOUT; } private static final long get_type$OFFSET = 0; @@ -860,9 +862,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final long get_type$offset() { - return get_type$OFFSET; - } + public static final long get_type$offset() { return get_type$OFFSET; } /** * Getter for field: @@ -872,7 +872,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static MemorySegment get_type(MemorySegment union) { + public static MemorySegment get_type(MemorySegment union) + { return union.asSlice(get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -884,7 +885,8 @@ public static MemorySegment get_type(MemorySegment union) { * } get_type * } */ - public static void get_type(MemorySegment union, MemorySegment fieldValue) { + public static void get_type(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -892,7 +894,8 @@ public static void get_type(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -904,7 +907,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -912,7 +916,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -920,7 +925,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -928,7 +935,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -956,9 +965,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -983,9 +990,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1008,7 +1013,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1033,7 +1039,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1041,7 +1048,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1053,15 +1061,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1069,7 +1076,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1077,8 +1085,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_info_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_info_args_t.java index a58dc799e46..c90c0ff8b3b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_info_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_info_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_get_info_args_t { @@ -23,24 +23,24 @@ */ public class H5VL_attr_get_info_args_t { - H5VL_attr_get_info_args_t() { + H5VL_attr_get_info_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_POINTER.withName("attr_name"), - hdf5_h.C_POINTER.withName("ainfo") - ).withName("H5VL_attr_get_info_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_POINTER.withName("attr_name"), hdf5_h.C_POINTER.withName("ainfo")) + .withName("H5VL_attr_get_info_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -48,9 +48,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -60,9 +58,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -70,7 +66,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -80,11 +77,13 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } - private static final AddressLayout attr_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("attr_name")); + private static final AddressLayout attr_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("attr_name")); /** * Layout for field: @@ -92,9 +91,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *attr_name * } */ - public static final AddressLayout attr_name$layout() { - return attr_name$LAYOUT; - } + public static final AddressLayout attr_name$layout() { return attr_name$LAYOUT; } private static final long attr_name$OFFSET = 40; @@ -104,9 +101,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *attr_name * } */ - public static final long attr_name$offset() { - return attr_name$OFFSET; - } + public static final long attr_name$offset() { return attr_name$OFFSET; } /** * Getter for field: @@ -114,7 +109,8 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *attr_name * } */ - public static MemorySegment attr_name(MemorySegment struct) { + public static MemorySegment attr_name(MemorySegment struct) + { return struct.get(attr_name$LAYOUT, attr_name$OFFSET); } @@ -124,7 +120,8 @@ public static MemorySegment attr_name(MemorySegment struct) { * const char *attr_name * } */ - public static void attr_name(MemorySegment struct, MemorySegment fieldValue) { + public static void attr_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(attr_name$LAYOUT, attr_name$OFFSET, fieldValue); } @@ -136,9 +133,7 @@ public static void attr_name(MemorySegment struct, MemorySegment fieldValue) { * H5A_info_t *ainfo * } */ - public static final AddressLayout ainfo$layout() { - return ainfo$LAYOUT; - } + public static final AddressLayout ainfo$layout() { return ainfo$LAYOUT; } private static final long ainfo$OFFSET = 48; @@ -148,9 +143,7 @@ public static void attr_name(MemorySegment struct, MemorySegment fieldValue) { * H5A_info_t *ainfo * } */ - public static final long ainfo$offset() { - return ainfo$OFFSET; - } + public static final long ainfo$offset() { return ainfo$OFFSET; } /** * Getter for field: @@ -158,9 +151,7 @@ public static void attr_name(MemorySegment struct, MemorySegment fieldValue) { * H5A_info_t *ainfo * } */ - public static MemorySegment ainfo(MemorySegment struct) { - return struct.get(ainfo$LAYOUT, ainfo$OFFSET); - } + public static MemorySegment ainfo(MemorySegment struct) { return struct.get(ainfo$LAYOUT, ainfo$OFFSET); } /** * Setter for field: @@ -168,7 +159,8 @@ public static MemorySegment ainfo(MemorySegment struct) { * H5A_info_t *ainfo * } */ - public static void ainfo(MemorySegment struct, MemorySegment fieldValue) { + public static void ainfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(ainfo$LAYOUT, ainfo$OFFSET, fieldValue); } @@ -176,7 +168,8 @@ public static void ainfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +181,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +196,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +205,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_name_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_name_args_t.java index 237532879a2..3929cb1f72f 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_name_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_get_name_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_get_name_args_t { @@ -24,25 +24,25 @@ */ public class H5VL_attr_get_name_args_t { - H5VL_attr_get_name_args_t() { + H5VL_attr_get_name_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_POINTER.withName("attr_name_len") - ).withName("H5VL_attr_get_name_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf"), + hdf5_h.C_POINTER.withName("attr_name_len")) + .withName("H5VL_attr_get_name_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -50,9 +50,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -62,9 +60,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -72,7 +68,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -82,7 +79,8 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -94,9 +92,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 40; @@ -106,9 +102,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -116,9 +110,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { - return struct.get(buf_size$LAYOUT, buf_size$OFFSET); - } + public static long buf_size(MemorySegment struct) { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } /** * Setter for field: @@ -126,7 +118,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -138,9 +131,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 48; @@ -150,9 +141,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -160,9 +149,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -170,11 +157,13 @@ public static MemorySegment buf(MemorySegment struct) { * char *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } - private static final AddressLayout attr_name_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("attr_name_len")); + private static final AddressLayout attr_name_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("attr_name_len")); /** * Layout for field: @@ -182,9 +171,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *attr_name_len * } */ - public static final AddressLayout attr_name_len$layout() { - return attr_name_len$LAYOUT; - } + public static final AddressLayout attr_name_len$layout() { return attr_name_len$LAYOUT; } private static final long attr_name_len$OFFSET = 56; @@ -194,9 +181,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *attr_name_len * } */ - public static final long attr_name_len$offset() { - return attr_name_len$OFFSET; - } + public static final long attr_name_len$offset() { return attr_name_len$OFFSET; } /** * Getter for field: @@ -204,7 +189,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *attr_name_len * } */ - public static MemorySegment attr_name_len(MemorySegment struct) { + public static MemorySegment attr_name_len(MemorySegment struct) + { return struct.get(attr_name_len$LAYOUT, attr_name_len$OFFSET); } @@ -214,7 +200,8 @@ public static MemorySegment attr_name_len(MemorySegment struct) { * size_t *attr_name_len * } */ - public static void attr_name_len(MemorySegment struct, MemorySegment fieldValue) { + public static void attr_name_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(attr_name_len$LAYOUT, attr_name_len$OFFSET, fieldValue); } @@ -222,7 +209,8 @@ public static void attr_name_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +222,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +237,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +246,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_iterate_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_iterate_args_t.java index c98a5f7d216..9e7c2517a21 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_iterate_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_iterate_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_iterate_args_t { @@ -25,24 +25,22 @@ */ public class H5VL_attr_iterate_args_t { - H5VL_attr_iterate_args_t() { + H5VL_attr_iterate_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("idx_type"), - hdf5_h.C_INT.withName("order"), - hdf5_h.C_POINTER.withName("idx"), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5VL_attr_iterate_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("idx_type"), hdf5_h.C_INT.withName("order"), + hdf5_h.C_POINTER.withName("idx"), hdf5_h.C_POINTER.withName("op"), + hdf5_h.C_POINTER.withName("op_data")) + .withName("H5VL_attr_iterate_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt idx_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("idx_type")); @@ -52,9 +50,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final OfInt idx_type$layout() { - return idx_type$LAYOUT; - } + public static final OfInt idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 0; @@ -64,9 +60,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -74,9 +68,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static int idx_type(MemorySegment struct) { - return struct.get(idx_type$LAYOUT, idx_type$OFFSET); - } + public static int idx_type(MemorySegment struct) { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } /** * Setter for field: @@ -84,7 +76,8 @@ public static int idx_type(MemorySegment struct) { * H5_index_t idx_type * } */ - public static void idx_type(MemorySegment struct, int fieldValue) { + public static void idx_type(MemorySegment struct, int fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -96,9 +89,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final OfInt order$layout() { - return order$LAYOUT; - } + public static final OfInt order$layout() { return order$LAYOUT; } private static final long order$OFFSET = 4; @@ -108,9 +99,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final long order$offset() { - return order$OFFSET; - } + public static final long order$offset() { return order$OFFSET; } /** * Getter for field: @@ -118,9 +107,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static int order(MemorySegment struct) { - return struct.get(order$LAYOUT, order$OFFSET); - } + public static int order(MemorySegment struct) { return struct.get(order$LAYOUT, order$OFFSET); } /** * Setter for field: @@ -128,7 +115,8 @@ public static int order(MemorySegment struct) { * H5_iter_order_t order * } */ - public static void order(MemorySegment struct, int fieldValue) { + public static void order(MemorySegment struct, int fieldValue) + { struct.set(order$LAYOUT, order$OFFSET, fieldValue); } @@ -140,9 +128,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx * } */ - public static final AddressLayout idx$layout() { - return idx$LAYOUT; - } + public static final AddressLayout idx$layout() { return idx$LAYOUT; } private static final long idx$OFFSET = 8; @@ -152,9 +138,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx * } */ - public static final long idx$offset() { - return idx$OFFSET; - } + public static final long idx$offset() { return idx$OFFSET; } /** * Getter for field: @@ -162,9 +146,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx * } */ - public static MemorySegment idx(MemorySegment struct) { - return struct.get(idx$LAYOUT, idx$OFFSET); - } + public static MemorySegment idx(MemorySegment struct) { return struct.get(idx$LAYOUT, idx$OFFSET); } /** * Setter for field: @@ -172,7 +154,8 @@ public static MemorySegment idx(MemorySegment struct) { * hsize_t *idx * } */ - public static void idx(MemorySegment struct, MemorySegment fieldValue) { + public static void idx(MemorySegment struct, MemorySegment fieldValue) + { struct.set(idx$LAYOUT, idx$OFFSET, fieldValue); } @@ -184,9 +167,7 @@ public static void idx(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator2_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 16; @@ -196,9 +177,7 @@ public static void idx(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator2_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -206,9 +185,7 @@ public static void idx(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator2_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -216,11 +193,13 @@ public static MemorySegment op(MemorySegment struct) { * H5A_operator2_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -228,9 +207,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 24; @@ -240,9 +217,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -250,7 +225,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -260,7 +236,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -268,7 +245,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -280,15 +258,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -296,7 +273,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -304,8 +282,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_specific_args_t.java index a57df39dcbe..b6c421a2f48 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_attr_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_attr_specific_args_t { @@ -36,22 +36,21 @@ */ public class H5VL_attr_specific_args_t { - H5VL_attr_specific_args_t() { + H5VL_attr_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_attr_specific_args_t.args.layout().withName("args") - ).withName("H5VL_attr_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_attr_specific_args_t.args.layout().withName("args")) + .withName("H5VL_attr_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -61,9 +60,7 @@ public static final GroupLayout layout() { * H5VL_attr_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -73,9 +70,7 @@ public static final GroupLayout layout() { * H5VL_attr_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -83,9 +78,7 @@ public static final GroupLayout layout() { * H5VL_attr_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -93,7 +86,8 @@ public static int op_type(MemorySegment struct) { * H5VL_attr_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -118,24 +112,24 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_attr_specific_args_t.args.del.layout().withName("del"), - H5VL_attr_delete_by_idx_args_t.layout().withName("delete_by_idx"), - H5VL_attr_specific_args_t.args.exists.layout().withName("exists"), - H5VL_attr_iterate_args_t.layout().withName("iterate"), - H5VL_attr_specific_args_t.args.rename.layout().withName("rename") - ).withName("$anon$188:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_attr_specific_args_t.args.del.layout().withName("del"), + H5VL_attr_delete_by_idx_args_t.layout().withName("delete_by_idx"), + H5VL_attr_specific_args_t.args.exists.layout().withName("exists"), + H5VL_attr_iterate_args_t.layout().withName("iterate"), + H5VL_attr_specific_args_t.args.rename.layout().withName("rename")) + .withName("$anon$188:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -146,22 +140,21 @@ public static final GroupLayout layout() { */ public static class del { - del() { + del() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name") - ).withName("$anon$190:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("name")).withName("$anon$190:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); + private static final AddressLayout name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name")); /** * Layout for field: @@ -169,9 +162,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -181,9 +172,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -191,7 +180,8 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -201,7 +191,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -209,7 +200,8 @@ public static void name(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -221,7 +213,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -229,7 +222,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -237,7 +231,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -245,7 +241,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -260,9 +258,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final GroupLayout del$layout() { - return del$LAYOUT; - } + public static final GroupLayout del$layout() { return del$LAYOUT; } private static final long del$OFFSET = 0; @@ -274,9 +270,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final long del$offset() { - return del$OFFSET; - } + public static final long del$offset() { return del$OFFSET; } /** * Getter for field: @@ -286,7 +280,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static MemorySegment del(MemorySegment union) { + public static MemorySegment del(MemorySegment union) + { return union.asSlice(del$OFFSET, del$LAYOUT.byteSize()); } @@ -298,11 +293,13 @@ public static MemorySegment del(MemorySegment union) { * } del * } */ - public static void del(MemorySegment union, MemorySegment fieldValue) { + public static void del(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, del$OFFSET, del$LAYOUT.byteSize()); } - private static final GroupLayout delete_by_idx$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("delete_by_idx")); + private static final GroupLayout delete_by_idx$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("delete_by_idx")); /** * Layout for field: @@ -310,9 +307,7 @@ public static void del(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_delete_by_idx_args_t delete_by_idx * } */ - public static final GroupLayout delete_by_idx$layout() { - return delete_by_idx$LAYOUT; - } + public static final GroupLayout delete_by_idx$layout() { return delete_by_idx$LAYOUT; } private static final long delete_by_idx$OFFSET = 0; @@ -322,9 +317,7 @@ public static void del(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_delete_by_idx_args_t delete_by_idx * } */ - public static final long delete_by_idx$offset() { - return delete_by_idx$OFFSET; - } + public static final long delete_by_idx$offset() { return delete_by_idx$OFFSET; } /** * Getter for field: @@ -332,7 +325,8 @@ public static void del(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_delete_by_idx_args_t delete_by_idx * } */ - public static MemorySegment delete_by_idx(MemorySegment union) { + public static MemorySegment delete_by_idx(MemorySegment union) + { return union.asSlice(delete_by_idx$OFFSET, delete_by_idx$LAYOUT.byteSize()); } @@ -342,7 +336,8 @@ public static MemorySegment delete_by_idx(MemorySegment union) { * H5VL_attr_delete_by_idx_args_t delete_by_idx * } */ - public static void delete_by_idx(MemorySegment union, MemorySegment fieldValue) { + public static void delete_by_idx(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, delete_by_idx$OFFSET, delete_by_idx$LAYOUT.byteSize()); } @@ -356,23 +351,23 @@ public static void delete_by_idx(MemorySegment union, MemorySegment fieldValue) */ public static class exists { - exists() { + exists() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_POINTER.withName("exists") - ).withName("$anon$198:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("name"), hdf5_h.C_POINTER.withName("exists")) + .withName("$anon$198:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); + private static final AddressLayout name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name")); /** * Layout for field: @@ -380,9 +375,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -392,9 +385,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -402,7 +393,8 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -412,11 +404,13 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } - private static final AddressLayout exists$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("exists")); + private static final AddressLayout exists$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("exists")); /** * Layout for field: @@ -424,9 +418,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *exists * } */ - public static final AddressLayout exists$layout() { - return exists$LAYOUT; - } + public static final AddressLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 8; @@ -436,9 +428,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -446,7 +436,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *exists * } */ - public static MemorySegment exists(MemorySegment struct) { + public static MemorySegment exists(MemorySegment struct) + { return struct.get(exists$LAYOUT, exists$OFFSET); } @@ -456,7 +447,8 @@ public static MemorySegment exists(MemorySegment struct) { * hbool_t *exists * } */ - public static void exists(MemorySegment struct, MemorySegment fieldValue) { + public static void exists(MemorySegment struct, MemorySegment fieldValue) + { struct.set(exists$LAYOUT, exists$OFFSET, fieldValue); } @@ -464,7 +456,8 @@ public static void exists(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -476,7 +469,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -484,7 +478,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -492,7 +487,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -500,7 +497,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -516,9 +515,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final GroupLayout exists$layout() { - return exists$LAYOUT; - } + public static final GroupLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -531,9 +528,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -544,7 +539,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static MemorySegment exists(MemorySegment union) { + public static MemorySegment exists(MemorySegment union) + { return union.asSlice(exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -557,11 +553,13 @@ public static MemorySegment exists(MemorySegment union) { * } exists * } */ - public static void exists(MemorySegment union, MemorySegment fieldValue) { + public static void exists(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, exists$OFFSET, exists$LAYOUT.byteSize()); } - private static final GroupLayout iterate$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("iterate")); + private static final GroupLayout iterate$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("iterate")); /** * Layout for field: @@ -569,9 +567,7 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_iterate_args_t iterate * } */ - public static final GroupLayout iterate$layout() { - return iterate$LAYOUT; - } + public static final GroupLayout iterate$layout() { return iterate$LAYOUT; } private static final long iterate$OFFSET = 0; @@ -581,9 +577,7 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_iterate_args_t iterate * } */ - public static final long iterate$offset() { - return iterate$OFFSET; - } + public static final long iterate$offset() { return iterate$OFFSET; } /** * Getter for field: @@ -591,7 +585,8 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_attr_iterate_args_t iterate * } */ - public static MemorySegment iterate(MemorySegment union) { + public static MemorySegment iterate(MemorySegment union) + { return union.asSlice(iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -601,7 +596,8 @@ public static MemorySegment iterate(MemorySegment union) { * H5VL_attr_iterate_args_t iterate * } */ - public static void iterate(MemorySegment union, MemorySegment fieldValue) { + public static void iterate(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -615,23 +611,24 @@ public static void iterate(MemorySegment union, MemorySegment fieldValue) { */ public static class rename { - rename() { + rename() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("old_name"), - hdf5_h.C_POINTER.withName("new_name") - ).withName("$anon$207:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("old_name"), + hdf5_h.C_POINTER.withName("new_name")) + .withName("$anon$207:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout old_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("old_name")); + private static final AddressLayout old_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("old_name")); /** * Layout for field: @@ -639,9 +636,7 @@ public static final GroupLayout layout() { * const char *old_name * } */ - public static final AddressLayout old_name$layout() { - return old_name$LAYOUT; - } + public static final AddressLayout old_name$layout() { return old_name$LAYOUT; } private static final long old_name$OFFSET = 0; @@ -651,9 +646,7 @@ public static final GroupLayout layout() { * const char *old_name * } */ - public static final long old_name$offset() { - return old_name$OFFSET; - } + public static final long old_name$offset() { return old_name$OFFSET; } /** * Getter for field: @@ -661,7 +654,8 @@ public static final GroupLayout layout() { * const char *old_name * } */ - public static MemorySegment old_name(MemorySegment struct) { + public static MemorySegment old_name(MemorySegment struct) + { return struct.get(old_name$LAYOUT, old_name$OFFSET); } @@ -671,11 +665,13 @@ public static MemorySegment old_name(MemorySegment struct) { * const char *old_name * } */ - public static void old_name(MemorySegment struct, MemorySegment fieldValue) { + public static void old_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(old_name$LAYOUT, old_name$OFFSET, fieldValue); } - private static final AddressLayout new_name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("new_name")); + private static final AddressLayout new_name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("new_name")); /** * Layout for field: @@ -683,9 +679,7 @@ public static void old_name(MemorySegment struct, MemorySegment fieldValue) { * const char *new_name * } */ - public static final AddressLayout new_name$layout() { - return new_name$LAYOUT; - } + public static final AddressLayout new_name$layout() { return new_name$LAYOUT; } private static final long new_name$OFFSET = 8; @@ -695,9 +689,7 @@ public static void old_name(MemorySegment struct, MemorySegment fieldValue) { * const char *new_name * } */ - public static final long new_name$offset() { - return new_name$OFFSET; - } + public static final long new_name$offset() { return new_name$OFFSET; } /** * Getter for field: @@ -705,7 +697,8 @@ public static void old_name(MemorySegment struct, MemorySegment fieldValue) { * const char *new_name * } */ - public static MemorySegment new_name(MemorySegment struct) { + public static MemorySegment new_name(MemorySegment struct) + { return struct.get(new_name$LAYOUT, new_name$OFFSET); } @@ -715,7 +708,8 @@ public static MemorySegment new_name(MemorySegment struct) { * const char *new_name * } */ - public static void new_name(MemorySegment struct, MemorySegment fieldValue) { + public static void new_name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(new_name$LAYOUT, new_name$OFFSET, fieldValue); } @@ -723,7 +717,8 @@ public static void new_name(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -735,7 +730,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -743,7 +739,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -751,7 +748,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -759,7 +758,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -775,9 +776,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } rename * } */ - public static final GroupLayout rename$layout() { - return rename$LAYOUT; - } + public static final GroupLayout rename$layout() { return rename$LAYOUT; } private static final long rename$OFFSET = 0; @@ -790,9 +789,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } rename * } */ - public static final long rename$offset() { - return rename$OFFSET; - } + public static final long rename$offset() { return rename$OFFSET; } /** * Getter for field: @@ -803,7 +800,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } rename * } */ - public static MemorySegment rename(MemorySegment union) { + public static MemorySegment rename(MemorySegment union) + { return union.asSlice(rename$OFFSET, rename$LAYOUT.byteSize()); } @@ -816,7 +814,8 @@ public static MemorySegment rename(MemorySegment union) { * } rename * } */ - public static void rename(MemorySegment union, MemorySegment fieldValue) { + public static void rename(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, rename$OFFSET, rename$LAYOUT.byteSize()); } @@ -824,7 +823,8 @@ public static void rename(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -836,7 +836,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -844,7 +845,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -852,7 +854,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -860,7 +864,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -887,9 +893,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -913,9 +917,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -937,7 +939,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -961,7 +964,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -969,7 +973,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -981,15 +986,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -997,7 +1001,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1005,8 +1010,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_class_t.java index 30eb1a44ef7..5c4a92f4247 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_blob_class_t { @@ -24,23 +24,21 @@ */ public class H5VL_blob_class_t { - H5VL_blob_class_t() { + H5VL_blob_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("put"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional") - ).withName("H5VL_blob_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("put"), hdf5_h.C_POINTER.withName("get"), + hdf5_h.C_POINTER.withName("specific"), hdf5_h.C_POINTER.withName("optional")) + .withName("H5VL_blob_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -49,7 +47,8 @@ public static final GroupLayout layout() { */ public static class put { - put() { + put() + { // Should not be called directly } @@ -60,21 +59,14 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(put.Function.class, "apply", $DESC); @@ -82,7 +74,8 @@ public static FunctionDescriptor descriptor() { * 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(put.Function fi, Arena arena) { + public static MemorySegment allocate(put.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -91,10 +84,13 @@ public static MemorySegment allocate(put.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -108,9 +104,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*put)(void *, const void *, size_t, void *, void *) * } */ - public static final AddressLayout put$layout() { - return put$LAYOUT; - } + public static final AddressLayout put$layout() { return put$LAYOUT; } private static final long put$OFFSET = 0; @@ -120,9 +114,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*put)(void *, const void *, size_t, void *, void *) * } */ - public static final long put$offset() { - return put$OFFSET; - } + public static final long put$offset() { return put$OFFSET; } /** * Getter for field: @@ -130,9 +122,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*put)(void *, const void *, size_t, void *, void *) * } */ - public static MemorySegment put(MemorySegment struct) { - return struct.get(put$LAYOUT, put$OFFSET); - } + public static MemorySegment put(MemorySegment struct) { return struct.get(put$LAYOUT, put$OFFSET); } /** * Setter for field: @@ -140,7 +130,8 @@ public static MemorySegment put(MemorySegment struct) { * herr_t (*put)(void *, const void *, size_t, void *, void *) * } */ - public static void put(MemorySegment struct, MemorySegment fieldValue) { + public static void put(MemorySegment struct, MemorySegment fieldValue) + { struct.set(put$LAYOUT, put$OFFSET, fieldValue); } @@ -151,7 +142,8 @@ public static void put(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -162,21 +154,14 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -184,7 +169,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -193,10 +179,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -210,9 +199,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const void *, void *, size_t, void *) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 8; @@ -222,9 +209,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const void *, void *, size_t, void *) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -232,9 +217,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const void *, void *, size_t, void *) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -242,7 +225,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, const void *, void *, size_t, void *) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -253,7 +237,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -264,27 +249,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -293,16 +274,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -310,9 +295,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, void *, H5VL_blob_specific_args_t *) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 16; @@ -322,9 +305,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, void *, H5VL_blob_specific_args_t *) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -332,7 +313,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, void *, H5VL_blob_specific_args_t *) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -342,7 +324,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, void *, H5VL_blob_specific_args_t *) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -353,7 +336,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -364,27 +348,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -393,16 +373,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -410,9 +394,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, void *, H5VL_optional_args_t *) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 24; @@ -422,9 +404,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, void *, H5VL_optional_args_t *) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -432,7 +412,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, void *, H5VL_optional_args_t *) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -442,7 +423,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, void *, H5VL_optional_args_t *) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -450,7 +432,8 @@ public static void optional(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -462,15 +445,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -478,7 +460,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -486,8 +469,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_specific_args_t.java index a78d13bfd0c..5e9d692f5a2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_blob_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_blob_specific_args_t { @@ -26,22 +26,21 @@ */ public class H5VL_blob_specific_args_t { - H5VL_blob_specific_args_t() { + H5VL_blob_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_blob_specific_args_t.args.layout().withName("args") - ).withName("H5VL_blob_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_blob_specific_args_t.args.layout().withName("args")) + .withName("H5VL_blob_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -51,9 +50,7 @@ public static final GroupLayout layout() { * H5VL_blob_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -63,9 +60,7 @@ public static final GroupLayout layout() { * H5VL_blob_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -73,9 +68,7 @@ public static final GroupLayout layout() { * H5VL_blob_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -83,7 +76,8 @@ public static int op_type(MemorySegment struct) { * H5VL_blob_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -98,20 +92,19 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_blob_specific_args_t.args.is_null.layout().withName("is_null") - ).withName("$anon$826:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.unionLayout(H5VL_blob_specific_args_t.args.is_null.layout().withName("is_null")) + .withName("$anon$826:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -122,22 +115,21 @@ public static final GroupLayout layout() { */ public static class is_null { - is_null() { + is_null() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("isnull") - ).withName("$anon$831:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("isnull")).withName("$anon$831:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout isnull$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("isnull")); + private static final AddressLayout isnull$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("isnull")); /** * Layout for field: @@ -145,9 +137,7 @@ public static final GroupLayout layout() { * hbool_t *isnull * } */ - public static final AddressLayout isnull$layout() { - return isnull$LAYOUT; - } + public static final AddressLayout isnull$layout() { return isnull$LAYOUT; } private static final long isnull$OFFSET = 0; @@ -157,9 +147,7 @@ public static final GroupLayout layout() { * hbool_t *isnull * } */ - public static final long isnull$offset() { - return isnull$OFFSET; - } + public static final long isnull$offset() { return isnull$OFFSET; } /** * Getter for field: @@ -167,7 +155,8 @@ public static final GroupLayout layout() { * hbool_t *isnull * } */ - public static MemorySegment isnull(MemorySegment struct) { + public static MemorySegment isnull(MemorySegment struct) + { return struct.get(isnull$LAYOUT, isnull$OFFSET); } @@ -177,7 +166,8 @@ public static MemorySegment isnull(MemorySegment struct) { * hbool_t *isnull * } */ - public static void isnull(MemorySegment struct, MemorySegment fieldValue) { + public static void isnull(MemorySegment struct, MemorySegment fieldValue) + { struct.set(isnull$LAYOUT, isnull$OFFSET, fieldValue); } @@ -185,7 +175,8 @@ public static void isnull(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -197,7 +188,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -205,7 +197,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -213,7 +206,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -221,12 +216,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout is_null$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("is_null")); + private static final GroupLayout is_null$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("is_null")); /** * Layout for field: @@ -236,9 +234,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_null * } */ - public static final GroupLayout is_null$layout() { - return is_null$LAYOUT; - } + public static final GroupLayout is_null$layout() { return is_null$LAYOUT; } private static final long is_null$OFFSET = 0; @@ -250,9 +246,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_null * } */ - public static final long is_null$offset() { - return is_null$OFFSET; - } + public static final long is_null$offset() { return is_null$OFFSET; } /** * Getter for field: @@ -262,7 +256,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_null * } */ - public static MemorySegment is_null(MemorySegment union) { + public static MemorySegment is_null(MemorySegment union) + { return union.asSlice(is_null$OFFSET, is_null$LAYOUT.byteSize()); } @@ -274,7 +269,8 @@ public static MemorySegment is_null(MemorySegment union) { * } is_null * } */ - public static void is_null(MemorySegment union, MemorySegment fieldValue) { + public static void is_null(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, is_null$OFFSET, is_null$LAYOUT.byteSize()); } @@ -282,7 +278,8 @@ public static void is_null(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -294,7 +291,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -302,7 +300,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -310,7 +309,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -318,7 +319,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -335,9 +338,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -351,9 +352,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -365,7 +364,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -379,7 +379,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -387,7 +388,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -399,15 +401,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -415,7 +416,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -423,8 +425,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_class_t.java index 492c4c117ef..323ed5d5342 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_class_t { @@ -41,41 +41,37 @@ */ public class H5VL_class_t { - H5VL_class_t() { + H5VL_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("value"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_INT.withName("conn_version"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("cap_flags"), - hdf5_h.C_POINTER.withName("initialize"), - hdf5_h.C_POINTER.withName("terminate"), - H5VL_info_class_t.layout().withName("info_cls"), - H5VL_wrap_class_t.layout().withName("wrap_cls"), - H5VL_attr_class_t.layout().withName("attr_cls"), - H5VL_dataset_class_t.layout().withName("dataset_cls"), - H5VL_datatype_class_t.layout().withName("datatype_cls"), - H5VL_file_class_t.layout().withName("file_cls"), - H5VL_group_class_t.layout().withName("group_cls"), - H5VL_link_class_t.layout().withName("link_cls"), - H5VL_object_class_t.layout().withName("object_cls"), - H5VL_introspect_class_t.layout().withName("introspect_cls"), - H5VL_request_class_t.layout().withName("request_cls"), - H5VL_blob_class_t.layout().withName("blob_cls"), - H5VL_token_class_t.layout().withName("token_cls"), - hdf5_h.C_POINTER.withName("optional") - ).withName("H5VL_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("value"), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_INT.withName("conn_version"), + MemoryLayout.paddingLayout(4), hdf5_h.C_LONG.withName("cap_flags"), + hdf5_h.C_POINTER.withName("initialize"), hdf5_h.C_POINTER.withName("terminate"), + H5VL_info_class_t.layout().withName("info_cls"), + H5VL_wrap_class_t.layout().withName("wrap_cls"), + H5VL_attr_class_t.layout().withName("attr_cls"), + H5VL_dataset_class_t.layout().withName("dataset_cls"), + H5VL_datatype_class_t.layout().withName("datatype_cls"), + H5VL_file_class_t.layout().withName("file_cls"), + H5VL_group_class_t.layout().withName("group_cls"), + H5VL_link_class_t.layout().withName("link_cls"), + H5VL_object_class_t.layout().withName("object_cls"), + H5VL_introspect_class_t.layout().withName("introspect_cls"), + H5VL_request_class_t.layout().withName("request_cls"), + H5VL_blob_class_t.layout().withName("blob_cls"), + H5VL_token_class_t.layout().withName("token_cls"), + hdf5_h.C_POINTER.withName("optional")) + .withName("H5VL_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -85,9 +81,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -97,9 +91,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -107,9 +99,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -117,7 +107,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -129,9 +120,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5VL_class_value_t value * } */ - public static final OfInt value$layout() { - return value$LAYOUT; - } + public static final OfInt value$layout() { return value$LAYOUT; } private static final long value$OFFSET = 4; @@ -141,9 +130,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5VL_class_value_t value * } */ - public static final long value$offset() { - return value$OFFSET; - } + public static final long value$offset() { return value$OFFSET; } /** * Getter for field: @@ -151,9 +138,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5VL_class_value_t value * } */ - public static int value(MemorySegment struct) { - return struct.get(value$LAYOUT, value$OFFSET); - } + public static int value(MemorySegment struct) { return struct.get(value$LAYOUT, value$OFFSET); } /** * Setter for field: @@ -161,7 +146,8 @@ public static int value(MemorySegment struct) { * H5VL_class_value_t value * } */ - public static void value(MemorySegment struct, int fieldValue) { + public static void value(MemorySegment struct, int fieldValue) + { struct.set(value$LAYOUT, value$OFFSET, fieldValue); } @@ -173,9 +159,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 8; @@ -185,9 +169,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -195,9 +177,7 @@ public static void value(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -205,7 +185,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -217,9 +198,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int conn_version * } */ - public static final OfInt conn_version$layout() { - return conn_version$LAYOUT; - } + public static final OfInt conn_version$layout() { return conn_version$LAYOUT; } private static final long conn_version$OFFSET = 16; @@ -229,9 +208,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int conn_version * } */ - public static final long conn_version$offset() { - return conn_version$OFFSET; - } + public static final long conn_version$offset() { return conn_version$OFFSET; } /** * Getter for field: @@ -239,7 +216,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * unsigned int conn_version * } */ - public static int conn_version(MemorySegment struct) { + public static int conn_version(MemorySegment struct) + { return struct.get(conn_version$LAYOUT, conn_version$OFFSET); } @@ -249,7 +227,8 @@ public static int conn_version(MemorySegment struct) { * unsigned int conn_version * } */ - public static void conn_version(MemorySegment struct, int fieldValue) { + public static void conn_version(MemorySegment struct, int fieldValue) + { struct.set(conn_version$LAYOUT, conn_version$OFFSET, fieldValue); } @@ -261,9 +240,7 @@ public static void conn_version(MemorySegment struct, int fieldValue) { * uint64_t cap_flags * } */ - public static final OfLong cap_flags$layout() { - return cap_flags$LAYOUT; - } + public static final OfLong cap_flags$layout() { return cap_flags$LAYOUT; } private static final long cap_flags$OFFSET = 24; @@ -273,9 +250,7 @@ public static void conn_version(MemorySegment struct, int fieldValue) { * uint64_t cap_flags * } */ - public static final long cap_flags$offset() { - return cap_flags$OFFSET; - } + public static final long cap_flags$offset() { return cap_flags$OFFSET; } /** * Getter for field: @@ -283,7 +258,8 @@ public static void conn_version(MemorySegment struct, int fieldValue) { * uint64_t cap_flags * } */ - public static long cap_flags(MemorySegment struct) { + public static long cap_flags(MemorySegment struct) + { return struct.get(cap_flags$LAYOUT, cap_flags$OFFSET); } @@ -293,7 +269,8 @@ public static long cap_flags(MemorySegment struct) { * uint64_t cap_flags * } */ - public static void cap_flags(MemorySegment struct, long fieldValue) { + public static void cap_flags(MemorySegment struct, long fieldValue) + { struct.set(cap_flags$LAYOUT, cap_flags$OFFSET, fieldValue); } @@ -304,7 +281,8 @@ public static void cap_flags(MemorySegment struct, long fieldValue) { */ public static class initialize { - initialize() { + initialize() + { // Should not be called directly } @@ -315,25 +293,22 @@ public interface Function { int apply(long _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(initialize.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(initialize.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(initialize.Function fi, Arena arena) { + public static MemorySegment allocate(initialize.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -342,16 +317,19 @@ public static MemorySegment allocate(initialize.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0) { + public static int invoke(MemorySegment funcPtr, long _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout initialize$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("initialize")); + private static final AddressLayout initialize$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("initialize")); /** * Layout for field: @@ -359,9 +337,7 @@ public static int invoke(MemorySegment funcPtr,long _x0) { * herr_t (*initialize)(hid_t) * } */ - public static final AddressLayout initialize$layout() { - return initialize$LAYOUT; - } + public static final AddressLayout initialize$layout() { return initialize$LAYOUT; } private static final long initialize$OFFSET = 32; @@ -371,9 +347,7 @@ public static int invoke(MemorySegment funcPtr,long _x0) { * herr_t (*initialize)(hid_t) * } */ - public static final long initialize$offset() { - return initialize$OFFSET; - } + public static final long initialize$offset() { return initialize$OFFSET; } /** * Getter for field: @@ -381,7 +355,8 @@ public static int invoke(MemorySegment funcPtr,long _x0) { * herr_t (*initialize)(hid_t) * } */ - public static MemorySegment initialize(MemorySegment struct) { + public static MemorySegment initialize(MemorySegment struct) + { return struct.get(initialize$LAYOUT, initialize$OFFSET); } @@ -391,7 +366,8 @@ public static MemorySegment initialize(MemorySegment struct) { * herr_t (*initialize)(hid_t) * } */ - public static void initialize(MemorySegment struct, MemorySegment fieldValue) { + public static void initialize(MemorySegment struct, MemorySegment fieldValue) + { struct.set(initialize$LAYOUT, initialize$OFFSET, fieldValue); } @@ -402,7 +378,8 @@ public static void initialize(MemorySegment struct, MemorySegment fieldValue) { */ public static class terminate { - terminate() { + terminate() + { // Should not be called directly } @@ -413,23 +390,22 @@ public interface Function { int apply(); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(terminate.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(terminate.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(terminate.Function fi, Arena arena) { + public static MemorySegment allocate(terminate.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -438,16 +414,19 @@ public static MemorySegment allocate(terminate.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr) { + public static int invoke(MemorySegment funcPtr) + { try { - return (int) DOWN$MH.invokeExact(funcPtr); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout terminate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("terminate")); + private static final AddressLayout terminate$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("terminate")); /** * Layout for field: @@ -455,9 +434,7 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static final AddressLayout terminate$layout() { - return terminate$LAYOUT; - } + public static final AddressLayout terminate$layout() { return terminate$LAYOUT; } private static final long terminate$OFFSET = 40; @@ -467,9 +444,7 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static final long terminate$offset() { - return terminate$OFFSET; - } + public static final long terminate$offset() { return terminate$OFFSET; } /** * Getter for field: @@ -477,7 +452,8 @@ public static int invoke(MemorySegment funcPtr) { * herr_t (*terminate)(void) * } */ - public static MemorySegment terminate(MemorySegment struct) { + public static MemorySegment terminate(MemorySegment struct) + { return struct.get(terminate$LAYOUT, terminate$OFFSET); } @@ -487,7 +463,8 @@ public static MemorySegment terminate(MemorySegment struct) { * herr_t (*terminate)(void) * } */ - public static void terminate(MemorySegment struct, MemorySegment fieldValue) { + public static void terminate(MemorySegment struct, MemorySegment fieldValue) + { struct.set(terminate$LAYOUT, terminate$OFFSET, fieldValue); } @@ -499,9 +476,7 @@ public static void terminate(MemorySegment struct, MemorySegment fieldValue) { * H5VL_info_class_t info_cls * } */ - public static final GroupLayout info_cls$layout() { - return info_cls$LAYOUT; - } + public static final GroupLayout info_cls$layout() { return info_cls$LAYOUT; } private static final long info_cls$OFFSET = 48; @@ -511,9 +486,7 @@ public static void terminate(MemorySegment struct, MemorySegment fieldValue) { * H5VL_info_class_t info_cls * } */ - public static final long info_cls$offset() { - return info_cls$OFFSET; - } + public static final long info_cls$offset() { return info_cls$OFFSET; } /** * Getter for field: @@ -521,7 +494,8 @@ public static void terminate(MemorySegment struct, MemorySegment fieldValue) { * H5VL_info_class_t info_cls * } */ - public static MemorySegment info_cls(MemorySegment struct) { + public static MemorySegment info_cls(MemorySegment struct) + { return struct.asSlice(info_cls$OFFSET, info_cls$LAYOUT.byteSize()); } @@ -531,7 +505,8 @@ public static MemorySegment info_cls(MemorySegment struct) { * H5VL_info_class_t info_cls * } */ - public static void info_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void info_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, info_cls$OFFSET, info_cls$LAYOUT.byteSize()); } @@ -543,9 +518,7 @@ public static void info_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_wrap_class_t wrap_cls * } */ - public static final GroupLayout wrap_cls$layout() { - return wrap_cls$LAYOUT; - } + public static final GroupLayout wrap_cls$layout() { return wrap_cls$LAYOUT; } private static final long wrap_cls$OFFSET = 96; @@ -555,9 +528,7 @@ public static void info_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_wrap_class_t wrap_cls * } */ - public static final long wrap_cls$offset() { - return wrap_cls$OFFSET; - } + public static final long wrap_cls$offset() { return wrap_cls$OFFSET; } /** * Getter for field: @@ -565,7 +536,8 @@ public static void info_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_wrap_class_t wrap_cls * } */ - public static MemorySegment wrap_cls(MemorySegment struct) { + public static MemorySegment wrap_cls(MemorySegment struct) + { return struct.asSlice(wrap_cls$OFFSET, wrap_cls$LAYOUT.byteSize()); } @@ -575,7 +547,8 @@ public static MemorySegment wrap_cls(MemorySegment struct) { * H5VL_wrap_class_t wrap_cls * } */ - public static void wrap_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void wrap_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, wrap_cls$OFFSET, wrap_cls$LAYOUT.byteSize()); } @@ -587,9 +560,7 @@ public static void wrap_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_attr_class_t attr_cls * } */ - public static final GroupLayout attr_cls$layout() { - return attr_cls$LAYOUT; - } + public static final GroupLayout attr_cls$layout() { return attr_cls$LAYOUT; } private static final long attr_cls$OFFSET = 136; @@ -599,9 +570,7 @@ public static void wrap_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_attr_class_t attr_cls * } */ - public static final long attr_cls$offset() { - return attr_cls$OFFSET; - } + public static final long attr_cls$offset() { return attr_cls$OFFSET; } /** * Getter for field: @@ -609,7 +578,8 @@ public static void wrap_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_attr_class_t attr_cls * } */ - public static MemorySegment attr_cls(MemorySegment struct) { + public static MemorySegment attr_cls(MemorySegment struct) + { return struct.asSlice(attr_cls$OFFSET, attr_cls$LAYOUT.byteSize()); } @@ -619,11 +589,13 @@ public static MemorySegment attr_cls(MemorySegment struct) { * H5VL_attr_class_t attr_cls * } */ - public static void attr_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void attr_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, attr_cls$OFFSET, attr_cls$LAYOUT.byteSize()); } - private static final GroupLayout dataset_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("dataset_cls")); + private static final GroupLayout dataset_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("dataset_cls")); /** * Layout for field: @@ -631,9 +603,7 @@ public static void attr_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_dataset_class_t dataset_cls * } */ - public static final GroupLayout dataset_cls$layout() { - return dataset_cls$LAYOUT; - } + public static final GroupLayout dataset_cls$layout() { return dataset_cls$LAYOUT; } private static final long dataset_cls$OFFSET = 200; @@ -643,9 +613,7 @@ public static void attr_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_dataset_class_t dataset_cls * } */ - public static final long dataset_cls$offset() { - return dataset_cls$OFFSET; - } + public static final long dataset_cls$offset() { return dataset_cls$OFFSET; } /** * Getter for field: @@ -653,7 +621,8 @@ public static void attr_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_dataset_class_t dataset_cls * } */ - public static MemorySegment dataset_cls(MemorySegment struct) { + public static MemorySegment dataset_cls(MemorySegment struct) + { return struct.asSlice(dataset_cls$OFFSET, dataset_cls$LAYOUT.byteSize()); } @@ -663,11 +632,13 @@ public static MemorySegment dataset_cls(MemorySegment struct) { * H5VL_dataset_class_t dataset_cls * } */ - public static void dataset_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void dataset_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, dataset_cls$OFFSET, dataset_cls$LAYOUT.byteSize()); } - private static final GroupLayout datatype_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("datatype_cls")); + private static final GroupLayout datatype_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("datatype_cls")); /** * Layout for field: @@ -675,9 +646,7 @@ public static void dataset_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_datatype_class_t datatype_cls * } */ - public static final GroupLayout datatype_cls$layout() { - return datatype_cls$LAYOUT; - } + public static final GroupLayout datatype_cls$layout() { return datatype_cls$LAYOUT; } private static final long datatype_cls$OFFSET = 264; @@ -687,9 +656,7 @@ public static void dataset_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_datatype_class_t datatype_cls * } */ - public static final long datatype_cls$offset() { - return datatype_cls$OFFSET; - } + public static final long datatype_cls$offset() { return datatype_cls$OFFSET; } /** * Getter for field: @@ -697,7 +664,8 @@ public static void dataset_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_datatype_class_t datatype_cls * } */ - public static MemorySegment datatype_cls(MemorySegment struct) { + public static MemorySegment datatype_cls(MemorySegment struct) + { return struct.asSlice(datatype_cls$OFFSET, datatype_cls$LAYOUT.byteSize()); } @@ -707,7 +675,8 @@ public static MemorySegment datatype_cls(MemorySegment struct) { * H5VL_datatype_class_t datatype_cls * } */ - public static void datatype_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void datatype_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, datatype_cls$OFFSET, datatype_cls$LAYOUT.byteSize()); } @@ -719,9 +688,7 @@ public static void datatype_cls(MemorySegment struct, MemorySegment fieldValue) * H5VL_file_class_t file_cls * } */ - public static final GroupLayout file_cls$layout() { - return file_cls$LAYOUT; - } + public static final GroupLayout file_cls$layout() { return file_cls$LAYOUT; } private static final long file_cls$OFFSET = 312; @@ -731,9 +698,7 @@ public static void datatype_cls(MemorySegment struct, MemorySegment fieldValue) * H5VL_file_class_t file_cls * } */ - public static final long file_cls$offset() { - return file_cls$OFFSET; - } + public static final long file_cls$offset() { return file_cls$OFFSET; } /** * Getter for field: @@ -741,7 +706,8 @@ public static void datatype_cls(MemorySegment struct, MemorySegment fieldValue) * H5VL_file_class_t file_cls * } */ - public static MemorySegment file_cls(MemorySegment struct) { + public static MemorySegment file_cls(MemorySegment struct) + { return struct.asSlice(file_cls$OFFSET, file_cls$LAYOUT.byteSize()); } @@ -751,11 +717,13 @@ public static MemorySegment file_cls(MemorySegment struct) { * H5VL_file_class_t file_cls * } */ - public static void file_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void file_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, file_cls$OFFSET, file_cls$LAYOUT.byteSize()); } - private static final GroupLayout group_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("group_cls")); + private static final GroupLayout group_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("group_cls")); /** * Layout for field: @@ -763,9 +731,7 @@ public static void file_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_group_class_t group_cls * } */ - public static final GroupLayout group_cls$layout() { - return group_cls$LAYOUT; - } + public static final GroupLayout group_cls$layout() { return group_cls$LAYOUT; } private static final long group_cls$OFFSET = 360; @@ -775,9 +741,7 @@ public static void file_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_group_class_t group_cls * } */ - public static final long group_cls$offset() { - return group_cls$OFFSET; - } + public static final long group_cls$offset() { return group_cls$OFFSET; } /** * Getter for field: @@ -785,7 +749,8 @@ public static void file_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_group_class_t group_cls * } */ - public static MemorySegment group_cls(MemorySegment struct) { + public static MemorySegment group_cls(MemorySegment struct) + { return struct.asSlice(group_cls$OFFSET, group_cls$LAYOUT.byteSize()); } @@ -795,7 +760,8 @@ public static MemorySegment group_cls(MemorySegment struct) { * H5VL_group_class_t group_cls * } */ - public static void group_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void group_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, group_cls$OFFSET, group_cls$LAYOUT.byteSize()); } @@ -807,9 +773,7 @@ public static void group_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_link_class_t link_cls * } */ - public static final GroupLayout link_cls$layout() { - return link_cls$LAYOUT; - } + public static final GroupLayout link_cls$layout() { return link_cls$LAYOUT; } private static final long link_cls$OFFSET = 408; @@ -819,9 +783,7 @@ public static void group_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_link_class_t link_cls * } */ - public static final long link_cls$offset() { - return link_cls$OFFSET; - } + public static final long link_cls$offset() { return link_cls$OFFSET; } /** * Getter for field: @@ -829,7 +791,8 @@ public static void group_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_link_class_t link_cls * } */ - public static MemorySegment link_cls(MemorySegment struct) { + public static MemorySegment link_cls(MemorySegment struct) + { return struct.asSlice(link_cls$OFFSET, link_cls$LAYOUT.byteSize()); } @@ -839,11 +802,13 @@ public static MemorySegment link_cls(MemorySegment struct) { * H5VL_link_class_t link_cls * } */ - public static void link_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void link_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, link_cls$OFFSET, link_cls$LAYOUT.byteSize()); } - private static final GroupLayout object_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("object_cls")); + private static final GroupLayout object_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("object_cls")); /** * Layout for field: @@ -851,9 +816,7 @@ public static void link_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_object_class_t object_cls * } */ - public static final GroupLayout object_cls$layout() { - return object_cls$LAYOUT; - } + public static final GroupLayout object_cls$layout() { return object_cls$LAYOUT; } private static final long object_cls$OFFSET = 456; @@ -863,9 +826,7 @@ public static void link_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_object_class_t object_cls * } */ - public static final long object_cls$offset() { - return object_cls$OFFSET; - } + public static final long object_cls$offset() { return object_cls$OFFSET; } /** * Getter for field: @@ -873,7 +834,8 @@ public static void link_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_object_class_t object_cls * } */ - public static MemorySegment object_cls(MemorySegment struct) { + public static MemorySegment object_cls(MemorySegment struct) + { return struct.asSlice(object_cls$OFFSET, object_cls$LAYOUT.byteSize()); } @@ -883,11 +845,13 @@ public static MemorySegment object_cls(MemorySegment struct) { * H5VL_object_class_t object_cls * } */ - public static void object_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void object_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, object_cls$OFFSET, object_cls$LAYOUT.byteSize()); } - private static final GroupLayout introspect_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("introspect_cls")); + private static final GroupLayout introspect_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("introspect_cls")); /** * Layout for field: @@ -895,9 +859,7 @@ public static void object_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_introspect_class_t introspect_cls * } */ - public static final GroupLayout introspect_cls$layout() { - return introspect_cls$LAYOUT; - } + public static final GroupLayout introspect_cls$layout() { return introspect_cls$LAYOUT; } private static final long introspect_cls$OFFSET = 496; @@ -907,9 +869,7 @@ public static void object_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_introspect_class_t introspect_cls * } */ - public static final long introspect_cls$offset() { - return introspect_cls$OFFSET; - } + public static final long introspect_cls$offset() { return introspect_cls$OFFSET; } /** * Getter for field: @@ -917,7 +877,8 @@ public static void object_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_introspect_class_t introspect_cls * } */ - public static MemorySegment introspect_cls(MemorySegment struct) { + public static MemorySegment introspect_cls(MemorySegment struct) + { return struct.asSlice(introspect_cls$OFFSET, introspect_cls$LAYOUT.byteSize()); } @@ -927,11 +888,13 @@ public static MemorySegment introspect_cls(MemorySegment struct) { * H5VL_introspect_class_t introspect_cls * } */ - public static void introspect_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void introspect_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, introspect_cls$OFFSET, introspect_cls$LAYOUT.byteSize()); } - private static final GroupLayout request_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("request_cls")); + private static final GroupLayout request_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("request_cls")); /** * Layout for field: @@ -939,9 +902,7 @@ public static void introspect_cls(MemorySegment struct, MemorySegment fieldValue * H5VL_request_class_t request_cls * } */ - public static final GroupLayout request_cls$layout() { - return request_cls$LAYOUT; - } + public static final GroupLayout request_cls$layout() { return request_cls$LAYOUT; } private static final long request_cls$OFFSET = 520; @@ -951,9 +912,7 @@ public static void introspect_cls(MemorySegment struct, MemorySegment fieldValue * H5VL_request_class_t request_cls * } */ - public static final long request_cls$offset() { - return request_cls$OFFSET; - } + public static final long request_cls$offset() { return request_cls$OFFSET; } /** * Getter for field: @@ -961,7 +920,8 @@ public static void introspect_cls(MemorySegment struct, MemorySegment fieldValue * H5VL_request_class_t request_cls * } */ - public static MemorySegment request_cls(MemorySegment struct) { + public static MemorySegment request_cls(MemorySegment struct) + { return struct.asSlice(request_cls$OFFSET, request_cls$LAYOUT.byteSize()); } @@ -971,7 +931,8 @@ public static MemorySegment request_cls(MemorySegment struct) { * H5VL_request_class_t request_cls * } */ - public static void request_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void request_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, request_cls$OFFSET, request_cls$LAYOUT.byteSize()); } @@ -983,9 +944,7 @@ public static void request_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_blob_class_t blob_cls * } */ - public static final GroupLayout blob_cls$layout() { - return blob_cls$LAYOUT; - } + public static final GroupLayout blob_cls$layout() { return blob_cls$LAYOUT; } private static final long blob_cls$OFFSET = 568; @@ -995,9 +954,7 @@ public static void request_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_blob_class_t blob_cls * } */ - public static final long blob_cls$offset() { - return blob_cls$OFFSET; - } + public static final long blob_cls$offset() { return blob_cls$OFFSET; } /** * Getter for field: @@ -1005,7 +962,8 @@ public static void request_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_blob_class_t blob_cls * } */ - public static MemorySegment blob_cls(MemorySegment struct) { + public static MemorySegment blob_cls(MemorySegment struct) + { return struct.asSlice(blob_cls$OFFSET, blob_cls$LAYOUT.byteSize()); } @@ -1015,11 +973,13 @@ public static MemorySegment blob_cls(MemorySegment struct) { * H5VL_blob_class_t blob_cls * } */ - public static void blob_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void blob_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, blob_cls$OFFSET, blob_cls$LAYOUT.byteSize()); } - private static final GroupLayout token_cls$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("token_cls")); + private static final GroupLayout token_cls$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("token_cls")); /** * Layout for field: @@ -1027,9 +987,7 @@ public static void blob_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_token_class_t token_cls * } */ - public static final GroupLayout token_cls$layout() { - return token_cls$LAYOUT; - } + public static final GroupLayout token_cls$layout() { return token_cls$LAYOUT; } private static final long token_cls$OFFSET = 600; @@ -1039,9 +997,7 @@ public static void blob_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_token_class_t token_cls * } */ - public static final long token_cls$offset() { - return token_cls$OFFSET; - } + public static final long token_cls$offset() { return token_cls$OFFSET; } /** * Getter for field: @@ -1049,7 +1005,8 @@ public static void blob_cls(MemorySegment struct, MemorySegment fieldValue) { * H5VL_token_class_t token_cls * } */ - public static MemorySegment token_cls(MemorySegment struct) { + public static MemorySegment token_cls(MemorySegment struct) + { return struct.asSlice(token_cls$OFFSET, token_cls$LAYOUT.byteSize()); } @@ -1059,7 +1016,8 @@ public static MemorySegment token_cls(MemorySegment struct) { * H5VL_token_class_t token_cls * } */ - public static void token_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void token_cls(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, token_cls$OFFSET, token_cls$LAYOUT.byteSize()); } @@ -1070,7 +1028,8 @@ public static void token_cls(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -1082,27 +1041,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -1111,16 +1065,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -1128,9 +1086,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 624; @@ -1140,9 +1096,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -1150,7 +1104,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -1160,7 +1115,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -1168,7 +1124,8 @@ public static void optional(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1180,15 +1137,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1196,7 +1152,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1204,8 +1161,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_class_t.java index 74c070b50e0..23311884d14 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_class_t.java @@ -2,21 +2,21 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_dataset_class_t { - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **); - * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **); void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); * herr_t (*read)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, void **, void **); * herr_t (*write)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, const void **, void **); * herr_t (*get)(void *, H5VL_dataset_get_args_t *, hid_t, void **); @@ -28,36 +28,34 @@ */ public class H5VL_dataset_class_t { - H5VL_dataset_class_t() { + H5VL_dataset_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("create"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("read"), - hdf5_h.C_POINTER.withName("write"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("close") - ).withName("H5VL_dataset_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("create"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("read"), hdf5_h.C_POINTER.withName("write"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("close")) + .withName("H5VL_dataset_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **) * } */ public static class create { - create() { + create() + { // Should not be called directly } @@ -65,29 +63,18 @@ public static class create { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, long _x8, MemorySegment _x9); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + long _x5, long _x6, long _x7, long _x8, MemorySegment _x9); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(create.Function.class, "apply", $DESC); @@ -95,7 +82,8 @@ public static FunctionDescriptor descriptor() { * 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(create.Function fi, Arena arena) { + public static MemorySegment allocate(create.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -104,10 +92,15 @@ public static MemorySegment allocate(create.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, long _x8, MemorySegment _x9) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, + long _x7, long _x8, MemorySegment _x9) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, + _x8, _x9); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -118,42 +111,44 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo /** * Layout for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **) * } */ - public static final AddressLayout create$layout() { - return create$LAYOUT; - } + public static final AddressLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; /** * Offset for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **) * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **) * } */ - public static MemorySegment create(MemorySegment struct) { + public static MemorySegment create(MemorySegment struct) + { return struct.get(create$LAYOUT, create$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * hid_t, void **) * } */ - public static void create(MemorySegment struct, MemorySegment fieldValue) { + public static void create(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create$LAYOUT, create$OFFSET, fieldValue); } @@ -164,7 +159,8 @@ public static void create(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -172,25 +168,18 @@ public static class open { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -198,7 +187,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -207,10 +197,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -224,9 +217,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 8; @@ -236,9 +227,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -246,9 +235,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -256,7 +243,8 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -267,7 +255,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class read { - read() { + read() + { // Should not be called directly } @@ -275,27 +264,18 @@ public static class read { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, MemorySegment _x7); + int apply(long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, + long _x5, MemorySegment _x6, MemorySegment _x7); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(read.Function.class, "apply", $DESC); @@ -303,7 +283,8 @@ public static FunctionDescriptor descriptor() { * 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(read.Function fi, Arena arena) { + public static MemorySegment allocate(read.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -312,10 +293,14 @@ public static MemorySegment allocate(read.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, MemorySegment _x7) { + public static int invoke(MemorySegment funcPtr, long _x0, MemorySegment _x1, MemorySegment _x2, + MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, + MemorySegment _x7) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -329,9 +314,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*read)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, void **, void **) * } */ - public static final AddressLayout read$layout() { - return read$LAYOUT; - } + public static final AddressLayout read$layout() { return read$LAYOUT; } private static final long read$OFFSET = 16; @@ -341,9 +324,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*read)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, void **, void **) * } */ - public static final long read$offset() { - return read$OFFSET; - } + public static final long read$offset() { return read$OFFSET; } /** * Getter for field: @@ -351,9 +332,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*read)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, void **, void **) * } */ - public static MemorySegment read(MemorySegment struct) { - return struct.get(read$LAYOUT, read$OFFSET); - } + public static MemorySegment read(MemorySegment struct) { return struct.get(read$LAYOUT, read$OFFSET); } /** * Setter for field: @@ -361,7 +340,8 @@ public static MemorySegment read(MemorySegment struct) { * herr_t (*read)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, void **, void **) * } */ - public static void read(MemorySegment struct, MemorySegment fieldValue) { + public static void read(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read$LAYOUT, read$OFFSET, fieldValue); } @@ -372,7 +352,8 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { */ public static class write { - write() { + write() + { // Should not be called directly } @@ -380,27 +361,18 @@ public static class write { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, MemorySegment _x7); + int apply(long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, + long _x5, MemorySegment _x6, MemorySegment _x7); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(write.Function.class, "apply", $DESC); @@ -408,7 +380,8 @@ public static FunctionDescriptor descriptor() { * 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(write.Function fi, Arena arena) { + public static MemorySegment allocate(write.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -417,10 +390,14 @@ public static MemorySegment allocate(write.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, MemorySegment _x7) { + public static int invoke(MemorySegment funcPtr, long _x0, MemorySegment _x1, MemorySegment _x2, + MemorySegment _x3, MemorySegment _x4, long _x5, MemorySegment _x6, + MemorySegment _x7) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -434,9 +411,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*write)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, const void **, void **) * } */ - public static final AddressLayout write$layout() { - return write$LAYOUT; - } + public static final AddressLayout write$layout() { return write$LAYOUT; } private static final long write$OFFSET = 24; @@ -446,9 +421,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*write)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, const void **, void **) * } */ - public static final long write$offset() { - return write$OFFSET; - } + public static final long write$offset() { return write$OFFSET; } /** * Getter for field: @@ -456,9 +429,7 @@ public static int invoke(MemorySegment funcPtr,long _x0, MemorySegment _x1, Memo * herr_t (*write)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, const void **, void **) * } */ - public static MemorySegment write(MemorySegment struct) { - return struct.get(write$LAYOUT, write$OFFSET); - } + public static MemorySegment write(MemorySegment struct) { return struct.get(write$LAYOUT, write$OFFSET); } /** * Setter for field: @@ -466,7 +437,8 @@ public static MemorySegment write(MemorySegment struct) { * herr_t (*write)(size_t, void **, hid_t *, hid_t *, hid_t *, hid_t, const void **, void **) * } */ - public static void write(MemorySegment struct, MemorySegment fieldValue) { + public static void write(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write$LAYOUT, write$OFFSET, fieldValue); } @@ -477,7 +449,8 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -489,19 +462,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -509,7 +475,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -518,10 +485,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -535,9 +505,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_dataset_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 32; @@ -547,9 +515,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_dataset_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -557,9 +523,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_dataset_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -567,7 +531,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, H5VL_dataset_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -578,7 +543,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -590,27 +556,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -619,16 +580,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -636,9 +601,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_dataset_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 40; @@ -648,9 +611,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_dataset_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -658,7 +619,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_dataset_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -668,7 +630,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, H5VL_dataset_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -679,7 +642,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -691,27 +655,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -720,16 +679,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -737,9 +700,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 48; @@ -749,9 +710,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -759,7 +718,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -769,7 +729,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -780,7 +741,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -791,19 +753,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -811,7 +767,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -820,10 +777,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -837,9 +796,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 56; @@ -849,9 +806,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -859,9 +814,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -869,7 +822,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(void *, hid_t, void **) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -877,7 +831,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -889,15 +844,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -905,7 +859,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -913,8 +868,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_get_args_t.java index e2fe154bd32..24450c41b15 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_dataset_get_args_t { @@ -41,22 +41,21 @@ */ public class H5VL_dataset_get_args_t { - H5VL_dataset_get_args_t() { + H5VL_dataset_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_dataset_get_args_t.args.layout().withName("args") - ).withName("H5VL_dataset_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_dataset_get_args_t.args.layout().withName("args")) + .withName("H5VL_dataset_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -66,9 +65,7 @@ public static final GroupLayout layout() { * H5VL_dataset_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -78,9 +75,7 @@ public static final GroupLayout layout() { * H5VL_dataset_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -88,9 +83,7 @@ public static final GroupLayout layout() { * H5VL_dataset_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -98,7 +91,8 @@ public static int op_type(MemorySegment struct) { * H5VL_dataset_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -128,25 +122,26 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_dataset_get_args_t.args.get_dapl.layout().withName("get_dapl"), - H5VL_dataset_get_args_t.args.get_dcpl.layout().withName("get_dcpl"), - H5VL_dataset_get_args_t.args.get_space.layout().withName("get_space"), - H5VL_dataset_get_args_t.args.get_space_status.layout().withName("get_space_status"), - H5VL_dataset_get_args_t.args.get_storage_size.layout().withName("get_storage_size"), - H5VL_dataset_get_args_t.args.get_type.layout().withName("get_type") - ).withName("$anon$232:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout( + H5VL_dataset_get_args_t.args.get_dapl.layout().withName("get_dapl"), + H5VL_dataset_get_args_t.args.get_dcpl.layout().withName("get_dcpl"), + H5VL_dataset_get_args_t.args.get_space.layout().withName("get_space"), + H5VL_dataset_get_args_t.args.get_space_status.layout().withName("get_space_status"), + H5VL_dataset_get_args_t.args.get_storage_size.layout().withName("get_storage_size"), + H5VL_dataset_get_args_t.args.get_type.layout().withName("get_type")) + .withName("$anon$232:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -157,20 +152,18 @@ public static final GroupLayout layout() { */ public static class get_dapl { - get_dapl() { + get_dapl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("dapl_id") - ).withName("$anon$234:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("dapl_id")).withName("$anon$234:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong dapl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("dapl_id")); @@ -180,9 +173,7 @@ public static final GroupLayout layout() { * hid_t dapl_id * } */ - public static final OfLong dapl_id$layout() { - return dapl_id$LAYOUT; - } + public static final OfLong dapl_id$layout() { return dapl_id$LAYOUT; } private static final long dapl_id$OFFSET = 0; @@ -192,9 +183,7 @@ public static final GroupLayout layout() { * hid_t dapl_id * } */ - public static final long dapl_id$offset() { - return dapl_id$OFFSET; - } + public static final long dapl_id$offset() { return dapl_id$OFFSET; } /** * Getter for field: @@ -202,7 +191,8 @@ public static final GroupLayout layout() { * hid_t dapl_id * } */ - public static long dapl_id(MemorySegment struct) { + public static long dapl_id(MemorySegment struct) + { return struct.get(dapl_id$LAYOUT, dapl_id$OFFSET); } @@ -212,7 +202,8 @@ public static long dapl_id(MemorySegment struct) { * hid_t dapl_id * } */ - public static void dapl_id(MemorySegment struct, long fieldValue) { + public static void dapl_id(MemorySegment struct, long fieldValue) + { struct.set(dapl_id$LAYOUT, dapl_id$OFFSET, fieldValue); } @@ -220,7 +211,8 @@ public static void dapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -232,7 +224,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -240,7 +233,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -248,7 +242,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -256,12 +252,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_dapl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_dapl")); + private static final GroupLayout get_dapl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_dapl")); /** * Layout for field: @@ -271,9 +270,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dapl * } */ - public static final GroupLayout get_dapl$layout() { - return get_dapl$LAYOUT; - } + public static final GroupLayout get_dapl$layout() { return get_dapl$LAYOUT; } private static final long get_dapl$OFFSET = 0; @@ -285,9 +282,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dapl * } */ - public static final long get_dapl$offset() { - return get_dapl$OFFSET; - } + public static final long get_dapl$offset() { return get_dapl$OFFSET; } /** * Getter for field: @@ -297,7 +292,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dapl * } */ - public static MemorySegment get_dapl(MemorySegment union) { + public static MemorySegment get_dapl(MemorySegment union) + { return union.asSlice(get_dapl$OFFSET, get_dapl$LAYOUT.byteSize()); } @@ -309,7 +305,8 @@ public static MemorySegment get_dapl(MemorySegment union) { * } get_dapl * } */ - public static void get_dapl(MemorySegment union, MemorySegment fieldValue) { + public static void get_dapl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_dapl$OFFSET, get_dapl$LAYOUT.byteSize()); } @@ -322,20 +319,18 @@ public static void get_dapl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_dcpl { - get_dcpl() { + get_dcpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("dcpl_id") - ).withName("$anon$239:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("dcpl_id")).withName("$anon$239:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong dcpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("dcpl_id")); @@ -345,9 +340,7 @@ public static final GroupLayout layout() { * hid_t dcpl_id * } */ - public static final OfLong dcpl_id$layout() { - return dcpl_id$LAYOUT; - } + public static final OfLong dcpl_id$layout() { return dcpl_id$LAYOUT; } private static final long dcpl_id$OFFSET = 0; @@ -357,9 +350,7 @@ public static final GroupLayout layout() { * hid_t dcpl_id * } */ - public static final long dcpl_id$offset() { - return dcpl_id$OFFSET; - } + public static final long dcpl_id$offset() { return dcpl_id$OFFSET; } /** * Getter for field: @@ -367,7 +358,8 @@ public static final GroupLayout layout() { * hid_t dcpl_id * } */ - public static long dcpl_id(MemorySegment struct) { + public static long dcpl_id(MemorySegment struct) + { return struct.get(dcpl_id$LAYOUT, dcpl_id$OFFSET); } @@ -377,7 +369,8 @@ public static long dcpl_id(MemorySegment struct) { * hid_t dcpl_id * } */ - public static void dcpl_id(MemorySegment struct, long fieldValue) { + public static void dcpl_id(MemorySegment struct, long fieldValue) + { struct.set(dcpl_id$LAYOUT, dcpl_id$OFFSET, fieldValue); } @@ -385,7 +378,8 @@ public static void dcpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -397,7 +391,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -405,7 +400,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -413,7 +409,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -421,12 +419,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_dcpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_dcpl")); + private static final GroupLayout get_dcpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_dcpl")); /** * Layout for field: @@ -436,9 +437,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dcpl * } */ - public static final GroupLayout get_dcpl$layout() { - return get_dcpl$LAYOUT; - } + public static final GroupLayout get_dcpl$layout() { return get_dcpl$LAYOUT; } private static final long get_dcpl$OFFSET = 0; @@ -450,9 +449,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dcpl * } */ - public static final long get_dcpl$offset() { - return get_dcpl$OFFSET; - } + public static final long get_dcpl$offset() { return get_dcpl$OFFSET; } /** * Getter for field: @@ -462,7 +459,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_dcpl * } */ - public static MemorySegment get_dcpl(MemorySegment union) { + public static MemorySegment get_dcpl(MemorySegment union) + { return union.asSlice(get_dcpl$OFFSET, get_dcpl$LAYOUT.byteSize()); } @@ -474,7 +472,8 @@ public static MemorySegment get_dcpl(MemorySegment union) { * } get_dcpl * } */ - public static void get_dcpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_dcpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_dcpl$OFFSET, get_dcpl$LAYOUT.byteSize()); } @@ -487,20 +486,18 @@ public static void get_dcpl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_space { - get_space() { + get_space() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("space_id") - ).withName("$anon$244:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("space_id")).withName("$anon$244:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong space_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("space_id")); @@ -510,9 +507,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final OfLong space_id$layout() { - return space_id$LAYOUT; - } + public static final OfLong space_id$layout() { return space_id$LAYOUT; } private static final long space_id$OFFSET = 0; @@ -522,9 +517,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final long space_id$offset() { - return space_id$OFFSET; - } + public static final long space_id$offset() { return space_id$OFFSET; } /** * Getter for field: @@ -532,7 +525,8 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static long space_id(MemorySegment struct) { + public static long space_id(MemorySegment struct) + { return struct.get(space_id$LAYOUT, space_id$OFFSET); } @@ -542,7 +536,8 @@ public static long space_id(MemorySegment struct) { * hid_t space_id * } */ - public static void space_id(MemorySegment struct, long fieldValue) { + public static void space_id(MemorySegment struct, long fieldValue) + { struct.set(space_id$LAYOUT, space_id$OFFSET, fieldValue); } @@ -550,7 +545,8 @@ public static void space_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -562,7 +558,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -570,7 +567,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -578,7 +576,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -586,12 +586,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_space$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_space")); + private static final GroupLayout get_space$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_space")); /** * Layout for field: @@ -601,9 +604,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static final GroupLayout get_space$layout() { - return get_space$LAYOUT; - } + public static final GroupLayout get_space$layout() { return get_space$LAYOUT; } private static final long get_space$OFFSET = 0; @@ -615,9 +616,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static final long get_space$offset() { - return get_space$OFFSET; - } + public static final long get_space$offset() { return get_space$OFFSET; } /** * Getter for field: @@ -627,7 +626,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space * } */ - public static MemorySegment get_space(MemorySegment union) { + public static MemorySegment get_space(MemorySegment union) + { return union.asSlice(get_space$OFFSET, get_space$LAYOUT.byteSize()); } @@ -639,7 +639,8 @@ public static MemorySegment get_space(MemorySegment union) { * } get_space * } */ - public static void get_space(MemorySegment union, MemorySegment fieldValue) { + public static void get_space(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_space$OFFSET, get_space$LAYOUT.byteSize()); } @@ -652,22 +653,21 @@ public static void get_space(MemorySegment union, MemorySegment fieldValue) { */ public static class get_space_status { - get_space_status() { + get_space_status() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("status") - ).withName("$anon$249:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("status")).withName("$anon$249:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout status$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("status")); + private static final AddressLayout status$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("status")); /** * Layout for field: @@ -675,9 +675,7 @@ public static final GroupLayout layout() { * H5D_space_status_t *status * } */ - public static final AddressLayout status$layout() { - return status$LAYOUT; - } + public static final AddressLayout status$layout() { return status$LAYOUT; } private static final long status$OFFSET = 0; @@ -687,9 +685,7 @@ public static final GroupLayout layout() { * H5D_space_status_t *status * } */ - public static final long status$offset() { - return status$OFFSET; - } + public static final long status$offset() { return status$OFFSET; } /** * Getter for field: @@ -697,7 +693,8 @@ public static final GroupLayout layout() { * H5D_space_status_t *status * } */ - public static MemorySegment status(MemorySegment struct) { + public static MemorySegment status(MemorySegment struct) + { return struct.get(status$LAYOUT, status$OFFSET); } @@ -707,7 +704,8 @@ public static MemorySegment status(MemorySegment struct) { * H5D_space_status_t *status * } */ - public static void status(MemorySegment struct, MemorySegment fieldValue) { + public static void status(MemorySegment struct, MemorySegment fieldValue) + { struct.set(status$LAYOUT, status$OFFSET, fieldValue); } @@ -715,7 +713,8 @@ public static void status(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -727,7 +726,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -735,7 +735,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -743,7 +744,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -751,12 +754,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_space_status$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_space_status")); + private static final GroupLayout get_space_status$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_space_status")); /** * Layout for field: @@ -766,9 +772,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space_status * } */ - public static final GroupLayout get_space_status$layout() { - return get_space_status$LAYOUT; - } + public static final GroupLayout get_space_status$layout() { return get_space_status$LAYOUT; } private static final long get_space_status$OFFSET = 0; @@ -780,9 +784,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space_status * } */ - public static final long get_space_status$offset() { - return get_space_status$OFFSET; - } + public static final long get_space_status$offset() { return get_space_status$OFFSET; } /** * Getter for field: @@ -792,7 +794,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_space_status * } */ - public static MemorySegment get_space_status(MemorySegment union) { + public static MemorySegment get_space_status(MemorySegment union) + { return union.asSlice(get_space_status$OFFSET, get_space_status$LAYOUT.byteSize()); } @@ -804,8 +807,10 @@ public static MemorySegment get_space_status(MemorySegment union) { * } get_space_status * } */ - public static void get_space_status(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_space_status$OFFSET, get_space_status$LAYOUT.byteSize()); + public static void get_space_status(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_space_status$OFFSET, + get_space_status$LAYOUT.byteSize()); } /** @@ -817,22 +822,21 @@ public static void get_space_status(MemorySegment union, MemorySegment fieldValu */ public static class get_storage_size { - get_storage_size() { + get_storage_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("storage_size") - ).withName("$anon$254:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("storage_size")).withName("$anon$254:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout storage_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("storage_size")); + private static final AddressLayout storage_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("storage_size")); /** * Layout for field: @@ -840,9 +844,7 @@ public static final GroupLayout layout() { * hsize_t *storage_size * } */ - public static final AddressLayout storage_size$layout() { - return storage_size$LAYOUT; - } + public static final AddressLayout storage_size$layout() { return storage_size$LAYOUT; } private static final long storage_size$OFFSET = 0; @@ -852,9 +854,7 @@ public static final GroupLayout layout() { * hsize_t *storage_size * } */ - public static final long storage_size$offset() { - return storage_size$OFFSET; - } + public static final long storage_size$offset() { return storage_size$OFFSET; } /** * Getter for field: @@ -862,7 +862,8 @@ public static final GroupLayout layout() { * hsize_t *storage_size * } */ - public static MemorySegment storage_size(MemorySegment struct) { + public static MemorySegment storage_size(MemorySegment struct) + { return struct.get(storage_size$LAYOUT, storage_size$OFFSET); } @@ -872,7 +873,8 @@ public static MemorySegment storage_size(MemorySegment struct) { * hsize_t *storage_size * } */ - public static void storage_size(MemorySegment struct, MemorySegment fieldValue) { + public static void storage_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(storage_size$LAYOUT, storage_size$OFFSET, fieldValue); } @@ -880,7 +882,8 @@ public static void storage_size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -892,7 +895,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -900,7 +904,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -908,7 +913,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -916,12 +923,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_storage_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_storage_size")); + private static final GroupLayout get_storage_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_storage_size")); /** * Layout for field: @@ -931,9 +941,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static final GroupLayout get_storage_size$layout() { - return get_storage_size$LAYOUT; - } + public static final GroupLayout get_storage_size$layout() { return get_storage_size$LAYOUT; } private static final long get_storage_size$OFFSET = 0; @@ -945,9 +953,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static final long get_storage_size$offset() { - return get_storage_size$OFFSET; - } + public static final long get_storage_size$offset() { return get_storage_size$OFFSET; } /** * Getter for field: @@ -957,7 +963,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_storage_size * } */ - public static MemorySegment get_storage_size(MemorySegment union) { + public static MemorySegment get_storage_size(MemorySegment union) + { return union.asSlice(get_storage_size$OFFSET, get_storage_size$LAYOUT.byteSize()); } @@ -969,8 +976,10 @@ public static MemorySegment get_storage_size(MemorySegment union) { * } get_storage_size * } */ - public static void get_storage_size(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_storage_size$OFFSET, get_storage_size$LAYOUT.byteSize()); + public static void get_storage_size(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_storage_size$OFFSET, + get_storage_size$LAYOUT.byteSize()); } /** @@ -982,20 +991,18 @@ public static void get_storage_size(MemorySegment union, MemorySegment fieldValu */ public static class get_type { - get_type() { + get_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$259:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$259:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -1005,9 +1012,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -1017,9 +1022,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -1027,7 +1030,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -1037,7 +1041,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -1045,7 +1050,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1057,7 +1063,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1065,7 +1072,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1073,7 +1081,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1081,12 +1091,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_type")); + private static final GroupLayout get_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_type")); /** * Layout for field: @@ -1096,9 +1109,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final GroupLayout get_type$layout() { - return get_type$LAYOUT; - } + public static final GroupLayout get_type$layout() { return get_type$LAYOUT; } private static final long get_type$OFFSET = 0; @@ -1110,9 +1121,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final long get_type$offset() { - return get_type$OFFSET; - } + public static final long get_type$offset() { return get_type$OFFSET; } /** * Getter for field: @@ -1122,7 +1131,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static MemorySegment get_type(MemorySegment union) { + public static MemorySegment get_type(MemorySegment union) + { return union.asSlice(get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -1134,7 +1144,8 @@ public static MemorySegment get_type(MemorySegment union) { * } get_type * } */ - public static void get_type(MemorySegment union, MemorySegment fieldValue) { + public static void get_type(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -1142,7 +1153,8 @@ public static void get_type(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1154,7 +1166,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1162,7 +1175,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1170,7 +1184,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1178,7 +1194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1210,9 +1228,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -1241,9 +1257,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1270,7 +1284,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1299,7 +1314,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1307,7 +1323,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1319,15 +1336,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1335,7 +1351,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1343,8 +1360,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_specific_args_t.java index 2ab97677f4d..b37626dde00 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_dataset_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_dataset_specific_args_t { @@ -32,22 +32,21 @@ */ public class H5VL_dataset_specific_args_t { - H5VL_dataset_specific_args_t() { + H5VL_dataset_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_dataset_specific_args_t.args.layout().withName("args") - ).withName("H5VL_dataset_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_dataset_specific_args_t.args.layout().withName("args")) + .withName("H5VL_dataset_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -57,9 +56,7 @@ public static final GroupLayout layout() { * H5VL_dataset_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -69,9 +66,7 @@ public static final GroupLayout layout() { * H5VL_dataset_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -79,9 +74,7 @@ public static final GroupLayout layout() { * H5VL_dataset_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -89,7 +82,8 @@ public static int op_type(MemorySegment struct) { * H5VL_dataset_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -110,22 +104,22 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_dataset_specific_args_t.args.set_extent.layout().withName("set_extent"), - H5VL_dataset_specific_args_t.args.flush.layout().withName("flush"), - H5VL_dataset_specific_args_t.args.refresh.layout().withName("refresh") - ).withName("$anon$277:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_dataset_specific_args_t.args.set_extent.layout().withName("set_extent"), + H5VL_dataset_specific_args_t.args.flush.layout().withName("flush"), + H5VL_dataset_specific_args_t.args.refresh.layout().withName("refresh")) + .withName("$anon$277:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -136,22 +130,21 @@ public static final GroupLayout layout() { */ public static class set_extent { - set_extent() { + set_extent() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("size") - ).withName("$anon$279:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("size")).withName("$anon$279:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("size")); + private static final AddressLayout size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("size")); /** * Layout for field: @@ -159,9 +152,7 @@ public static final GroupLayout layout() { * const hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -171,9 +162,7 @@ public static final GroupLayout layout() { * const hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -181,7 +170,8 @@ public static final GroupLayout layout() { * const hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { + public static MemorySegment size(MemorySegment struct) + { return struct.get(size$LAYOUT, size$OFFSET); } @@ -191,7 +181,8 @@ public static MemorySegment size(MemorySegment struct) { * const hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -199,7 +190,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -211,7 +203,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -219,7 +212,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -227,7 +221,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -235,12 +231,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout set_extent$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("set_extent")); + private static final GroupLayout set_extent$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("set_extent")); /** * Layout for field: @@ -250,9 +249,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_extent * } */ - public static final GroupLayout set_extent$layout() { - return set_extent$LAYOUT; - } + public static final GroupLayout set_extent$layout() { return set_extent$LAYOUT; } private static final long set_extent$OFFSET = 0; @@ -264,9 +261,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_extent * } */ - public static final long set_extent$offset() { - return set_extent$OFFSET; - } + public static final long set_extent$offset() { return set_extent$OFFSET; } /** * Getter for field: @@ -276,7 +271,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_extent * } */ - public static MemorySegment set_extent(MemorySegment union) { + public static MemorySegment set_extent(MemorySegment union) + { return union.asSlice(set_extent$OFFSET, set_extent$LAYOUT.byteSize()); } @@ -288,7 +284,8 @@ public static MemorySegment set_extent(MemorySegment union) { * } set_extent * } */ - public static void set_extent(MemorySegment union, MemorySegment fieldValue) { + public static void set_extent(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, set_extent$OFFSET, set_extent$LAYOUT.byteSize()); } @@ -301,20 +298,18 @@ public static void set_extent(MemorySegment union, MemorySegment fieldValue) { */ public static class flush { - flush() { + flush() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("dset_id") - ).withName("$anon$284:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("dset_id")).withName("$anon$284:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong dset_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("dset_id")); @@ -324,9 +319,7 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static final OfLong dset_id$layout() { - return dset_id$LAYOUT; - } + public static final OfLong dset_id$layout() { return dset_id$LAYOUT; } private static final long dset_id$OFFSET = 0; @@ -336,9 +329,7 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static final long dset_id$offset() { - return dset_id$OFFSET; - } + public static final long dset_id$offset() { return dset_id$OFFSET; } /** * Getter for field: @@ -346,7 +337,8 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static long dset_id(MemorySegment struct) { + public static long dset_id(MemorySegment struct) + { return struct.get(dset_id$LAYOUT, dset_id$OFFSET); } @@ -356,7 +348,8 @@ public static long dset_id(MemorySegment struct) { * hid_t dset_id * } */ - public static void dset_id(MemorySegment struct, long fieldValue) { + public static void dset_id(MemorySegment struct, long fieldValue) + { struct.set(dset_id$LAYOUT, dset_id$OFFSET, fieldValue); } @@ -364,7 +357,8 @@ public static void dset_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -376,7 +370,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -384,7 +379,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -392,7 +388,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -400,7 +398,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -415,9 +415,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final GroupLayout flush$layout() { - return flush$LAYOUT; - } + public static final GroupLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 0; @@ -429,9 +427,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -441,7 +437,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static MemorySegment flush(MemorySegment union) { + public static MemorySegment flush(MemorySegment union) + { return union.asSlice(flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -453,7 +450,8 @@ public static MemorySegment flush(MemorySegment union) { * } flush * } */ - public static void flush(MemorySegment union, MemorySegment fieldValue) { + public static void flush(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -466,20 +464,18 @@ public static void flush(MemorySegment union, MemorySegment fieldValue) { */ public static class refresh { - refresh() { + refresh() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("dset_id") - ).withName("$anon$289:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("dset_id")).withName("$anon$289:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong dset_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("dset_id")); @@ -489,9 +485,7 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static final OfLong dset_id$layout() { - return dset_id$LAYOUT; - } + public static final OfLong dset_id$layout() { return dset_id$LAYOUT; } private static final long dset_id$OFFSET = 0; @@ -501,9 +495,7 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static final long dset_id$offset() { - return dset_id$OFFSET; - } + public static final long dset_id$offset() { return dset_id$OFFSET; } /** * Getter for field: @@ -511,7 +503,8 @@ public static final GroupLayout layout() { * hid_t dset_id * } */ - public static long dset_id(MemorySegment struct) { + public static long dset_id(MemorySegment struct) + { return struct.get(dset_id$LAYOUT, dset_id$OFFSET); } @@ -521,7 +514,8 @@ public static long dset_id(MemorySegment struct) { * hid_t dset_id * } */ - public static void dset_id(MemorySegment struct, long fieldValue) { + public static void dset_id(MemorySegment struct, long fieldValue) + { struct.set(dset_id$LAYOUT, dset_id$OFFSET, fieldValue); } @@ -529,7 +523,8 @@ public static void dset_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -541,7 +536,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -549,7 +545,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -557,7 +554,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -565,12 +564,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout refresh$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("refresh")); + private static final GroupLayout refresh$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("refresh")); /** * Layout for field: @@ -580,9 +582,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final GroupLayout refresh$layout() { - return refresh$LAYOUT; - } + public static final GroupLayout refresh$layout() { return refresh$LAYOUT; } private static final long refresh$OFFSET = 0; @@ -594,9 +594,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final long refresh$offset() { - return refresh$OFFSET; - } + public static final long refresh$offset() { return refresh$OFFSET; } /** * Getter for field: @@ -606,7 +604,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static MemorySegment refresh(MemorySegment union) { + public static MemorySegment refresh(MemorySegment union) + { return union.asSlice(refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -618,7 +617,8 @@ public static MemorySegment refresh(MemorySegment union) { * } refresh * } */ - public static void refresh(MemorySegment union, MemorySegment fieldValue) { + public static void refresh(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -626,7 +626,8 @@ public static void refresh(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -638,7 +639,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -646,7 +648,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -654,7 +657,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -662,7 +667,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -685,9 +692,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -707,9 +712,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -727,7 +730,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -747,7 +751,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -755,7 +760,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -767,15 +773,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -783,7 +788,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -791,8 +797,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_class_t.java index 2f945e58515..6060b38feda 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_class_t.java @@ -2,58 +2,56 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_datatype_class_t { - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **); - * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); - * herr_t (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **); - * herr_t (*specific)(void *, H5VL_datatype_specific_args_t *, hid_t, void **); - * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **); - * herr_t (*close)(void *, hid_t, void **); + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **); void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **); herr_t + * (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **); herr_t (*specific)(void *, + * H5VL_datatype_specific_args_t *, hid_t, void **); herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, + * void **); herr_t (*close)(void *, hid_t, void **); * } * } */ public class H5VL_datatype_class_t { - H5VL_datatype_class_t() { + H5VL_datatype_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("commit"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("close") - ).withName("H5VL_datatype_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("commit"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("close")) + .withName("H5VL_datatype_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ public static class commit { - commit() { + commit() + { // Should not be called directly } @@ -61,28 +59,18 @@ public static class commit { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, MemorySegment _x8); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + long _x5, long _x6, long _x7, MemorySegment _x8); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(commit.Function.class, "apply", $DESC); @@ -90,7 +78,8 @@ public static FunctionDescriptor descriptor() { * 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(commit.Function fi, Arena arena) { + public static MemorySegment allocate(commit.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -99,10 +88,15 @@ public static MemorySegment allocate(commit.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, long _x7, MemorySegment _x8) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, + long _x7, MemorySegment _x8) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, + _x8); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -113,42 +107,44 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo /** * Layout for field: * {@snippet lang=c : - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static final AddressLayout commit$layout() { - return commit$LAYOUT; - } + public static final AddressLayout commit$layout() { return commit$LAYOUT; } private static final long commit$OFFSET = 0; /** * Offset for field: * {@snippet lang=c : - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static final long commit$offset() { - return commit$OFFSET; - } + public static final long commit$offset() { return commit$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static MemorySegment commit(MemorySegment struct) { + public static MemorySegment commit(MemorySegment struct) + { return struct.get(commit$LAYOUT, commit$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, void **) + * void *(*commit)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, hid_t, + * void **) * } */ - public static void commit(MemorySegment struct, MemorySegment fieldValue) { + public static void commit(MemorySegment struct, MemorySegment fieldValue) + { struct.set(commit$LAYOUT, commit$OFFSET, fieldValue); } @@ -159,7 +155,8 @@ public static void commit(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -167,25 +164,18 @@ public static class open { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -193,7 +183,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -202,10 +193,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -219,9 +213,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 8; @@ -231,9 +223,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -241,9 +231,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -251,7 +239,8 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -262,7 +251,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -274,19 +264,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -294,7 +277,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -303,10 +287,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -320,9 +307,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 16; @@ -332,9 +317,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -342,9 +325,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -352,7 +333,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, H5VL_datatype_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -363,7 +345,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -375,27 +358,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -404,16 +382,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -421,9 +403,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_datatype_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 24; @@ -433,9 +413,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_datatype_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -443,7 +421,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_datatype_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -453,7 +432,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, H5VL_datatype_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -464,7 +444,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -476,27 +457,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -505,16 +481,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -522,9 +502,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 32; @@ -534,9 +512,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -544,7 +520,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -554,7 +531,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -565,7 +543,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -576,19 +555,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -596,7 +569,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -605,10 +579,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -622,9 +598,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 40; @@ -634,9 +608,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -644,9 +616,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -654,7 +624,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(void *, hid_t, void **) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -662,7 +633,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -674,15 +646,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -690,7 +661,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -698,8 +670,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_get_args_t.java index ab43ba34240..b2536369464 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_datatype_get_args_t { @@ -33,22 +33,21 @@ */ public class H5VL_datatype_get_args_t { - H5VL_datatype_get_args_t() { + H5VL_datatype_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_datatype_get_args_t.args.layout().withName("args") - ).withName("H5VL_datatype_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_datatype_get_args_t.args.layout().withName("args")) + .withName("H5VL_datatype_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * H5VL_datatype_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -70,9 +67,7 @@ public static final GroupLayout layout() { * H5VL_datatype_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -80,9 +75,7 @@ public static final GroupLayout layout() { * H5VL_datatype_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -90,7 +83,8 @@ public static int op_type(MemorySegment struct) { * H5VL_datatype_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -112,22 +106,23 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_datatype_get_args_t.args.get_binary_size.layout().withName("get_binary_size"), - H5VL_datatype_get_args_t.args.get_binary.layout().withName("get_binary"), - H5VL_datatype_get_args_t.args.get_tcpl.layout().withName("get_tcpl") - ).withName("$anon$310:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout( + H5VL_datatype_get_args_t.args.get_binary_size.layout().withName("get_binary_size"), + H5VL_datatype_get_args_t.args.get_binary.layout().withName("get_binary"), + H5VL_datatype_get_args_t.args.get_tcpl.layout().withName("get_tcpl")) + .withName("$anon$310:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -138,22 +133,21 @@ public static final GroupLayout layout() { */ public static class get_binary_size { - get_binary_size() { + get_binary_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("size") - ).withName("$anon$312:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("size")).withName("$anon$312:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("size")); + private static final AddressLayout size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("size")); /** * Layout for field: @@ -161,9 +155,7 @@ public static final GroupLayout layout() { * size_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -173,9 +165,7 @@ public static final GroupLayout layout() { * size_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -183,7 +173,8 @@ public static final GroupLayout layout() { * size_t *size * } */ - public static MemorySegment size(MemorySegment struct) { + public static MemorySegment size(MemorySegment struct) + { return struct.get(size$LAYOUT, size$OFFSET); } @@ -193,7 +184,8 @@ public static MemorySegment size(MemorySegment struct) { * size_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -201,7 +193,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -213,7 +206,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -221,7 +215,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -229,7 +224,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -237,12 +234,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_binary_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_binary_size")); + private static final GroupLayout get_binary_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_binary_size")); /** * Layout for field: @@ -252,9 +252,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary_size * } */ - public static final GroupLayout get_binary_size$layout() { - return get_binary_size$LAYOUT; - } + public static final GroupLayout get_binary_size$layout() { return get_binary_size$LAYOUT; } private static final long get_binary_size$OFFSET = 0; @@ -266,9 +264,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary_size * } */ - public static final long get_binary_size$offset() { - return get_binary_size$OFFSET; - } + public static final long get_binary_size$offset() { return get_binary_size$OFFSET; } /** * Getter for field: @@ -278,7 +274,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary_size * } */ - public static MemorySegment get_binary_size(MemorySegment union) { + public static MemorySegment get_binary_size(MemorySegment union) + { return union.asSlice(get_binary_size$OFFSET, get_binary_size$LAYOUT.byteSize()); } @@ -290,8 +287,10 @@ public static MemorySegment get_binary_size(MemorySegment union) { * } get_binary_size * } */ - public static void get_binary_size(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_binary_size$OFFSET, get_binary_size$LAYOUT.byteSize()); + public static void get_binary_size(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_binary_size$OFFSET, + get_binary_size$LAYOUT.byteSize()); } /** @@ -304,23 +303,23 @@ public static void get_binary_size(MemorySegment union, MemorySegment fieldValue */ public static class get_binary { - get_binary() { + get_binary() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_LONG.withName("buf_size") - ).withName("$anon$317:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("buf"), hdf5_h.C_LONG.withName("buf_size")) + .withName("$anon$317:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout buf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("buf")); + private static final AddressLayout buf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("buf")); /** * Layout for field: @@ -328,9 +327,7 @@ public static final GroupLayout layout() { * void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 0; @@ -340,9 +337,7 @@ public static final GroupLayout layout() { * void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -350,7 +345,8 @@ public static final GroupLayout layout() { * void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { + public static MemorySegment buf(MemorySegment struct) + { return struct.get(buf$LAYOUT, buf$OFFSET); } @@ -360,7 +356,8 @@ public static MemorySegment buf(MemorySegment struct) { * void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } @@ -372,9 +369,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 8; @@ -384,9 +379,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -394,7 +387,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { + public static long buf_size(MemorySegment struct) + { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } @@ -404,7 +398,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -412,7 +407,8 @@ public static void buf_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -424,7 +420,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -432,7 +429,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -440,7 +438,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -448,12 +448,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_binary$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_binary")); + private static final GroupLayout get_binary$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_binary")); /** * Layout for field: @@ -464,9 +467,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary * } */ - public static final GroupLayout get_binary$layout() { - return get_binary$LAYOUT; - } + public static final GroupLayout get_binary$layout() { return get_binary$LAYOUT; } private static final long get_binary$OFFSET = 0; @@ -479,9 +480,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary * } */ - public static final long get_binary$offset() { - return get_binary$OFFSET; - } + public static final long get_binary$offset() { return get_binary$OFFSET; } /** * Getter for field: @@ -492,7 +491,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_binary * } */ - public static MemorySegment get_binary(MemorySegment union) { + public static MemorySegment get_binary(MemorySegment union) + { return union.asSlice(get_binary$OFFSET, get_binary$LAYOUT.byteSize()); } @@ -505,7 +505,8 @@ public static MemorySegment get_binary(MemorySegment union) { * } get_binary * } */ - public static void get_binary(MemorySegment union, MemorySegment fieldValue) { + public static void get_binary(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_binary$OFFSET, get_binary$LAYOUT.byteSize()); } @@ -518,20 +519,18 @@ public static void get_binary(MemorySegment union, MemorySegment fieldValue) { */ public static class get_tcpl { - get_tcpl() { + get_tcpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("tcpl_id") - ).withName("$anon$323:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("tcpl_id")).withName("$anon$323:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong tcpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpl_id")); @@ -541,9 +540,7 @@ public static final GroupLayout layout() { * hid_t tcpl_id * } */ - public static final OfLong tcpl_id$layout() { - return tcpl_id$LAYOUT; - } + public static final OfLong tcpl_id$layout() { return tcpl_id$LAYOUT; } private static final long tcpl_id$OFFSET = 0; @@ -553,9 +550,7 @@ public static final GroupLayout layout() { * hid_t tcpl_id * } */ - public static final long tcpl_id$offset() { - return tcpl_id$OFFSET; - } + public static final long tcpl_id$offset() { return tcpl_id$OFFSET; } /** * Getter for field: @@ -563,7 +558,8 @@ public static final GroupLayout layout() { * hid_t tcpl_id * } */ - public static long tcpl_id(MemorySegment struct) { + public static long tcpl_id(MemorySegment struct) + { return struct.get(tcpl_id$LAYOUT, tcpl_id$OFFSET); } @@ -573,7 +569,8 @@ public static long tcpl_id(MemorySegment struct) { * hid_t tcpl_id * } */ - public static void tcpl_id(MemorySegment struct, long fieldValue) { + public static void tcpl_id(MemorySegment struct, long fieldValue) + { struct.set(tcpl_id$LAYOUT, tcpl_id$OFFSET, fieldValue); } @@ -581,7 +578,8 @@ public static void tcpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -593,7 +591,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -601,7 +600,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -609,7 +609,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -617,12 +619,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_tcpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_tcpl")); + private static final GroupLayout get_tcpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_tcpl")); /** * Layout for field: @@ -632,9 +637,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_tcpl * } */ - public static final GroupLayout get_tcpl$layout() { - return get_tcpl$LAYOUT; - } + public static final GroupLayout get_tcpl$layout() { return get_tcpl$LAYOUT; } private static final long get_tcpl$OFFSET = 0; @@ -646,9 +649,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_tcpl * } */ - public static final long get_tcpl$offset() { - return get_tcpl$OFFSET; - } + public static final long get_tcpl$offset() { return get_tcpl$OFFSET; } /** * Getter for field: @@ -658,7 +659,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_tcpl * } */ - public static MemorySegment get_tcpl(MemorySegment union) { + public static MemorySegment get_tcpl(MemorySegment union) + { return union.asSlice(get_tcpl$OFFSET, get_tcpl$LAYOUT.byteSize()); } @@ -670,7 +672,8 @@ public static MemorySegment get_tcpl(MemorySegment union) { * } get_tcpl * } */ - public static void get_tcpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_tcpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_tcpl$OFFSET, get_tcpl$LAYOUT.byteSize()); } @@ -678,7 +681,8 @@ public static void get_tcpl(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -690,7 +694,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -698,7 +703,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -706,7 +712,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -714,7 +722,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -738,9 +748,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -761,9 +769,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -782,7 +788,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -803,7 +810,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -811,7 +819,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -823,15 +832,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -839,7 +847,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -847,8 +856,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_specific_args_t.java index befa3751122..6c6f0cc3fd7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_datatype_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_datatype_specific_args_t { @@ -29,22 +29,21 @@ */ public class H5VL_datatype_specific_args_t { - H5VL_datatype_specific_args_t() { + H5VL_datatype_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_datatype_specific_args_t.args.layout().withName("args") - ).withName("H5VL_datatype_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_datatype_specific_args_t.args.layout().withName("args")) + .withName("H5VL_datatype_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -54,9 +53,7 @@ public static final GroupLayout layout() { * H5VL_datatype_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -66,9 +63,7 @@ public static final GroupLayout layout() { * H5VL_datatype_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -76,9 +71,7 @@ public static final GroupLayout layout() { * H5VL_datatype_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -86,7 +79,8 @@ public static int op_type(MemorySegment struct) { * H5VL_datatype_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -104,21 +98,21 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_datatype_specific_args_t.args.flush.layout().withName("flush"), - H5VL_datatype_specific_args_t.args.refresh.layout().withName("refresh") - ).withName("$anon$340:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_datatype_specific_args_t.args.flush.layout().withName("flush"), + H5VL_datatype_specific_args_t.args.refresh.layout().withName("refresh")) + .withName("$anon$340:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -129,20 +123,18 @@ public static final GroupLayout layout() { */ public static class flush { - flush() { + flush() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$342:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$342:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -152,9 +144,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -164,9 +154,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -174,7 +162,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -184,7 +173,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -192,7 +182,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -204,7 +195,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -212,7 +204,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -220,7 +213,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -228,7 +223,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -243,9 +240,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final GroupLayout flush$layout() { - return flush$LAYOUT; - } + public static final GroupLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 0; @@ -257,9 +252,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -269,7 +262,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static MemorySegment flush(MemorySegment union) { + public static MemorySegment flush(MemorySegment union) + { return union.asSlice(flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -281,7 +275,8 @@ public static MemorySegment flush(MemorySegment union) { * } flush * } */ - public static void flush(MemorySegment union, MemorySegment fieldValue) { + public static void flush(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -294,20 +289,18 @@ public static void flush(MemorySegment union, MemorySegment fieldValue) { */ public static class refresh { - refresh() { + refresh() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$347:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$347:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -317,9 +310,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -329,9 +320,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -339,7 +328,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -349,7 +339,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -357,7 +348,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -369,7 +361,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -377,7 +370,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -385,7 +379,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -393,12 +389,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout refresh$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("refresh")); + private static final GroupLayout refresh$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("refresh")); /** * Layout for field: @@ -408,9 +407,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final GroupLayout refresh$layout() { - return refresh$LAYOUT; - } + public static final GroupLayout refresh$layout() { return refresh$LAYOUT; } private static final long refresh$OFFSET = 0; @@ -422,9 +419,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final long refresh$offset() { - return refresh$OFFSET; - } + public static final long refresh$offset() { return refresh$OFFSET; } /** * Getter for field: @@ -434,7 +429,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static MemorySegment refresh(MemorySegment union) { + public static MemorySegment refresh(MemorySegment union) + { return union.asSlice(refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -446,7 +442,8 @@ public static MemorySegment refresh(MemorySegment union) { * } refresh * } */ - public static void refresh(MemorySegment union, MemorySegment fieldValue) { + public static void refresh(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -454,7 +451,8 @@ public static void refresh(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -466,7 +464,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -474,7 +473,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -482,7 +482,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -490,7 +492,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -510,9 +514,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -529,9 +531,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -546,7 +546,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -563,7 +564,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -571,7 +573,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -583,15 +586,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -599,7 +601,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -607,8 +610,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_class_t.java index 66bf7a90179..94c438a2c49 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_class_t { @@ -26,25 +26,22 @@ */ public class H5VL_file_class_t { - H5VL_file_class_t() { + H5VL_file_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("create"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("close") - ).withName("H5VL_file_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("create"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("close")) + .withName("H5VL_file_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -53,7 +50,8 @@ public static final GroupLayout layout() { */ public static class create { - create() { + create() + { // Should not be called directly } @@ -64,22 +62,14 @@ public interface Function { MemorySegment apply(MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(create.Function.class, "apply", $DESC); @@ -87,7 +77,8 @@ public static FunctionDescriptor descriptor() { * 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(create.Function fi, Arena arena) { + public static MemorySegment allocate(create.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -96,10 +87,13 @@ public static MemorySegment allocate(create.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, long _x4, MemorySegment _x5) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, + long _x3, long _x4, MemorySegment _x5) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -113,9 +107,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*create)(const char *, unsigned int, hid_t, hid_t, hid_t, void **) * } */ - public static final AddressLayout create$layout() { - return create$LAYOUT; - } + public static final AddressLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; @@ -125,9 +117,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*create)(const char *, unsigned int, hid_t, hid_t, hid_t, void **) * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: @@ -135,7 +125,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*create)(const char *, unsigned int, hid_t, hid_t, hid_t, void **) * } */ - public static MemorySegment create(MemorySegment struct) { + public static MemorySegment create(MemorySegment struct) + { return struct.get(create$LAYOUT, create$OFFSET); } @@ -145,7 +136,8 @@ public static MemorySegment create(MemorySegment struct) { * void *(*create)(const char *, unsigned int, hid_t, hid_t, hid_t, void **) * } */ - public static void create(MemorySegment struct, MemorySegment fieldValue) { + public static void create(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create$LAYOUT, create$OFFSET, fieldValue); } @@ -156,7 +148,8 @@ public static void create(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -168,20 +161,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -189,7 +174,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -198,10 +184,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, long _x2, long _x3, MemorySegment _x4) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, long _x2, + long _x3, MemorySegment _x4) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -215,9 +204,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*open)(const char *, unsigned int, hid_t, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 8; @@ -227,9 +214,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*open)(const char *, unsigned int, hid_t, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -237,9 +222,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*open)(const char *, unsigned int, hid_t, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -247,7 +230,8 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(const char *, unsigned int, hid_t, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -258,7 +242,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -270,19 +255,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -290,7 +268,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -299,10 +278,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -316,9 +298,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_file_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 16; @@ -328,9 +308,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_file_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -338,9 +316,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_file_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -348,7 +324,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, H5VL_file_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -359,7 +336,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -371,27 +349,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -400,16 +373,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -417,9 +394,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_file_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 24; @@ -429,9 +404,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_file_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -439,7 +412,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_file_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -449,7 +423,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, H5VL_file_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -460,7 +435,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -472,27 +448,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -501,16 +472,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -518,9 +493,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 32; @@ -530,9 +503,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -540,7 +511,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -550,7 +522,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -561,7 +534,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -572,19 +546,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -592,7 +560,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -601,10 +570,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -618,9 +589,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 40; @@ -630,9 +599,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -640,9 +607,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -650,7 +615,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(void *, hid_t, void **) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -658,7 +624,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -670,15 +637,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -686,7 +652,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -694,8 +661,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_cont_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_cont_info_t.java index 63499ddbe53..43b7b7919bd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_cont_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_cont_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_cont_info_t { @@ -24,24 +24,22 @@ */ public class H5VL_file_cont_info_t { - H5VL_file_cont_info_t() { + H5VL_file_cont_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("feature_flags"), - hdf5_h.C_LONG.withName("token_size"), - hdf5_h.C_LONG.withName("blob_id_size") - ).withName("H5VL_file_cont_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("feature_flags"), hdf5_h.C_LONG.withName("token_size"), + hdf5_h.C_LONG.withName("blob_id_size")) + .withName("H5VL_file_cont_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * unsigned int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -83,7 +75,8 @@ public static int version(MemorySegment struct) { * unsigned int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -95,9 +88,7 @@ public static void version(MemorySegment struct, int fieldValue) { * uint64_t feature_flags * } */ - public static final OfLong feature_flags$layout() { - return feature_flags$LAYOUT; - } + public static final OfLong feature_flags$layout() { return feature_flags$LAYOUT; } private static final long feature_flags$OFFSET = 8; @@ -107,9 +98,7 @@ public static void version(MemorySegment struct, int fieldValue) { * uint64_t feature_flags * } */ - public static final long feature_flags$offset() { - return feature_flags$OFFSET; - } + public static final long feature_flags$offset() { return feature_flags$OFFSET; } /** * Getter for field: @@ -117,7 +106,8 @@ public static void version(MemorySegment struct, int fieldValue) { * uint64_t feature_flags * } */ - public static long feature_flags(MemorySegment struct) { + public static long feature_flags(MemorySegment struct) + { return struct.get(feature_flags$LAYOUT, feature_flags$OFFSET); } @@ -127,7 +117,8 @@ public static long feature_flags(MemorySegment struct) { * uint64_t feature_flags * } */ - public static void feature_flags(MemorySegment struct, long fieldValue) { + public static void feature_flags(MemorySegment struct, long fieldValue) + { struct.set(feature_flags$LAYOUT, feature_flags$OFFSET, fieldValue); } @@ -139,9 +130,7 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * size_t token_size * } */ - public static final OfLong token_size$layout() { - return token_size$LAYOUT; - } + public static final OfLong token_size$layout() { return token_size$LAYOUT; } private static final long token_size$OFFSET = 16; @@ -151,9 +140,7 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * size_t token_size * } */ - public static final long token_size$offset() { - return token_size$OFFSET; - } + public static final long token_size$offset() { return token_size$OFFSET; } /** * Getter for field: @@ -161,7 +148,8 @@ public static void feature_flags(MemorySegment struct, long fieldValue) { * size_t token_size * } */ - public static long token_size(MemorySegment struct) { + public static long token_size(MemorySegment struct) + { return struct.get(token_size$LAYOUT, token_size$OFFSET); } @@ -171,7 +159,8 @@ public static long token_size(MemorySegment struct) { * size_t token_size * } */ - public static void token_size(MemorySegment struct, long fieldValue) { + public static void token_size(MemorySegment struct, long fieldValue) + { struct.set(token_size$LAYOUT, token_size$OFFSET, fieldValue); } @@ -183,9 +172,7 @@ public static void token_size(MemorySegment struct, long fieldValue) { * size_t blob_id_size * } */ - public static final OfLong blob_id_size$layout() { - return blob_id_size$LAYOUT; - } + public static final OfLong blob_id_size$layout() { return blob_id_size$LAYOUT; } private static final long blob_id_size$OFFSET = 24; @@ -195,9 +182,7 @@ public static void token_size(MemorySegment struct, long fieldValue) { * size_t blob_id_size * } */ - public static final long blob_id_size$offset() { - return blob_id_size$OFFSET; - } + public static final long blob_id_size$offset() { return blob_id_size$OFFSET; } /** * Getter for field: @@ -205,7 +190,8 @@ public static void token_size(MemorySegment struct, long fieldValue) { * size_t blob_id_size * } */ - public static long blob_id_size(MemorySegment struct) { + public static long blob_id_size(MemorySegment struct) + { return struct.get(blob_id_size$LAYOUT, blob_id_size$OFFSET); } @@ -215,7 +201,8 @@ public static long blob_id_size(MemorySegment struct) { * size_t blob_id_size * } */ - public static void blob_id_size(MemorySegment struct, long fieldValue) { + public static void blob_id_size(MemorySegment struct, long fieldValue) + { struct.set(blob_id_size$LAYOUT, blob_id_size$OFFSET, fieldValue); } @@ -223,7 +210,8 @@ public static void blob_id_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +223,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +238,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +247,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_args_t.java index aa33562166d..44cff1cbe6d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_get_args_t { @@ -44,22 +44,21 @@ */ public class H5VL_file_get_args_t { - H5VL_file_get_args_t() { + H5VL_file_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_file_get_args_t.args.layout().withName("args") - ).withName("H5VL_file_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_file_get_args_t.args.layout().withName("args")) + .withName("H5VL_file_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -69,9 +68,7 @@ public static final GroupLayout layout() { * H5VL_file_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -81,9 +78,7 @@ public static final GroupLayout layout() { * H5VL_file_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -91,9 +86,7 @@ public static final GroupLayout layout() { * H5VL_file_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -101,7 +94,8 @@ public static int op_type(MemorySegment struct) { * H5VL_file_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -134,27 +128,27 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_file_get_args_t.args.get_cont_info.layout().withName("get_cont_info"), - H5VL_file_get_args_t.args.get_fapl.layout().withName("get_fapl"), - H5VL_file_get_args_t.args.get_fcpl.layout().withName("get_fcpl"), - H5VL_file_get_args_t.args.get_fileno.layout().withName("get_fileno"), - H5VL_file_get_args_t.args.get_intent.layout().withName("get_intent"), - H5VL_file_get_name_args_t.layout().withName("get_name"), - H5VL_file_get_args_t.args.get_obj_count.layout().withName("get_obj_count"), - H5VL_file_get_obj_ids_args_t.layout().withName("get_obj_ids") - ).withName("$anon$399:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_file_get_args_t.args.get_cont_info.layout().withName("get_cont_info"), + H5VL_file_get_args_t.args.get_fapl.layout().withName("get_fapl"), + H5VL_file_get_args_t.args.get_fcpl.layout().withName("get_fcpl"), + H5VL_file_get_args_t.args.get_fileno.layout().withName("get_fileno"), + H5VL_file_get_args_t.args.get_intent.layout().withName("get_intent"), + H5VL_file_get_name_args_t.layout().withName("get_name"), + H5VL_file_get_args_t.args.get_obj_count.layout().withName("get_obj_count"), + H5VL_file_get_obj_ids_args_t.layout().withName("get_obj_ids")) + .withName("$anon$399:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -165,22 +159,21 @@ public static final GroupLayout layout() { */ public static class get_cont_info { - get_cont_info() { + get_cont_info() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("info") - ).withName("$anon$401:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("info")).withName("$anon$401:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout info$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("info")); + private static final AddressLayout info$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("info")); /** * Layout for field: @@ -188,9 +181,7 @@ public static final GroupLayout layout() { * H5VL_file_cont_info_t *info * } */ - public static final AddressLayout info$layout() { - return info$LAYOUT; - } + public static final AddressLayout info$layout() { return info$LAYOUT; } private static final long info$OFFSET = 0; @@ -200,9 +191,7 @@ public static final GroupLayout layout() { * H5VL_file_cont_info_t *info * } */ - public static final long info$offset() { - return info$OFFSET; - } + public static final long info$offset() { return info$OFFSET; } /** * Getter for field: @@ -210,7 +199,8 @@ public static final GroupLayout layout() { * H5VL_file_cont_info_t *info * } */ - public static MemorySegment info(MemorySegment struct) { + public static MemorySegment info(MemorySegment struct) + { return struct.get(info$LAYOUT, info$OFFSET); } @@ -220,7 +210,8 @@ public static MemorySegment info(MemorySegment struct) { * H5VL_file_cont_info_t *info * } */ - public static void info(MemorySegment struct, MemorySegment fieldValue) { + public static void info(MemorySegment struct, MemorySegment fieldValue) + { struct.set(info$LAYOUT, info$OFFSET, fieldValue); } @@ -228,7 +219,8 @@ public static void info(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -240,7 +232,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -248,7 +241,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -256,7 +250,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -264,12 +260,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_cont_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_cont_info")); + private static final GroupLayout get_cont_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_cont_info")); /** * Layout for field: @@ -279,9 +278,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_cont_info * } */ - public static final GroupLayout get_cont_info$layout() { - return get_cont_info$LAYOUT; - } + public static final GroupLayout get_cont_info$layout() { return get_cont_info$LAYOUT; } private static final long get_cont_info$OFFSET = 0; @@ -293,9 +290,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_cont_info * } */ - public static final long get_cont_info$offset() { - return get_cont_info$OFFSET; - } + public static final long get_cont_info$offset() { return get_cont_info$OFFSET; } /** * Getter for field: @@ -305,7 +300,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_cont_info * } */ - public static MemorySegment get_cont_info(MemorySegment union) { + public static MemorySegment get_cont_info(MemorySegment union) + { return union.asSlice(get_cont_info$OFFSET, get_cont_info$LAYOUT.byteSize()); } @@ -317,7 +313,8 @@ public static MemorySegment get_cont_info(MemorySegment union) { * } get_cont_info * } */ - public static void get_cont_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_cont_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_cont_info$OFFSET, get_cont_info$LAYOUT.byteSize()); } @@ -330,20 +327,18 @@ public static void get_cont_info(MemorySegment union, MemorySegment fieldValue) */ public static class get_fapl { - get_fapl() { + get_fapl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("fapl_id") - ).withName("$anon$406:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("fapl_id")).withName("$anon$406:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong fapl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("fapl_id")); @@ -353,9 +348,7 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static final OfLong fapl_id$layout() { - return fapl_id$LAYOUT; - } + public static final OfLong fapl_id$layout() { return fapl_id$LAYOUT; } private static final long fapl_id$OFFSET = 0; @@ -365,9 +358,7 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static final long fapl_id$offset() { - return fapl_id$OFFSET; - } + public static final long fapl_id$offset() { return fapl_id$OFFSET; } /** * Getter for field: @@ -375,7 +366,8 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static long fapl_id(MemorySegment struct) { + public static long fapl_id(MemorySegment struct) + { return struct.get(fapl_id$LAYOUT, fapl_id$OFFSET); } @@ -385,7 +377,8 @@ public static long fapl_id(MemorySegment struct) { * hid_t fapl_id * } */ - public static void fapl_id(MemorySegment struct, long fieldValue) { + public static void fapl_id(MemorySegment struct, long fieldValue) + { struct.set(fapl_id$LAYOUT, fapl_id$OFFSET, fieldValue); } @@ -393,7 +386,8 @@ public static void fapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -405,7 +399,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -413,7 +408,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -421,7 +417,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -429,12 +427,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_fapl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_fapl")); + private static final GroupLayout get_fapl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_fapl")); /** * Layout for field: @@ -444,9 +445,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fapl * } */ - public static final GroupLayout get_fapl$layout() { - return get_fapl$LAYOUT; - } + public static final GroupLayout get_fapl$layout() { return get_fapl$LAYOUT; } private static final long get_fapl$OFFSET = 0; @@ -458,9 +457,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fapl * } */ - public static final long get_fapl$offset() { - return get_fapl$OFFSET; - } + public static final long get_fapl$offset() { return get_fapl$OFFSET; } /** * Getter for field: @@ -470,7 +467,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fapl * } */ - public static MemorySegment get_fapl(MemorySegment union) { + public static MemorySegment get_fapl(MemorySegment union) + { return union.asSlice(get_fapl$OFFSET, get_fapl$LAYOUT.byteSize()); } @@ -482,7 +480,8 @@ public static MemorySegment get_fapl(MemorySegment union) { * } get_fapl * } */ - public static void get_fapl(MemorySegment union, MemorySegment fieldValue) { + public static void get_fapl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_fapl$OFFSET, get_fapl$LAYOUT.byteSize()); } @@ -495,20 +494,18 @@ public static void get_fapl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_fcpl { - get_fcpl() { + get_fcpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("fcpl_id") - ).withName("$anon$411:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("fcpl_id")).withName("$anon$411:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong fcpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("fcpl_id")); @@ -518,9 +515,7 @@ public static final GroupLayout layout() { * hid_t fcpl_id * } */ - public static final OfLong fcpl_id$layout() { - return fcpl_id$LAYOUT; - } + public static final OfLong fcpl_id$layout() { return fcpl_id$LAYOUT; } private static final long fcpl_id$OFFSET = 0; @@ -530,9 +525,7 @@ public static final GroupLayout layout() { * hid_t fcpl_id * } */ - public static final long fcpl_id$offset() { - return fcpl_id$OFFSET; - } + public static final long fcpl_id$offset() { return fcpl_id$OFFSET; } /** * Getter for field: @@ -540,7 +533,8 @@ public static final GroupLayout layout() { * hid_t fcpl_id * } */ - public static long fcpl_id(MemorySegment struct) { + public static long fcpl_id(MemorySegment struct) + { return struct.get(fcpl_id$LAYOUT, fcpl_id$OFFSET); } @@ -550,7 +544,8 @@ public static long fcpl_id(MemorySegment struct) { * hid_t fcpl_id * } */ - public static void fcpl_id(MemorySegment struct, long fieldValue) { + public static void fcpl_id(MemorySegment struct, long fieldValue) + { struct.set(fcpl_id$LAYOUT, fcpl_id$OFFSET, fieldValue); } @@ -558,7 +553,8 @@ public static void fcpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -570,7 +566,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -578,7 +575,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -586,7 +584,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -594,12 +594,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_fcpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_fcpl")); + private static final GroupLayout get_fcpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_fcpl")); /** * Layout for field: @@ -609,9 +612,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fcpl * } */ - public static final GroupLayout get_fcpl$layout() { - return get_fcpl$LAYOUT; - } + public static final GroupLayout get_fcpl$layout() { return get_fcpl$LAYOUT; } private static final long get_fcpl$OFFSET = 0; @@ -623,9 +624,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fcpl * } */ - public static final long get_fcpl$offset() { - return get_fcpl$OFFSET; - } + public static final long get_fcpl$offset() { return get_fcpl$OFFSET; } /** * Getter for field: @@ -635,7 +634,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fcpl * } */ - public static MemorySegment get_fcpl(MemorySegment union) { + public static MemorySegment get_fcpl(MemorySegment union) + { return union.asSlice(get_fcpl$OFFSET, get_fcpl$LAYOUT.byteSize()); } @@ -647,7 +647,8 @@ public static MemorySegment get_fcpl(MemorySegment union) { * } get_fcpl * } */ - public static void get_fcpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_fcpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_fcpl$OFFSET, get_fcpl$LAYOUT.byteSize()); } @@ -660,22 +661,21 @@ public static void get_fcpl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_fileno { - get_fileno() { + get_fileno() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("fileno") - ).withName("$anon$416:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("fileno")).withName("$anon$416:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout fileno$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("fileno")); + private static final AddressLayout fileno$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("fileno")); /** * Layout for field: @@ -683,9 +683,7 @@ public static final GroupLayout layout() { * unsigned long *fileno * } */ - public static final AddressLayout fileno$layout() { - return fileno$LAYOUT; - } + public static final AddressLayout fileno$layout() { return fileno$LAYOUT; } private static final long fileno$OFFSET = 0; @@ -695,9 +693,7 @@ public static final GroupLayout layout() { * unsigned long *fileno * } */ - public static final long fileno$offset() { - return fileno$OFFSET; - } + public static final long fileno$offset() { return fileno$OFFSET; } /** * Getter for field: @@ -705,7 +701,8 @@ public static final GroupLayout layout() { * unsigned long *fileno * } */ - public static MemorySegment fileno(MemorySegment struct) { + public static MemorySegment fileno(MemorySegment struct) + { return struct.get(fileno$LAYOUT, fileno$OFFSET); } @@ -715,7 +712,8 @@ public static MemorySegment fileno(MemorySegment struct) { * unsigned long *fileno * } */ - public static void fileno(MemorySegment struct, MemorySegment fieldValue) { + public static void fileno(MemorySegment struct, MemorySegment fieldValue) + { struct.set(fileno$LAYOUT, fileno$OFFSET, fieldValue); } @@ -723,7 +721,8 @@ public static void fileno(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -735,7 +734,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -743,7 +743,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -751,7 +752,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -759,12 +762,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_fileno$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_fileno")); + private static final GroupLayout get_fileno$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_fileno")); /** * Layout for field: @@ -774,9 +780,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fileno * } */ - public static final GroupLayout get_fileno$layout() { - return get_fileno$LAYOUT; - } + public static final GroupLayout get_fileno$layout() { return get_fileno$LAYOUT; } private static final long get_fileno$OFFSET = 0; @@ -788,9 +792,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fileno * } */ - public static final long get_fileno$offset() { - return get_fileno$OFFSET; - } + public static final long get_fileno$offset() { return get_fileno$OFFSET; } /** * Getter for field: @@ -800,7 +802,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_fileno * } */ - public static MemorySegment get_fileno(MemorySegment union) { + public static MemorySegment get_fileno(MemorySegment union) + { return union.asSlice(get_fileno$OFFSET, get_fileno$LAYOUT.byteSize()); } @@ -812,7 +815,8 @@ public static MemorySegment get_fileno(MemorySegment union) { * } get_fileno * } */ - public static void get_fileno(MemorySegment union, MemorySegment fieldValue) { + public static void get_fileno(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_fileno$OFFSET, get_fileno$LAYOUT.byteSize()); } @@ -825,22 +829,21 @@ public static void get_fileno(MemorySegment union, MemorySegment fieldValue) { */ public static class get_intent { - get_intent() { + get_intent() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("flags") - ).withName("$anon$421:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("flags")).withName("$anon$421:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout flags$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("flags")); + private static final AddressLayout flags$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("flags")); /** * Layout for field: @@ -848,9 +851,7 @@ public static final GroupLayout layout() { * unsigned int *flags * } */ - public static final AddressLayout flags$layout() { - return flags$LAYOUT; - } + public static final AddressLayout flags$layout() { return flags$LAYOUT; } private static final long flags$OFFSET = 0; @@ -860,9 +861,7 @@ public static final GroupLayout layout() { * unsigned int *flags * } */ - public static final long flags$offset() { - return flags$OFFSET; - } + public static final long flags$offset() { return flags$OFFSET; } /** * Getter for field: @@ -870,7 +869,8 @@ public static final GroupLayout layout() { * unsigned int *flags * } */ - public static MemorySegment flags(MemorySegment struct) { + public static MemorySegment flags(MemorySegment struct) + { return struct.get(flags$LAYOUT, flags$OFFSET); } @@ -880,7 +880,8 @@ public static MemorySegment flags(MemorySegment struct) { * unsigned int *flags * } */ - public static void flags(MemorySegment struct, MemorySegment fieldValue) { + public static void flags(MemorySegment struct, MemorySegment fieldValue) + { struct.set(flags$LAYOUT, flags$OFFSET, fieldValue); } @@ -888,7 +889,8 @@ public static void flags(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -900,7 +902,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -908,7 +911,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -916,7 +920,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -924,12 +930,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_intent$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_intent")); + private static final GroupLayout get_intent$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_intent")); /** * Layout for field: @@ -939,9 +948,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_intent * } */ - public static final GroupLayout get_intent$layout() { - return get_intent$LAYOUT; - } + public static final GroupLayout get_intent$layout() { return get_intent$LAYOUT; } private static final long get_intent$OFFSET = 0; @@ -953,9 +960,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_intent * } */ - public static final long get_intent$offset() { - return get_intent$OFFSET; - } + public static final long get_intent$offset() { return get_intent$OFFSET; } /** * Getter for field: @@ -965,7 +970,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_intent * } */ - public static MemorySegment get_intent(MemorySegment union) { + public static MemorySegment get_intent(MemorySegment union) + { return union.asSlice(get_intent$OFFSET, get_intent$LAYOUT.byteSize()); } @@ -977,11 +983,13 @@ public static MemorySegment get_intent(MemorySegment union) { * } get_intent * } */ - public static void get_intent(MemorySegment union, MemorySegment fieldValue) { + public static void get_intent(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_intent$OFFSET, get_intent$LAYOUT.byteSize()); } - private static final GroupLayout get_name$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_name")); + private static final GroupLayout get_name$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_name")); /** * Layout for field: @@ -989,9 +997,7 @@ public static void get_intent(MemorySegment union, MemorySegment fieldValue) { * H5VL_file_get_name_args_t get_name * } */ - public static final GroupLayout get_name$layout() { - return get_name$LAYOUT; - } + public static final GroupLayout get_name$layout() { return get_name$LAYOUT; } private static final long get_name$OFFSET = 0; @@ -1001,9 +1007,7 @@ public static void get_intent(MemorySegment union, MemorySegment fieldValue) { * H5VL_file_get_name_args_t get_name * } */ - public static final long get_name$offset() { - return get_name$OFFSET; - } + public static final long get_name$offset() { return get_name$OFFSET; } /** * Getter for field: @@ -1011,7 +1015,8 @@ public static void get_intent(MemorySegment union, MemorySegment fieldValue) { * H5VL_file_get_name_args_t get_name * } */ - public static MemorySegment get_name(MemorySegment union) { + public static MemorySegment get_name(MemorySegment union) + { return union.asSlice(get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -1021,7 +1026,8 @@ public static MemorySegment get_name(MemorySegment union) { * H5VL_file_get_name_args_t get_name * } */ - public static void get_name(MemorySegment union, MemorySegment fieldValue) { + public static void get_name(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -1035,22 +1041,21 @@ public static void get_name(MemorySegment union, MemorySegment fieldValue) { */ public static class get_obj_count { - get_obj_count() { + get_obj_count() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("types"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("count") - ).withName("$anon$429:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("types"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("count")) + .withName("$anon$429:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt types$LAYOUT = (OfInt)$LAYOUT.select(groupElement("types")); @@ -1060,9 +1065,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static final OfInt types$layout() { - return types$LAYOUT; - } + public static final OfInt types$layout() { return types$LAYOUT; } private static final long types$OFFSET = 0; @@ -1072,9 +1075,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static final long types$offset() { - return types$OFFSET; - } + public static final long types$offset() { return types$OFFSET; } /** * Getter for field: @@ -1082,9 +1083,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static int types(MemorySegment struct) { - return struct.get(types$LAYOUT, types$OFFSET); - } + public static int types(MemorySegment struct) { return struct.get(types$LAYOUT, types$OFFSET); } /** * Setter for field: @@ -1092,11 +1091,13 @@ public static int types(MemorySegment struct) { * unsigned int types * } */ - public static void types(MemorySegment struct, int fieldValue) { + public static void types(MemorySegment struct, int fieldValue) + { struct.set(types$LAYOUT, types$OFFSET, fieldValue); } - private static final AddressLayout count$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("count")); + private static final AddressLayout count$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("count")); /** * Layout for field: @@ -1104,9 +1105,7 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t *count * } */ - public static final AddressLayout count$layout() { - return count$LAYOUT; - } + public static final AddressLayout count$layout() { return count$LAYOUT; } private static final long count$OFFSET = 8; @@ -1116,9 +1115,7 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t *count * } */ - public static final long count$offset() { - return count$OFFSET; - } + public static final long count$offset() { return count$OFFSET; } /** * Getter for field: @@ -1126,7 +1123,8 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t *count * } */ - public static MemorySegment count(MemorySegment struct) { + public static MemorySegment count(MemorySegment struct) + { return struct.get(count$LAYOUT, count$OFFSET); } @@ -1136,7 +1134,8 @@ public static MemorySegment count(MemorySegment struct) { * size_t *count * } */ - public static void count(MemorySegment struct, MemorySegment fieldValue) { + public static void count(MemorySegment struct, MemorySegment fieldValue) + { struct.set(count$LAYOUT, count$OFFSET, fieldValue); } @@ -1144,7 +1143,8 @@ public static void count(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1156,7 +1156,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1164,7 +1165,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1172,7 +1174,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1180,12 +1184,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_obj_count$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_obj_count")); + private static final GroupLayout get_obj_count$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_obj_count")); /** * Layout for field: @@ -1196,9 +1203,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_obj_count * } */ - public static final GroupLayout get_obj_count$layout() { - return get_obj_count$LAYOUT; - } + public static final GroupLayout get_obj_count$layout() { return get_obj_count$LAYOUT; } private static final long get_obj_count$OFFSET = 0; @@ -1211,9 +1216,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_obj_count * } */ - public static final long get_obj_count$offset() { - return get_obj_count$OFFSET; - } + public static final long get_obj_count$offset() { return get_obj_count$OFFSET; } /** * Getter for field: @@ -1224,7 +1227,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_obj_count * } */ - public static MemorySegment get_obj_count(MemorySegment union) { + public static MemorySegment get_obj_count(MemorySegment union) + { return union.asSlice(get_obj_count$OFFSET, get_obj_count$LAYOUT.byteSize()); } @@ -1237,11 +1241,13 @@ public static MemorySegment get_obj_count(MemorySegment union) { * } get_obj_count * } */ - public static void get_obj_count(MemorySegment union, MemorySegment fieldValue) { + public static void get_obj_count(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_obj_count$OFFSET, get_obj_count$LAYOUT.byteSize()); } - private static final GroupLayout get_obj_ids$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_obj_ids")); + private static final GroupLayout get_obj_ids$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_obj_ids")); /** * Layout for field: @@ -1249,9 +1255,7 @@ public static void get_obj_count(MemorySegment union, MemorySegment fieldValue) * H5VL_file_get_obj_ids_args_t get_obj_ids * } */ - public static final GroupLayout get_obj_ids$layout() { - return get_obj_ids$LAYOUT; - } + public static final GroupLayout get_obj_ids$layout() { return get_obj_ids$LAYOUT; } private static final long get_obj_ids$OFFSET = 0; @@ -1261,9 +1265,7 @@ public static void get_obj_count(MemorySegment union, MemorySegment fieldValue) * H5VL_file_get_obj_ids_args_t get_obj_ids * } */ - public static final long get_obj_ids$offset() { - return get_obj_ids$OFFSET; - } + public static final long get_obj_ids$offset() { return get_obj_ids$OFFSET; } /** * Getter for field: @@ -1271,7 +1273,8 @@ public static void get_obj_count(MemorySegment union, MemorySegment fieldValue) * H5VL_file_get_obj_ids_args_t get_obj_ids * } */ - public static MemorySegment get_obj_ids(MemorySegment union) { + public static MemorySegment get_obj_ids(MemorySegment union) + { return union.asSlice(get_obj_ids$OFFSET, get_obj_ids$LAYOUT.byteSize()); } @@ -1281,7 +1284,8 @@ public static MemorySegment get_obj_ids(MemorySegment union) { * H5VL_file_get_obj_ids_args_t get_obj_ids * } */ - public static void get_obj_ids(MemorySegment union, MemorySegment fieldValue) { + public static void get_obj_ids(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_obj_ids$OFFSET, get_obj_ids$LAYOUT.byteSize()); } @@ -1289,7 +1293,8 @@ public static void get_obj_ids(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1301,7 +1306,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1309,7 +1315,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1317,7 +1324,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1325,7 +1334,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1360,9 +1371,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -1394,9 +1403,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1426,7 +1433,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1458,7 +1466,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1466,7 +1475,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1478,15 +1488,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1494,7 +1503,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1502,8 +1512,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_name_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_name_args_t.java index 4c469cc4934..e98dbe8dc6d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_name_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_name_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_get_name_args_t { @@ -24,24 +24,22 @@ */ public class H5VL_file_get_name_args_t { - H5VL_file_get_name_args_t() { + H5VL_file_get_name_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_POINTER.withName("file_name_len") - ).withName("H5VL_file_get_name_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf"), + hdf5_h.C_POINTER.withName("file_name_len")) + .withName("H5VL_file_get_name_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -83,7 +75,8 @@ public static int type(MemorySegment struct) { * H5I_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -95,9 +88,7 @@ public static void type(MemorySegment struct, int fieldValue) { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 8; @@ -107,9 +98,7 @@ public static void type(MemorySegment struct, int fieldValue) { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -117,9 +106,7 @@ public static void type(MemorySegment struct, int fieldValue) { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { - return struct.get(buf_size$LAYOUT, buf_size$OFFSET); - } + public static long buf_size(MemorySegment struct) { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } /** * Setter for field: @@ -127,7 +114,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -139,9 +127,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 16; @@ -151,9 +137,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -161,9 +145,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -171,11 +153,13 @@ public static MemorySegment buf(MemorySegment struct) { * char *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } - private static final AddressLayout file_name_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file_name_len")); + private static final AddressLayout file_name_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file_name_len")); /** * Layout for field: @@ -183,9 +167,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *file_name_len * } */ - public static final AddressLayout file_name_len$layout() { - return file_name_len$LAYOUT; - } + public static final AddressLayout file_name_len$layout() { return file_name_len$LAYOUT; } private static final long file_name_len$OFFSET = 24; @@ -195,9 +177,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *file_name_len * } */ - public static final long file_name_len$offset() { - return file_name_len$OFFSET; - } + public static final long file_name_len$offset() { return file_name_len$OFFSET; } /** * Getter for field: @@ -205,7 +185,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *file_name_len * } */ - public static MemorySegment file_name_len(MemorySegment struct) { + public static MemorySegment file_name_len(MemorySegment struct) + { return struct.get(file_name_len$LAYOUT, file_name_len$OFFSET); } @@ -215,7 +196,8 @@ public static MemorySegment file_name_len(MemorySegment struct) { * size_t *file_name_len * } */ - public static void file_name_len(MemorySegment struct, MemorySegment fieldValue) { + public static void file_name_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file_name_len$LAYOUT, file_name_len$OFFSET, fieldValue); } @@ -223,7 +205,8 @@ public static void file_name_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +218,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +233,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +242,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_obj_ids_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_obj_ids_args_t.java index 89ec968fb12..b390e121343 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_obj_ids_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_get_obj_ids_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_get_obj_ids_args_t { @@ -24,24 +24,22 @@ */ public class H5VL_file_get_obj_ids_args_t { - H5VL_file_get_obj_ids_args_t() { + H5VL_file_get_obj_ids_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("types"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_LONG.withName("max_objs"), - hdf5_h.C_POINTER.withName("oid_list"), - hdf5_h.C_POINTER.withName("count") - ).withName("H5VL_file_get_obj_ids_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("types"), MemoryLayout.paddingLayout(4), + hdf5_h.C_LONG.withName("max_objs"), hdf5_h.C_POINTER.withName("oid_list"), + hdf5_h.C_POINTER.withName("count")) + .withName("H5VL_file_get_obj_ids_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt types$LAYOUT = (OfInt)$LAYOUT.select(groupElement("types")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static final OfInt types$layout() { - return types$LAYOUT; - } + public static final OfInt types$layout() { return types$LAYOUT; } private static final long types$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static final long types$offset() { - return types$OFFSET; - } + public static final long types$offset() { return types$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * unsigned int types * } */ - public static int types(MemorySegment struct) { - return struct.get(types$LAYOUT, types$OFFSET); - } + public static int types(MemorySegment struct) { return struct.get(types$LAYOUT, types$OFFSET); } /** * Setter for field: @@ -83,7 +75,8 @@ public static int types(MemorySegment struct) { * unsigned int types * } */ - public static void types(MemorySegment struct, int fieldValue) { + public static void types(MemorySegment struct, int fieldValue) + { struct.set(types$LAYOUT, types$OFFSET, fieldValue); } @@ -95,9 +88,7 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t max_objs * } */ - public static final OfLong max_objs$layout() { - return max_objs$LAYOUT; - } + public static final OfLong max_objs$layout() { return max_objs$LAYOUT; } private static final long max_objs$OFFSET = 8; @@ -107,9 +98,7 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t max_objs * } */ - public static final long max_objs$offset() { - return max_objs$OFFSET; - } + public static final long max_objs$offset() { return max_objs$OFFSET; } /** * Getter for field: @@ -117,9 +106,7 @@ public static void types(MemorySegment struct, int fieldValue) { * size_t max_objs * } */ - public static long max_objs(MemorySegment struct) { - return struct.get(max_objs$LAYOUT, max_objs$OFFSET); - } + public static long max_objs(MemorySegment struct) { return struct.get(max_objs$LAYOUT, max_objs$OFFSET); } /** * Setter for field: @@ -127,11 +114,13 @@ public static long max_objs(MemorySegment struct) { * size_t max_objs * } */ - public static void max_objs(MemorySegment struct, long fieldValue) { + public static void max_objs(MemorySegment struct, long fieldValue) + { struct.set(max_objs$LAYOUT, max_objs$OFFSET, fieldValue); } - private static final AddressLayout oid_list$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("oid_list")); + private static final AddressLayout oid_list$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("oid_list")); /** * Layout for field: @@ -139,9 +128,7 @@ public static void max_objs(MemorySegment struct, long fieldValue) { * hid_t *oid_list * } */ - public static final AddressLayout oid_list$layout() { - return oid_list$LAYOUT; - } + public static final AddressLayout oid_list$layout() { return oid_list$LAYOUT; } private static final long oid_list$OFFSET = 16; @@ -151,9 +138,7 @@ public static void max_objs(MemorySegment struct, long fieldValue) { * hid_t *oid_list * } */ - public static final long oid_list$offset() { - return oid_list$OFFSET; - } + public static final long oid_list$offset() { return oid_list$OFFSET; } /** * Getter for field: @@ -161,7 +146,8 @@ public static void max_objs(MemorySegment struct, long fieldValue) { * hid_t *oid_list * } */ - public static MemorySegment oid_list(MemorySegment struct) { + public static MemorySegment oid_list(MemorySegment struct) + { return struct.get(oid_list$LAYOUT, oid_list$OFFSET); } @@ -171,7 +157,8 @@ public static MemorySegment oid_list(MemorySegment struct) { * hid_t *oid_list * } */ - public static void oid_list(MemorySegment struct, MemorySegment fieldValue) { + public static void oid_list(MemorySegment struct, MemorySegment fieldValue) + { struct.set(oid_list$LAYOUT, oid_list$OFFSET, fieldValue); } @@ -183,9 +170,7 @@ public static void oid_list(MemorySegment struct, MemorySegment fieldValue) { * size_t *count * } */ - public static final AddressLayout count$layout() { - return count$LAYOUT; - } + public static final AddressLayout count$layout() { return count$LAYOUT; } private static final long count$OFFSET = 24; @@ -195,9 +180,7 @@ public static void oid_list(MemorySegment struct, MemorySegment fieldValue) { * size_t *count * } */ - public static final long count$offset() { - return count$OFFSET; - } + public static final long count$offset() { return count$OFFSET; } /** * Getter for field: @@ -205,9 +188,7 @@ public static void oid_list(MemorySegment struct, MemorySegment fieldValue) { * size_t *count * } */ - public static MemorySegment count(MemorySegment struct) { - return struct.get(count$LAYOUT, count$OFFSET); - } + public static MemorySegment count(MemorySegment struct) { return struct.get(count$LAYOUT, count$OFFSET); } /** * Setter for field: @@ -215,7 +196,8 @@ public static MemorySegment count(MemorySegment struct) { * size_t *count * } */ - public static void count(MemorySegment struct, MemorySegment fieldValue) { + public static void count(MemorySegment struct, MemorySegment fieldValue) + { struct.set(count$LAYOUT, count$OFFSET, fieldValue); } @@ -223,7 +205,8 @@ public static void count(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +218,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +233,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +242,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_specific_args_t.java index 1f515fa0ef4..68fe40789e6 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_file_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_file_specific_args_t { @@ -43,22 +43,21 @@ */ public class H5VL_file_specific_args_t { - H5VL_file_specific_args_t() { + H5VL_file_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_file_specific_args_t.args.layout().withName("args") - ).withName("H5VL_file_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_file_specific_args_t.args.layout().withName("args")) + .withName("H5VL_file_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -68,9 +67,7 @@ public static final GroupLayout layout() { * H5VL_file_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -80,9 +77,7 @@ public static final GroupLayout layout() { * H5VL_file_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -90,9 +85,7 @@ public static final GroupLayout layout() { * H5VL_file_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -100,7 +93,8 @@ public static int op_type(MemorySegment struct) { * H5VL_file_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -132,24 +126,24 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_file_specific_args_t.args.flush.layout().withName("flush"), - H5VL_file_specific_args_t.args.reopen.layout().withName("reopen"), - H5VL_file_specific_args_t.args.is_accessible.layout().withName("is_accessible"), - H5VL_file_specific_args_t.args.del.layout().withName("del"), - H5VL_file_specific_args_t.args.is_equal.layout().withName("is_equal") - ).withName("$anon$461:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_file_specific_args_t.args.flush.layout().withName("flush"), + H5VL_file_specific_args_t.args.reopen.layout().withName("reopen"), + H5VL_file_specific_args_t.args.is_accessible.layout().withName("is_accessible"), + H5VL_file_specific_args_t.args.del.layout().withName("del"), + H5VL_file_specific_args_t.args.is_equal.layout().withName("is_equal")) + .withName("$anon$461:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -161,21 +155,19 @@ public static final GroupLayout layout() { */ public static class flush { - flush() { + flush() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("obj_type"), - hdf5_h.C_INT.withName("scope") - ).withName("$anon$463:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_INT.withName("obj_type"), hdf5_h.C_INT.withName("scope")) + .withName("$anon$463:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt obj_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("obj_type")); @@ -185,9 +177,7 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static final OfInt obj_type$layout() { - return obj_type$LAYOUT; - } + public static final OfInt obj_type$layout() { return obj_type$LAYOUT; } private static final long obj_type$OFFSET = 0; @@ -197,9 +187,7 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static final long obj_type$offset() { - return obj_type$OFFSET; - } + public static final long obj_type$offset() { return obj_type$OFFSET; } /** * Getter for field: @@ -207,7 +195,8 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static int obj_type(MemorySegment struct) { + public static int obj_type(MemorySegment struct) + { return struct.get(obj_type$LAYOUT, obj_type$OFFSET); } @@ -217,7 +206,8 @@ public static int obj_type(MemorySegment struct) { * H5I_type_t obj_type * } */ - public static void obj_type(MemorySegment struct, int fieldValue) { + public static void obj_type(MemorySegment struct, int fieldValue) + { struct.set(obj_type$LAYOUT, obj_type$OFFSET, fieldValue); } @@ -229,9 +219,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5F_scope_t scope * } */ - public static final OfInt scope$layout() { - return scope$LAYOUT; - } + public static final OfInt scope$layout() { return scope$LAYOUT; } private static final long scope$OFFSET = 4; @@ -241,9 +229,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5F_scope_t scope * } */ - public static final long scope$offset() { - return scope$OFFSET; - } + public static final long scope$offset() { return scope$OFFSET; } /** * Getter for field: @@ -251,9 +237,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5F_scope_t scope * } */ - public static int scope(MemorySegment struct) { - return struct.get(scope$LAYOUT, scope$OFFSET); - } + public static int scope(MemorySegment struct) { return struct.get(scope$LAYOUT, scope$OFFSET); } /** * Setter for field: @@ -261,7 +245,8 @@ public static int scope(MemorySegment struct) { * H5F_scope_t scope * } */ - public static void scope(MemorySegment struct, int fieldValue) { + public static void scope(MemorySegment struct, int fieldValue) + { struct.set(scope$LAYOUT, scope$OFFSET, fieldValue); } @@ -269,7 +254,8 @@ public static void scope(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -281,7 +267,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -289,7 +276,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -297,7 +285,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -305,7 +295,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -321,9 +313,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final GroupLayout flush$layout() { - return flush$LAYOUT; - } + public static final GroupLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 0; @@ -336,9 +326,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -349,7 +337,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static MemorySegment flush(MemorySegment union) { + public static MemorySegment flush(MemorySegment union) + { return union.asSlice(flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -362,7 +351,8 @@ public static MemorySegment flush(MemorySegment union) { * } flush * } */ - public static void flush(MemorySegment union, MemorySegment fieldValue) { + public static void flush(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -375,22 +365,21 @@ public static void flush(MemorySegment union, MemorySegment fieldValue) { */ public static class reopen { - reopen() { + reopen() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("file") - ).withName("$anon$469:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("file")).withName("$anon$469:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout file$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file")); + private static final AddressLayout file$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file")); /** * Layout for field: @@ -398,9 +387,7 @@ public static final GroupLayout layout() { * void **file * } */ - public static final AddressLayout file$layout() { - return file$LAYOUT; - } + public static final AddressLayout file$layout() { return file$LAYOUT; } private static final long file$OFFSET = 0; @@ -410,9 +397,7 @@ public static final GroupLayout layout() { * void **file * } */ - public static final long file$offset() { - return file$OFFSET; - } + public static final long file$offset() { return file$OFFSET; } /** * Getter for field: @@ -420,7 +405,8 @@ public static final GroupLayout layout() { * void **file * } */ - public static MemorySegment file(MemorySegment struct) { + public static MemorySegment file(MemorySegment struct) + { return struct.get(file$LAYOUT, file$OFFSET); } @@ -430,7 +416,8 @@ public static MemorySegment file(MemorySegment struct) { * void **file * } */ - public static void file(MemorySegment struct, MemorySegment fieldValue) { + public static void file(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file$LAYOUT, file$OFFSET, fieldValue); } @@ -438,7 +425,8 @@ public static void file(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -450,7 +438,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -458,7 +447,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -466,7 +456,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -474,7 +466,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -489,9 +483,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } reopen * } */ - public static final GroupLayout reopen$layout() { - return reopen$LAYOUT; - } + public static final GroupLayout reopen$layout() { return reopen$LAYOUT; } private static final long reopen$OFFSET = 0; @@ -503,9 +495,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } reopen * } */ - public static final long reopen$offset() { - return reopen$OFFSET; - } + public static final long reopen$offset() { return reopen$OFFSET; } /** * Getter for field: @@ -515,7 +505,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } reopen * } */ - public static MemorySegment reopen(MemorySegment union) { + public static MemorySegment reopen(MemorySegment union) + { return union.asSlice(reopen$OFFSET, reopen$LAYOUT.byteSize()); } @@ -527,7 +518,8 @@ public static MemorySegment reopen(MemorySegment union) { * } reopen * } */ - public static void reopen(MemorySegment union, MemorySegment fieldValue) { + public static void reopen(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, reopen$OFFSET, reopen$LAYOUT.byteSize()); } @@ -542,24 +534,24 @@ public static void reopen(MemorySegment union, MemorySegment fieldValue) { */ public static class is_accessible { - is_accessible() { + is_accessible() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("filename"), - hdf5_h.C_LONG.withName("fapl_id"), - hdf5_h.C_POINTER.withName("accessible") - ).withName("$anon$474:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("filename"), hdf5_h.C_LONG.withName("fapl_id"), + hdf5_h.C_POINTER.withName("accessible")) + .withName("$anon$474:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout filename$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("filename")); + private static final AddressLayout filename$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("filename")); /** * Layout for field: @@ -567,9 +559,7 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static final AddressLayout filename$layout() { - return filename$LAYOUT; - } + public static final AddressLayout filename$layout() { return filename$LAYOUT; } private static final long filename$OFFSET = 0; @@ -579,9 +569,7 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static final long filename$offset() { - return filename$OFFSET; - } + public static final long filename$offset() { return filename$OFFSET; } /** * Getter for field: @@ -589,7 +577,8 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static MemorySegment filename(MemorySegment struct) { + public static MemorySegment filename(MemorySegment struct) + { return struct.get(filename$LAYOUT, filename$OFFSET); } @@ -599,7 +588,8 @@ public static MemorySegment filename(MemorySegment struct) { * const char *filename * } */ - public static void filename(MemorySegment struct, MemorySegment fieldValue) { + public static void filename(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filename$LAYOUT, filename$OFFSET, fieldValue); } @@ -611,9 +601,7 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static final OfLong fapl_id$layout() { - return fapl_id$LAYOUT; - } + public static final OfLong fapl_id$layout() { return fapl_id$LAYOUT; } private static final long fapl_id$OFFSET = 8; @@ -623,9 +611,7 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static final long fapl_id$offset() { - return fapl_id$OFFSET; - } + public static final long fapl_id$offset() { return fapl_id$OFFSET; } /** * Getter for field: @@ -633,7 +619,8 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static long fapl_id(MemorySegment struct) { + public static long fapl_id(MemorySegment struct) + { return struct.get(fapl_id$LAYOUT, fapl_id$OFFSET); } @@ -643,11 +630,13 @@ public static long fapl_id(MemorySegment struct) { * hid_t fapl_id * } */ - public static void fapl_id(MemorySegment struct, long fieldValue) { + public static void fapl_id(MemorySegment struct, long fieldValue) + { struct.set(fapl_id$LAYOUT, fapl_id$OFFSET, fieldValue); } - private static final AddressLayout accessible$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("accessible")); + private static final AddressLayout accessible$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("accessible")); /** * Layout for field: @@ -655,9 +644,7 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * hbool_t *accessible * } */ - public static final AddressLayout accessible$layout() { - return accessible$LAYOUT; - } + public static final AddressLayout accessible$layout() { return accessible$LAYOUT; } private static final long accessible$OFFSET = 16; @@ -667,9 +654,7 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * hbool_t *accessible * } */ - public static final long accessible$offset() { - return accessible$OFFSET; - } + public static final long accessible$offset() { return accessible$OFFSET; } /** * Getter for field: @@ -677,7 +662,8 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * hbool_t *accessible * } */ - public static MemorySegment accessible(MemorySegment struct) { + public static MemorySegment accessible(MemorySegment struct) + { return struct.get(accessible$LAYOUT, accessible$OFFSET); } @@ -687,7 +673,8 @@ public static MemorySegment accessible(MemorySegment struct) { * hbool_t *accessible * } */ - public static void accessible(MemorySegment struct, MemorySegment fieldValue) { + public static void accessible(MemorySegment struct, MemorySegment fieldValue) + { struct.set(accessible$LAYOUT, accessible$OFFSET, fieldValue); } @@ -695,7 +682,8 @@ public static void accessible(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -707,7 +695,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -715,7 +704,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -723,7 +713,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -731,12 +723,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout is_accessible$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("is_accessible")); + private static final GroupLayout is_accessible$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("is_accessible")); /** * Layout for field: @@ -748,9 +743,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_accessible * } */ - public static final GroupLayout is_accessible$layout() { - return is_accessible$LAYOUT; - } + public static final GroupLayout is_accessible$layout() { return is_accessible$LAYOUT; } private static final long is_accessible$OFFSET = 0; @@ -764,9 +757,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_accessible * } */ - public static final long is_accessible$offset() { - return is_accessible$OFFSET; - } + public static final long is_accessible$offset() { return is_accessible$OFFSET; } /** * Getter for field: @@ -778,7 +769,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_accessible * } */ - public static MemorySegment is_accessible(MemorySegment union) { + public static MemorySegment is_accessible(MemorySegment union) + { return union.asSlice(is_accessible$OFFSET, is_accessible$LAYOUT.byteSize()); } @@ -792,7 +784,8 @@ public static MemorySegment is_accessible(MemorySegment union) { * } is_accessible * } */ - public static void is_accessible(MemorySegment union, MemorySegment fieldValue) { + public static void is_accessible(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, is_accessible$OFFSET, is_accessible$LAYOUT.byteSize()); } @@ -806,23 +799,23 @@ public static void is_accessible(MemorySegment union, MemorySegment fieldValue) */ public static class del { - del() { + del() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("filename"), - hdf5_h.C_LONG.withName("fapl_id") - ).withName("$anon$481:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("filename"), hdf5_h.C_LONG.withName("fapl_id")) + .withName("$anon$481:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout filename$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("filename")); + private static final AddressLayout filename$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("filename")); /** * Layout for field: @@ -830,9 +823,7 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static final AddressLayout filename$layout() { - return filename$LAYOUT; - } + public static final AddressLayout filename$layout() { return filename$LAYOUT; } private static final long filename$OFFSET = 0; @@ -842,9 +833,7 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static final long filename$offset() { - return filename$OFFSET; - } + public static final long filename$offset() { return filename$OFFSET; } /** * Getter for field: @@ -852,7 +841,8 @@ public static final GroupLayout layout() { * const char *filename * } */ - public static MemorySegment filename(MemorySegment struct) { + public static MemorySegment filename(MemorySegment struct) + { return struct.get(filename$LAYOUT, filename$OFFSET); } @@ -862,7 +852,8 @@ public static MemorySegment filename(MemorySegment struct) { * const char *filename * } */ - public static void filename(MemorySegment struct, MemorySegment fieldValue) { + public static void filename(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filename$LAYOUT, filename$OFFSET, fieldValue); } @@ -874,9 +865,7 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static final OfLong fapl_id$layout() { - return fapl_id$LAYOUT; - } + public static final OfLong fapl_id$layout() { return fapl_id$LAYOUT; } private static final long fapl_id$OFFSET = 8; @@ -886,9 +875,7 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static final long fapl_id$offset() { - return fapl_id$OFFSET; - } + public static final long fapl_id$offset() { return fapl_id$OFFSET; } /** * Getter for field: @@ -896,7 +883,8 @@ public static void filename(MemorySegment struct, MemorySegment fieldValue) { * hid_t fapl_id * } */ - public static long fapl_id(MemorySegment struct) { + public static long fapl_id(MemorySegment struct) + { return struct.get(fapl_id$LAYOUT, fapl_id$OFFSET); } @@ -906,7 +894,8 @@ public static long fapl_id(MemorySegment struct) { * hid_t fapl_id * } */ - public static void fapl_id(MemorySegment struct, long fieldValue) { + public static void fapl_id(MemorySegment struct, long fieldValue) + { struct.set(fapl_id$LAYOUT, fapl_id$OFFSET, fieldValue); } @@ -914,7 +903,8 @@ public static void fapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -926,7 +916,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -934,7 +925,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -942,7 +934,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -950,7 +944,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -966,9 +962,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final GroupLayout del$layout() { - return del$LAYOUT; - } + public static final GroupLayout del$layout() { return del$LAYOUT; } private static final long del$OFFSET = 0; @@ -981,9 +975,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final long del$offset() { - return del$OFFSET; - } + public static final long del$offset() { return del$OFFSET; } /** * Getter for field: @@ -994,7 +986,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static MemorySegment del(MemorySegment union) { + public static MemorySegment del(MemorySegment union) + { return union.asSlice(del$OFFSET, del$LAYOUT.byteSize()); } @@ -1007,7 +1000,8 @@ public static MemorySegment del(MemorySegment union) { * } del * } */ - public static void del(MemorySegment union, MemorySegment fieldValue) { + public static void del(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, del$OFFSET, del$LAYOUT.byteSize()); } @@ -1021,23 +1015,23 @@ public static void del(MemorySegment union, MemorySegment fieldValue) { */ public static class is_equal { - is_equal() { + is_equal() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("obj2"), - hdf5_h.C_POINTER.withName("same_file") - ).withName("$anon$487:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("obj2"), hdf5_h.C_POINTER.withName("same_file")) + .withName("$anon$487:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout obj2$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("obj2")); + private static final AddressLayout obj2$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("obj2")); /** * Layout for field: @@ -1045,9 +1039,7 @@ public static final GroupLayout layout() { * void *obj2 * } */ - public static final AddressLayout obj2$layout() { - return obj2$LAYOUT; - } + public static final AddressLayout obj2$layout() { return obj2$LAYOUT; } private static final long obj2$OFFSET = 0; @@ -1057,9 +1049,7 @@ public static final GroupLayout layout() { * void *obj2 * } */ - public static final long obj2$offset() { - return obj2$OFFSET; - } + public static final long obj2$offset() { return obj2$OFFSET; } /** * Getter for field: @@ -1067,7 +1057,8 @@ public static final GroupLayout layout() { * void *obj2 * } */ - public static MemorySegment obj2(MemorySegment struct) { + public static MemorySegment obj2(MemorySegment struct) + { return struct.get(obj2$LAYOUT, obj2$OFFSET); } @@ -1077,11 +1068,13 @@ public static MemorySegment obj2(MemorySegment struct) { * void *obj2 * } */ - public static void obj2(MemorySegment struct, MemorySegment fieldValue) { + public static void obj2(MemorySegment struct, MemorySegment fieldValue) + { struct.set(obj2$LAYOUT, obj2$OFFSET, fieldValue); } - private static final AddressLayout same_file$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("same_file")); + private static final AddressLayout same_file$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("same_file")); /** * Layout for field: @@ -1089,9 +1082,7 @@ public static void obj2(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *same_file * } */ - public static final AddressLayout same_file$layout() { - return same_file$LAYOUT; - } + public static final AddressLayout same_file$layout() { return same_file$LAYOUT; } private static final long same_file$OFFSET = 8; @@ -1101,9 +1092,7 @@ public static void obj2(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *same_file * } */ - public static final long same_file$offset() { - return same_file$OFFSET; - } + public static final long same_file$offset() { return same_file$OFFSET; } /** * Getter for field: @@ -1111,7 +1100,8 @@ public static void obj2(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *same_file * } */ - public static MemorySegment same_file(MemorySegment struct) { + public static MemorySegment same_file(MemorySegment struct) + { return struct.get(same_file$LAYOUT, same_file$OFFSET); } @@ -1121,7 +1111,8 @@ public static MemorySegment same_file(MemorySegment struct) { * hbool_t *same_file * } */ - public static void same_file(MemorySegment struct, MemorySegment fieldValue) { + public static void same_file(MemorySegment struct, MemorySegment fieldValue) + { struct.set(same_file$LAYOUT, same_file$OFFSET, fieldValue); } @@ -1129,7 +1120,8 @@ public static void same_file(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1141,7 +1133,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1149,7 +1142,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1157,7 +1151,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1165,12 +1161,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout is_equal$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("is_equal")); + private static final GroupLayout is_equal$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("is_equal")); /** * Layout for field: @@ -1181,9 +1180,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_equal * } */ - public static final GroupLayout is_equal$layout() { - return is_equal$LAYOUT; - } + public static final GroupLayout is_equal$layout() { return is_equal$LAYOUT; } private static final long is_equal$OFFSET = 0; @@ -1196,9 +1193,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_equal * } */ - public static final long is_equal$offset() { - return is_equal$OFFSET; - } + public static final long is_equal$offset() { return is_equal$OFFSET; } /** * Getter for field: @@ -1209,7 +1204,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } is_equal * } */ - public static MemorySegment is_equal(MemorySegment union) { + public static MemorySegment is_equal(MemorySegment union) + { return union.asSlice(is_equal$OFFSET, is_equal$LAYOUT.byteSize()); } @@ -1222,7 +1218,8 @@ public static MemorySegment is_equal(MemorySegment union) { * } is_equal * } */ - public static void is_equal(MemorySegment union, MemorySegment fieldValue) { + public static void is_equal(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, is_equal$OFFSET, is_equal$LAYOUT.byteSize()); } @@ -1230,7 +1227,8 @@ public static void is_equal(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1242,7 +1240,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1250,7 +1249,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1258,7 +1258,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1266,7 +1268,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1300,9 +1304,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -1333,9 +1335,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1364,7 +1364,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1395,7 +1396,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1403,7 +1405,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1415,15 +1418,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1431,7 +1433,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1439,8 +1442,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_class_t.java index eab5baa3413..fd2e8740e70 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_group_class_t { @@ -26,25 +26,22 @@ */ public class H5VL_group_class_t { - H5VL_group_class_t() { + H5VL_group_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("create"), - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("close") - ).withName("H5VL_group_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("create"), hdf5_h.C_POINTER.withName("open"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("close")) + .withName("H5VL_group_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -53,7 +50,8 @@ public static final GroupLayout layout() { */ public static class create { - create() { + create() + { // Should not be called directly } @@ -61,27 +59,18 @@ public static class create { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, MemorySegment _x7); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + long _x5, long _x6, MemorySegment _x7); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(create.Function.class, "apply", $DESC); @@ -89,7 +78,8 @@ public static FunctionDescriptor descriptor() { * 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(create.Function fi, Arena arena) { + public static MemorySegment allocate(create.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -98,10 +88,14 @@ public static MemorySegment allocate(create.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, MemorySegment _x7) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, long _x5, long _x6, + MemorySegment _x7) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -115,9 +109,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, void **) * } */ - public static final AddressLayout create$layout() { - return create$LAYOUT; - } + public static final AddressLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; @@ -127,9 +119,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, void **) * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: @@ -137,7 +127,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, void **) * } */ - public static MemorySegment create(MemorySegment struct) { + public static MemorySegment create(MemorySegment struct) + { return struct.get(create$LAYOUT, create$OFFSET); } @@ -147,7 +138,8 @@ public static MemorySegment create(MemorySegment struct) { * void *(*create)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, hid_t, void **) * } */ - public static void create(MemorySegment struct, MemorySegment fieldValue) { + public static void create(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create$LAYOUT, create$OFFSET, fieldValue); } @@ -158,7 +150,8 @@ public static void create(MemorySegment struct, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -166,25 +159,18 @@ public static class open { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, + MemorySegment _x5); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -192,7 +178,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -201,10 +188,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, MemorySegment _x5) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -218,9 +208,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 8; @@ -230,9 +218,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -240,9 +226,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -250,7 +234,8 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } @@ -261,7 +246,8 @@ public static void open(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -273,19 +259,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -293,7 +272,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -302,10 +282,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -319,9 +302,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_group_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 16; @@ -331,9 +312,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_group_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -341,9 +320,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, H5VL_group_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -351,7 +328,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, H5VL_group_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -362,7 +340,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -374,27 +353,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -403,16 +377,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -420,9 +398,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_group_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 24; @@ -432,9 +408,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_group_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -442,7 +416,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_group_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -452,7 +427,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, H5VL_group_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -463,7 +439,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -475,27 +452,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -504,16 +476,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, long _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -521,9 +497,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 32; @@ -533,9 +507,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -543,7 +515,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -553,7 +526,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -564,7 +538,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class close { - close() { + close() + { // Should not be called directly } @@ -575,19 +550,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(close.Function.class, "apply", $DESC); @@ -595,7 +564,8 @@ public static FunctionDescriptor descriptor() { * 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(close.Function fi, Arena arena) { + public static MemorySegment allocate(close.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -604,10 +574,12 @@ public static MemorySegment allocate(close.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -621,9 +593,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 40; @@ -633,9 +603,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -643,9 +611,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*close)(void *, hid_t, void **) * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -653,7 +619,8 @@ public static MemorySegment close(MemorySegment struct) { * herr_t (*close)(void *, hid_t, void **) * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -661,7 +628,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -673,15 +641,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -689,7 +656,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -697,8 +665,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_args_t.java index 18f7d08f2ed..129664764ac 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_group_get_args_t { @@ -27,22 +27,21 @@ */ public class H5VL_group_get_args_t { - H5VL_group_get_args_t() { + H5VL_group_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_group_get_args_t.args.layout().withName("args") - ).withName("H5VL_group_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_group_get_args_t.args.layout().withName("args")) + .withName("H5VL_group_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -52,9 +51,7 @@ public static final GroupLayout layout() { * H5VL_group_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -64,9 +61,7 @@ public static final GroupLayout layout() { * H5VL_group_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -74,9 +69,7 @@ public static final GroupLayout layout() { * H5VL_group_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -84,7 +77,8 @@ public static int op_type(MemorySegment struct) { * H5VL_group_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -100,21 +94,21 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_group_get_args_t.args.get_gcpl.layout().withName("get_gcpl"), - H5VL_group_get_info_args_t.layout().withName("get_info") - ).withName("$anon$514:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_group_get_args_t.args.get_gcpl.layout().withName("get_gcpl"), + H5VL_group_get_info_args_t.layout().withName("get_info")) + .withName("$anon$514:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -125,20 +119,18 @@ public static final GroupLayout layout() { */ public static class get_gcpl { - get_gcpl() { + get_gcpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("gcpl_id") - ).withName("$anon$516:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("gcpl_id")).withName("$anon$516:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong gcpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("gcpl_id")); @@ -148,9 +140,7 @@ public static final GroupLayout layout() { * hid_t gcpl_id * } */ - public static final OfLong gcpl_id$layout() { - return gcpl_id$LAYOUT; - } + public static final OfLong gcpl_id$layout() { return gcpl_id$LAYOUT; } private static final long gcpl_id$OFFSET = 0; @@ -160,9 +150,7 @@ public static final GroupLayout layout() { * hid_t gcpl_id * } */ - public static final long gcpl_id$offset() { - return gcpl_id$OFFSET; - } + public static final long gcpl_id$offset() { return gcpl_id$OFFSET; } /** * Getter for field: @@ -170,7 +158,8 @@ public static final GroupLayout layout() { * hid_t gcpl_id * } */ - public static long gcpl_id(MemorySegment struct) { + public static long gcpl_id(MemorySegment struct) + { return struct.get(gcpl_id$LAYOUT, gcpl_id$OFFSET); } @@ -180,7 +169,8 @@ public static long gcpl_id(MemorySegment struct) { * hid_t gcpl_id * } */ - public static void gcpl_id(MemorySegment struct, long fieldValue) { + public static void gcpl_id(MemorySegment struct, long fieldValue) + { struct.set(gcpl_id$LAYOUT, gcpl_id$OFFSET, fieldValue); } @@ -188,7 +178,8 @@ public static void gcpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -200,7 +191,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -208,7 +200,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -216,7 +209,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -224,12 +219,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_gcpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_gcpl")); + private static final GroupLayout get_gcpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_gcpl")); /** * Layout for field: @@ -239,9 +237,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_gcpl * } */ - public static final GroupLayout get_gcpl$layout() { - return get_gcpl$LAYOUT; - } + public static final GroupLayout get_gcpl$layout() { return get_gcpl$LAYOUT; } private static final long get_gcpl$OFFSET = 0; @@ -253,9 +249,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_gcpl * } */ - public static final long get_gcpl$offset() { - return get_gcpl$OFFSET; - } + public static final long get_gcpl$offset() { return get_gcpl$OFFSET; } /** * Getter for field: @@ -265,7 +259,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_gcpl * } */ - public static MemorySegment get_gcpl(MemorySegment union) { + public static MemorySegment get_gcpl(MemorySegment union) + { return union.asSlice(get_gcpl$OFFSET, get_gcpl$LAYOUT.byteSize()); } @@ -277,11 +272,13 @@ public static MemorySegment get_gcpl(MemorySegment union) { * } get_gcpl * } */ - public static void get_gcpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_gcpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_gcpl$OFFSET, get_gcpl$LAYOUT.byteSize()); } - private static final GroupLayout get_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_info")); + private static final GroupLayout get_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_info")); /** * Layout for field: @@ -289,9 +286,7 @@ public static void get_gcpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_group_get_info_args_t get_info * } */ - public static final GroupLayout get_info$layout() { - return get_info$LAYOUT; - } + public static final GroupLayout get_info$layout() { return get_info$LAYOUT; } private static final long get_info$OFFSET = 0; @@ -301,9 +296,7 @@ public static void get_gcpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_group_get_info_args_t get_info * } */ - public static final long get_info$offset() { - return get_info$OFFSET; - } + public static final long get_info$offset() { return get_info$OFFSET; } /** * Getter for field: @@ -311,7 +304,8 @@ public static void get_gcpl(MemorySegment union, MemorySegment fieldValue) { * H5VL_group_get_info_args_t get_info * } */ - public static MemorySegment get_info(MemorySegment union) { + public static MemorySegment get_info(MemorySegment union) + { return union.asSlice(get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -321,7 +315,8 @@ public static MemorySegment get_info(MemorySegment union) { * H5VL_group_get_info_args_t get_info * } */ - public static void get_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -329,7 +324,8 @@ public static void get_info(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -341,7 +337,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -349,7 +346,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -357,7 +355,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -365,7 +365,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -383,9 +385,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -400,9 +400,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -415,7 +413,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -430,7 +429,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -438,7 +438,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -450,15 +451,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -466,7 +466,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -474,8 +475,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_info_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_info_args_t.java index 7c90f201fd5..692c1ce82bd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_info_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_get_info_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_group_get_info_args_t { @@ -22,23 +22,24 @@ */ public class H5VL_group_get_info_args_t { - H5VL_group_get_info_args_t() { + H5VL_group_get_info_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_POINTER.withName("ginfo") - ).withName("H5VL_group_get_info_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_POINTER.withName("ginfo")) + .withName("H5VL_group_get_info_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -78,7 +76,8 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -90,9 +89,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * H5G_info_t *ginfo * } */ - public static final AddressLayout ginfo$layout() { - return ginfo$LAYOUT; - } + public static final AddressLayout ginfo$layout() { return ginfo$LAYOUT; } private static final long ginfo$OFFSET = 40; @@ -102,9 +99,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * H5G_info_t *ginfo * } */ - public static final long ginfo$offset() { - return ginfo$OFFSET; - } + public static final long ginfo$offset() { return ginfo$OFFSET; } /** * Getter for field: @@ -112,9 +107,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * H5G_info_t *ginfo * } */ - public static MemorySegment ginfo(MemorySegment struct) { - return struct.get(ginfo$LAYOUT, ginfo$OFFSET); - } + public static MemorySegment ginfo(MemorySegment struct) { return struct.get(ginfo$LAYOUT, ginfo$OFFSET); } /** * Setter for field: @@ -122,7 +115,8 @@ public static MemorySegment ginfo(MemorySegment struct) { * H5G_info_t *ginfo * } */ - public static void ginfo(MemorySegment struct, MemorySegment fieldValue) { + public static void ginfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(ginfo$LAYOUT, ginfo$OFFSET, fieldValue); } @@ -130,7 +124,8 @@ public static void ginfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +137,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +152,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +161,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_spec_mount_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_spec_mount_args_t.java index 66da1f50664..b23beb8f65b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_spec_mount_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_spec_mount_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_group_spec_mount_args_t { @@ -23,22 +23,21 @@ */ public class H5VL_group_spec_mount_args_t { - H5VL_group_spec_mount_args_t() { + H5VL_group_spec_mount_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_POINTER.withName("child_file"), - hdf5_h.C_LONG.withName("fmpl_id") - ).withName("H5VL_group_spec_mount_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("name"), hdf5_h.C_POINTER.withName("child_file"), + hdf5_h.C_LONG.withName("fmpl_id")) + .withName("H5VL_group_spec_mount_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -80,11 +73,13 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } - private static final AddressLayout child_file$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("child_file")); + private static final AddressLayout child_file$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("child_file")); /** * Layout for field: @@ -92,9 +87,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * void *child_file * } */ - public static final AddressLayout child_file$layout() { - return child_file$LAYOUT; - } + public static final AddressLayout child_file$layout() { return child_file$LAYOUT; } private static final long child_file$OFFSET = 8; @@ -104,9 +97,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * void *child_file * } */ - public static final long child_file$offset() { - return child_file$OFFSET; - } + public static final long child_file$offset() { return child_file$OFFSET; } /** * Getter for field: @@ -114,7 +105,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * void *child_file * } */ - public static MemorySegment child_file(MemorySegment struct) { + public static MemorySegment child_file(MemorySegment struct) + { return struct.get(child_file$LAYOUT, child_file$OFFSET); } @@ -124,7 +116,8 @@ public static MemorySegment child_file(MemorySegment struct) { * void *child_file * } */ - public static void child_file(MemorySegment struct, MemorySegment fieldValue) { + public static void child_file(MemorySegment struct, MemorySegment fieldValue) + { struct.set(child_file$LAYOUT, child_file$OFFSET, fieldValue); } @@ -136,9 +129,7 @@ public static void child_file(MemorySegment struct, MemorySegment fieldValue) { * hid_t fmpl_id * } */ - public static final OfLong fmpl_id$layout() { - return fmpl_id$LAYOUT; - } + public static final OfLong fmpl_id$layout() { return fmpl_id$LAYOUT; } private static final long fmpl_id$OFFSET = 16; @@ -148,9 +139,7 @@ public static void child_file(MemorySegment struct, MemorySegment fieldValue) { * hid_t fmpl_id * } */ - public static final long fmpl_id$offset() { - return fmpl_id$OFFSET; - } + public static final long fmpl_id$offset() { return fmpl_id$OFFSET; } /** * Getter for field: @@ -158,9 +147,7 @@ public static void child_file(MemorySegment struct, MemorySegment fieldValue) { * hid_t fmpl_id * } */ - public static long fmpl_id(MemorySegment struct) { - return struct.get(fmpl_id$LAYOUT, fmpl_id$OFFSET); - } + public static long fmpl_id(MemorySegment struct) { return struct.get(fmpl_id$LAYOUT, fmpl_id$OFFSET); } /** * Setter for field: @@ -168,7 +155,8 @@ public static long fmpl_id(MemorySegment struct) { * hid_t fmpl_id * } */ - public static void fmpl_id(MemorySegment struct, long fieldValue) { + public static void fmpl_id(MemorySegment struct, long fieldValue) + { struct.set(fmpl_id$LAYOUT, fmpl_id$OFFSET, fieldValue); } @@ -176,7 +164,8 @@ public static void fmpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +177,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +192,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +201,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_specific_args_t.java index f582ca2724d..a348f9258ce 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_group_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_group_specific_args_t { @@ -33,22 +33,21 @@ */ public class H5VL_group_specific_args_t { - H5VL_group_specific_args_t() { + H5VL_group_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_group_specific_args_t.args.layout().withName("args") - ).withName("H5VL_group_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_group_specific_args_t.args.layout().withName("args")) + .withName("H5VL_group_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * H5VL_group_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -70,9 +67,7 @@ public static final GroupLayout layout() { * H5VL_group_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -80,9 +75,7 @@ public static final GroupLayout layout() { * H5VL_group_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -90,7 +83,8 @@ public static int op_type(MemorySegment struct) { * H5VL_group_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -112,23 +106,23 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_group_spec_mount_args_t.layout().withName("mount"), - H5VL_group_specific_args_t.args.unmount.layout().withName("unmount"), - H5VL_group_specific_args_t.args.flush.layout().withName("flush"), - H5VL_group_specific_args_t.args.refresh.layout().withName("refresh") - ).withName("$anon$545:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_group_spec_mount_args_t.layout().withName("mount"), + H5VL_group_specific_args_t.args.unmount.layout().withName("unmount"), + H5VL_group_specific_args_t.args.flush.layout().withName("flush"), + H5VL_group_specific_args_t.args.refresh.layout().withName("refresh")) + .withName("$anon$545:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout mount$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("mount")); @@ -138,9 +132,7 @@ public static final GroupLayout layout() { * H5VL_group_spec_mount_args_t mount * } */ - public static final GroupLayout mount$layout() { - return mount$LAYOUT; - } + public static final GroupLayout mount$layout() { return mount$LAYOUT; } private static final long mount$OFFSET = 0; @@ -150,9 +142,7 @@ public static final GroupLayout layout() { * H5VL_group_spec_mount_args_t mount * } */ - public static final long mount$offset() { - return mount$OFFSET; - } + public static final long mount$offset() { return mount$OFFSET; } /** * Getter for field: @@ -160,7 +150,8 @@ public static final GroupLayout layout() { * H5VL_group_spec_mount_args_t mount * } */ - public static MemorySegment mount(MemorySegment union) { + public static MemorySegment mount(MemorySegment union) + { return union.asSlice(mount$OFFSET, mount$LAYOUT.byteSize()); } @@ -170,7 +161,8 @@ public static MemorySegment mount(MemorySegment union) { * H5VL_group_spec_mount_args_t mount * } */ - public static void mount(MemorySegment union, MemorySegment fieldValue) { + public static void mount(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, mount$OFFSET, mount$LAYOUT.byteSize()); } @@ -183,22 +175,21 @@ public static void mount(MemorySegment union, MemorySegment fieldValue) { */ public static class unmount { - unmount() { + unmount() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name") - ).withName("$anon$550:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("name")).withName("$anon$550:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); + private static final AddressLayout name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name")); /** * Layout for field: @@ -206,9 +197,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -218,9 +207,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -228,7 +215,8 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -238,7 +226,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -246,7 +235,8 @@ public static void name(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -258,7 +248,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -266,7 +257,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -274,7 +266,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -282,12 +276,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout unmount$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("unmount")); + private static final GroupLayout unmount$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("unmount")); /** * Layout for field: @@ -297,9 +294,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } unmount * } */ - public static final GroupLayout unmount$layout() { - return unmount$LAYOUT; - } + public static final GroupLayout unmount$layout() { return unmount$LAYOUT; } private static final long unmount$OFFSET = 0; @@ -311,9 +306,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } unmount * } */ - public static final long unmount$offset() { - return unmount$OFFSET; - } + public static final long unmount$offset() { return unmount$OFFSET; } /** * Getter for field: @@ -323,7 +316,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } unmount * } */ - public static MemorySegment unmount(MemorySegment union) { + public static MemorySegment unmount(MemorySegment union) + { return union.asSlice(unmount$OFFSET, unmount$LAYOUT.byteSize()); } @@ -335,7 +329,8 @@ public static MemorySegment unmount(MemorySegment union) { * } unmount * } */ - public static void unmount(MemorySegment union, MemorySegment fieldValue) { + public static void unmount(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, unmount$OFFSET, unmount$LAYOUT.byteSize()); } @@ -348,20 +343,18 @@ public static void unmount(MemorySegment union, MemorySegment fieldValue) { */ public static class flush { - flush() { + flush() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("grp_id") - ).withName("$anon$555:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("grp_id")).withName("$anon$555:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong grp_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("grp_id")); @@ -371,9 +364,7 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static final OfLong grp_id$layout() { - return grp_id$LAYOUT; - } + public static final OfLong grp_id$layout() { return grp_id$LAYOUT; } private static final long grp_id$OFFSET = 0; @@ -383,9 +374,7 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static final long grp_id$offset() { - return grp_id$OFFSET; - } + public static final long grp_id$offset() { return grp_id$OFFSET; } /** * Getter for field: @@ -393,7 +382,8 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static long grp_id(MemorySegment struct) { + public static long grp_id(MemorySegment struct) + { return struct.get(grp_id$LAYOUT, grp_id$OFFSET); } @@ -403,7 +393,8 @@ public static long grp_id(MemorySegment struct) { * hid_t grp_id * } */ - public static void grp_id(MemorySegment struct, long fieldValue) { + public static void grp_id(MemorySegment struct, long fieldValue) + { struct.set(grp_id$LAYOUT, grp_id$OFFSET, fieldValue); } @@ -411,7 +402,8 @@ public static void grp_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -423,7 +415,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -431,7 +424,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -439,7 +433,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -447,7 +443,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -462,9 +460,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final GroupLayout flush$layout() { - return flush$LAYOUT; - } + public static final GroupLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 0; @@ -476,9 +472,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -488,7 +482,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static MemorySegment flush(MemorySegment union) { + public static MemorySegment flush(MemorySegment union) + { return union.asSlice(flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -500,7 +495,8 @@ public static MemorySegment flush(MemorySegment union) { * } flush * } */ - public static void flush(MemorySegment union, MemorySegment fieldValue) { + public static void flush(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -513,20 +509,18 @@ public static void flush(MemorySegment union, MemorySegment fieldValue) { */ public static class refresh { - refresh() { + refresh() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("grp_id") - ).withName("$anon$560:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("grp_id")).withName("$anon$560:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong grp_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("grp_id")); @@ -536,9 +530,7 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static final OfLong grp_id$layout() { - return grp_id$LAYOUT; - } + public static final OfLong grp_id$layout() { return grp_id$LAYOUT; } private static final long grp_id$OFFSET = 0; @@ -548,9 +540,7 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static final long grp_id$offset() { - return grp_id$OFFSET; - } + public static final long grp_id$offset() { return grp_id$OFFSET; } /** * Getter for field: @@ -558,7 +548,8 @@ public static final GroupLayout layout() { * hid_t grp_id * } */ - public static long grp_id(MemorySegment struct) { + public static long grp_id(MemorySegment struct) + { return struct.get(grp_id$LAYOUT, grp_id$OFFSET); } @@ -568,7 +559,8 @@ public static long grp_id(MemorySegment struct) { * hid_t grp_id * } */ - public static void grp_id(MemorySegment struct, long fieldValue) { + public static void grp_id(MemorySegment struct, long fieldValue) + { struct.set(grp_id$LAYOUT, grp_id$OFFSET, fieldValue); } @@ -576,7 +568,8 @@ public static void grp_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -588,7 +581,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -596,7 +590,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -604,7 +599,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -612,12 +609,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout refresh$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("refresh")); + private static final GroupLayout refresh$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("refresh")); /** * Layout for field: @@ -627,9 +627,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final GroupLayout refresh$layout() { - return refresh$LAYOUT; - } + public static final GroupLayout refresh$layout() { return refresh$LAYOUT; } private static final long refresh$OFFSET = 0; @@ -641,9 +639,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final long refresh$offset() { - return refresh$OFFSET; - } + public static final long refresh$offset() { return refresh$OFFSET; } /** * Getter for field: @@ -653,7 +649,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static MemorySegment refresh(MemorySegment union) { + public static MemorySegment refresh(MemorySegment union) + { return union.asSlice(refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -665,7 +662,8 @@ public static MemorySegment refresh(MemorySegment union) { * } refresh * } */ - public static void refresh(MemorySegment union, MemorySegment fieldValue) { + public static void refresh(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -673,7 +671,8 @@ public static void refresh(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -685,7 +684,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -693,7 +693,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -701,7 +702,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -709,7 +712,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -733,9 +738,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -756,9 +759,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -777,7 +778,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -798,7 +800,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -806,7 +809,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -818,15 +822,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -834,7 +837,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -842,8 +846,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_info_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_info_class_t.java index 3aad182a114..e2981ca202d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_info_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_info_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_info_class_t { @@ -26,25 +26,22 @@ */ public class H5VL_info_class_t { - H5VL_info_class_t() { + H5VL_info_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("size"), - hdf5_h.C_POINTER.withName("copy"), - hdf5_h.C_POINTER.withName("cmp"), - hdf5_h.C_POINTER.withName("free"), - hdf5_h.C_POINTER.withName("to_str"), - hdf5_h.C_POINTER.withName("from_str") - ).withName("H5VL_info_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("size"), hdf5_h.C_POINTER.withName("copy"), + hdf5_h.C_POINTER.withName("cmp"), hdf5_h.C_POINTER.withName("free"), + hdf5_h.C_POINTER.withName("to_str"), hdf5_h.C_POINTER.withName("from_str")) + .withName("H5VL_info_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("size")); @@ -54,9 +51,7 @@ public static final GroupLayout layout() { * size_t size * } */ - public static final OfLong size$layout() { - return size$LAYOUT; - } + public static final OfLong size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -66,9 +61,7 @@ public static final GroupLayout layout() { * size_t size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -76,9 +69,7 @@ public static final GroupLayout layout() { * size_t size * } */ - public static long size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static long size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -86,7 +77,8 @@ public static long size(MemorySegment struct) { * size_t size * } */ - public static void size(MemorySegment struct, long fieldValue) { + public static void size(MemorySegment struct, long fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -97,7 +89,8 @@ public static void size(MemorySegment struct, long fieldValue) { */ public static class copy { - copy() { + copy() + { // Should not be called directly } @@ -108,17 +101,13 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(copy.Function.class, "apply", $DESC); @@ -126,7 +115,8 @@ public static FunctionDescriptor descriptor() { * 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(copy.Function fi, Arena arena) { + public static MemorySegment allocate(copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -135,10 +125,12 @@ public static MemorySegment allocate(copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -152,9 +144,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*copy)(const void *) * } */ - public static final AddressLayout copy$layout() { - return copy$LAYOUT; - } + public static final AddressLayout copy$layout() { return copy$LAYOUT; } private static final long copy$OFFSET = 8; @@ -164,9 +154,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*copy)(const void *) * } */ - public static final long copy$offset() { - return copy$OFFSET; - } + public static final long copy$offset() { return copy$OFFSET; } /** * Getter for field: @@ -174,9 +162,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*copy)(const void *) * } */ - public static MemorySegment copy(MemorySegment struct) { - return struct.get(copy$LAYOUT, copy$OFFSET); - } + public static MemorySegment copy(MemorySegment struct) { return struct.get(copy$LAYOUT, copy$OFFSET); } /** * Setter for field: @@ -184,7 +170,8 @@ public static MemorySegment copy(MemorySegment struct) { * void *(*copy)(const void *) * } */ - public static void copy(MemorySegment struct, MemorySegment fieldValue) { + public static void copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(copy$LAYOUT, copy$OFFSET, fieldValue); } @@ -195,7 +182,8 @@ public static void copy(MemorySegment struct, MemorySegment fieldValue) { */ public static class cmp { - cmp() { + cmp() + { // Should not be called directly } @@ -206,19 +194,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cmp.Function.class, "apply", $DESC); @@ -226,7 +208,8 @@ public static FunctionDescriptor descriptor() { * 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(cmp.Function fi, Arena arena) { + public static MemorySegment allocate(cmp.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -235,10 +218,13 @@ public static MemorySegment allocate(cmp.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -252,9 +238,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(int *, const void *, const void *) * } */ - public static final AddressLayout cmp$layout() { - return cmp$LAYOUT; - } + public static final AddressLayout cmp$layout() { return cmp$LAYOUT; } private static final long cmp$OFFSET = 16; @@ -264,9 +248,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(int *, const void *, const void *) * } */ - public static final long cmp$offset() { - return cmp$OFFSET; - } + public static final long cmp$offset() { return cmp$OFFSET; } /** * Getter for field: @@ -274,9 +256,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(int *, const void *, const void *) * } */ - public static MemorySegment cmp(MemorySegment struct) { - return struct.get(cmp$LAYOUT, cmp$OFFSET); - } + public static MemorySegment cmp(MemorySegment struct) { return struct.get(cmp$LAYOUT, cmp$OFFSET); } /** * Setter for field: @@ -284,7 +264,8 @@ public static MemorySegment cmp(MemorySegment struct) { * herr_t (*cmp)(int *, const void *, const void *) * } */ - public static void cmp(MemorySegment struct, MemorySegment fieldValue) { + public static void cmp(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cmp$LAYOUT, cmp$OFFSET, fieldValue); } @@ -295,7 +276,8 @@ public static void cmp(MemorySegment struct, MemorySegment fieldValue) { */ public static class free { - free() { + free() + { // Should not be called directly } @@ -306,17 +288,12 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(free.Function.class, "apply", $DESC); @@ -324,7 +301,8 @@ public static FunctionDescriptor descriptor() { * 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(free.Function fi, Arena arena) { + public static MemorySegment allocate(free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -333,10 +311,12 @@ public static MemorySegment allocate(free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -350,9 +330,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static final AddressLayout free$layout() { - return free$LAYOUT; - } + public static final AddressLayout free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 24; @@ -362,9 +340,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -372,9 +348,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static MemorySegment free(MemorySegment struct) { - return struct.get(free$LAYOUT, free$OFFSET); - } + public static MemorySegment free(MemorySegment struct) { return struct.get(free$LAYOUT, free$OFFSET); } /** * Setter for field: @@ -382,7 +356,8 @@ public static MemorySegment free(MemorySegment struct) { * herr_t (*free)(void *) * } */ - public static void free(MemorySegment struct, MemorySegment fieldValue) { + public static void free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(free$LAYOUT, free$OFFSET, fieldValue); } @@ -393,7 +368,8 @@ public static void free(MemorySegment struct, MemorySegment fieldValue) { */ public static class to_str { - to_str() { + to_str() + { // Should not be called directly } @@ -404,18 +380,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(to_str.Function.class, "apply", $DESC); @@ -423,7 +394,8 @@ public static FunctionDescriptor descriptor() { * 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(to_str.Function fi, Arena arena) { + public static MemorySegment allocate(to_str.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -432,10 +404,12 @@ public static MemorySegment allocate(to_str.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -449,9 +423,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*to_str)(const void *, char **) * } */ - public static final AddressLayout to_str$layout() { - return to_str$LAYOUT; - } + public static final AddressLayout to_str$layout() { return to_str$LAYOUT; } private static final long to_str$OFFSET = 32; @@ -461,9 +433,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*to_str)(const void *, char **) * } */ - public static final long to_str$offset() { - return to_str$OFFSET; - } + public static final long to_str$offset() { return to_str$OFFSET; } /** * Getter for field: @@ -471,7 +441,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*to_str)(const void *, char **) * } */ - public static MemorySegment to_str(MemorySegment struct) { + public static MemorySegment to_str(MemorySegment struct) + { return struct.get(to_str$LAYOUT, to_str$OFFSET); } @@ -481,7 +452,8 @@ public static MemorySegment to_str(MemorySegment struct) { * herr_t (*to_str)(const void *, char **) * } */ - public static void to_str(MemorySegment struct, MemorySegment fieldValue) { + public static void to_str(MemorySegment struct, MemorySegment fieldValue) + { struct.set(to_str$LAYOUT, to_str$OFFSET, fieldValue); } @@ -492,7 +464,8 @@ public static void to_str(MemorySegment struct, MemorySegment fieldValue) { */ public static class from_str { - from_str() { + from_str() + { // Should not be called directly } @@ -503,26 +476,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(from_str.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(from_str.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(from_str.Function fi, Arena arena) { + public static MemorySegment allocate(from_str.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -531,16 +501,19 @@ public static MemorySegment allocate(from_str.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout from_str$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("from_str")); + private static final AddressLayout from_str$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("from_str")); /** * Layout for field: @@ -548,9 +521,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*from_str)(const char *, void **) * } */ - public static final AddressLayout from_str$layout() { - return from_str$LAYOUT; - } + public static final AddressLayout from_str$layout() { return from_str$LAYOUT; } private static final long from_str$OFFSET = 40; @@ -560,9 +531,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*from_str)(const char *, void **) * } */ - public static final long from_str$offset() { - return from_str$OFFSET; - } + public static final long from_str$offset() { return from_str$OFFSET; } /** * Getter for field: @@ -570,7 +539,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*from_str)(const char *, void **) * } */ - public static MemorySegment from_str(MemorySegment struct) { + public static MemorySegment from_str(MemorySegment struct) + { return struct.get(from_str$LAYOUT, from_str$OFFSET); } @@ -580,7 +550,8 @@ public static MemorySegment from_str(MemorySegment struct) { * herr_t (*from_str)(const char *, void **) * } */ - public static void from_str(MemorySegment struct, MemorySegment fieldValue) { + public static void from_str(MemorySegment struct, MemorySegment fieldValue) + { struct.set(from_str$LAYOUT, from_str$OFFSET, fieldValue); } @@ -588,7 +559,8 @@ public static void from_str(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -600,15 +572,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -616,7 +587,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -624,8 +596,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_introspect_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_introspect_class_t.java index b018fbd9957..24f3e146435 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_introspect_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_introspect_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_introspect_class_t { @@ -23,22 +23,21 @@ */ public class H5VL_introspect_class_t { - H5VL_introspect_class_t() { + H5VL_introspect_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("get_conn_cls"), - hdf5_h.C_POINTER.withName("get_cap_flags"), - hdf5_h.C_POINTER.withName("opt_query") - ).withName("H5VL_introspect_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("get_conn_cls"), + hdf5_h.C_POINTER.withName("get_cap_flags"), hdf5_h.C_POINTER.withName("opt_query")) + .withName("H5VL_introspect_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -47,7 +46,8 @@ public static final GroupLayout layout() { */ public static class get_conn_cls { - get_conn_cls() { + get_conn_cls() + { // Should not be called directly } @@ -58,27 +58,23 @@ public interface Function { int apply(MemorySegment _x0, int _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_conn_cls.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_conn_cls.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(get_conn_cls.Function fi, Arena arena) { + public static MemorySegment allocate(get_conn_cls.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -87,16 +83,19 @@ public static MemorySegment allocate(get_conn_cls.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_conn_cls$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_conn_cls")); + private static final AddressLayout get_conn_cls$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_conn_cls")); /** * Layout for field: @@ -104,9 +103,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*get_conn_cls)(void *, H5VL_get_conn_lvl_t, const struct H5VL_class_t **) * } */ - public static final AddressLayout get_conn_cls$layout() { - return get_conn_cls$LAYOUT; - } + public static final AddressLayout get_conn_cls$layout() { return get_conn_cls$LAYOUT; } private static final long get_conn_cls$OFFSET = 0; @@ -116,9 +113,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*get_conn_cls)(void *, H5VL_get_conn_lvl_t, const struct H5VL_class_t **) * } */ - public static final long get_conn_cls$offset() { - return get_conn_cls$OFFSET; - } + public static final long get_conn_cls$offset() { return get_conn_cls$OFFSET; } /** * Getter for field: @@ -126,7 +121,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*get_conn_cls)(void *, H5VL_get_conn_lvl_t, const struct H5VL_class_t **) * } */ - public static MemorySegment get_conn_cls(MemorySegment struct) { + public static MemorySegment get_conn_cls(MemorySegment struct) + { return struct.get(get_conn_cls$LAYOUT, get_conn_cls$OFFSET); } @@ -136,7 +132,8 @@ public static MemorySegment get_conn_cls(MemorySegment struct) { * herr_t (*get_conn_cls)(void *, H5VL_get_conn_lvl_t, const struct H5VL_class_t **) * } */ - public static void get_conn_cls(MemorySegment struct, MemorySegment fieldValue) { + public static void get_conn_cls(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_conn_cls$LAYOUT, get_conn_cls$OFFSET, fieldValue); } @@ -147,7 +144,8 @@ public static void get_conn_cls(MemorySegment struct, MemorySegment fieldValue) */ public static class get_cap_flags { - get_cap_flags() { + get_cap_flags() + { // Should not be called directly } @@ -158,26 +156,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_cap_flags.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_cap_flags.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(get_cap_flags.Function fi, Arena arena) { + public static MemorySegment allocate(get_cap_flags.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -186,16 +181,19 @@ public static MemorySegment allocate(get_cap_flags.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_cap_flags$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_cap_flags")); + private static final AddressLayout get_cap_flags$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_cap_flags")); /** * Layout for field: @@ -203,9 +201,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_cap_flags)(const void *, uint64_t *) * } */ - public static final AddressLayout get_cap_flags$layout() { - return get_cap_flags$LAYOUT; - } + public static final AddressLayout get_cap_flags$layout() { return get_cap_flags$LAYOUT; } private static final long get_cap_flags$OFFSET = 8; @@ -215,9 +211,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_cap_flags)(const void *, uint64_t *) * } */ - public static final long get_cap_flags$offset() { - return get_cap_flags$OFFSET; - } + public static final long get_cap_flags$offset() { return get_cap_flags$OFFSET; } /** * Getter for field: @@ -225,7 +219,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_cap_flags)(const void *, uint64_t *) * } */ - public static MemorySegment get_cap_flags(MemorySegment struct) { + public static MemorySegment get_cap_flags(MemorySegment struct) + { return struct.get(get_cap_flags$LAYOUT, get_cap_flags$OFFSET); } @@ -235,7 +230,8 @@ public static MemorySegment get_cap_flags(MemorySegment struct) { * herr_t (*get_cap_flags)(const void *, uint64_t *) * } */ - public static void get_cap_flags(MemorySegment struct, MemorySegment fieldValue) { + public static void get_cap_flags(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_cap_flags$LAYOUT, get_cap_flags$OFFSET, fieldValue); } @@ -246,7 +242,8 @@ public static void get_cap_flags(MemorySegment struct, MemorySegment fieldValue) */ public static class opt_query { - opt_query() { + opt_query() + { // Should not be called directly } @@ -258,27 +255,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(opt_query.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(opt_query.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(opt_query.Function fi, Arena arena) { + public static MemorySegment allocate(opt_query.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -287,16 +279,20 @@ public static MemorySegment allocate(opt_query.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, int _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout opt_query$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("opt_query")); + private static final AddressLayout opt_query$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("opt_query")); /** * Layout for field: @@ -304,9 +300,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _ * herr_t (*opt_query)(void *, H5VL_subclass_t, int, uint64_t *) * } */ - public static final AddressLayout opt_query$layout() { - return opt_query$LAYOUT; - } + public static final AddressLayout opt_query$layout() { return opt_query$LAYOUT; } private static final long opt_query$OFFSET = 16; @@ -316,9 +310,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _ * herr_t (*opt_query)(void *, H5VL_subclass_t, int, uint64_t *) * } */ - public static final long opt_query$offset() { - return opt_query$OFFSET; - } + public static final long opt_query$offset() { return opt_query$OFFSET; } /** * Getter for field: @@ -326,7 +318,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, int _ * herr_t (*opt_query)(void *, H5VL_subclass_t, int, uint64_t *) * } */ - public static MemorySegment opt_query(MemorySegment struct) { + public static MemorySegment opt_query(MemorySegment struct) + { return struct.get(opt_query$LAYOUT, opt_query$OFFSET); } @@ -336,7 +329,8 @@ public static MemorySegment opt_query(MemorySegment struct) { * herr_t (*opt_query)(void *, H5VL_subclass_t, int, uint64_t *) * } */ - public static void opt_query(MemorySegment struct, MemorySegment fieldValue) { + public static void opt_query(MemorySegment struct, MemorySegment fieldValue) + { struct.set(opt_query$LAYOUT, opt_query$OFFSET, fieldValue); } @@ -344,7 +338,8 @@ public static void opt_query(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -356,15 +351,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -372,7 +366,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -380,8 +375,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_class_t.java index 855a8a96a24..8f414110d5c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_class_t.java @@ -2,58 +2,57 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_link_class_t { - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **); - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **); - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **); - * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, hid_t, void **); - * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, void **); - * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **); + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **); herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, + * hid_t, hid_t, void **); herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t + * *, hid_t, hid_t, hid_t, void **); herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, + * hid_t, void **); herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, + * void **); herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **); * } * } */ public class H5VL_link_class_t { - H5VL_link_class_t() { + H5VL_link_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("create"), - hdf5_h.C_POINTER.withName("copy"), - hdf5_h.C_POINTER.withName("move"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional") - ).withName("H5VL_link_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("create"), hdf5_h.C_POINTER.withName("copy"), + hdf5_h.C_POINTER.withName("move"), hdf5_h.C_POINTER.withName("get"), + hdf5_h.C_POINTER.withName("specific"), hdf5_h.C_POINTER.withName("optional")) + .withName("H5VL_link_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **) * } */ public static class create { - create() { + create() + { // Should not be called directly } @@ -61,26 +60,18 @@ public static class create { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, MemorySegment _x6); + int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, + MemorySegment _x6); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(create.Function.class, "apply", $DESC); @@ -88,7 +79,8 @@ public static FunctionDescriptor descriptor() { * 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(create.Function fi, Arena arena) { + public static MemorySegment allocate(create.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -97,10 +89,13 @@ public static MemorySegment allocate(create.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, long _x4, long _x5, MemorySegment _x6) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, long _x4, long _x5, MemorySegment _x6) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -111,53 +106,57 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment /** * Layout for field: * {@snippet lang=c : - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **) * } */ - public static final AddressLayout create$layout() { - return create$LAYOUT; - } + public static final AddressLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; /** * Offset for field: * {@snippet lang=c : - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **) * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **) * } */ - public static MemorySegment create(MemorySegment struct) { + public static MemorySegment create(MemorySegment struct) + { return struct.get(create$LAYOUT, create$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*create)(H5VL_link_create_args_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, + * void **) * } */ - public static void create(MemorySegment struct, MemorySegment fieldValue) { + public static void create(MemorySegment struct, MemorySegment fieldValue) + { struct.set(create$LAYOUT, create$OFFSET, fieldValue); } /** * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ public static class copy { - copy() { + copy() + { // Should not be called directly } @@ -165,27 +164,18 @@ public static class copy { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, MemorySegment _x7); + int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, + long _x5, long _x6, MemorySegment _x7); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(copy.Function.class, "apply", $DESC); @@ -193,7 +183,8 @@ public static FunctionDescriptor descriptor() { * 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(copy.Function fi, Arena arena) { + public static MemorySegment allocate(copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -202,10 +193,14 @@ public static MemorySegment allocate(copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, MemorySegment _x7) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, + MemorySegment _x7) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -216,53 +211,54 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment /** * Layout for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static final AddressLayout copy$layout() { - return copy$LAYOUT; - } + public static final AddressLayout copy$layout() { return copy$LAYOUT; } private static final long copy$OFFSET = 8; /** * Offset for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static final long copy$offset() { - return copy$OFFSET; - } + public static final long copy$offset() { return copy$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static MemorySegment copy(MemorySegment struct) { - return struct.get(copy$LAYOUT, copy$OFFSET); - } + public static MemorySegment copy(MemorySegment struct) { return struct.get(copy$LAYOUT, copy$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static void copy(MemorySegment struct, MemorySegment fieldValue) { + public static void copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(copy$LAYOUT, copy$OFFSET, fieldValue); } /** * {@snippet lang=c : - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ public static class move { - move() { + move() + { // Should not be called directly } @@ -270,27 +266,18 @@ public static class move { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, MemorySegment _x7); + int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, + long _x5, long _x6, MemorySegment _x7); } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(move.Function.class, "apply", $DESC); @@ -298,7 +285,8 @@ public static FunctionDescriptor descriptor() { * 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(move.Function fi, Arena arena) { + public static MemorySegment allocate(move.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -307,10 +295,14 @@ public static MemorySegment allocate(move.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, MemorySegment _x7) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, MemorySegment _x3, long _x4, long _x5, long _x6, + MemorySegment _x7) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -321,42 +313,41 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment /** * Layout for field: * {@snippet lang=c : - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static final AddressLayout move$layout() { - return move$LAYOUT; - } + public static final AddressLayout move$layout() { return move$LAYOUT; } private static final long move$OFFSET = 16; /** * Offset for field: * {@snippet lang=c : - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static final long move$offset() { - return move$OFFSET; - } + public static final long move$offset() { return move$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static MemorySegment move(MemorySegment struct) { - return struct.get(move$LAYOUT, move$OFFSET); - } + public static MemorySegment move(MemorySegment struct) { return struct.get(move$LAYOUT, move$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, hid_t, void **) + * herr_t (*move)(void *, const H5VL_loc_params_t *, void *, const H5VL_loc_params_t *, hid_t, hid_t, + * hid_t, void **) * } */ - public static void move(MemorySegment struct, MemorySegment fieldValue) { + public static void move(MemorySegment struct, MemorySegment fieldValue) + { struct.set(move$LAYOUT, move$OFFSET, fieldValue); } @@ -367,7 +358,8 @@ public static void move(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -378,21 +370,14 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -400,7 +385,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -409,10 +395,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -426,9 +415,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 24; @@ -438,9 +425,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -448,9 +433,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -458,7 +441,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_link_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -469,7 +453,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -480,29 +465,24 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -511,16 +491,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -528,9 +512,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 32; @@ -540,9 +522,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -550,7 +530,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -560,7 +541,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_link_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -571,7 +553,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -582,29 +565,24 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -613,16 +591,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -630,9 +612,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 40; @@ -642,9 +622,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -652,7 +630,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -662,7 +641,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -670,7 +650,8 @@ public static void optional(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -682,15 +663,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -698,7 +678,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -706,8 +687,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_create_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_create_args_t.java index 6e1f7812680..a28ca969695 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_create_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_create_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_link_create_args_t { @@ -35,22 +35,21 @@ */ public class H5VL_link_create_args_t { - H5VL_link_create_args_t() { + H5VL_link_create_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_link_create_args_t.args.layout().withName("args") - ).withName("H5VL_link_create_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_link_create_args_t.args.layout().withName("args")) + .withName("H5VL_link_create_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -60,9 +59,7 @@ public static final GroupLayout layout() { * H5VL_link_create_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -72,9 +69,7 @@ public static final GroupLayout layout() { * H5VL_link_create_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -82,9 +77,7 @@ public static final GroupLayout layout() { * H5VL_link_create_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -92,7 +85,8 @@ public static int op_type(MemorySegment struct) { * H5VL_link_create_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -116,22 +110,22 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_link_create_args_t.args.hard.layout().withName("hard"), - H5VL_link_create_args_t.args.soft.layout().withName("soft"), - H5VL_link_create_args_t.args.ud.layout().withName("ud") - ).withName("$anon$581:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_link_create_args_t.args.hard.layout().withName("hard"), + H5VL_link_create_args_t.args.soft.layout().withName("soft"), + H5VL_link_create_args_t.args.ud.layout().withName("ud")) + .withName("$anon$581:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -143,23 +137,24 @@ public static final GroupLayout layout() { */ public static class hard { - hard() { + hard() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("curr_obj"), - H5VL_loc_params_t.layout().withName("curr_loc_params") - ).withName("$anon$583:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("curr_obj"), + H5VL_loc_params_t.layout().withName("curr_loc_params")) + .withName("$anon$583:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout curr_obj$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("curr_obj")); + private static final AddressLayout curr_obj$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("curr_obj")); /** * Layout for field: @@ -167,9 +162,7 @@ public static final GroupLayout layout() { * void *curr_obj * } */ - public static final AddressLayout curr_obj$layout() { - return curr_obj$LAYOUT; - } + public static final AddressLayout curr_obj$layout() { return curr_obj$LAYOUT; } private static final long curr_obj$OFFSET = 0; @@ -179,9 +172,7 @@ public static final GroupLayout layout() { * void *curr_obj * } */ - public static final long curr_obj$offset() { - return curr_obj$OFFSET; - } + public static final long curr_obj$offset() { return curr_obj$OFFSET; } /** * Getter for field: @@ -189,7 +180,8 @@ public static final GroupLayout layout() { * void *curr_obj * } */ - public static MemorySegment curr_obj(MemorySegment struct) { + public static MemorySegment curr_obj(MemorySegment struct) + { return struct.get(curr_obj$LAYOUT, curr_obj$OFFSET); } @@ -199,11 +191,13 @@ public static MemorySegment curr_obj(MemorySegment struct) { * void *curr_obj * } */ - public static void curr_obj(MemorySegment struct, MemorySegment fieldValue) { + public static void curr_obj(MemorySegment struct, MemorySegment fieldValue) + { struct.set(curr_obj$LAYOUT, curr_obj$OFFSET, fieldValue); } - private static final GroupLayout curr_loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("curr_loc_params")); + private static final GroupLayout curr_loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("curr_loc_params")); /** * Layout for field: @@ -211,9 +205,7 @@ public static void curr_obj(MemorySegment struct, MemorySegment fieldValue) { * H5VL_loc_params_t curr_loc_params * } */ - public static final GroupLayout curr_loc_params$layout() { - return curr_loc_params$LAYOUT; - } + public static final GroupLayout curr_loc_params$layout() { return curr_loc_params$LAYOUT; } private static final long curr_loc_params$OFFSET = 8; @@ -223,9 +215,7 @@ public static void curr_obj(MemorySegment struct, MemorySegment fieldValue) { * H5VL_loc_params_t curr_loc_params * } */ - public static final long curr_loc_params$offset() { - return curr_loc_params$OFFSET; - } + public static final long curr_loc_params$offset() { return curr_loc_params$OFFSET; } /** * Getter for field: @@ -233,7 +223,8 @@ public static void curr_obj(MemorySegment struct, MemorySegment fieldValue) { * H5VL_loc_params_t curr_loc_params * } */ - public static MemorySegment curr_loc_params(MemorySegment struct) { + public static MemorySegment curr_loc_params(MemorySegment struct) + { return struct.asSlice(curr_loc_params$OFFSET, curr_loc_params$LAYOUT.byteSize()); } @@ -243,15 +234,18 @@ public static MemorySegment curr_loc_params(MemorySegment struct) { * H5VL_loc_params_t curr_loc_params * } */ - public static void curr_loc_params(MemorySegment struct, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, struct, curr_loc_params$OFFSET, curr_loc_params$LAYOUT.byteSize()); + public static void curr_loc_params(MemorySegment struct, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, struct, curr_loc_params$OFFSET, + curr_loc_params$LAYOUT.byteSize()); } /** * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -263,7 +257,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -271,7 +266,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -279,7 +275,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -287,7 +285,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -303,9 +303,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } hard * } */ - public static final GroupLayout hard$layout() { - return hard$LAYOUT; - } + public static final GroupLayout hard$layout() { return hard$LAYOUT; } private static final long hard$OFFSET = 0; @@ -318,9 +316,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } hard * } */ - public static final long hard$offset() { - return hard$OFFSET; - } + public static final long hard$offset() { return hard$OFFSET; } /** * Getter for field: @@ -331,7 +327,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } hard * } */ - public static MemorySegment hard(MemorySegment union) { + public static MemorySegment hard(MemorySegment union) + { return union.asSlice(hard$OFFSET, hard$LAYOUT.byteSize()); } @@ -344,7 +341,8 @@ public static MemorySegment hard(MemorySegment union) { * } hard * } */ - public static void hard(MemorySegment union, MemorySegment fieldValue) { + public static void hard(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, hard$OFFSET, hard$LAYOUT.byteSize()); } @@ -357,22 +355,21 @@ public static void hard(MemorySegment union, MemorySegment fieldValue) { */ public static class soft { - soft() { + soft() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("target") - ).withName("$anon$589:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("target")).withName("$anon$589:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout target$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("target")); + private static final AddressLayout target$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("target")); /** * Layout for field: @@ -380,9 +377,7 @@ public static final GroupLayout layout() { * const char *target * } */ - public static final AddressLayout target$layout() { - return target$LAYOUT; - } + public static final AddressLayout target$layout() { return target$LAYOUT; } private static final long target$OFFSET = 0; @@ -392,9 +387,7 @@ public static final GroupLayout layout() { * const char *target * } */ - public static final long target$offset() { - return target$OFFSET; - } + public static final long target$offset() { return target$OFFSET; } /** * Getter for field: @@ -402,7 +395,8 @@ public static final GroupLayout layout() { * const char *target * } */ - public static MemorySegment target(MemorySegment struct) { + public static MemorySegment target(MemorySegment struct) + { return struct.get(target$LAYOUT, target$OFFSET); } @@ -412,7 +406,8 @@ public static MemorySegment target(MemorySegment struct) { * const char *target * } */ - public static void target(MemorySegment struct, MemorySegment fieldValue) { + public static void target(MemorySegment struct, MemorySegment fieldValue) + { struct.set(target$LAYOUT, target$OFFSET, fieldValue); } @@ -420,7 +415,8 @@ public static void target(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -432,7 +428,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -440,7 +437,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -448,7 +446,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -456,7 +456,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -471,9 +473,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } soft * } */ - public static final GroupLayout soft$layout() { - return soft$LAYOUT; - } + public static final GroupLayout soft$layout() { return soft$LAYOUT; } private static final long soft$OFFSET = 0; @@ -485,9 +485,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } soft * } */ - public static final long soft$offset() { - return soft$OFFSET; - } + public static final long soft$offset() { return soft$OFFSET; } /** * Getter for field: @@ -497,7 +495,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } soft * } */ - public static MemorySegment soft(MemorySegment union) { + public static MemorySegment soft(MemorySegment union) + { return union.asSlice(soft$OFFSET, soft$LAYOUT.byteSize()); } @@ -509,7 +508,8 @@ public static MemorySegment soft(MemorySegment union) { * } soft * } */ - public static void soft(MemorySegment union, MemorySegment fieldValue) { + public static void soft(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, soft$OFFSET, soft$LAYOUT.byteSize()); } @@ -524,23 +524,21 @@ public static void soft(MemorySegment union, MemorySegment fieldValue) { */ public static class ud { - ud() { + ud() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_LONG.withName("buf_size") - ).withName("$anon$594:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("buf"), hdf5_h.C_LONG.withName("buf_size")) + .withName("$anon$594:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -550,9 +548,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -562,9 +558,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -572,9 +566,7 @@ public static final GroupLayout layout() { * H5L_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -582,11 +574,13 @@ public static int type(MemorySegment struct) { * H5L_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } - private static final AddressLayout buf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("buf")); + private static final AddressLayout buf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("buf")); /** * Layout for field: @@ -594,9 +588,7 @@ public static void type(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 8; @@ -606,9 +598,7 @@ public static void type(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -616,7 +606,8 @@ public static void type(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { + public static MemorySegment buf(MemorySegment struct) + { return struct.get(buf$LAYOUT, buf$OFFSET); } @@ -626,7 +617,8 @@ public static MemorySegment buf(MemorySegment struct) { * const void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } @@ -638,9 +630,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 16; @@ -650,9 +640,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -660,7 +648,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { + public static long buf_size(MemorySegment struct) + { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } @@ -670,7 +659,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -678,7 +668,8 @@ public static void buf_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -690,7 +681,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -698,7 +690,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -706,7 +699,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -714,7 +709,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -731,9 +728,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } ud * } */ - public static final GroupLayout ud$layout() { - return ud$LAYOUT; - } + public static final GroupLayout ud$layout() { return ud$LAYOUT; } private static final long ud$OFFSET = 0; @@ -747,9 +742,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } ud * } */ - public static final long ud$offset() { - return ud$OFFSET; - } + public static final long ud$offset() { return ud$OFFSET; } /** * Getter for field: @@ -761,7 +754,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } ud * } */ - public static MemorySegment ud(MemorySegment union) { + public static MemorySegment ud(MemorySegment union) + { return union.asSlice(ud$OFFSET, ud$LAYOUT.byteSize()); } @@ -775,7 +769,8 @@ public static MemorySegment ud(MemorySegment union) { * } ud * } */ - public static void ud(MemorySegment union, MemorySegment fieldValue) { + public static void ud(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, ud$OFFSET, ud$LAYOUT.byteSize()); } @@ -783,7 +778,8 @@ public static void ud(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -795,7 +791,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -803,7 +800,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -811,7 +809,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -819,7 +819,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -845,9 +847,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -870,9 +870,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -893,7 +891,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -916,7 +915,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -924,7 +924,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -936,15 +937,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -952,7 +952,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -960,8 +961,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_get_args_t.java index 5efb7f039ae..5f1385e5e78 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_link_get_args_t { @@ -35,22 +35,21 @@ */ public class H5VL_link_get_args_t { - H5VL_link_get_args_t() { + H5VL_link_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_link_get_args_t.args.layout().withName("args") - ).withName("H5VL_link_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_link_get_args_t.args.layout().withName("args")) + .withName("H5VL_link_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -60,9 +59,7 @@ public static final GroupLayout layout() { * H5VL_link_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -72,9 +69,7 @@ public static final GroupLayout layout() { * H5VL_link_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -82,9 +77,7 @@ public static final GroupLayout layout() { * H5VL_link_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -92,7 +85,8 @@ public static int op_type(MemorySegment struct) { * H5VL_link_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -116,22 +110,22 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_link_get_args_t.args.get_info.layout().withName("get_info"), - H5VL_link_get_args_t.args.get_name.layout().withName("get_name"), - H5VL_link_get_args_t.args.get_val.layout().withName("get_val") - ).withName("$anon$614:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_link_get_args_t.args.get_info.layout().withName("get_info"), + H5VL_link_get_args_t.args.get_name.layout().withName("get_name"), + H5VL_link_get_args_t.args.get_val.layout().withName("get_val")) + .withName("$anon$614:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -142,22 +136,21 @@ public static final GroupLayout layout() { */ public static class get_info { - get_info() { + get_info() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("linfo") - ).withName("$anon$616:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("linfo")).withName("$anon$616:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout linfo$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("linfo")); + private static final AddressLayout linfo$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("linfo")); /** * Layout for field: @@ -165,9 +158,7 @@ public static final GroupLayout layout() { * H5L_info2_t *linfo * } */ - public static final AddressLayout linfo$layout() { - return linfo$LAYOUT; - } + public static final AddressLayout linfo$layout() { return linfo$LAYOUT; } private static final long linfo$OFFSET = 0; @@ -177,9 +168,7 @@ public static final GroupLayout layout() { * H5L_info2_t *linfo * } */ - public static final long linfo$offset() { - return linfo$OFFSET; - } + public static final long linfo$offset() { return linfo$OFFSET; } /** * Getter for field: @@ -187,7 +176,8 @@ public static final GroupLayout layout() { * H5L_info2_t *linfo * } */ - public static MemorySegment linfo(MemorySegment struct) { + public static MemorySegment linfo(MemorySegment struct) + { return struct.get(linfo$LAYOUT, linfo$OFFSET); } @@ -197,7 +187,8 @@ public static MemorySegment linfo(MemorySegment struct) { * H5L_info2_t *linfo * } */ - public static void linfo(MemorySegment struct, MemorySegment fieldValue) { + public static void linfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(linfo$LAYOUT, linfo$OFFSET, fieldValue); } @@ -205,7 +196,8 @@ public static void linfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -217,7 +209,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -225,7 +218,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -233,7 +227,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -241,12 +237,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_info")); + private static final GroupLayout get_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_info")); /** * Layout for field: @@ -256,9 +255,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static final GroupLayout get_info$layout() { - return get_info$LAYOUT; - } + public static final GroupLayout get_info$layout() { return get_info$LAYOUT; } private static final long get_info$OFFSET = 0; @@ -270,9 +267,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static final long get_info$offset() { - return get_info$OFFSET; - } + public static final long get_info$offset() { return get_info$OFFSET; } /** * Getter for field: @@ -282,7 +277,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static MemorySegment get_info(MemorySegment union) { + public static MemorySegment get_info(MemorySegment union) + { return union.asSlice(get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -294,7 +290,8 @@ public static MemorySegment get_info(MemorySegment union) { * } get_info * } */ - public static void get_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -309,22 +306,21 @@ public static void get_info(MemorySegment union, MemorySegment fieldValue) { */ public static class get_name { - get_name() { + get_name() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("name_size"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_POINTER.withName("name_len") - ).withName("$anon$621:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("name_size"), hdf5_h.C_POINTER.withName("name"), + hdf5_h.C_POINTER.withName("name_len")) + .withName("$anon$621:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong name_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("name_size")); @@ -334,9 +330,7 @@ public static final GroupLayout layout() { * size_t name_size * } */ - public static final OfLong name_size$layout() { - return name_size$LAYOUT; - } + public static final OfLong name_size$layout() { return name_size$LAYOUT; } private static final long name_size$OFFSET = 0; @@ -346,9 +340,7 @@ public static final GroupLayout layout() { * size_t name_size * } */ - public static final long name_size$offset() { - return name_size$OFFSET; - } + public static final long name_size$offset() { return name_size$OFFSET; } /** * Getter for field: @@ -356,7 +348,8 @@ public static final GroupLayout layout() { * size_t name_size * } */ - public static long name_size(MemorySegment struct) { + public static long name_size(MemorySegment struct) + { return struct.get(name_size$LAYOUT, name_size$OFFSET); } @@ -366,11 +359,13 @@ public static long name_size(MemorySegment struct) { * size_t name_size * } */ - public static void name_size(MemorySegment struct, long fieldValue) { + public static void name_size(MemorySegment struct, long fieldValue) + { struct.set(name_size$LAYOUT, name_size$OFFSET, fieldValue); } - private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); + private static final AddressLayout name$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name")); /** * Layout for field: @@ -378,9 +373,7 @@ public static void name_size(MemorySegment struct, long fieldValue) { * char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 8; @@ -390,9 +383,7 @@ public static void name_size(MemorySegment struct, long fieldValue) { * char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -400,7 +391,8 @@ public static void name_size(MemorySegment struct, long fieldValue) { * char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -410,11 +402,13 @@ public static MemorySegment name(MemorySegment struct) { * char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } - private static final AddressLayout name_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name_len")); + private static final AddressLayout name_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name_len")); /** * Layout for field: @@ -422,9 +416,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static final AddressLayout name_len$layout() { - return name_len$LAYOUT; - } + public static final AddressLayout name_len$layout() { return name_len$LAYOUT; } private static final long name_len$OFFSET = 16; @@ -434,9 +426,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static final long name_len$offset() { - return name_len$OFFSET; - } + public static final long name_len$offset() { return name_len$OFFSET; } /** * Getter for field: @@ -444,7 +434,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static MemorySegment name_len(MemorySegment struct) { + public static MemorySegment name_len(MemorySegment struct) + { return struct.get(name_len$LAYOUT, name_len$OFFSET); } @@ -454,7 +445,8 @@ public static MemorySegment name_len(MemorySegment struct) { * size_t *name_len * } */ - public static void name_len(MemorySegment struct, MemorySegment fieldValue) { + public static void name_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name_len$LAYOUT, name_len$OFFSET, fieldValue); } @@ -462,7 +454,8 @@ public static void name_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -474,7 +467,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -482,7 +476,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -490,7 +485,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -498,12 +495,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_name$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_name")); + private static final GroupLayout get_name$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_name")); /** * Layout for field: @@ -515,9 +515,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static final GroupLayout get_name$layout() { - return get_name$LAYOUT; - } + public static final GroupLayout get_name$layout() { return get_name$LAYOUT; } private static final long get_name$OFFSET = 0; @@ -531,9 +529,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static final long get_name$offset() { - return get_name$OFFSET; - } + public static final long get_name$offset() { return get_name$OFFSET; } /** * Getter for field: @@ -545,7 +541,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static MemorySegment get_name(MemorySegment union) { + public static MemorySegment get_name(MemorySegment union) + { return union.asSlice(get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -559,7 +556,8 @@ public static MemorySegment get_name(MemorySegment union) { * } get_name * } */ - public static void get_name(MemorySegment union, MemorySegment fieldValue) { + public static void get_name(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -573,21 +571,20 @@ public static void get_name(MemorySegment union, MemorySegment fieldValue) { */ public static class get_val { - get_val() { + get_val() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf") - ).withName("$anon$628:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf")) + .withName("$anon$628:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong buf_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("buf_size")); @@ -597,9 +594,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 0; @@ -609,9 +604,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -619,7 +612,8 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { + public static long buf_size(MemorySegment struct) + { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } @@ -629,11 +623,13 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } - private static final AddressLayout buf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("buf")); + private static final AddressLayout buf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("buf")); /** * Layout for field: @@ -641,9 +637,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 8; @@ -653,9 +647,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -663,7 +655,8 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { + public static MemorySegment buf(MemorySegment struct) + { return struct.get(buf$LAYOUT, buf$OFFSET); } @@ -673,7 +666,8 @@ public static MemorySegment buf(MemorySegment struct) { * void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } @@ -681,7 +675,8 @@ public static void buf(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -693,7 +688,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -701,7 +697,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -709,7 +706,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -717,12 +716,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_val$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_val")); + private static final GroupLayout get_val$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_val")); /** * Layout for field: @@ -733,9 +735,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static final GroupLayout get_val$layout() { - return get_val$LAYOUT; - } + public static final GroupLayout get_val$layout() { return get_val$LAYOUT; } private static final long get_val$OFFSET = 0; @@ -748,9 +748,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static final long get_val$offset() { - return get_val$OFFSET; - } + public static final long get_val$offset() { return get_val$OFFSET; } /** * Getter for field: @@ -761,7 +759,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static MemorySegment get_val(MemorySegment union) { + public static MemorySegment get_val(MemorySegment union) + { return union.asSlice(get_val$OFFSET, get_val$LAYOUT.byteSize()); } @@ -774,7 +773,8 @@ public static MemorySegment get_val(MemorySegment union) { * } get_val * } */ - public static void get_val(MemorySegment union, MemorySegment fieldValue) { + public static void get_val(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_val$OFFSET, get_val$LAYOUT.byteSize()); } @@ -782,7 +782,8 @@ public static void get_val(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -794,7 +795,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -802,7 +804,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -810,7 +813,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -818,7 +823,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -844,9 +851,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -869,9 +874,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -892,7 +895,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -915,7 +919,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -923,7 +928,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -935,15 +941,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -951,7 +956,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -959,8 +965,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_iterate_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_iterate_args_t.java index e5bcfb5aff6..41bfb77ab60 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_iterate_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_iterate_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_link_iterate_args_t { @@ -26,27 +26,23 @@ */ public class H5VL_link_iterate_args_t { - H5VL_link_iterate_args_t() { + H5VL_link_iterate_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_BOOL.withName("recursive"), - MemoryLayout.paddingLayout(3), - hdf5_h.C_INT.withName("idx_type"), - hdf5_h.C_INT.withName("order"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("idx_p"), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5VL_link_iterate_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_BOOL.withName("recursive"), MemoryLayout.paddingLayout(3), + hdf5_h.C_INT.withName("idx_type"), hdf5_h.C_INT.withName("order"), + MemoryLayout.paddingLayout(4), hdf5_h.C_POINTER.withName("idx_p"), + hdf5_h.C_POINTER.withName("op"), hdf5_h.C_POINTER.withName("op_data")) + .withName("H5VL_link_iterate_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfBoolean recursive$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("recursive")); @@ -56,9 +52,7 @@ public static final GroupLayout layout() { * hbool_t recursive * } */ - public static final OfBoolean recursive$layout() { - return recursive$LAYOUT; - } + public static final OfBoolean recursive$layout() { return recursive$LAYOUT; } private static final long recursive$OFFSET = 0; @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * hbool_t recursive * } */ - public static final long recursive$offset() { - return recursive$OFFSET; - } + public static final long recursive$offset() { return recursive$OFFSET; } /** * Getter for field: @@ -78,7 +70,8 @@ public static final GroupLayout layout() { * hbool_t recursive * } */ - public static boolean recursive(MemorySegment struct) { + public static boolean recursive(MemorySegment struct) + { return struct.get(recursive$LAYOUT, recursive$OFFSET); } @@ -88,7 +81,8 @@ public static boolean recursive(MemorySegment struct) { * hbool_t recursive * } */ - public static void recursive(MemorySegment struct, boolean fieldValue) { + public static void recursive(MemorySegment struct, boolean fieldValue) + { struct.set(recursive$LAYOUT, recursive$OFFSET, fieldValue); } @@ -100,9 +94,7 @@ public static void recursive(MemorySegment struct, boolean fieldValue) { * H5_index_t idx_type * } */ - public static final OfInt idx_type$layout() { - return idx_type$LAYOUT; - } + public static final OfInt idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 4; @@ -112,9 +104,7 @@ public static void recursive(MemorySegment struct, boolean fieldValue) { * H5_index_t idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -122,9 +112,7 @@ public static void recursive(MemorySegment struct, boolean fieldValue) { * H5_index_t idx_type * } */ - public static int idx_type(MemorySegment struct) { - return struct.get(idx_type$LAYOUT, idx_type$OFFSET); - } + public static int idx_type(MemorySegment struct) { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } /** * Setter for field: @@ -132,7 +120,8 @@ public static int idx_type(MemorySegment struct) { * H5_index_t idx_type * } */ - public static void idx_type(MemorySegment struct, int fieldValue) { + public static void idx_type(MemorySegment struct, int fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -144,9 +133,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final OfInt order$layout() { - return order$LAYOUT; - } + public static final OfInt order$layout() { return order$LAYOUT; } private static final long order$OFFSET = 8; @@ -156,9 +143,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final long order$offset() { - return order$OFFSET; - } + public static final long order$offset() { return order$OFFSET; } /** * Getter for field: @@ -166,9 +151,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static int order(MemorySegment struct) { - return struct.get(order$LAYOUT, order$OFFSET); - } + public static int order(MemorySegment struct) { return struct.get(order$LAYOUT, order$OFFSET); } /** * Setter for field: @@ -176,7 +159,8 @@ public static int order(MemorySegment struct) { * H5_iter_order_t order * } */ - public static void order(MemorySegment struct, int fieldValue) { + public static void order(MemorySegment struct, int fieldValue) + { struct.set(order$LAYOUT, order$OFFSET, fieldValue); } @@ -188,9 +172,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx_p * } */ - public static final AddressLayout idx_p$layout() { - return idx_p$LAYOUT; - } + public static final AddressLayout idx_p$layout() { return idx_p$LAYOUT; } private static final long idx_p$OFFSET = 16; @@ -200,9 +182,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx_p * } */ - public static final long idx_p$offset() { - return idx_p$OFFSET; - } + public static final long idx_p$offset() { return idx_p$OFFSET; } /** * Getter for field: @@ -210,9 +190,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t *idx_p * } */ - public static MemorySegment idx_p(MemorySegment struct) { - return struct.get(idx_p$LAYOUT, idx_p$OFFSET); - } + public static MemorySegment idx_p(MemorySegment struct) { return struct.get(idx_p$LAYOUT, idx_p$OFFSET); } /** * Setter for field: @@ -220,7 +198,8 @@ public static MemorySegment idx_p(MemorySegment struct) { * hsize_t *idx_p * } */ - public static void idx_p(MemorySegment struct, MemorySegment fieldValue) { + public static void idx_p(MemorySegment struct, MemorySegment fieldValue) + { struct.set(idx_p$LAYOUT, idx_p$OFFSET, fieldValue); } @@ -232,9 +211,7 @@ public static void idx_p(MemorySegment struct, MemorySegment fieldValue) { * H5L_iterate2_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 24; @@ -244,9 +221,7 @@ public static void idx_p(MemorySegment struct, MemorySegment fieldValue) { * H5L_iterate2_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -254,9 +229,7 @@ public static void idx_p(MemorySegment struct, MemorySegment fieldValue) { * H5L_iterate2_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -264,11 +237,13 @@ public static MemorySegment op(MemorySegment struct) { * H5L_iterate2_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -276,9 +251,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 32; @@ -288,9 +261,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -298,7 +269,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -308,7 +280,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -316,7 +289,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -328,15 +302,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -344,7 +317,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -352,8 +326,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_specific_args_t.java index 9017e7004c9..a99fef0f3c2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_link_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_link_specific_args_t { @@ -27,22 +27,21 @@ */ public class H5VL_link_specific_args_t { - H5VL_link_specific_args_t() { + H5VL_link_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_link_specific_args_t.args.layout().withName("args") - ).withName("H5VL_link_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_link_specific_args_t.args.layout().withName("args")) + .withName("H5VL_link_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -52,9 +51,7 @@ public static final GroupLayout layout() { * H5VL_link_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -64,9 +61,7 @@ public static final GroupLayout layout() { * H5VL_link_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -74,9 +69,7 @@ public static final GroupLayout layout() { * H5VL_link_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -84,7 +77,8 @@ public static int op_type(MemorySegment struct) { * H5VL_link_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -100,21 +94,21 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_link_specific_args_t.args.exists.layout().withName("exists"), - H5VL_link_iterate_args_t.layout().withName("iterate") - ).withName("$anon$657:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_link_specific_args_t.args.exists.layout().withName("exists"), + H5VL_link_iterate_args_t.layout().withName("iterate")) + .withName("$anon$657:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -125,22 +119,21 @@ public static final GroupLayout layout() { */ public static class exists { - exists() { + exists() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("exists") - ).withName("$anon$662:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("exists")).withName("$anon$662:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout exists$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("exists")); + private static final AddressLayout exists$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("exists")); /** * Layout for field: @@ -148,9 +141,7 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static final AddressLayout exists$layout() { - return exists$LAYOUT; - } + public static final AddressLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -160,9 +151,7 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -170,7 +159,8 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static MemorySegment exists(MemorySegment struct) { + public static MemorySegment exists(MemorySegment struct) + { return struct.get(exists$LAYOUT, exists$OFFSET); } @@ -180,7 +170,8 @@ public static MemorySegment exists(MemorySegment struct) { * hbool_t *exists * } */ - public static void exists(MemorySegment struct, MemorySegment fieldValue) { + public static void exists(MemorySegment struct, MemorySegment fieldValue) + { struct.set(exists$LAYOUT, exists$OFFSET, fieldValue); } @@ -188,7 +179,8 @@ public static void exists(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -200,7 +192,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -208,7 +201,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -216,7 +210,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -224,7 +220,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -239,9 +237,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final GroupLayout exists$layout() { - return exists$LAYOUT; - } + public static final GroupLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -253,9 +249,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -265,7 +259,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static MemorySegment exists(MemorySegment union) { + public static MemorySegment exists(MemorySegment union) + { return union.asSlice(exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -277,11 +272,13 @@ public static MemorySegment exists(MemorySegment union) { * } exists * } */ - public static void exists(MemorySegment union, MemorySegment fieldValue) { + public static void exists(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, exists$OFFSET, exists$LAYOUT.byteSize()); } - private static final GroupLayout iterate$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("iterate")); + private static final GroupLayout iterate$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("iterate")); /** * Layout for field: @@ -289,9 +286,7 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_link_iterate_args_t iterate * } */ - public static final GroupLayout iterate$layout() { - return iterate$LAYOUT; - } + public static final GroupLayout iterate$layout() { return iterate$LAYOUT; } private static final long iterate$OFFSET = 0; @@ -301,9 +296,7 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_link_iterate_args_t iterate * } */ - public static final long iterate$offset() { - return iterate$OFFSET; - } + public static final long iterate$offset() { return iterate$OFFSET; } /** * Getter for field: @@ -311,7 +304,8 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { * H5VL_link_iterate_args_t iterate * } */ - public static MemorySegment iterate(MemorySegment union) { + public static MemorySegment iterate(MemorySegment union) + { return union.asSlice(iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -321,7 +315,8 @@ public static MemorySegment iterate(MemorySegment union) { * H5VL_link_iterate_args_t iterate * } */ - public static void iterate(MemorySegment union, MemorySegment fieldValue) { + public static void iterate(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -329,7 +324,8 @@ public static void iterate(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -341,7 +337,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -349,7 +346,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -357,7 +355,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -365,7 +365,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -383,9 +385,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -400,9 +400,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -415,7 +413,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -430,7 +429,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -438,7 +438,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -450,15 +451,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -466,7 +466,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -474,8 +475,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx.java index 37eb06081dc..d073b1d9ec2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_loc_by_idx { @@ -25,24 +25,22 @@ */ public class H5VL_loc_by_idx { - H5VL_loc_by_idx() { + H5VL_loc_by_idx() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_INT.withName("idx_type"), - hdf5_h.C_INT.withName("order"), - hdf5_h.C_LONG.withName("n"), - hdf5_h.C_LONG.withName("lapl_id") - ).withName("H5VL_loc_by_idx"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("name"), hdf5_h.C_INT.withName("idx_type"), + hdf5_h.C_INT.withName("order"), hdf5_h.C_LONG.withName("n"), + hdf5_h.C_LONG.withName("lapl_id")) + .withName("H5VL_loc_by_idx"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); @@ -52,9 +50,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -64,9 +60,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -74,9 +68,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -84,7 +76,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -96,9 +89,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5_index_t idx_type * } */ - public static final OfInt idx_type$layout() { - return idx_type$LAYOUT; - } + public static final OfInt idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 8; @@ -108,9 +99,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5_index_t idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -118,9 +107,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5_index_t idx_type * } */ - public static int idx_type(MemorySegment struct) { - return struct.get(idx_type$LAYOUT, idx_type$OFFSET); - } + public static int idx_type(MemorySegment struct) { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } /** * Setter for field: @@ -128,7 +115,8 @@ public static int idx_type(MemorySegment struct) { * H5_index_t idx_type * } */ - public static void idx_type(MemorySegment struct, int fieldValue) { + public static void idx_type(MemorySegment struct, int fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -140,9 +128,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final OfInt order$layout() { - return order$LAYOUT; - } + public static final OfInt order$layout() { return order$LAYOUT; } private static final long order$OFFSET = 12; @@ -152,9 +138,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final long order$offset() { - return order$OFFSET; - } + public static final long order$offset() { return order$OFFSET; } /** * Getter for field: @@ -162,9 +146,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static int order(MemorySegment struct) { - return struct.get(order$LAYOUT, order$OFFSET); - } + public static int order(MemorySegment struct) { return struct.get(order$LAYOUT, order$OFFSET); } /** * Setter for field: @@ -172,7 +154,8 @@ public static int order(MemorySegment struct) { * H5_iter_order_t order * } */ - public static void order(MemorySegment struct, int fieldValue) { + public static void order(MemorySegment struct, int fieldValue) + { struct.set(order$LAYOUT, order$OFFSET, fieldValue); } @@ -184,9 +167,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static final OfLong n$layout() { - return n$LAYOUT; - } + public static final OfLong n$layout() { return n$LAYOUT; } private static final long n$OFFSET = 16; @@ -196,9 +177,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static final long n$offset() { - return n$OFFSET; - } + public static final long n$offset() { return n$OFFSET; } /** * Getter for field: @@ -206,9 +185,7 @@ public static void order(MemorySegment struct, int fieldValue) { * hsize_t n * } */ - public static long n(MemorySegment struct) { - return struct.get(n$LAYOUT, n$OFFSET); - } + public static long n(MemorySegment struct) { return struct.get(n$LAYOUT, n$OFFSET); } /** * Setter for field: @@ -216,7 +193,8 @@ public static long n(MemorySegment struct) { * hsize_t n * } */ - public static void n(MemorySegment struct, long fieldValue) { + public static void n(MemorySegment struct, long fieldValue) + { struct.set(n$LAYOUT, n$OFFSET, fieldValue); } @@ -228,9 +206,7 @@ public static void n(MemorySegment struct, long fieldValue) { * hid_t lapl_id * } */ - public static final OfLong lapl_id$layout() { - return lapl_id$LAYOUT; - } + public static final OfLong lapl_id$layout() { return lapl_id$LAYOUT; } private static final long lapl_id$OFFSET = 24; @@ -240,9 +216,7 @@ public static void n(MemorySegment struct, long fieldValue) { * hid_t lapl_id * } */ - public static final long lapl_id$offset() { - return lapl_id$OFFSET; - } + public static final long lapl_id$offset() { return lapl_id$OFFSET; } /** * Getter for field: @@ -250,9 +224,7 @@ public static void n(MemorySegment struct, long fieldValue) { * hid_t lapl_id * } */ - public static long lapl_id(MemorySegment struct) { - return struct.get(lapl_id$LAYOUT, lapl_id$OFFSET); - } + public static long lapl_id(MemorySegment struct) { return struct.get(lapl_id$LAYOUT, lapl_id$OFFSET); } /** * Setter for field: @@ -260,7 +232,8 @@ public static long lapl_id(MemorySegment struct) { * hid_t lapl_id * } */ - public static void lapl_id(MemorySegment struct, long fieldValue) { + public static void lapl_id(MemorySegment struct, long fieldValue) + { struct.set(lapl_id$LAYOUT, lapl_id$OFFSET, fieldValue); } @@ -268,7 +241,8 @@ public static void lapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -280,15 +254,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -296,7 +269,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -304,8 +278,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx_t.java index a072bf6f7c7..2a2ddad47c2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_idx_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct H5VL_loc_by_idx { @@ -25,8 +25,8 @@ */ public class H5VL_loc_by_idx_t extends H5VL_loc_by_idx { - H5VL_loc_by_idx_t() { + H5VL_loc_by_idx_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name.java index ebb1cb997c7..a05b1f3c909 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_loc_by_name { @@ -22,21 +22,19 @@ */ public class H5VL_loc_by_name { - H5VL_loc_by_name() { + H5VL_loc_by_name() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_LONG.withName("lapl_id") - ).withName("H5VL_loc_by_name"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("name"), hdf5_h.C_LONG.withName("lapl_id")) + .withName("H5VL_loc_by_name"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lapl_id * } */ - public static final OfLong lapl_id$layout() { - return lapl_id$LAYOUT; - } + public static final OfLong lapl_id$layout() { return lapl_id$LAYOUT; } private static final long lapl_id$OFFSET = 8; @@ -102,9 +93,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lapl_id * } */ - public static final long lapl_id$offset() { - return lapl_id$OFFSET; - } + public static final long lapl_id$offset() { return lapl_id$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lapl_id * } */ - public static long lapl_id(MemorySegment struct) { - return struct.get(lapl_id$LAYOUT, lapl_id$OFFSET); - } + public static long lapl_id(MemorySegment struct) { return struct.get(lapl_id$LAYOUT, lapl_id$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static long lapl_id(MemorySegment struct) { * hid_t lapl_id * } */ - public static void lapl_id(MemorySegment struct, long fieldValue) { + public static void lapl_id(MemorySegment struct, long fieldValue) + { struct.set(lapl_id$LAYOUT, lapl_id$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void lapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name_t.java index 1ea26cd611c..d502553ae2e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_name_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct H5VL_loc_by_name { @@ -22,8 +22,8 @@ */ public class H5VL_loc_by_name_t extends H5VL_loc_by_name { - H5VL_loc_by_name_t() { + H5VL_loc_by_name_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token.java index 6a7c77d3658..09776e83fa3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_loc_by_token { @@ -21,20 +21,18 @@ */ public class H5VL_loc_by_token { - H5VL_loc_by_token() { + H5VL_loc_by_token() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("token") - ).withName("H5VL_loc_by_token"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("token")).withName("H5VL_loc_by_token"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout token$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("token")); @@ -44,9 +42,7 @@ public static final GroupLayout layout() { * H5O_token_t *token * } */ - public static final AddressLayout token$layout() { - return token$LAYOUT; - } + public static final AddressLayout token$layout() { return token$LAYOUT; } private static final long token$OFFSET = 0; @@ -56,9 +52,7 @@ public static final GroupLayout layout() { * H5O_token_t *token * } */ - public static final long token$offset() { - return token$OFFSET; - } + public static final long token$offset() { return token$OFFSET; } /** * Getter for field: @@ -66,9 +60,7 @@ public static final GroupLayout layout() { * H5O_token_t *token * } */ - public static MemorySegment token(MemorySegment struct) { - return struct.get(token$LAYOUT, token$OFFSET); - } + public static MemorySegment token(MemorySegment struct) { return struct.get(token$LAYOUT, token$OFFSET); } /** * Setter for field: @@ -76,7 +68,8 @@ public static MemorySegment token(MemorySegment struct) { * H5O_token_t *token * } */ - public static void token(MemorySegment struct, MemorySegment fieldValue) { + public static void token(MemorySegment struct, MemorySegment fieldValue) + { struct.set(token$LAYOUT, token$OFFSET, fieldValue); } @@ -84,7 +77,8 @@ public static void token(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -96,15 +90,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -112,7 +105,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -120,8 +114,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token_t.java index e553f27ca1d..9c45ea1485f 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_by_token_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct H5VL_loc_by_token { @@ -21,8 +21,8 @@ */ public class H5VL_loc_by_token_t extends H5VL_loc_by_token { - H5VL_loc_by_token_t() { + H5VL_loc_by_token_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_params_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_params_t.java index 1ec17536e20..93ec09b93cb 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_params_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_loc_params_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_loc_params_t { @@ -27,22 +27,21 @@ */ public class H5VL_loc_params_t { - H5VL_loc_params_t() { + H5VL_loc_params_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("obj_type"), - hdf5_h.C_INT.withName("type"), - H5VL_loc_params_t.loc_data.layout().withName("loc_data") - ).withName("H5VL_loc_params_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("obj_type"), hdf5_h.C_INT.withName("type"), + H5VL_loc_params_t.loc_data.layout().withName("loc_data")) + .withName("H5VL_loc_params_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt obj_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("obj_type")); @@ -52,9 +51,7 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static final OfInt obj_type$layout() { - return obj_type$LAYOUT; - } + public static final OfInt obj_type$layout() { return obj_type$LAYOUT; } private static final long obj_type$OFFSET = 0; @@ -64,9 +61,7 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static final long obj_type$offset() { - return obj_type$OFFSET; - } + public static final long obj_type$offset() { return obj_type$OFFSET; } /** * Getter for field: @@ -74,9 +69,7 @@ public static final GroupLayout layout() { * H5I_type_t obj_type * } */ - public static int obj_type(MemorySegment struct) { - return struct.get(obj_type$LAYOUT, obj_type$OFFSET); - } + public static int obj_type(MemorySegment struct) { return struct.get(obj_type$LAYOUT, obj_type$OFFSET); } /** * Setter for field: @@ -84,7 +77,8 @@ public static int obj_type(MemorySegment struct) { * H5I_type_t obj_type * } */ - public static void obj_type(MemorySegment struct, int fieldValue) { + public static void obj_type(MemorySegment struct, int fieldValue) + { struct.set(obj_type$LAYOUT, obj_type$OFFSET, fieldValue); } @@ -96,9 +90,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5VL_loc_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 4; @@ -108,9 +100,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5VL_loc_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -118,9 +108,7 @@ public static void obj_type(MemorySegment struct, int fieldValue) { * H5VL_loc_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -128,7 +116,8 @@ public static int type(MemorySegment struct) { * H5VL_loc_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -143,24 +132,25 @@ public static void type(MemorySegment struct, int fieldValue) { */ public static class loc_data { - loc_data() { + loc_data() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_loc_by_token.layout().withName("loc_by_token"), - H5VL_loc_by_name.layout().withName("loc_by_name"), - H5VL_loc_by_idx.layout().withName("loc_by_idx") - ).withName("$anon$86:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_loc_by_token.layout().withName("loc_by_token"), + H5VL_loc_by_name.layout().withName("loc_by_name"), + H5VL_loc_by_idx.layout().withName("loc_by_idx")) + .withName("$anon$86:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_by_token$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_by_token")); + private static final GroupLayout loc_by_token$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_by_token")); /** * Layout for field: @@ -168,9 +158,7 @@ public static final GroupLayout layout() { * H5VL_loc_by_token_t loc_by_token * } */ - public static final GroupLayout loc_by_token$layout() { - return loc_by_token$LAYOUT; - } + public static final GroupLayout loc_by_token$layout() { return loc_by_token$LAYOUT; } private static final long loc_by_token$OFFSET = 0; @@ -180,9 +168,7 @@ public static final GroupLayout layout() { * H5VL_loc_by_token_t loc_by_token * } */ - public static final long loc_by_token$offset() { - return loc_by_token$OFFSET; - } + public static final long loc_by_token$offset() { return loc_by_token$OFFSET; } /** * Getter for field: @@ -190,7 +176,8 @@ public static final GroupLayout layout() { * H5VL_loc_by_token_t loc_by_token * } */ - public static MemorySegment loc_by_token(MemorySegment union) { + public static MemorySegment loc_by_token(MemorySegment union) + { return union.asSlice(loc_by_token$OFFSET, loc_by_token$LAYOUT.byteSize()); } @@ -200,11 +187,13 @@ public static MemorySegment loc_by_token(MemorySegment union) { * H5VL_loc_by_token_t loc_by_token * } */ - public static void loc_by_token(MemorySegment union, MemorySegment fieldValue) { + public static void loc_by_token(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, loc_by_token$OFFSET, loc_by_token$LAYOUT.byteSize()); } - private static final GroupLayout loc_by_name$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_by_name")); + private static final GroupLayout loc_by_name$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_by_name")); /** * Layout for field: @@ -212,9 +201,7 @@ public static void loc_by_token(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_name_t loc_by_name * } */ - public static final GroupLayout loc_by_name$layout() { - return loc_by_name$LAYOUT; - } + public static final GroupLayout loc_by_name$layout() { return loc_by_name$LAYOUT; } private static final long loc_by_name$OFFSET = 0; @@ -224,9 +211,7 @@ public static void loc_by_token(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_name_t loc_by_name * } */ - public static final long loc_by_name$offset() { - return loc_by_name$OFFSET; - } + public static final long loc_by_name$offset() { return loc_by_name$OFFSET; } /** * Getter for field: @@ -234,7 +219,8 @@ public static void loc_by_token(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_name_t loc_by_name * } */ - public static MemorySegment loc_by_name(MemorySegment union) { + public static MemorySegment loc_by_name(MemorySegment union) + { return union.asSlice(loc_by_name$OFFSET, loc_by_name$LAYOUT.byteSize()); } @@ -244,11 +230,13 @@ public static MemorySegment loc_by_name(MemorySegment union) { * H5VL_loc_by_name_t loc_by_name * } */ - public static void loc_by_name(MemorySegment union, MemorySegment fieldValue) { + public static void loc_by_name(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, loc_by_name$OFFSET, loc_by_name$LAYOUT.byteSize()); } - private static final GroupLayout loc_by_idx$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_by_idx")); + private static final GroupLayout loc_by_idx$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_by_idx")); /** * Layout for field: @@ -256,9 +244,7 @@ public static void loc_by_name(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_idx_t loc_by_idx * } */ - public static final GroupLayout loc_by_idx$layout() { - return loc_by_idx$LAYOUT; - } + public static final GroupLayout loc_by_idx$layout() { return loc_by_idx$LAYOUT; } private static final long loc_by_idx$OFFSET = 0; @@ -268,9 +254,7 @@ public static void loc_by_name(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_idx_t loc_by_idx * } */ - public static final long loc_by_idx$offset() { - return loc_by_idx$OFFSET; - } + public static final long loc_by_idx$offset() { return loc_by_idx$OFFSET; } /** * Getter for field: @@ -278,7 +262,8 @@ public static void loc_by_name(MemorySegment union, MemorySegment fieldValue) { * H5VL_loc_by_idx_t loc_by_idx * } */ - public static MemorySegment loc_by_idx(MemorySegment union) { + public static MemorySegment loc_by_idx(MemorySegment union) + { return union.asSlice(loc_by_idx$OFFSET, loc_by_idx$LAYOUT.byteSize()); } @@ -288,7 +273,8 @@ public static MemorySegment loc_by_idx(MemorySegment union) { * H5VL_loc_by_idx_t loc_by_idx * } */ - public static void loc_by_idx(MemorySegment union, MemorySegment fieldValue) { + public static void loc_by_idx(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, loc_by_idx$OFFSET, loc_by_idx$LAYOUT.byteSize()); } @@ -296,7 +282,8 @@ public static void loc_by_idx(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -308,7 +295,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -316,7 +304,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -324,7 +313,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -332,7 +323,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -349,9 +342,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } loc_data * } */ - public static final GroupLayout loc_data$layout() { - return loc_data$LAYOUT; - } + public static final GroupLayout loc_data$layout() { return loc_data$LAYOUT; } private static final long loc_data$OFFSET = 8; @@ -365,9 +356,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } loc_data * } */ - public static final long loc_data$offset() { - return loc_data$OFFSET; - } + public static final long loc_data$offset() { return loc_data$OFFSET; } /** * Getter for field: @@ -379,7 +368,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } loc_data * } */ - public static MemorySegment loc_data(MemorySegment struct) { + public static MemorySegment loc_data(MemorySegment struct) + { return struct.asSlice(loc_data$OFFSET, loc_data$LAYOUT.byteSize()); } @@ -393,7 +383,8 @@ public static MemorySegment loc_data(MemorySegment struct) { * } loc_data * } */ - public static void loc_data(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_data(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_data$OFFSET, loc_data$LAYOUT.byteSize()); } @@ -401,7 +392,8 @@ public static void loc_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -413,15 +405,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -429,7 +420,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -437,8 +429,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_map_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_map_args_t.java index 7c753629250..a97b272c8ee 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_map_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_map_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_map_args_t { @@ -90,26 +90,26 @@ */ public class H5VL_map_args_t { - H5VL_map_args_t() { + H5VL_map_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_map_args_t.create.layout().withName("create"), - H5VL_map_args_t.open.layout().withName("open"), - H5VL_map_args_t.get_val.layout().withName("get_val"), - H5VL_map_args_t.exists.layout().withName("exists"), - H5VL_map_args_t.put.layout().withName("put"), - H5VL_map_args_t.get.layout().withName("get"), - H5VL_map_args_t.specific.layout().withName("specific") - ).withName("H5VL_map_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_map_args_t.create.layout().withName("create"), + H5VL_map_args_t.open.layout().withName("open"), + H5VL_map_args_t.get_val.layout().withName("get_val"), + H5VL_map_args_t.exists.layout().withName("exists"), + H5VL_map_args_t.put.layout().withName("put"), + H5VL_map_args_t.get.layout().withName("get"), + H5VL_map_args_t.specific.layout().withName("specific")) + .withName("H5VL_map_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -127,29 +127,27 @@ public static final GroupLayout layout() { */ public static class create { - create() { + create() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_LONG.withName("lcpl_id"), - hdf5_h.C_LONG.withName("key_type_id"), - hdf5_h.C_LONG.withName("val_type_id"), - hdf5_h.C_LONG.withName("mcpl_id"), - hdf5_h.C_LONG.withName("mapl_id"), - hdf5_h.C_POINTER.withName("map") - ).withName("$anon$81:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_LONG.withName("lcpl_id"), + hdf5_h.C_LONG.withName("key_type_id"), hdf5_h.C_LONG.withName("val_type_id"), + hdf5_h.C_LONG.withName("mcpl_id"), hdf5_h.C_LONG.withName("mapl_id"), + hdf5_h.C_POINTER.withName("map")) + .withName("$anon$81:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -157,9 +155,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -169,9 +165,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -179,7 +173,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -189,7 +184,8 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -201,9 +197,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 40; @@ -213,9 +207,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -223,7 +215,8 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -233,7 +226,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -245,9 +239,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lcpl_id * } */ - public static final OfLong lcpl_id$layout() { - return lcpl_id$LAYOUT; - } + public static final OfLong lcpl_id$layout() { return lcpl_id$LAYOUT; } private static final long lcpl_id$OFFSET = 48; @@ -257,9 +249,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lcpl_id * } */ - public static final long lcpl_id$offset() { - return lcpl_id$OFFSET; - } + public static final long lcpl_id$offset() { return lcpl_id$OFFSET; } /** * Getter for field: @@ -267,7 +257,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t lcpl_id * } */ - public static long lcpl_id(MemorySegment struct) { + public static long lcpl_id(MemorySegment struct) + { return struct.get(lcpl_id$LAYOUT, lcpl_id$OFFSET); } @@ -277,7 +268,8 @@ public static long lcpl_id(MemorySegment struct) { * hid_t lcpl_id * } */ - public static void lcpl_id(MemorySegment struct, long fieldValue) { + public static void lcpl_id(MemorySegment struct, long fieldValue) + { struct.set(lcpl_id$LAYOUT, lcpl_id$OFFSET, fieldValue); } @@ -289,9 +281,7 @@ public static void lcpl_id(MemorySegment struct, long fieldValue) { * hid_t key_type_id * } */ - public static final OfLong key_type_id$layout() { - return key_type_id$LAYOUT; - } + public static final OfLong key_type_id$layout() { return key_type_id$LAYOUT; } private static final long key_type_id$OFFSET = 56; @@ -301,9 +291,7 @@ public static void lcpl_id(MemorySegment struct, long fieldValue) { * hid_t key_type_id * } */ - public static final long key_type_id$offset() { - return key_type_id$OFFSET; - } + public static final long key_type_id$offset() { return key_type_id$OFFSET; } /** * Getter for field: @@ -311,7 +299,8 @@ public static void lcpl_id(MemorySegment struct, long fieldValue) { * hid_t key_type_id * } */ - public static long key_type_id(MemorySegment struct) { + public static long key_type_id(MemorySegment struct) + { return struct.get(key_type_id$LAYOUT, key_type_id$OFFSET); } @@ -321,7 +310,8 @@ public static long key_type_id(MemorySegment struct) { * hid_t key_type_id * } */ - public static void key_type_id(MemorySegment struct, long fieldValue) { + public static void key_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_type_id$LAYOUT, key_type_id$OFFSET, fieldValue); } @@ -333,9 +323,7 @@ public static void key_type_id(MemorySegment struct, long fieldValue) { * hid_t val_type_id * } */ - public static final OfLong val_type_id$layout() { - return val_type_id$LAYOUT; - } + public static final OfLong val_type_id$layout() { return val_type_id$LAYOUT; } private static final long val_type_id$OFFSET = 64; @@ -345,9 +333,7 @@ public static void key_type_id(MemorySegment struct, long fieldValue) { * hid_t val_type_id * } */ - public static final long val_type_id$offset() { - return val_type_id$OFFSET; - } + public static final long val_type_id$offset() { return val_type_id$OFFSET; } /** * Getter for field: @@ -355,7 +341,8 @@ public static void key_type_id(MemorySegment struct, long fieldValue) { * hid_t val_type_id * } */ - public static long val_type_id(MemorySegment struct) { + public static long val_type_id(MemorySegment struct) + { return struct.get(val_type_id$LAYOUT, val_type_id$OFFSET); } @@ -365,7 +352,8 @@ public static long val_type_id(MemorySegment struct) { * hid_t val_type_id * } */ - public static void val_type_id(MemorySegment struct, long fieldValue) { + public static void val_type_id(MemorySegment struct, long fieldValue) + { struct.set(val_type_id$LAYOUT, val_type_id$OFFSET, fieldValue); } @@ -377,9 +365,7 @@ public static void val_type_id(MemorySegment struct, long fieldValue) { * hid_t mcpl_id * } */ - public static final OfLong mcpl_id$layout() { - return mcpl_id$LAYOUT; - } + public static final OfLong mcpl_id$layout() { return mcpl_id$LAYOUT; } private static final long mcpl_id$OFFSET = 72; @@ -389,9 +375,7 @@ public static void val_type_id(MemorySegment struct, long fieldValue) { * hid_t mcpl_id * } */ - public static final long mcpl_id$offset() { - return mcpl_id$OFFSET; - } + public static final long mcpl_id$offset() { return mcpl_id$OFFSET; } /** * Getter for field: @@ -399,7 +383,8 @@ public static void val_type_id(MemorySegment struct, long fieldValue) { * hid_t mcpl_id * } */ - public static long mcpl_id(MemorySegment struct) { + public static long mcpl_id(MemorySegment struct) + { return struct.get(mcpl_id$LAYOUT, mcpl_id$OFFSET); } @@ -409,7 +394,8 @@ public static long mcpl_id(MemorySegment struct) { * hid_t mcpl_id * } */ - public static void mcpl_id(MemorySegment struct, long fieldValue) { + public static void mcpl_id(MemorySegment struct, long fieldValue) + { struct.set(mcpl_id$LAYOUT, mcpl_id$OFFSET, fieldValue); } @@ -421,9 +407,7 @@ public static void mcpl_id(MemorySegment struct, long fieldValue) { * hid_t mapl_id * } */ - public static final OfLong mapl_id$layout() { - return mapl_id$LAYOUT; - } + public static final OfLong mapl_id$layout() { return mapl_id$LAYOUT; } private static final long mapl_id$OFFSET = 80; @@ -433,9 +417,7 @@ public static void mcpl_id(MemorySegment struct, long fieldValue) { * hid_t mapl_id * } */ - public static final long mapl_id$offset() { - return mapl_id$OFFSET; - } + public static final long mapl_id$offset() { return mapl_id$OFFSET; } /** * Getter for field: @@ -443,7 +425,8 @@ public static void mcpl_id(MemorySegment struct, long fieldValue) { * hid_t mapl_id * } */ - public static long mapl_id(MemorySegment struct) { + public static long mapl_id(MemorySegment struct) + { return struct.get(mapl_id$LAYOUT, mapl_id$OFFSET); } @@ -453,7 +436,8 @@ public static long mapl_id(MemorySegment struct) { * hid_t mapl_id * } */ - public static void mapl_id(MemorySegment struct, long fieldValue) { + public static void mapl_id(MemorySegment struct, long fieldValue) + { struct.set(mapl_id$LAYOUT, mapl_id$OFFSET, fieldValue); } @@ -465,9 +449,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static final AddressLayout map$layout() { - return map$LAYOUT; - } + public static final AddressLayout map$layout() { return map$LAYOUT; } private static final long map$OFFSET = 88; @@ -477,9 +459,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static final long map$offset() { - return map$OFFSET; - } + public static final long map$offset() { return map$OFFSET; } /** * Getter for field: @@ -487,9 +467,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static MemorySegment map(MemorySegment struct) { - return struct.get(map$LAYOUT, map$OFFSET); - } + public static MemorySegment map(MemorySegment struct) { return struct.get(map$LAYOUT, map$OFFSET); } /** * Setter for field: @@ -497,7 +475,8 @@ public static MemorySegment map(MemorySegment struct) { * void *map * } */ - public static void map(MemorySegment struct, MemorySegment fieldValue) { + public static void map(MemorySegment struct, MemorySegment fieldValue) + { struct.set(map$LAYOUT, map$OFFSET, fieldValue); } @@ -505,7 +484,8 @@ public static void map(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -517,7 +497,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -525,7 +506,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -533,7 +515,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -541,7 +525,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -563,9 +549,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } create * } */ - public static final GroupLayout create$layout() { - return create$LAYOUT; - } + public static final GroupLayout create$layout() { return create$LAYOUT; } private static final long create$OFFSET = 0; @@ -584,9 +568,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } create * } */ - public static final long create$offset() { - return create$OFFSET; - } + public static final long create$offset() { return create$OFFSET; } /** * Getter for field: @@ -603,7 +585,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } create * } */ - public static MemorySegment create(MemorySegment union) { + public static MemorySegment create(MemorySegment union) + { return union.asSlice(create$OFFSET, create$LAYOUT.byteSize()); } @@ -622,7 +605,8 @@ public static MemorySegment create(MemorySegment union) { * } create * } */ - public static void create(MemorySegment union, MemorySegment fieldValue) { + public static void create(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, create$OFFSET, create$LAYOUT.byteSize()); } @@ -638,25 +622,25 @@ public static void create(MemorySegment union, MemorySegment fieldValue) { */ public static class open { - open() { + open() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_LONG.withName("mapl_id"), - hdf5_h.C_POINTER.withName("map") - ).withName("$anon$93:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_LONG.withName("mapl_id"), + hdf5_h.C_POINTER.withName("map")) + .withName("$anon$93:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -664,9 +648,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -676,9 +658,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -686,7 +666,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -696,7 +677,8 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -708,9 +690,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 40; @@ -720,9 +700,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -730,7 +708,8 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { + public static MemorySegment name(MemorySegment struct) + { return struct.get(name$LAYOUT, name$OFFSET); } @@ -740,7 +719,8 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } @@ -752,9 +732,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t mapl_id * } */ - public static final OfLong mapl_id$layout() { - return mapl_id$LAYOUT; - } + public static final OfLong mapl_id$layout() { return mapl_id$LAYOUT; } private static final long mapl_id$OFFSET = 48; @@ -764,9 +742,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t mapl_id * } */ - public static final long mapl_id$offset() { - return mapl_id$OFFSET; - } + public static final long mapl_id$offset() { return mapl_id$OFFSET; } /** * Getter for field: @@ -774,7 +750,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * hid_t mapl_id * } */ - public static long mapl_id(MemorySegment struct) { + public static long mapl_id(MemorySegment struct) + { return struct.get(mapl_id$LAYOUT, mapl_id$OFFSET); } @@ -784,7 +761,8 @@ public static long mapl_id(MemorySegment struct) { * hid_t mapl_id * } */ - public static void mapl_id(MemorySegment struct, long fieldValue) { + public static void mapl_id(MemorySegment struct, long fieldValue) + { struct.set(mapl_id$LAYOUT, mapl_id$OFFSET, fieldValue); } @@ -796,9 +774,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static final AddressLayout map$layout() { - return map$LAYOUT; - } + public static final AddressLayout map$layout() { return map$LAYOUT; } private static final long map$OFFSET = 56; @@ -808,9 +784,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static final long map$offset() { - return map$OFFSET; - } + public static final long map$offset() { return map$OFFSET; } /** * Getter for field: @@ -818,9 +792,7 @@ public static void mapl_id(MemorySegment struct, long fieldValue) { * void *map * } */ - public static MemorySegment map(MemorySegment struct) { - return struct.get(map$LAYOUT, map$OFFSET); - } + public static MemorySegment map(MemorySegment struct) { return struct.get(map$LAYOUT, map$OFFSET); } /** * Setter for field: @@ -828,7 +800,8 @@ public static MemorySegment map(MemorySegment struct) { * void *map * } */ - public static void map(MemorySegment struct, MemorySegment fieldValue) { + public static void map(MemorySegment struct, MemorySegment fieldValue) + { struct.set(map$LAYOUT, map$OFFSET, fieldValue); } @@ -836,7 +809,8 @@ public static void map(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -848,7 +822,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -856,7 +831,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -864,7 +840,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -872,7 +850,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -890,9 +870,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } open * } */ - public static final GroupLayout open$layout() { - return open$LAYOUT; - } + public static final GroupLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 0; @@ -907,9 +885,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } open * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -922,7 +898,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } open * } */ - public static MemorySegment open(MemorySegment union) { + public static MemorySegment open(MemorySegment union) + { return union.asSlice(open$OFFSET, open$LAYOUT.byteSize()); } @@ -937,7 +914,8 @@ public static MemorySegment open(MemorySegment union) { * } open * } */ - public static void open(MemorySegment union, MemorySegment fieldValue) { + public static void open(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, open$OFFSET, open$LAYOUT.byteSize()); } @@ -953,25 +931,24 @@ public static void open(MemorySegment union, MemorySegment fieldValue) { */ public static class get_val { - get_val() { + get_val() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("key_mem_type_id"), - hdf5_h.C_POINTER.withName("key"), - hdf5_h.C_LONG.withName("value_mem_type_id"), - hdf5_h.C_POINTER.withName("value") - ).withName("$anon$101:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("key_mem_type_id"), hdf5_h.C_POINTER.withName("key"), + hdf5_h.C_LONG.withName("value_mem_type_id"), hdf5_h.C_POINTER.withName("value")) + .withName("$anon$101:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong key_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); + private static final OfLong key_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); /** * Layout for field: @@ -979,9 +956,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final OfLong key_mem_type_id$layout() { - return key_mem_type_id$LAYOUT; - } + public static final OfLong key_mem_type_id$layout() { return key_mem_type_id$LAYOUT; } private static final long key_mem_type_id$OFFSET = 0; @@ -991,9 +966,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final long key_mem_type_id$offset() { - return key_mem_type_id$OFFSET; - } + public static final long key_mem_type_id$offset() { return key_mem_type_id$OFFSET; } /** * Getter for field: @@ -1001,7 +974,8 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static long key_mem_type_id(MemorySegment struct) { + public static long key_mem_type_id(MemorySegment struct) + { return struct.get(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET); } @@ -1011,7 +985,8 @@ public static long key_mem_type_id(MemorySegment struct) { * hid_t key_mem_type_id * } */ - public static void key_mem_type_id(MemorySegment struct, long fieldValue) { + public static void key_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET, fieldValue); } @@ -1023,9 +998,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final AddressLayout key$layout() { - return key$LAYOUT; - } + public static final AddressLayout key$layout() { return key$LAYOUT; } private static final long key$OFFSET = 8; @@ -1035,9 +1008,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final long key$offset() { - return key$OFFSET; - } + public static final long key$offset() { return key$OFFSET; } /** * Getter for field: @@ -1045,9 +1016,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static MemorySegment key(MemorySegment struct) { - return struct.get(key$LAYOUT, key$OFFSET); - } + public static MemorySegment key(MemorySegment struct) { return struct.get(key$LAYOUT, key$OFFSET); } /** * Setter for field: @@ -1055,11 +1024,13 @@ public static MemorySegment key(MemorySegment struct) { * const void *key * } */ - public static void key(MemorySegment struct, MemorySegment fieldValue) { + public static void key(MemorySegment struct, MemorySegment fieldValue) + { struct.set(key$LAYOUT, key$OFFSET, fieldValue); } - private static final OfLong value_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("value_mem_type_id")); + private static final OfLong value_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("value_mem_type_id")); /** * Layout for field: @@ -1067,9 +1038,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static final OfLong value_mem_type_id$layout() { - return value_mem_type_id$LAYOUT; - } + public static final OfLong value_mem_type_id$layout() { return value_mem_type_id$LAYOUT; } private static final long value_mem_type_id$OFFSET = 16; @@ -1079,9 +1048,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static final long value_mem_type_id$offset() { - return value_mem_type_id$OFFSET; - } + public static final long value_mem_type_id$offset() { return value_mem_type_id$OFFSET; } /** * Getter for field: @@ -1089,7 +1056,8 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static long value_mem_type_id(MemorySegment struct) { + public static long value_mem_type_id(MemorySegment struct) + { return struct.get(value_mem_type_id$LAYOUT, value_mem_type_id$OFFSET); } @@ -1099,11 +1067,13 @@ public static long value_mem_type_id(MemorySegment struct) { * hid_t value_mem_type_id * } */ - public static void value_mem_type_id(MemorySegment struct, long fieldValue) { + public static void value_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(value_mem_type_id$LAYOUT, value_mem_type_id$OFFSET, fieldValue); } - private static final AddressLayout value$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value")); + private static final AddressLayout value$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("value")); /** * Layout for field: @@ -1111,9 +1081,7 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * void *value * } */ - public static final AddressLayout value$layout() { - return value$LAYOUT; - } + public static final AddressLayout value$layout() { return value$LAYOUT; } private static final long value$OFFSET = 24; @@ -1123,9 +1091,7 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * void *value * } */ - public static final long value$offset() { - return value$OFFSET; - } + public static final long value$offset() { return value$OFFSET; } /** * Getter for field: @@ -1133,7 +1099,8 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * void *value * } */ - public static MemorySegment value(MemorySegment struct) { + public static MemorySegment value(MemorySegment struct) + { return struct.get(value$LAYOUT, value$OFFSET); } @@ -1143,7 +1110,8 @@ public static MemorySegment value(MemorySegment struct) { * void *value * } */ - public static void value(MemorySegment struct, MemorySegment fieldValue) { + public static void value(MemorySegment struct, MemorySegment fieldValue) + { struct.set(value$LAYOUT, value$OFFSET, fieldValue); } @@ -1151,7 +1119,8 @@ public static void value(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1163,7 +1132,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1171,7 +1141,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1179,7 +1150,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1187,7 +1160,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1205,9 +1180,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static final GroupLayout get_val$layout() { - return get_val$LAYOUT; - } + public static final GroupLayout get_val$layout() { return get_val$LAYOUT; } private static final long get_val$OFFSET = 0; @@ -1222,9 +1195,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static final long get_val$offset() { - return get_val$OFFSET; - } + public static final long get_val$offset() { return get_val$OFFSET; } /** * Getter for field: @@ -1237,7 +1208,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val * } */ - public static MemorySegment get_val(MemorySegment union) { + public static MemorySegment get_val(MemorySegment union) + { return union.asSlice(get_val$OFFSET, get_val$LAYOUT.byteSize()); } @@ -1252,7 +1224,8 @@ public static MemorySegment get_val(MemorySegment union) { * } get_val * } */ - public static void get_val(MemorySegment union, MemorySegment fieldValue) { + public static void get_val(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_val$OFFSET, get_val$LAYOUT.byteSize()); } @@ -1267,25 +1240,24 @@ public static void get_val(MemorySegment union, MemorySegment fieldValue) { */ public static class exists { - exists() { + exists() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("key_mem_type_id"), - hdf5_h.C_POINTER.withName("key"), - hdf5_h.C_BOOL.withName("exists"), - MemoryLayout.paddingLayout(7) - ).withName("$anon$109:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("key_mem_type_id"), hdf5_h.C_POINTER.withName("key"), + hdf5_h.C_BOOL.withName("exists"), MemoryLayout.paddingLayout(7)) + .withName("$anon$109:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong key_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); + private static final OfLong key_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); /** * Layout for field: @@ -1293,9 +1265,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final OfLong key_mem_type_id$layout() { - return key_mem_type_id$LAYOUT; - } + public static final OfLong key_mem_type_id$layout() { return key_mem_type_id$LAYOUT; } private static final long key_mem_type_id$OFFSET = 0; @@ -1305,9 +1275,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final long key_mem_type_id$offset() { - return key_mem_type_id$OFFSET; - } + public static final long key_mem_type_id$offset() { return key_mem_type_id$OFFSET; } /** * Getter for field: @@ -1315,7 +1283,8 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static long key_mem_type_id(MemorySegment struct) { + public static long key_mem_type_id(MemorySegment struct) + { return struct.get(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET); } @@ -1325,7 +1294,8 @@ public static long key_mem_type_id(MemorySegment struct) { * hid_t key_mem_type_id * } */ - public static void key_mem_type_id(MemorySegment struct, long fieldValue) { + public static void key_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET, fieldValue); } @@ -1337,9 +1307,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final AddressLayout key$layout() { - return key$LAYOUT; - } + public static final AddressLayout key$layout() { return key$LAYOUT; } private static final long key$OFFSET = 8; @@ -1349,9 +1317,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final long key$offset() { - return key$OFFSET; - } + public static final long key$offset() { return key$OFFSET; } /** * Getter for field: @@ -1359,9 +1325,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static MemorySegment key(MemorySegment struct) { - return struct.get(key$LAYOUT, key$OFFSET); - } + public static MemorySegment key(MemorySegment struct) { return struct.get(key$LAYOUT, key$OFFSET); } /** * Setter for field: @@ -1369,7 +1333,8 @@ public static MemorySegment key(MemorySegment struct) { * const void *key * } */ - public static void key(MemorySegment struct, MemorySegment fieldValue) { + public static void key(MemorySegment struct, MemorySegment fieldValue) + { struct.set(key$LAYOUT, key$OFFSET, fieldValue); } @@ -1381,9 +1346,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hbool_t exists * } */ - public static final OfBoolean exists$layout() { - return exists$LAYOUT; - } + public static final OfBoolean exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 16; @@ -1393,9 +1356,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hbool_t exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -1403,7 +1364,8 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hbool_t exists * } */ - public static boolean exists(MemorySegment struct) { + public static boolean exists(MemorySegment struct) + { return struct.get(exists$LAYOUT, exists$OFFSET); } @@ -1413,7 +1375,8 @@ public static boolean exists(MemorySegment struct) { * hbool_t exists * } */ - public static void exists(MemorySegment struct, boolean fieldValue) { + public static void exists(MemorySegment struct, boolean fieldValue) + { struct.set(exists$LAYOUT, exists$OFFSET, fieldValue); } @@ -1421,7 +1384,8 @@ public static void exists(MemorySegment struct, boolean 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1433,7 +1397,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1441,7 +1406,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1449,7 +1415,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1457,7 +1425,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1474,9 +1444,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final GroupLayout exists$layout() { - return exists$LAYOUT; - } + public static final GroupLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -1490,9 +1458,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -1504,7 +1470,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static MemorySegment exists(MemorySegment union) { + public static MemorySegment exists(MemorySegment union) + { return union.asSlice(exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -1518,7 +1485,8 @@ public static MemorySegment exists(MemorySegment union) { * } exists * } */ - public static void exists(MemorySegment union, MemorySegment fieldValue) { + public static void exists(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -1534,25 +1502,24 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { */ public static class put { - put() { + put() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("key_mem_type_id"), - hdf5_h.C_POINTER.withName("key"), - hdf5_h.C_LONG.withName("value_mem_type_id"), - hdf5_h.C_POINTER.withName("value") - ).withName("$anon$116:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("key_mem_type_id"), hdf5_h.C_POINTER.withName("key"), + hdf5_h.C_LONG.withName("value_mem_type_id"), hdf5_h.C_POINTER.withName("value")) + .withName("$anon$116:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong key_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); + private static final OfLong key_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); /** * Layout for field: @@ -1560,9 +1527,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final OfLong key_mem_type_id$layout() { - return key_mem_type_id$LAYOUT; - } + public static final OfLong key_mem_type_id$layout() { return key_mem_type_id$LAYOUT; } private static final long key_mem_type_id$OFFSET = 0; @@ -1572,9 +1537,7 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static final long key_mem_type_id$offset() { - return key_mem_type_id$OFFSET; - } + public static final long key_mem_type_id$offset() { return key_mem_type_id$OFFSET; } /** * Getter for field: @@ -1582,7 +1545,8 @@ public static final GroupLayout layout() { * hid_t key_mem_type_id * } */ - public static long key_mem_type_id(MemorySegment struct) { + public static long key_mem_type_id(MemorySegment struct) + { return struct.get(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET); } @@ -1592,7 +1556,8 @@ public static long key_mem_type_id(MemorySegment struct) { * hid_t key_mem_type_id * } */ - public static void key_mem_type_id(MemorySegment struct, long fieldValue) { + public static void key_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET, fieldValue); } @@ -1604,9 +1569,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final AddressLayout key$layout() { - return key$LAYOUT; - } + public static final AddressLayout key$layout() { return key$LAYOUT; } private static final long key$OFFSET = 8; @@ -1616,9 +1579,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final long key$offset() { - return key$OFFSET; - } + public static final long key$offset() { return key$OFFSET; } /** * Getter for field: @@ -1626,9 +1587,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static MemorySegment key(MemorySegment struct) { - return struct.get(key$LAYOUT, key$OFFSET); - } + public static MemorySegment key(MemorySegment struct) { return struct.get(key$LAYOUT, key$OFFSET); } /** * Setter for field: @@ -1636,11 +1595,13 @@ public static MemorySegment key(MemorySegment struct) { * const void *key * } */ - public static void key(MemorySegment struct, MemorySegment fieldValue) { + public static void key(MemorySegment struct, MemorySegment fieldValue) + { struct.set(key$LAYOUT, key$OFFSET, fieldValue); } - private static final OfLong value_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("value_mem_type_id")); + private static final OfLong value_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("value_mem_type_id")); /** * Layout for field: @@ -1648,9 +1609,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static final OfLong value_mem_type_id$layout() { - return value_mem_type_id$LAYOUT; - } + public static final OfLong value_mem_type_id$layout() { return value_mem_type_id$LAYOUT; } private static final long value_mem_type_id$OFFSET = 16; @@ -1660,9 +1619,7 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static final long value_mem_type_id$offset() { - return value_mem_type_id$OFFSET; - } + public static final long value_mem_type_id$offset() { return value_mem_type_id$OFFSET; } /** * Getter for field: @@ -1670,7 +1627,8 @@ public static void key(MemorySegment struct, MemorySegment fieldValue) { * hid_t value_mem_type_id * } */ - public static long value_mem_type_id(MemorySegment struct) { + public static long value_mem_type_id(MemorySegment struct) + { return struct.get(value_mem_type_id$LAYOUT, value_mem_type_id$OFFSET); } @@ -1680,11 +1638,13 @@ public static long value_mem_type_id(MemorySegment struct) { * hid_t value_mem_type_id * } */ - public static void value_mem_type_id(MemorySegment struct, long fieldValue) { + public static void value_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(value_mem_type_id$LAYOUT, value_mem_type_id$OFFSET, fieldValue); } - private static final AddressLayout value$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value")); + private static final AddressLayout value$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("value")); /** * Layout for field: @@ -1692,9 +1652,7 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * const void *value * } */ - public static final AddressLayout value$layout() { - return value$LAYOUT; - } + public static final AddressLayout value$layout() { return value$LAYOUT; } private static final long value$OFFSET = 24; @@ -1704,9 +1662,7 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * const void *value * } */ - public static final long value$offset() { - return value$OFFSET; - } + public static final long value$offset() { return value$OFFSET; } /** * Getter for field: @@ -1714,7 +1670,8 @@ public static void value_mem_type_id(MemorySegment struct, long fieldValue) { * const void *value * } */ - public static MemorySegment value(MemorySegment struct) { + public static MemorySegment value(MemorySegment struct) + { return struct.get(value$LAYOUT, value$OFFSET); } @@ -1724,7 +1681,8 @@ public static MemorySegment value(MemorySegment struct) { * const void *value * } */ - public static void value(MemorySegment struct, MemorySegment fieldValue) { + public static void value(MemorySegment struct, MemorySegment fieldValue) + { struct.set(value$LAYOUT, value$OFFSET, fieldValue); } @@ -1732,7 +1690,8 @@ public static void value(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1744,7 +1703,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1752,7 +1712,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1760,7 +1721,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1768,7 +1731,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1786,9 +1751,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } put * } */ - public static final GroupLayout put$layout() { - return put$LAYOUT; - } + public static final GroupLayout put$layout() { return put$LAYOUT; } private static final long put$OFFSET = 0; @@ -1803,9 +1766,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } put * } */ - public static final long put$offset() { - return put$OFFSET; - } + public static final long put$offset() { return put$OFFSET; } /** * Getter for field: @@ -1818,7 +1779,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } put * } */ - public static MemorySegment put(MemorySegment union) { + public static MemorySegment put(MemorySegment union) + { return union.asSlice(put$OFFSET, put$LAYOUT.byteSize()); } @@ -1833,7 +1795,8 @@ public static MemorySegment put(MemorySegment union) { * } put * } */ - public static void put(MemorySegment union, MemorySegment fieldValue) { + public static void put(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, put$OFFSET, put$LAYOUT.byteSize()); } @@ -1863,22 +1826,21 @@ public static void put(MemorySegment union, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("get_type"), - MemoryLayout.paddingLayout(4), - H5VL_map_args_t.get.args.layout().withName("args") - ).withName("$anon$124:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("get_type"), MemoryLayout.paddingLayout(4), + H5VL_map_args_t.get.args.layout().withName("args")) + .withName("$anon$124:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt get_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("get_type")); @@ -1888,9 +1850,7 @@ public static final GroupLayout layout() { * H5VL_map_get_t get_type * } */ - public static final OfInt get_type$layout() { - return get_type$LAYOUT; - } + public static final OfInt get_type$layout() { return get_type$LAYOUT; } private static final long get_type$OFFSET = 0; @@ -1900,9 +1860,7 @@ public static final GroupLayout layout() { * H5VL_map_get_t get_type * } */ - public static final long get_type$offset() { - return get_type$OFFSET; - } + public static final long get_type$offset() { return get_type$OFFSET; } /** * Getter for field: @@ -1910,7 +1868,8 @@ public static final GroupLayout layout() { * H5VL_map_get_t get_type * } */ - public static int get_type(MemorySegment struct) { + public static int get_type(MemorySegment struct) + { return struct.get(get_type$LAYOUT, get_type$OFFSET); } @@ -1920,7 +1879,8 @@ public static int get_type(MemorySegment struct) { * H5VL_map_get_t get_type * } */ - public static void get_type(MemorySegment struct, int fieldValue) { + public static void get_type(MemorySegment struct, int fieldValue) + { struct.set(get_type$LAYOUT, get_type$OFFSET, fieldValue); } @@ -1947,24 +1907,24 @@ public static void get_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_map_args_t.get.args.get_mapl.layout().withName("get_mapl"), - H5VL_map_args_t.get.args.get_mcpl.layout().withName("get_mcpl"), - H5VL_map_args_t.get.args.get_key_type.layout().withName("get_key_type"), - H5VL_map_args_t.get.args.get_val_type.layout().withName("get_val_type"), - H5VL_map_args_t.get.args.get_count.layout().withName("get_count") - ).withName("$anon$128:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_map_args_t.get.args.get_mapl.layout().withName("get_mapl"), + H5VL_map_args_t.get.args.get_mcpl.layout().withName("get_mcpl"), + H5VL_map_args_t.get.args.get_key_type.layout().withName("get_key_type"), + H5VL_map_args_t.get.args.get_val_type.layout().withName("get_val_type"), + H5VL_map_args_t.get.args.get_count.layout().withName("get_count")) + .withName("$anon$128:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -1975,20 +1935,18 @@ public static final GroupLayout layout() { */ public static class get_mapl { - get_mapl() { + get_mapl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("mapl_id") - ).withName("$anon$130:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("mapl_id")).withName("$anon$130:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong mapl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("mapl_id")); @@ -1998,9 +1956,7 @@ public static final GroupLayout layout() { * hid_t mapl_id * } */ - public static final OfLong mapl_id$layout() { - return mapl_id$LAYOUT; - } + public static final OfLong mapl_id$layout() { return mapl_id$LAYOUT; } private static final long mapl_id$OFFSET = 0; @@ -2010,9 +1966,7 @@ public static final GroupLayout layout() { * hid_t mapl_id * } */ - public static final long mapl_id$offset() { - return mapl_id$OFFSET; - } + public static final long mapl_id$offset() { return mapl_id$OFFSET; } /** * Getter for field: @@ -2020,7 +1974,8 @@ public static final GroupLayout layout() { * hid_t mapl_id * } */ - public static long mapl_id(MemorySegment struct) { + public static long mapl_id(MemorySegment struct) + { return struct.get(mapl_id$LAYOUT, mapl_id$OFFSET); } @@ -2030,7 +1985,8 @@ public static long mapl_id(MemorySegment struct) { * hid_t mapl_id * } */ - public static void mapl_id(MemorySegment struct, long fieldValue) { + public static void mapl_id(MemorySegment struct, long fieldValue) + { struct.set(mapl_id$LAYOUT, mapl_id$OFFSET, fieldValue); } @@ -2038,7 +1994,8 @@ public static void mapl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2050,7 +2007,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2058,7 +2016,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2066,7 +2025,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2074,12 +2035,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_mapl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mapl")); + private static final GroupLayout get_mapl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mapl")); /** * Layout for field: @@ -2089,9 +2053,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mapl * } */ - public static final GroupLayout get_mapl$layout() { - return get_mapl$LAYOUT; - } + public static final GroupLayout get_mapl$layout() { return get_mapl$LAYOUT; } private static final long get_mapl$OFFSET = 0; @@ -2103,9 +2065,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mapl * } */ - public static final long get_mapl$offset() { - return get_mapl$OFFSET; - } + public static final long get_mapl$offset() { return get_mapl$OFFSET; } /** * Getter for field: @@ -2115,7 +2075,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mapl * } */ - public static MemorySegment get_mapl(MemorySegment union) { + public static MemorySegment get_mapl(MemorySegment union) + { return union.asSlice(get_mapl$OFFSET, get_mapl$LAYOUT.byteSize()); } @@ -2127,7 +2088,8 @@ public static MemorySegment get_mapl(MemorySegment union) { * } get_mapl * } */ - public static void get_mapl(MemorySegment union, MemorySegment fieldValue) { + public static void get_mapl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_mapl$OFFSET, get_mapl$LAYOUT.byteSize()); } @@ -2140,20 +2102,18 @@ public static void get_mapl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_mcpl { - get_mcpl() { + get_mcpl() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("mcpl_id") - ).withName("$anon$135:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("mcpl_id")).withName("$anon$135:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong mcpl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("mcpl_id")); @@ -2163,9 +2123,7 @@ public static final GroupLayout layout() { * hid_t mcpl_id * } */ - public static final OfLong mcpl_id$layout() { - return mcpl_id$LAYOUT; - } + public static final OfLong mcpl_id$layout() { return mcpl_id$LAYOUT; } private static final long mcpl_id$OFFSET = 0; @@ -2175,9 +2133,7 @@ public static final GroupLayout layout() { * hid_t mcpl_id * } */ - public static final long mcpl_id$offset() { - return mcpl_id$OFFSET; - } + public static final long mcpl_id$offset() { return mcpl_id$OFFSET; } /** * Getter for field: @@ -2185,7 +2141,8 @@ public static final GroupLayout layout() { * hid_t mcpl_id * } */ - public static long mcpl_id(MemorySegment struct) { + public static long mcpl_id(MemorySegment struct) + { return struct.get(mcpl_id$LAYOUT, mcpl_id$OFFSET); } @@ -2195,7 +2152,8 @@ public static long mcpl_id(MemorySegment struct) { * hid_t mcpl_id * } */ - public static void mcpl_id(MemorySegment struct, long fieldValue) { + public static void mcpl_id(MemorySegment struct, long fieldValue) + { struct.set(mcpl_id$LAYOUT, mcpl_id$OFFSET, fieldValue); } @@ -2203,7 +2161,8 @@ public static void mcpl_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2215,7 +2174,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2223,7 +2183,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2231,7 +2192,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2239,12 +2202,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_mcpl$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mcpl")); + private static final GroupLayout get_mcpl$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mcpl")); /** * Layout for field: @@ -2254,9 +2220,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mcpl * } */ - public static final GroupLayout get_mcpl$layout() { - return get_mcpl$LAYOUT; - } + public static final GroupLayout get_mcpl$layout() { return get_mcpl$LAYOUT; } private static final long get_mcpl$OFFSET = 0; @@ -2268,9 +2232,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mcpl * } */ - public static final long get_mcpl$offset() { - return get_mcpl$OFFSET; - } + public static final long get_mcpl$offset() { return get_mcpl$OFFSET; } /** * Getter for field: @@ -2280,7 +2242,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mcpl * } */ - public static MemorySegment get_mcpl(MemorySegment union) { + public static MemorySegment get_mcpl(MemorySegment union) + { return union.asSlice(get_mcpl$OFFSET, get_mcpl$LAYOUT.byteSize()); } @@ -2292,7 +2255,8 @@ public static MemorySegment get_mcpl(MemorySegment union) { * } get_mcpl * } */ - public static void get_mcpl(MemorySegment union, MemorySegment fieldValue) { + public static void get_mcpl(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_mcpl$OFFSET, get_mcpl$LAYOUT.byteSize()); } @@ -2305,20 +2269,18 @@ public static void get_mcpl(MemorySegment union, MemorySegment fieldValue) { */ public static class get_key_type { - get_key_type() { + get_key_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$140:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$140:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -2328,9 +2290,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -2340,9 +2300,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -2350,7 +2308,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -2360,7 +2319,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -2368,7 +2328,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2380,7 +2341,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2388,7 +2350,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2396,7 +2359,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2404,12 +2369,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_key_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_key_type")); + private static final GroupLayout get_key_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_key_type")); /** * Layout for field: @@ -2419,9 +2387,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_key_type * } */ - public static final GroupLayout get_key_type$layout() { - return get_key_type$LAYOUT; - } + public static final GroupLayout get_key_type$layout() { return get_key_type$LAYOUT; } private static final long get_key_type$OFFSET = 0; @@ -2433,9 +2399,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_key_type * } */ - public static final long get_key_type$offset() { - return get_key_type$OFFSET; - } + public static final long get_key_type$offset() { return get_key_type$OFFSET; } /** * Getter for field: @@ -2445,7 +2409,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_key_type * } */ - public static MemorySegment get_key_type(MemorySegment union) { + public static MemorySegment get_key_type(MemorySegment union) + { return union.asSlice(get_key_type$OFFSET, get_key_type$LAYOUT.byteSize()); } @@ -2457,8 +2422,10 @@ public static MemorySegment get_key_type(MemorySegment union) { * } get_key_type * } */ - public static void get_key_type(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_key_type$OFFSET, get_key_type$LAYOUT.byteSize()); + public static void get_key_type(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_key_type$OFFSET, + get_key_type$LAYOUT.byteSize()); } /** @@ -2470,20 +2437,18 @@ public static void get_key_type(MemorySegment union, MemorySegment fieldValue) { */ public static class get_val_type { - get_val_type() { + get_val_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id") - ).withName("$anon$145:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("type_id")).withName("$anon$145:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -2493,9 +2458,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -2505,9 +2468,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -2515,7 +2476,8 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { + public static long type_id(MemorySegment struct) + { return struct.get(type_id$LAYOUT, type_id$OFFSET); } @@ -2525,7 +2487,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -2533,7 +2496,8 @@ public static void type_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2545,7 +2509,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2553,7 +2518,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2561,7 +2527,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2569,12 +2537,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_val_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_val_type")); + private static final GroupLayout get_val_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_val_type")); /** * Layout for field: @@ -2584,9 +2555,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val_type * } */ - public static final GroupLayout get_val_type$layout() { - return get_val_type$LAYOUT; - } + public static final GroupLayout get_val_type$layout() { return get_val_type$LAYOUT; } private static final long get_val_type$OFFSET = 0; @@ -2598,9 +2567,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val_type * } */ - public static final long get_val_type$offset() { - return get_val_type$OFFSET; - } + public static final long get_val_type$offset() { return get_val_type$OFFSET; } /** * Getter for field: @@ -2610,7 +2577,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_val_type * } */ - public static MemorySegment get_val_type(MemorySegment union) { + public static MemorySegment get_val_type(MemorySegment union) + { return union.asSlice(get_val_type$OFFSET, get_val_type$LAYOUT.byteSize()); } @@ -2622,8 +2590,10 @@ public static MemorySegment get_val_type(MemorySegment union) { * } get_val_type * } */ - public static void get_val_type(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_val_type$OFFSET, get_val_type$LAYOUT.byteSize()); + public static void get_val_type(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_val_type$OFFSET, + get_val_type$LAYOUT.byteSize()); } /** @@ -2635,20 +2605,18 @@ public static void get_val_type(MemorySegment union, MemorySegment fieldValue) { */ public static class get_count { - get_count() { + get_count() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("count") - ).withName("$anon$150:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("count")).withName("$anon$150:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong count$LAYOUT = (OfLong)$LAYOUT.select(groupElement("count")); @@ -2658,9 +2626,7 @@ public static final GroupLayout layout() { * hsize_t count * } */ - public static final OfLong count$layout() { - return count$LAYOUT; - } + public static final OfLong count$layout() { return count$LAYOUT; } private static final long count$OFFSET = 0; @@ -2670,9 +2636,7 @@ public static final GroupLayout layout() { * hsize_t count * } */ - public static final long count$offset() { - return count$OFFSET; - } + public static final long count$offset() { return count$OFFSET; } /** * Getter for field: @@ -2680,7 +2644,8 @@ public static final GroupLayout layout() { * hsize_t count * } */ - public static long count(MemorySegment struct) { + public static long count(MemorySegment struct) + { return struct.get(count$LAYOUT, count$OFFSET); } @@ -2690,7 +2655,8 @@ public static long count(MemorySegment struct) { * hsize_t count * } */ - public static void count(MemorySegment struct, long fieldValue) { + public static void count(MemorySegment struct, long fieldValue) + { struct.set(count$LAYOUT, count$OFFSET, fieldValue); } @@ -2698,7 +2664,8 @@ public static void count(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2710,7 +2677,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2718,7 +2686,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2726,7 +2695,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2734,12 +2705,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_count$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_count")); + private static final GroupLayout get_count$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_count")); /** * Layout for field: @@ -2749,9 +2723,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_count * } */ - public static final GroupLayout get_count$layout() { - return get_count$LAYOUT; - } + public static final GroupLayout get_count$layout() { return get_count$LAYOUT; } private static final long get_count$OFFSET = 0; @@ -2763,9 +2735,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_count * } */ - public static final long get_count$offset() { - return get_count$OFFSET; - } + public static final long get_count$offset() { return get_count$OFFSET; } /** * Getter for field: @@ -2775,7 +2745,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_count * } */ - public static MemorySegment get_count(MemorySegment union) { + public static MemorySegment get_count(MemorySegment union) + { return union.asSlice(get_count$OFFSET, get_count$LAYOUT.byteSize()); } @@ -2787,7 +2758,8 @@ public static MemorySegment get_count(MemorySegment union) { * } get_count * } */ - public static void get_count(MemorySegment union, MemorySegment fieldValue) { + public static void get_count(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_count$OFFSET, get_count$LAYOUT.byteSize()); } @@ -2795,7 +2767,8 @@ public static void get_count(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2807,7 +2780,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2815,7 +2789,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2823,7 +2798,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2831,7 +2808,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -2860,9 +2839,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -2888,9 +2865,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -2914,7 +2889,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -2940,7 +2916,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -2948,7 +2925,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2960,7 +2938,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -2968,7 +2947,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2976,7 +2956,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2984,7 +2966,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -3016,9 +3000,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get * } */ - public static final GroupLayout get$layout() { - return get$LAYOUT; - } + public static final GroupLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 0; @@ -3047,9 +3029,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -3076,7 +3056,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get * } */ - public static MemorySegment get(MemorySegment union) { + public static MemorySegment get(MemorySegment union) + { return union.asSlice(get$OFFSET, get$LAYOUT.byteSize()); } @@ -3105,7 +3086,8 @@ public static MemorySegment get(MemorySegment union) { * } get * } */ - public static void get(MemorySegment union, MemorySegment fieldValue) { + public static void get(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get$OFFSET, get$LAYOUT.byteSize()); } @@ -3132,24 +3114,24 @@ public static void get(MemorySegment union, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("specific_type"), - MemoryLayout.paddingLayout(4), - H5VL_map_args_t.specific.args.layout().withName("args") - ).withName("$anon$157:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("specific_type"), MemoryLayout.paddingLayout(4), + H5VL_map_args_t.specific.args.layout().withName("args")) + .withName("$anon$157:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfInt specific_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("specific_type")); + private static final OfInt specific_type$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("specific_type")); /** * Layout for field: @@ -3157,9 +3139,7 @@ public static final GroupLayout layout() { * H5VL_map_specific_t specific_type * } */ - public static final OfInt specific_type$layout() { - return specific_type$LAYOUT; - } + public static final OfInt specific_type$layout() { return specific_type$LAYOUT; } private static final long specific_type$OFFSET = 0; @@ -3169,9 +3149,7 @@ public static final GroupLayout layout() { * H5VL_map_specific_t specific_type * } */ - public static final long specific_type$offset() { - return specific_type$OFFSET; - } + public static final long specific_type$offset() { return specific_type$OFFSET; } /** * Getter for field: @@ -3179,7 +3157,8 @@ public static final GroupLayout layout() { * H5VL_map_specific_t specific_type * } */ - public static int specific_type(MemorySegment struct) { + public static int specific_type(MemorySegment struct) + { return struct.get(specific_type$LAYOUT, specific_type$OFFSET); } @@ -3189,7 +3168,8 @@ public static int specific_type(MemorySegment struct) { * H5VL_map_specific_t specific_type * } */ - public static void specific_type(MemorySegment struct, int fieldValue) { + public static void specific_type(MemorySegment struct, int fieldValue) + { struct.set(specific_type$LAYOUT, specific_type$OFFSET, fieldValue); } @@ -3213,21 +3193,21 @@ public static void specific_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_map_args_t.specific.args.iterate.layout().withName("iterate"), - H5VL_map_args_t.specific.args.del.layout().withName("del") - ).withName("$anon$162:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_map_args_t.specific.args.iterate.layout().withName("iterate"), + H5VL_map_args_t.specific.args.del.layout().withName("del")) + .withName("$anon$162:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -3242,26 +3222,26 @@ public static final GroupLayout layout() { */ public static class iterate { - iterate() { + iterate() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_LONG.withName("idx"), - hdf5_h.C_LONG.withName("key_mem_type_id"), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("$anon$164:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_LONG.withName("idx"), + hdf5_h.C_LONG.withName("key_mem_type_id"), + hdf5_h.C_POINTER.withName("op"), hdf5_h.C_POINTER.withName("op_data")) + .withName("$anon$164:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -3269,9 +3249,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -3281,9 +3259,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -3291,7 +3267,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -3301,8 +3278,10 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, + loc_params$LAYOUT.byteSize()); } private static final OfLong idx$LAYOUT = (OfLong)$LAYOUT.select(groupElement("idx")); @@ -3313,9 +3292,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static final OfLong idx$layout() { - return idx$LAYOUT; - } + public static final OfLong idx$layout() { return idx$LAYOUT; } private static final long idx$OFFSET = 40; @@ -3325,9 +3302,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static final long idx$offset() { - return idx$OFFSET; - } + public static final long idx$offset() { return idx$OFFSET; } /** * Getter for field: @@ -3335,9 +3310,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static long idx(MemorySegment struct) { - return struct.get(idx$LAYOUT, idx$OFFSET); - } + public static long idx(MemorySegment struct) { return struct.get(idx$LAYOUT, idx$OFFSET); } /** * Setter for field: @@ -3345,11 +3318,13 @@ public static long idx(MemorySegment struct) { * hsize_t idx * } */ - public static void idx(MemorySegment struct, long fieldValue) { + public static void idx(MemorySegment struct, long fieldValue) + { struct.set(idx$LAYOUT, idx$OFFSET, fieldValue); } - private static final OfLong key_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); + private static final OfLong key_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); /** * Layout for field: @@ -3357,9 +3332,7 @@ public static void idx(MemorySegment struct, long fieldValue) { * hid_t key_mem_type_id * } */ - public static final OfLong key_mem_type_id$layout() { - return key_mem_type_id$LAYOUT; - } + public static final OfLong key_mem_type_id$layout() { return key_mem_type_id$LAYOUT; } private static final long key_mem_type_id$OFFSET = 48; @@ -3369,9 +3342,7 @@ public static void idx(MemorySegment struct, long fieldValue) { * hid_t key_mem_type_id * } */ - public static final long key_mem_type_id$offset() { - return key_mem_type_id$OFFSET; - } + public static final long key_mem_type_id$offset() { return key_mem_type_id$OFFSET; } /** * Getter for field: @@ -3379,7 +3350,8 @@ public static void idx(MemorySegment struct, long fieldValue) { * hid_t key_mem_type_id * } */ - public static long key_mem_type_id(MemorySegment struct) { + public static long key_mem_type_id(MemorySegment struct) + { return struct.get(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET); } @@ -3389,11 +3361,13 @@ public static long key_mem_type_id(MemorySegment struct) { * hid_t key_mem_type_id * } */ - public static void key_mem_type_id(MemorySegment struct, long fieldValue) { + public static void key_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET, fieldValue); } - private static final AddressLayout op$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op")); + private static final AddressLayout op$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op")); /** * Layout for field: @@ -3401,9 +3375,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * H5M_iterate_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 56; @@ -3413,9 +3385,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * H5M_iterate_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -3423,7 +3393,8 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * H5M_iterate_t op * } */ - public static MemorySegment op(MemorySegment struct) { + public static MemorySegment op(MemorySegment struct) + { return struct.get(op$LAYOUT, op$OFFSET); } @@ -3433,11 +3404,13 @@ public static MemorySegment op(MemorySegment struct) { * H5M_iterate_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -3445,9 +3418,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 64; @@ -3457,9 +3428,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -3467,7 +3436,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -3477,7 +3447,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -3485,7 +3456,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -3497,7 +3469,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -3505,7 +3478,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -3513,7 +3487,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -3521,12 +3497,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout iterate$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("iterate")); + private static final GroupLayout iterate$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("iterate")); /** * Layout for field: @@ -3540,9 +3519,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } iterate * } */ - public static final GroupLayout iterate$layout() { - return iterate$LAYOUT; - } + public static final GroupLayout iterate$layout() { return iterate$LAYOUT; } private static final long iterate$OFFSET = 0; @@ -3558,9 +3535,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } iterate * } */ - public static final long iterate$offset() { - return iterate$OFFSET; - } + public static final long iterate$offset() { return iterate$OFFSET; } /** * Getter for field: @@ -3574,7 +3549,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } iterate * } */ - public static MemorySegment iterate(MemorySegment union) { + public static MemorySegment iterate(MemorySegment union) + { return union.asSlice(iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -3590,7 +3566,8 @@ public static MemorySegment iterate(MemorySegment union) { * } iterate * } */ - public static void iterate(MemorySegment union, MemorySegment fieldValue) { + public static void iterate(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, iterate$OFFSET, iterate$LAYOUT.byteSize()); } @@ -3605,24 +3582,25 @@ public static void iterate(MemorySegment union, MemorySegment fieldValue) { */ public static class del { - del() { + del() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_LONG.withName("key_mem_type_id"), - hdf5_h.C_POINTER.withName("key") - ).withName("$anon$173:13"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_LONG.withName("key_mem_type_id"), + hdf5_h.C_POINTER.withName("key")) + .withName("$anon$173:13"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -3630,9 +3608,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -3642,9 +3618,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -3652,7 +3626,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -3662,11 +3637,14 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, + loc_params$LAYOUT.byteSize()); } - private static final OfLong key_mem_type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); + private static final OfLong key_mem_type_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("key_mem_type_id")); /** * Layout for field: @@ -3674,9 +3652,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hid_t key_mem_type_id * } */ - public static final OfLong key_mem_type_id$layout() { - return key_mem_type_id$LAYOUT; - } + public static final OfLong key_mem_type_id$layout() { return key_mem_type_id$LAYOUT; } private static final long key_mem_type_id$OFFSET = 40; @@ -3686,9 +3662,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hid_t key_mem_type_id * } */ - public static final long key_mem_type_id$offset() { - return key_mem_type_id$OFFSET; - } + public static final long key_mem_type_id$offset() { return key_mem_type_id$OFFSET; } /** * Getter for field: @@ -3696,7 +3670,8 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hid_t key_mem_type_id * } */ - public static long key_mem_type_id(MemorySegment struct) { + public static long key_mem_type_id(MemorySegment struct) + { return struct.get(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET); } @@ -3706,11 +3681,13 @@ public static long key_mem_type_id(MemorySegment struct) { * hid_t key_mem_type_id * } */ - public static void key_mem_type_id(MemorySegment struct, long fieldValue) { + public static void key_mem_type_id(MemorySegment struct, long fieldValue) + { struct.set(key_mem_type_id$LAYOUT, key_mem_type_id$OFFSET, fieldValue); } - private static final AddressLayout key$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("key")); + private static final AddressLayout key$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("key")); /** * Layout for field: @@ -3718,9 +3695,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final AddressLayout key$layout() { - return key$LAYOUT; - } + public static final AddressLayout key$layout() { return key$LAYOUT; } private static final long key$OFFSET = 48; @@ -3730,9 +3705,7 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static final long key$offset() { - return key$OFFSET; - } + public static final long key$offset() { return key$OFFSET; } /** * Getter for field: @@ -3740,7 +3713,8 @@ public static void key_mem_type_id(MemorySegment struct, long fieldValue) { * const void *key * } */ - public static MemorySegment key(MemorySegment struct) { + public static MemorySegment key(MemorySegment struct) + { return struct.get(key$LAYOUT, key$OFFSET); } @@ -3750,7 +3724,8 @@ public static MemorySegment key(MemorySegment struct) { * const void *key * } */ - public static void key(MemorySegment struct, MemorySegment fieldValue) { + public static void key(MemorySegment struct, MemorySegment fieldValue) + { struct.set(key$LAYOUT, key$OFFSET, fieldValue); } @@ -3758,7 +3733,8 @@ public static void key(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -3770,7 +3746,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -3778,7 +3755,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -3786,7 +3764,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -3794,7 +3774,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -3811,9 +3793,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final GroupLayout del$layout() { - return del$LAYOUT; - } + public static final GroupLayout del$layout() { return del$LAYOUT; } private static final long del$OFFSET = 0; @@ -3827,9 +3807,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static final long del$offset() { - return del$OFFSET; - } + public static final long del$offset() { return del$OFFSET; } /** * Getter for field: @@ -3841,7 +3819,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } del * } */ - public static MemorySegment del(MemorySegment union) { + public static MemorySegment del(MemorySegment union) + { return union.asSlice(del$OFFSET, del$LAYOUT.byteSize()); } @@ -3855,7 +3834,8 @@ public static MemorySegment del(MemorySegment union) { * } del * } */ - public static void del(MemorySegment union, MemorySegment fieldValue) { + public static void del(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, del$OFFSET, del$LAYOUT.byteSize()); } @@ -3863,7 +3843,8 @@ public static void del(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -3875,7 +3856,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -3883,7 +3865,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -3891,7 +3874,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -3899,7 +3884,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -3925,9 +3912,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -3950,9 +3935,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -3973,7 +3956,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -3996,7 +3980,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -4004,7 +3989,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -4016,7 +4002,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -4024,7 +4011,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -4032,7 +4020,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -4040,7 +4030,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -4069,9 +4061,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } specific * } */ - public static final GroupLayout specific$layout() { - return specific$LAYOUT; - } + public static final GroupLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 0; @@ -4097,9 +4087,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } specific * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -4123,7 +4111,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } specific * } */ - public static MemorySegment specific(MemorySegment union) { + public static MemorySegment specific(MemorySegment union) + { return union.asSlice(specific$OFFSET, specific$LAYOUT.byteSize()); } @@ -4149,7 +4138,8 @@ public static MemorySegment specific(MemorySegment union) { * } specific * } */ - public static void specific(MemorySegment union, MemorySegment fieldValue) { + public static void specific(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, specific$OFFSET, specific$LAYOUT.byteSize()); } @@ -4157,7 +4147,8 @@ public static void specific(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -4169,15 +4160,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -4185,7 +4175,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -4193,8 +4184,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_iterate_old_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_iterate_old_t.java index 377bfb708c6..aaf54454c0c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_iterate_old_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_iterate_old_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_attr_iterate_old_t { @@ -24,23 +24,21 @@ */ public class H5VL_native_attr_iterate_old_t { - H5VL_native_attr_iterate_old_t() { + H5VL_native_attr_iterate_old_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("loc_id"), - hdf5_h.C_POINTER.withName("attr_num"), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5VL_native_attr_iterate_old_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("loc_id"), hdf5_h.C_POINTER.withName("attr_num"), + hdf5_h.C_POINTER.withName("op"), hdf5_h.C_POINTER.withName("op_data")) + .withName("H5VL_native_attr_iterate_old_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong loc_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("loc_id")); @@ -50,9 +48,7 @@ public static final GroupLayout layout() { * hid_t loc_id * } */ - public static final OfLong loc_id$layout() { - return loc_id$LAYOUT; - } + public static final OfLong loc_id$layout() { return loc_id$LAYOUT; } private static final long loc_id$OFFSET = 0; @@ -62,9 +58,7 @@ public static final GroupLayout layout() { * hid_t loc_id * } */ - public static final long loc_id$offset() { - return loc_id$OFFSET; - } + public static final long loc_id$offset() { return loc_id$OFFSET; } /** * Getter for field: @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * hid_t loc_id * } */ - public static long loc_id(MemorySegment struct) { - return struct.get(loc_id$LAYOUT, loc_id$OFFSET); - } + public static long loc_id(MemorySegment struct) { return struct.get(loc_id$LAYOUT, loc_id$OFFSET); } /** * Setter for field: @@ -82,11 +74,13 @@ public static long loc_id(MemorySegment struct) { * hid_t loc_id * } */ - public static void loc_id(MemorySegment struct, long fieldValue) { + public static void loc_id(MemorySegment struct, long fieldValue) + { struct.set(loc_id$LAYOUT, loc_id$OFFSET, fieldValue); } - private static final AddressLayout attr_num$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("attr_num")); + private static final AddressLayout attr_num$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("attr_num")); /** * Layout for field: @@ -94,9 +88,7 @@ public static void loc_id(MemorySegment struct, long fieldValue) { * unsigned int *attr_num * } */ - public static final AddressLayout attr_num$layout() { - return attr_num$LAYOUT; - } + public static final AddressLayout attr_num$layout() { return attr_num$LAYOUT; } private static final long attr_num$OFFSET = 8; @@ -106,9 +98,7 @@ public static void loc_id(MemorySegment struct, long fieldValue) { * unsigned int *attr_num * } */ - public static final long attr_num$offset() { - return attr_num$OFFSET; - } + public static final long attr_num$offset() { return attr_num$OFFSET; } /** * Getter for field: @@ -116,7 +106,8 @@ public static void loc_id(MemorySegment struct, long fieldValue) { * unsigned int *attr_num * } */ - public static MemorySegment attr_num(MemorySegment struct) { + public static MemorySegment attr_num(MemorySegment struct) + { return struct.get(attr_num$LAYOUT, attr_num$OFFSET); } @@ -126,7 +117,8 @@ public static MemorySegment attr_num(MemorySegment struct) { * unsigned int *attr_num * } */ - public static void attr_num(MemorySegment struct, MemorySegment fieldValue) { + public static void attr_num(MemorySegment struct, MemorySegment fieldValue) + { struct.set(attr_num$LAYOUT, attr_num$OFFSET, fieldValue); } @@ -138,9 +130,7 @@ public static void attr_num(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator1_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 16; @@ -150,9 +140,7 @@ public static void attr_num(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator1_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -160,9 +148,7 @@ public static void attr_num(MemorySegment struct, MemorySegment fieldValue) { * H5A_operator1_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -170,11 +156,13 @@ public static MemorySegment op(MemorySegment struct) { * H5A_operator1_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -182,9 +170,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 24; @@ -194,9 +180,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -204,7 +188,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -214,7 +199,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -222,7 +208,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +221,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +236,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +245,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_optional_args_t.java index 6d2163e8e38..9659ddf89f9 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_attr_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_native_attr_optional_args_t { @@ -21,22 +21,22 @@ */ public class H5VL_native_attr_optional_args_t { - H5VL_native_attr_optional_args_t() { + H5VL_native_attr_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_native_attr_iterate_old_t.layout().withName("iterate_old") - ).withName("H5VL_native_attr_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.unionLayout(H5VL_native_attr_iterate_old_t.layout().withName("iterate_old")) + .withName("H5VL_native_attr_optional_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout iterate_old$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("iterate_old")); + private static final GroupLayout iterate_old$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("iterate_old")); /** * Layout for field: @@ -44,9 +44,7 @@ public static final GroupLayout layout() { * H5VL_native_attr_iterate_old_t iterate_old * } */ - public static final GroupLayout iterate_old$layout() { - return iterate_old$LAYOUT; - } + public static final GroupLayout iterate_old$layout() { return iterate_old$LAYOUT; } private static final long iterate_old$OFFSET = 0; @@ -56,9 +54,7 @@ public static final GroupLayout layout() { * H5VL_native_attr_iterate_old_t iterate_old * } */ - public static final long iterate_old$offset() { - return iterate_old$OFFSET; - } + public static final long iterate_old$offset() { return iterate_old$OFFSET; } /** * Getter for field: @@ -66,7 +62,8 @@ public static final GroupLayout layout() { * H5VL_native_attr_iterate_old_t iterate_old * } */ - public static MemorySegment iterate_old(MemorySegment union) { + public static MemorySegment iterate_old(MemorySegment union) + { return union.asSlice(iterate_old$OFFSET, iterate_old$LAYOUT.byteSize()); } @@ -76,7 +73,8 @@ public static MemorySegment iterate_old(MemorySegment union) { * H5VL_native_attr_iterate_old_t iterate_old * } */ - public static void iterate_old(MemorySegment union, MemorySegment fieldValue) { + public static void iterate_old(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, iterate_old$OFFSET, iterate_old$LAYOUT.byteSize()); } @@ -84,7 +82,8 @@ public static void iterate_old(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -96,15 +95,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -112,7 +110,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -120,8 +119,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_read_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_read_t.java index cfd187b70fb..970bb87b325 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_read_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_read_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_chunk_read_t { @@ -23,23 +23,21 @@ */ public class H5VL_native_dataset_chunk_read_t { - H5VL_native_dataset_chunk_read_t() { + H5VL_native_dataset_chunk_read_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("offset"), - hdf5_h.C_INT.withName("filters"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("buf") - ).withName("H5VL_native_dataset_chunk_read_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("offset"), hdf5_h.C_INT.withName("filters"), + MemoryLayout.paddingLayout(4), hdf5_h.C_POINTER.withName("buf")) + .withName("H5VL_native_dataset_chunk_read_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout offset$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("offset")); @@ -49,9 +47,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 0; @@ -61,9 +57,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -71,7 +65,8 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -81,7 +76,8 @@ public static MemorySegment offset(MemorySegment struct) { * const hsize_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } @@ -93,9 +89,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static final OfInt filters$layout() { - return filters$LAYOUT; - } + public static final OfInt filters$layout() { return filters$LAYOUT; } private static final long filters$OFFSET = 8; @@ -105,9 +99,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static final long filters$offset() { - return filters$OFFSET; - } + public static final long filters$offset() { return filters$OFFSET; } /** * Getter for field: @@ -115,9 +107,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static int filters(MemorySegment struct) { - return struct.get(filters$LAYOUT, filters$OFFSET); - } + public static int filters(MemorySegment struct) { return struct.get(filters$LAYOUT, filters$OFFSET); } /** * Setter for field: @@ -125,7 +115,8 @@ public static int filters(MemorySegment struct) { * uint32_t filters * } */ - public static void filters(MemorySegment struct, int fieldValue) { + public static void filters(MemorySegment struct, int fieldValue) + { struct.set(filters$LAYOUT, filters$OFFSET, fieldValue); } @@ -137,9 +128,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 16; @@ -149,9 +138,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -159,9 +146,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -169,7 +154,8 @@ public static MemorySegment buf(MemorySegment struct) { * void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } @@ -177,7 +163,8 @@ public static void buf(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -189,15 +176,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -205,7 +191,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -213,8 +200,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_write_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_write_t.java index a832c3ac402..57e02044802 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_write_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_chunk_write_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_chunk_write_t { @@ -24,23 +24,21 @@ */ public class H5VL_native_dataset_chunk_write_t { - H5VL_native_dataset_chunk_write_t() { + H5VL_native_dataset_chunk_write_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("offset"), - hdf5_h.C_INT.withName("filters"), - hdf5_h.C_INT.withName("size"), - hdf5_h.C_POINTER.withName("buf") - ).withName("H5VL_native_dataset_chunk_write_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("offset"), hdf5_h.C_INT.withName("filters"), + hdf5_h.C_INT.withName("size"), hdf5_h.C_POINTER.withName("buf")) + .withName("H5VL_native_dataset_chunk_write_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout offset$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("offset")); @@ -50,9 +48,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 0; @@ -62,9 +58,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -72,7 +66,8 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -82,7 +77,8 @@ public static MemorySegment offset(MemorySegment struct) { * const hsize_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } @@ -94,9 +90,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static final OfInt filters$layout() { - return filters$LAYOUT; - } + public static final OfInt filters$layout() { return filters$LAYOUT; } private static final long filters$OFFSET = 8; @@ -106,9 +100,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static final long filters$offset() { - return filters$OFFSET; - } + public static final long filters$offset() { return filters$OFFSET; } /** * Getter for field: @@ -116,9 +108,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * uint32_t filters * } */ - public static int filters(MemorySegment struct) { - return struct.get(filters$LAYOUT, filters$OFFSET); - } + public static int filters(MemorySegment struct) { return struct.get(filters$LAYOUT, filters$OFFSET); } /** * Setter for field: @@ -126,7 +116,8 @@ public static int filters(MemorySegment struct) { * uint32_t filters * } */ - public static void filters(MemorySegment struct, int fieldValue) { + public static void filters(MemorySegment struct, int fieldValue) + { struct.set(filters$LAYOUT, filters$OFFSET, fieldValue); } @@ -138,9 +129,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * uint32_t size * } */ - public static final OfInt size$layout() { - return size$LAYOUT; - } + public static final OfInt size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 12; @@ -150,9 +139,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * uint32_t size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -160,9 +147,7 @@ public static void filters(MemorySegment struct, int fieldValue) { * uint32_t size * } */ - public static int size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static int size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -170,7 +155,8 @@ public static int size(MemorySegment struct) { * uint32_t size * } */ - public static void size(MemorySegment struct, int fieldValue) { + public static void size(MemorySegment struct, int fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -182,9 +168,7 @@ public static void size(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 16; @@ -194,9 +178,7 @@ public static void size(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -204,9 +186,7 @@ public static void size(MemorySegment struct, int fieldValue) { * const void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -214,7 +194,8 @@ public static MemorySegment buf(MemorySegment struct) { * const void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } @@ -222,7 +203,8 @@ public static void buf(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +216,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +231,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +240,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_coord_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_coord_t.java index 45a7ebe6b75..f9de5dfaad3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_coord_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_coord_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_get_chunk_info_by_coord_t { @@ -24,23 +24,21 @@ */ public class H5VL_native_dataset_get_chunk_info_by_coord_t { - H5VL_native_dataset_get_chunk_info_by_coord_t() { + H5VL_native_dataset_get_chunk_info_by_coord_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("offset"), - hdf5_h.C_POINTER.withName("filter_mask"), - hdf5_h.C_POINTER.withName("addr"), - hdf5_h.C_POINTER.withName("size") - ).withName("H5VL_native_dataset_get_chunk_info_by_coord_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("offset"), hdf5_h.C_POINTER.withName("filter_mask"), + hdf5_h.C_POINTER.withName("addr"), hdf5_h.C_POINTER.withName("size")) + .withName("H5VL_native_dataset_get_chunk_info_by_coord_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout offset$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("offset")); @@ -50,9 +48,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 0; @@ -62,9 +58,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -72,7 +66,8 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -82,11 +77,13 @@ public static MemorySegment offset(MemorySegment struct) { * const hsize_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } - private static final AddressLayout filter_mask$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("filter_mask")); + private static final AddressLayout filter_mask$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("filter_mask")); /** * Layout for field: @@ -94,9 +91,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static final AddressLayout filter_mask$layout() { - return filter_mask$LAYOUT; - } + public static final AddressLayout filter_mask$layout() { return filter_mask$LAYOUT; } private static final long filter_mask$OFFSET = 8; @@ -106,9 +101,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static final long filter_mask$offset() { - return filter_mask$OFFSET; - } + public static final long filter_mask$offset() { return filter_mask$OFFSET; } /** * Getter for field: @@ -116,7 +109,8 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static MemorySegment filter_mask(MemorySegment struct) { + public static MemorySegment filter_mask(MemorySegment struct) + { return struct.get(filter_mask$LAYOUT, filter_mask$OFFSET); } @@ -126,7 +120,8 @@ public static MemorySegment filter_mask(MemorySegment struct) { * unsigned int *filter_mask * } */ - public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { + public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filter_mask$LAYOUT, filter_mask$OFFSET, fieldValue); } @@ -138,9 +133,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static final AddressLayout addr$layout() { - return addr$LAYOUT; - } + public static final AddressLayout addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 16; @@ -150,9 +143,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -160,9 +151,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static MemorySegment addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static MemorySegment addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -170,7 +159,8 @@ public static MemorySegment addr(MemorySegment struct) { * haddr_t *addr * } */ - public static void addr(MemorySegment struct, MemorySegment fieldValue) { + public static void addr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -182,9 +172,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 24; @@ -194,9 +182,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -204,9 +190,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static MemorySegment size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -214,7 +198,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -222,7 +207,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +220,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +235,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +244,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_idx_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_idx_t.java index e3ec01933e8..5de8c1d5005 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_idx_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_info_by_idx_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_get_chunk_info_by_idx_t { @@ -26,25 +26,22 @@ */ public class H5VL_native_dataset_get_chunk_info_by_idx_t { - H5VL_native_dataset_get_chunk_info_by_idx_t() { + H5VL_native_dataset_get_chunk_info_by_idx_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("space_id"), - hdf5_h.C_LONG.withName("chk_index"), - hdf5_h.C_POINTER.withName("offset"), - hdf5_h.C_POINTER.withName("filter_mask"), - hdf5_h.C_POINTER.withName("addr"), - hdf5_h.C_POINTER.withName("size") - ).withName("H5VL_native_dataset_get_chunk_info_by_idx_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("space_id"), hdf5_h.C_LONG.withName("chk_index"), + hdf5_h.C_POINTER.withName("offset"), hdf5_h.C_POINTER.withName("filter_mask"), + hdf5_h.C_POINTER.withName("addr"), hdf5_h.C_POINTER.withName("size")) + .withName("H5VL_native_dataset_get_chunk_info_by_idx_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong space_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("space_id")); @@ -54,9 +51,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final OfLong space_id$layout() { - return space_id$LAYOUT; - } + public static final OfLong space_id$layout() { return space_id$LAYOUT; } private static final long space_id$OFFSET = 0; @@ -66,9 +61,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final long space_id$offset() { - return space_id$OFFSET; - } + public static final long space_id$offset() { return space_id$OFFSET; } /** * Getter for field: @@ -76,9 +69,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static long space_id(MemorySegment struct) { - return struct.get(space_id$LAYOUT, space_id$OFFSET); - } + public static long space_id(MemorySegment struct) { return struct.get(space_id$LAYOUT, space_id$OFFSET); } /** * Setter for field: @@ -86,7 +77,8 @@ public static long space_id(MemorySegment struct) { * hid_t space_id * } */ - public static void space_id(MemorySegment struct, long fieldValue) { + public static void space_id(MemorySegment struct, long fieldValue) + { struct.set(space_id$LAYOUT, space_id$OFFSET, fieldValue); } @@ -98,9 +90,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t chk_index * } */ - public static final OfLong chk_index$layout() { - return chk_index$LAYOUT; - } + public static final OfLong chk_index$layout() { return chk_index$LAYOUT; } private static final long chk_index$OFFSET = 8; @@ -110,9 +100,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t chk_index * } */ - public static final long chk_index$offset() { - return chk_index$OFFSET; - } + public static final long chk_index$offset() { return chk_index$OFFSET; } /** * Getter for field: @@ -120,7 +108,8 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t chk_index * } */ - public static long chk_index(MemorySegment struct) { + public static long chk_index(MemorySegment struct) + { return struct.get(chk_index$LAYOUT, chk_index$OFFSET); } @@ -130,7 +119,8 @@ public static long chk_index(MemorySegment struct) { * hsize_t chk_index * } */ - public static void chk_index(MemorySegment struct, long fieldValue) { + public static void chk_index(MemorySegment struct, long fieldValue) + { struct.set(chk_index$LAYOUT, chk_index$OFFSET, fieldValue); } @@ -142,9 +132,7 @@ public static void chk_index(MemorySegment struct, long fieldValue) { * hsize_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 16; @@ -154,9 +142,7 @@ public static void chk_index(MemorySegment struct, long fieldValue) { * hsize_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -164,7 +150,8 @@ public static void chk_index(MemorySegment struct, long fieldValue) { * hsize_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -174,11 +161,13 @@ public static MemorySegment offset(MemorySegment struct) { * hsize_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } - private static final AddressLayout filter_mask$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("filter_mask")); + private static final AddressLayout filter_mask$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("filter_mask")); /** * Layout for field: @@ -186,9 +175,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static final AddressLayout filter_mask$layout() { - return filter_mask$LAYOUT; - } + public static final AddressLayout filter_mask$layout() { return filter_mask$LAYOUT; } private static final long filter_mask$OFFSET = 24; @@ -198,9 +185,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static final long filter_mask$offset() { - return filter_mask$OFFSET; - } + public static final long filter_mask$offset() { return filter_mask$OFFSET; } /** * Getter for field: @@ -208,7 +193,8 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *filter_mask * } */ - public static MemorySegment filter_mask(MemorySegment struct) { + public static MemorySegment filter_mask(MemorySegment struct) + { return struct.get(filter_mask$LAYOUT, filter_mask$OFFSET); } @@ -218,7 +204,8 @@ public static MemorySegment filter_mask(MemorySegment struct) { * unsigned int *filter_mask * } */ - public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { + public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filter_mask$LAYOUT, filter_mask$OFFSET, fieldValue); } @@ -230,9 +217,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static final AddressLayout addr$layout() { - return addr$LAYOUT; - } + public static final AddressLayout addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 32; @@ -242,9 +227,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -252,9 +235,7 @@ public static void filter_mask(MemorySegment struct, MemorySegment fieldValue) { * haddr_t *addr * } */ - public static MemorySegment addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static MemorySegment addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -262,7 +243,8 @@ public static MemorySegment addr(MemorySegment struct) { * haddr_t *addr * } */ - public static void addr(MemorySegment struct, MemorySegment fieldValue) { + public static void addr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -274,9 +256,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 40; @@ -286,9 +266,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -296,9 +274,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static MemorySegment size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -306,7 +282,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -314,7 +291,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -326,15 +304,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -342,7 +319,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -350,8 +328,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_storage_size_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_storage_size_t.java index b6c9ccc1068..9965a2c722d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_storage_size_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_chunk_storage_size_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_get_chunk_storage_size_t { @@ -22,21 +22,19 @@ */ public class H5VL_native_dataset_get_chunk_storage_size_t { - H5VL_native_dataset_get_chunk_storage_size_t() { + H5VL_native_dataset_get_chunk_storage_size_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("offset"), - hdf5_h.C_POINTER.withName("size") - ).withName("H5VL_native_dataset_get_chunk_storage_size_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("offset"), hdf5_h.C_POINTER.withName("size")) + .withName("H5VL_native_dataset_get_chunk_storage_size_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout offset$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("offset")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -68,7 +62,8 @@ public static final GroupLayout layout() { * const hsize_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -78,7 +73,8 @@ public static MemorySegment offset(MemorySegment struct) { * const hsize_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } @@ -90,9 +86,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 8; @@ -102,9 +96,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -112,9 +104,7 @@ public static void offset(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static MemorySegment size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -122,7 +112,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -130,7 +121,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +134,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +149,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +158,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_num_chunks_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_num_chunks_t.java index 2ab9bc9eeca..b6dd4df2816 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_num_chunks_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_num_chunks_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_get_num_chunks_t { @@ -22,21 +22,19 @@ */ public class H5VL_native_dataset_get_num_chunks_t { - H5VL_native_dataset_get_num_chunks_t() { + H5VL_native_dataset_get_num_chunks_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("space_id"), - hdf5_h.C_POINTER.withName("nchunks") - ).withName("H5VL_native_dataset_get_num_chunks_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("space_id"), hdf5_h.C_POINTER.withName("nchunks")) + .withName("H5VL_native_dataset_get_num_chunks_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong space_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("space_id")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final OfLong space_id$layout() { - return space_id$LAYOUT; - } + public static final OfLong space_id$layout() { return space_id$LAYOUT; } private static final long space_id$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static final long space_id$offset() { - return space_id$OFFSET; - } + public static final long space_id$offset() { return space_id$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * hid_t space_id * } */ - public static long space_id(MemorySegment struct) { - return struct.get(space_id$LAYOUT, space_id$OFFSET); - } + public static long space_id(MemorySegment struct) { return struct.get(space_id$LAYOUT, space_id$OFFSET); } /** * Setter for field: @@ -78,11 +70,13 @@ public static long space_id(MemorySegment struct) { * hid_t space_id * } */ - public static void space_id(MemorySegment struct, long fieldValue) { + public static void space_id(MemorySegment struct, long fieldValue) + { struct.set(space_id$LAYOUT, space_id$OFFSET, fieldValue); } - private static final AddressLayout nchunks$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("nchunks")); + private static final AddressLayout nchunks$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("nchunks")); /** * Layout for field: @@ -90,9 +84,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *nchunks * } */ - public static final AddressLayout nchunks$layout() { - return nchunks$LAYOUT; - } + public static final AddressLayout nchunks$layout() { return nchunks$LAYOUT; } private static final long nchunks$OFFSET = 8; @@ -102,9 +94,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *nchunks * } */ - public static final long nchunks$offset() { - return nchunks$OFFSET; - } + public static final long nchunks$offset() { return nchunks$OFFSET; } /** * Getter for field: @@ -112,7 +102,8 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *nchunks * } */ - public static MemorySegment nchunks(MemorySegment struct) { + public static MemorySegment nchunks(MemorySegment struct) + { return struct.get(nchunks$LAYOUT, nchunks$OFFSET); } @@ -122,7 +113,8 @@ public static MemorySegment nchunks(MemorySegment struct) { * hsize_t *nchunks * } */ - public static void nchunks(MemorySegment struct, MemorySegment fieldValue) { + public static void nchunks(MemorySegment struct, MemorySegment fieldValue) + { struct.set(nchunks$LAYOUT, nchunks$OFFSET, fieldValue); } @@ -130,7 +122,8 @@ public static void nchunks(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +135,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +150,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +159,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_vlen_buf_size_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_vlen_buf_size_t.java index 2c82c709ded..807fba4380d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_vlen_buf_size_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_get_vlen_buf_size_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_dataset_get_vlen_buf_size_t { @@ -23,22 +23,21 @@ */ public class H5VL_native_dataset_get_vlen_buf_size_t { - H5VL_native_dataset_get_vlen_buf_size_t() { + H5VL_native_dataset_get_vlen_buf_size_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("type_id"), - hdf5_h.C_LONG.withName("space_id"), - hdf5_h.C_POINTER.withName("size") - ).withName("H5VL_native_dataset_get_vlen_buf_size_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("type_id"), hdf5_h.C_LONG.withName("space_id"), + hdf5_h.C_POINTER.withName("size")) + .withName("H5VL_native_dataset_get_vlen_buf_size_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong type_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("type_id")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final OfLong type_id$layout() { - return type_id$LAYOUT; - } + public static final OfLong type_id$layout() { return type_id$LAYOUT; } private static final long type_id$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static final long type_id$offset() { - return type_id$OFFSET; - } + public static final long type_id$offset() { return type_id$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * hid_t type_id * } */ - public static long type_id(MemorySegment struct) { - return struct.get(type_id$LAYOUT, type_id$OFFSET); - } + public static long type_id(MemorySegment struct) { return struct.get(type_id$LAYOUT, type_id$OFFSET); } /** * Setter for field: @@ -80,7 +73,8 @@ public static long type_id(MemorySegment struct) { * hid_t type_id * } */ - public static void type_id(MemorySegment struct, long fieldValue) { + public static void type_id(MemorySegment struct, long fieldValue) + { struct.set(type_id$LAYOUT, type_id$OFFSET, fieldValue); } @@ -92,9 +86,7 @@ public static void type_id(MemorySegment struct, long fieldValue) { * hid_t space_id * } */ - public static final OfLong space_id$layout() { - return space_id$LAYOUT; - } + public static final OfLong space_id$layout() { return space_id$LAYOUT; } private static final long space_id$OFFSET = 8; @@ -104,9 +96,7 @@ public static void type_id(MemorySegment struct, long fieldValue) { * hid_t space_id * } */ - public static final long space_id$offset() { - return space_id$OFFSET; - } + public static final long space_id$offset() { return space_id$OFFSET; } /** * Getter for field: @@ -114,9 +104,7 @@ public static void type_id(MemorySegment struct, long fieldValue) { * hid_t space_id * } */ - public static long space_id(MemorySegment struct) { - return struct.get(space_id$LAYOUT, space_id$OFFSET); - } + public static long space_id(MemorySegment struct) { return struct.get(space_id$LAYOUT, space_id$OFFSET); } /** * Setter for field: @@ -124,7 +112,8 @@ public static long space_id(MemorySegment struct) { * hid_t space_id * } */ - public static void space_id(MemorySegment struct, long fieldValue) { + public static void space_id(MemorySegment struct, long fieldValue) + { struct.set(space_id$LAYOUT, space_id$OFFSET, fieldValue); } @@ -136,9 +125,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 16; @@ -148,9 +135,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -158,9 +143,7 @@ public static void space_id(MemorySegment struct, long fieldValue) { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static MemorySegment size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -168,7 +151,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -176,7 +160,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +173,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +188,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +197,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_optional_args_t.java index 4994e8a4570..103dcef942b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_dataset_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_native_dataset_optional_args_t { @@ -37,29 +37,31 @@ */ public class H5VL_native_dataset_optional_args_t { - H5VL_native_dataset_optional_args_t() { + H5VL_native_dataset_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_native_dataset_optional_args_t.get_chunk_idx_type.layout().withName("get_chunk_idx_type"), - H5VL_native_dataset_get_chunk_storage_size_t.layout().withName("get_chunk_storage_size"), - H5VL_native_dataset_get_num_chunks_t.layout().withName("get_num_chunks"), - H5VL_native_dataset_get_chunk_info_by_idx_t.layout().withName("get_chunk_info_by_idx"), - H5VL_native_dataset_get_chunk_info_by_coord_t.layout().withName("get_chunk_info_by_coord"), - H5VL_native_dataset_chunk_read_t.layout().withName("chunk_read"), - H5VL_native_dataset_chunk_write_t.layout().withName("chunk_write"), - H5VL_native_dataset_get_vlen_buf_size_t.layout().withName("get_vlen_buf_size"), - H5VL_native_dataset_optional_args_t.get_offset.layout().withName("get_offset"), - H5VL_native_dataset_optional_args_t.chunk_iter.layout().withName("chunk_iter") - ).withName("H5VL_native_dataset_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout( + H5VL_native_dataset_optional_args_t.get_chunk_idx_type.layout().withName( + "get_chunk_idx_type"), + H5VL_native_dataset_get_chunk_storage_size_t.layout().withName("get_chunk_storage_size"), + H5VL_native_dataset_get_num_chunks_t.layout().withName("get_num_chunks"), + H5VL_native_dataset_get_chunk_info_by_idx_t.layout().withName("get_chunk_info_by_idx"), + H5VL_native_dataset_get_chunk_info_by_coord_t.layout().withName("get_chunk_info_by_coord"), + H5VL_native_dataset_chunk_read_t.layout().withName("chunk_read"), + H5VL_native_dataset_chunk_write_t.layout().withName("chunk_write"), + H5VL_native_dataset_get_vlen_buf_size_t.layout().withName("get_vlen_buf_size"), + H5VL_native_dataset_optional_args_t.get_offset.layout().withName("get_offset"), + H5VL_native_dataset_optional_args_t.chunk_iter.layout().withName("chunk_iter")) + .withName("H5VL_native_dataset_optional_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -70,22 +72,21 @@ public static final GroupLayout layout() { */ public static class get_chunk_idx_type { - get_chunk_idx_type() { + get_chunk_idx_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("idx_type") - ).withName("$anon$148:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("idx_type")).withName("$anon$148:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout idx_type$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("idx_type")); + private static final AddressLayout idx_type$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("idx_type")); /** * Layout for field: @@ -93,9 +94,7 @@ public static final GroupLayout layout() { * H5D_chunk_index_t *idx_type * } */ - public static final AddressLayout idx_type$layout() { - return idx_type$LAYOUT; - } + public static final AddressLayout idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 0; @@ -105,9 +104,7 @@ public static final GroupLayout layout() { * H5D_chunk_index_t *idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -115,7 +112,8 @@ public static final GroupLayout layout() { * H5D_chunk_index_t *idx_type * } */ - public static MemorySegment idx_type(MemorySegment struct) { + public static MemorySegment idx_type(MemorySegment struct) + { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } @@ -125,7 +123,8 @@ public static MemorySegment idx_type(MemorySegment struct) { * H5D_chunk_index_t *idx_type * } */ - public static void idx_type(MemorySegment struct, MemorySegment fieldValue) { + public static void idx_type(MemorySegment struct, MemorySegment fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -133,7 +132,8 @@ public static void idx_type(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -145,7 +145,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -153,7 +154,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -161,7 +163,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -169,12 +173,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_chunk_idx_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_chunk_idx_type")); + private static final GroupLayout get_chunk_idx_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_chunk_idx_type")); /** * Layout for field: @@ -184,9 +191,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_chunk_idx_type * } */ - public static final GroupLayout get_chunk_idx_type$layout() { - return get_chunk_idx_type$LAYOUT; - } + public static final GroupLayout get_chunk_idx_type$layout() { return get_chunk_idx_type$LAYOUT; } private static final long get_chunk_idx_type$OFFSET = 0; @@ -198,9 +203,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_chunk_idx_type * } */ - public static final long get_chunk_idx_type$offset() { - return get_chunk_idx_type$OFFSET; - } + public static final long get_chunk_idx_type$offset() { return get_chunk_idx_type$OFFSET; } /** * Getter for field: @@ -210,7 +213,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_chunk_idx_type * } */ - public static MemorySegment get_chunk_idx_type(MemorySegment union) { + public static MemorySegment get_chunk_idx_type(MemorySegment union) + { return union.asSlice(get_chunk_idx_type$OFFSET, get_chunk_idx_type$LAYOUT.byteSize()); } @@ -222,11 +226,14 @@ public static MemorySegment get_chunk_idx_type(MemorySegment union) { * } get_chunk_idx_type * } */ - public static void get_chunk_idx_type(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_chunk_idx_type$OFFSET, get_chunk_idx_type$LAYOUT.byteSize()); + public static void get_chunk_idx_type(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_chunk_idx_type$OFFSET, + get_chunk_idx_type$LAYOUT.byteSize()); } - private static final GroupLayout get_chunk_storage_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_chunk_storage_size")); + private static final GroupLayout get_chunk_storage_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_chunk_storage_size")); /** * Layout for field: @@ -234,9 +241,7 @@ public static void get_chunk_idx_type(MemorySegment union, MemorySegment fieldVa * H5VL_native_dataset_get_chunk_storage_size_t get_chunk_storage_size * } */ - public static final GroupLayout get_chunk_storage_size$layout() { - return get_chunk_storage_size$LAYOUT; - } + public static final GroupLayout get_chunk_storage_size$layout() { return get_chunk_storage_size$LAYOUT; } private static final long get_chunk_storage_size$OFFSET = 0; @@ -246,9 +251,7 @@ public static void get_chunk_idx_type(MemorySegment union, MemorySegment fieldVa * H5VL_native_dataset_get_chunk_storage_size_t get_chunk_storage_size * } */ - public static final long get_chunk_storage_size$offset() { - return get_chunk_storage_size$OFFSET; - } + public static final long get_chunk_storage_size$offset() { return get_chunk_storage_size$OFFSET; } /** * Getter for field: @@ -256,7 +259,8 @@ public static void get_chunk_idx_type(MemorySegment union, MemorySegment fieldVa * H5VL_native_dataset_get_chunk_storage_size_t get_chunk_storage_size * } */ - public static MemorySegment get_chunk_storage_size(MemorySegment union) { + public static MemorySegment get_chunk_storage_size(MemorySegment union) + { return union.asSlice(get_chunk_storage_size$OFFSET, get_chunk_storage_size$LAYOUT.byteSize()); } @@ -266,11 +270,14 @@ public static MemorySegment get_chunk_storage_size(MemorySegment union) { * H5VL_native_dataset_get_chunk_storage_size_t get_chunk_storage_size * } */ - public static void get_chunk_storage_size(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_chunk_storage_size$OFFSET, get_chunk_storage_size$LAYOUT.byteSize()); + public static void get_chunk_storage_size(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_chunk_storage_size$OFFSET, + get_chunk_storage_size$LAYOUT.byteSize()); } - private static final GroupLayout get_num_chunks$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_num_chunks")); + private static final GroupLayout get_num_chunks$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_num_chunks")); /** * Layout for field: @@ -278,9 +285,7 @@ public static void get_chunk_storage_size(MemorySegment union, MemorySegment fie * H5VL_native_dataset_get_num_chunks_t get_num_chunks * } */ - public static final GroupLayout get_num_chunks$layout() { - return get_num_chunks$LAYOUT; - } + public static final GroupLayout get_num_chunks$layout() { return get_num_chunks$LAYOUT; } private static final long get_num_chunks$OFFSET = 0; @@ -290,9 +295,7 @@ public static void get_chunk_storage_size(MemorySegment union, MemorySegment fie * H5VL_native_dataset_get_num_chunks_t get_num_chunks * } */ - public static final long get_num_chunks$offset() { - return get_num_chunks$OFFSET; - } + public static final long get_num_chunks$offset() { return get_num_chunks$OFFSET; } /** * Getter for field: @@ -300,7 +303,8 @@ public static void get_chunk_storage_size(MemorySegment union, MemorySegment fie * H5VL_native_dataset_get_num_chunks_t get_num_chunks * } */ - public static MemorySegment get_num_chunks(MemorySegment union) { + public static MemorySegment get_num_chunks(MemorySegment union) + { return union.asSlice(get_num_chunks$OFFSET, get_num_chunks$LAYOUT.byteSize()); } @@ -310,11 +314,13 @@ public static MemorySegment get_num_chunks(MemorySegment union) { * H5VL_native_dataset_get_num_chunks_t get_num_chunks * } */ - public static void get_num_chunks(MemorySegment union, MemorySegment fieldValue) { + public static void get_num_chunks(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_num_chunks$OFFSET, get_num_chunks$LAYOUT.byteSize()); } - private static final GroupLayout get_chunk_info_by_idx$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_chunk_info_by_idx")); + private static final GroupLayout get_chunk_info_by_idx$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_chunk_info_by_idx")); /** * Layout for field: @@ -322,9 +328,7 @@ public static void get_num_chunks(MemorySegment union, MemorySegment fieldValue) * H5VL_native_dataset_get_chunk_info_by_idx_t get_chunk_info_by_idx * } */ - public static final GroupLayout get_chunk_info_by_idx$layout() { - return get_chunk_info_by_idx$LAYOUT; - } + public static final GroupLayout get_chunk_info_by_idx$layout() { return get_chunk_info_by_idx$LAYOUT; } private static final long get_chunk_info_by_idx$OFFSET = 0; @@ -334,9 +338,7 @@ public static void get_num_chunks(MemorySegment union, MemorySegment fieldValue) * H5VL_native_dataset_get_chunk_info_by_idx_t get_chunk_info_by_idx * } */ - public static final long get_chunk_info_by_idx$offset() { - return get_chunk_info_by_idx$OFFSET; - } + public static final long get_chunk_info_by_idx$offset() { return get_chunk_info_by_idx$OFFSET; } /** * Getter for field: @@ -344,7 +346,8 @@ public static void get_num_chunks(MemorySegment union, MemorySegment fieldValue) * H5VL_native_dataset_get_chunk_info_by_idx_t get_chunk_info_by_idx * } */ - public static MemorySegment get_chunk_info_by_idx(MemorySegment union) { + public static MemorySegment get_chunk_info_by_idx(MemorySegment union) + { return union.asSlice(get_chunk_info_by_idx$OFFSET, get_chunk_info_by_idx$LAYOUT.byteSize()); } @@ -354,11 +357,14 @@ public static MemorySegment get_chunk_info_by_idx(MemorySegment union) { * H5VL_native_dataset_get_chunk_info_by_idx_t get_chunk_info_by_idx * } */ - public static void get_chunk_info_by_idx(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_chunk_info_by_idx$OFFSET, get_chunk_info_by_idx$LAYOUT.byteSize()); + public static void get_chunk_info_by_idx(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_chunk_info_by_idx$OFFSET, + get_chunk_info_by_idx$LAYOUT.byteSize()); } - private static final GroupLayout get_chunk_info_by_coord$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_chunk_info_by_coord")); + private static final GroupLayout get_chunk_info_by_coord$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_chunk_info_by_coord")); /** * Layout for field: @@ -366,7 +372,8 @@ public static void get_chunk_info_by_idx(MemorySegment union, MemorySegment fiel * H5VL_native_dataset_get_chunk_info_by_coord_t get_chunk_info_by_coord * } */ - public static final GroupLayout get_chunk_info_by_coord$layout() { + public static final GroupLayout get_chunk_info_by_coord$layout() + { return get_chunk_info_by_coord$LAYOUT; } @@ -378,9 +385,7 @@ public static void get_chunk_info_by_idx(MemorySegment union, MemorySegment fiel * H5VL_native_dataset_get_chunk_info_by_coord_t get_chunk_info_by_coord * } */ - public static final long get_chunk_info_by_coord$offset() { - return get_chunk_info_by_coord$OFFSET; - } + public static final long get_chunk_info_by_coord$offset() { return get_chunk_info_by_coord$OFFSET; } /** * Getter for field: @@ -388,7 +393,8 @@ public static void get_chunk_info_by_idx(MemorySegment union, MemorySegment fiel * H5VL_native_dataset_get_chunk_info_by_coord_t get_chunk_info_by_coord * } */ - public static MemorySegment get_chunk_info_by_coord(MemorySegment union) { + public static MemorySegment get_chunk_info_by_coord(MemorySegment union) + { return union.asSlice(get_chunk_info_by_coord$OFFSET, get_chunk_info_by_coord$LAYOUT.byteSize()); } @@ -398,11 +404,14 @@ public static MemorySegment get_chunk_info_by_coord(MemorySegment union) { * H5VL_native_dataset_get_chunk_info_by_coord_t get_chunk_info_by_coord * } */ - public static void get_chunk_info_by_coord(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_chunk_info_by_coord$OFFSET, get_chunk_info_by_coord$LAYOUT.byteSize()); + public static void get_chunk_info_by_coord(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_chunk_info_by_coord$OFFSET, + get_chunk_info_by_coord$LAYOUT.byteSize()); } - private static final GroupLayout chunk_read$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("chunk_read")); + private static final GroupLayout chunk_read$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("chunk_read")); /** * Layout for field: @@ -410,9 +419,7 @@ public static void get_chunk_info_by_coord(MemorySegment union, MemorySegment fi * H5VL_native_dataset_chunk_read_t chunk_read * } */ - public static final GroupLayout chunk_read$layout() { - return chunk_read$LAYOUT; - } + public static final GroupLayout chunk_read$layout() { return chunk_read$LAYOUT; } private static final long chunk_read$OFFSET = 0; @@ -422,9 +429,7 @@ public static void get_chunk_info_by_coord(MemorySegment union, MemorySegment fi * H5VL_native_dataset_chunk_read_t chunk_read * } */ - public static final long chunk_read$offset() { - return chunk_read$OFFSET; - } + public static final long chunk_read$offset() { return chunk_read$OFFSET; } /** * Getter for field: @@ -432,7 +437,8 @@ public static void get_chunk_info_by_coord(MemorySegment union, MemorySegment fi * H5VL_native_dataset_chunk_read_t chunk_read * } */ - public static MemorySegment chunk_read(MemorySegment union) { + public static MemorySegment chunk_read(MemorySegment union) + { return union.asSlice(chunk_read$OFFSET, chunk_read$LAYOUT.byteSize()); } @@ -442,11 +448,13 @@ public static MemorySegment chunk_read(MemorySegment union) { * H5VL_native_dataset_chunk_read_t chunk_read * } */ - public static void chunk_read(MemorySegment union, MemorySegment fieldValue) { + public static void chunk_read(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, chunk_read$OFFSET, chunk_read$LAYOUT.byteSize()); } - private static final GroupLayout chunk_write$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("chunk_write")); + private static final GroupLayout chunk_write$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("chunk_write")); /** * Layout for field: @@ -454,9 +462,7 @@ public static void chunk_read(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_chunk_write_t chunk_write * } */ - public static final GroupLayout chunk_write$layout() { - return chunk_write$LAYOUT; - } + public static final GroupLayout chunk_write$layout() { return chunk_write$LAYOUT; } private static final long chunk_write$OFFSET = 0; @@ -466,9 +472,7 @@ public static void chunk_read(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_chunk_write_t chunk_write * } */ - public static final long chunk_write$offset() { - return chunk_write$OFFSET; - } + public static final long chunk_write$offset() { return chunk_write$OFFSET; } /** * Getter for field: @@ -476,7 +480,8 @@ public static void chunk_read(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_chunk_write_t chunk_write * } */ - public static MemorySegment chunk_write(MemorySegment union) { + public static MemorySegment chunk_write(MemorySegment union) + { return union.asSlice(chunk_write$OFFSET, chunk_write$LAYOUT.byteSize()); } @@ -486,11 +491,13 @@ public static MemorySegment chunk_write(MemorySegment union) { * H5VL_native_dataset_chunk_write_t chunk_write * } */ - public static void chunk_write(MemorySegment union, MemorySegment fieldValue) { + public static void chunk_write(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, chunk_write$OFFSET, chunk_write$LAYOUT.byteSize()); } - private static final GroupLayout get_vlen_buf_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_vlen_buf_size")); + private static final GroupLayout get_vlen_buf_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_vlen_buf_size")); /** * Layout for field: @@ -498,9 +505,7 @@ public static void chunk_write(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_get_vlen_buf_size_t get_vlen_buf_size * } */ - public static final GroupLayout get_vlen_buf_size$layout() { - return get_vlen_buf_size$LAYOUT; - } + public static final GroupLayout get_vlen_buf_size$layout() { return get_vlen_buf_size$LAYOUT; } private static final long get_vlen_buf_size$OFFSET = 0; @@ -510,9 +515,7 @@ public static void chunk_write(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_get_vlen_buf_size_t get_vlen_buf_size * } */ - public static final long get_vlen_buf_size$offset() { - return get_vlen_buf_size$OFFSET; - } + public static final long get_vlen_buf_size$offset() { return get_vlen_buf_size$OFFSET; } /** * Getter for field: @@ -520,7 +523,8 @@ public static void chunk_write(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_dataset_get_vlen_buf_size_t get_vlen_buf_size * } */ - public static MemorySegment get_vlen_buf_size(MemorySegment union) { + public static MemorySegment get_vlen_buf_size(MemorySegment union) + { return union.asSlice(get_vlen_buf_size$OFFSET, get_vlen_buf_size$LAYOUT.byteSize()); } @@ -530,8 +534,10 @@ public static MemorySegment get_vlen_buf_size(MemorySegment union) { * H5VL_native_dataset_get_vlen_buf_size_t get_vlen_buf_size * } */ - public static void get_vlen_buf_size(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_vlen_buf_size$OFFSET, get_vlen_buf_size$LAYOUT.byteSize()); + public static void get_vlen_buf_size(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_vlen_buf_size$OFFSET, + get_vlen_buf_size$LAYOUT.byteSize()); } /** @@ -543,22 +549,21 @@ public static void get_vlen_buf_size(MemorySegment union, MemorySegment fieldVal */ public static class get_offset { - get_offset() { + get_offset() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("offset") - ).withName("$anon$174:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("offset")).withName("$anon$174:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout offset$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("offset")); + private static final AddressLayout offset$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("offset")); /** * Layout for field: @@ -566,9 +571,7 @@ public static final GroupLayout layout() { * haddr_t *offset * } */ - public static final AddressLayout offset$layout() { - return offset$LAYOUT; - } + public static final AddressLayout offset$layout() { return offset$LAYOUT; } private static final long offset$OFFSET = 0; @@ -578,9 +581,7 @@ public static final GroupLayout layout() { * haddr_t *offset * } */ - public static final long offset$offset() { - return offset$OFFSET; - } + public static final long offset$offset() { return offset$OFFSET; } /** * Getter for field: @@ -588,7 +589,8 @@ public static final GroupLayout layout() { * haddr_t *offset * } */ - public static MemorySegment offset(MemorySegment struct) { + public static MemorySegment offset(MemorySegment struct) + { return struct.get(offset$LAYOUT, offset$OFFSET); } @@ -598,7 +600,8 @@ public static MemorySegment offset(MemorySegment struct) { * haddr_t *offset * } */ - public static void offset(MemorySegment struct, MemorySegment fieldValue) { + public static void offset(MemorySegment struct, MemorySegment fieldValue) + { struct.set(offset$LAYOUT, offset$OFFSET, fieldValue); } @@ -606,7 +609,8 @@ public static void offset(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -618,7 +622,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -626,7 +631,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -634,7 +640,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -642,12 +650,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_offset$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_offset")); + private static final GroupLayout get_offset$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_offset")); /** * Layout for field: @@ -657,9 +668,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_offset * } */ - public static final GroupLayout get_offset$layout() { - return get_offset$LAYOUT; - } + public static final GroupLayout get_offset$layout() { return get_offset$LAYOUT; } private static final long get_offset$OFFSET = 0; @@ -671,9 +680,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_offset * } */ - public static final long get_offset$offset() { - return get_offset$OFFSET; - } + public static final long get_offset$offset() { return get_offset$OFFSET; } /** * Getter for field: @@ -683,7 +690,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_offset * } */ - public static MemorySegment get_offset(MemorySegment union) { + public static MemorySegment get_offset(MemorySegment union) + { return union.asSlice(get_offset$OFFSET, get_offset$LAYOUT.byteSize()); } @@ -695,7 +703,8 @@ public static MemorySegment get_offset(MemorySegment union) { * } get_offset * } */ - public static void get_offset(MemorySegment union, MemorySegment fieldValue) { + public static void get_offset(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_offset$OFFSET, get_offset$LAYOUT.byteSize()); } @@ -709,21 +718,19 @@ public static void get_offset(MemorySegment union, MemorySegment fieldValue) { */ public static class chunk_iter { - chunk_iter() { + chunk_iter() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("$anon$179:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("op"), hdf5_h.C_POINTER.withName("op_data")) + .withName("$anon$179:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout op$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op")); @@ -733,9 +740,7 @@ public static final GroupLayout layout() { * H5D_chunk_iter_op_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 0; @@ -745,9 +750,7 @@ public static final GroupLayout layout() { * H5D_chunk_iter_op_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -755,9 +758,7 @@ public static final GroupLayout layout() { * H5D_chunk_iter_op_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -765,11 +766,13 @@ public static MemorySegment op(MemorySegment struct) { * H5D_chunk_iter_op_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -777,9 +780,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 8; @@ -789,9 +790,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -799,7 +798,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -809,7 +809,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -817,7 +818,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -829,7 +831,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -837,7 +840,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -845,7 +849,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -853,12 +859,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout chunk_iter$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("chunk_iter")); + private static final GroupLayout chunk_iter$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("chunk_iter")); /** * Layout for field: @@ -869,9 +878,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } chunk_iter * } */ - public static final GroupLayout chunk_iter$layout() { - return chunk_iter$LAYOUT; - } + public static final GroupLayout chunk_iter$layout() { return chunk_iter$LAYOUT; } private static final long chunk_iter$OFFSET = 0; @@ -884,9 +891,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } chunk_iter * } */ - public static final long chunk_iter$offset() { - return chunk_iter$OFFSET; - } + public static final long chunk_iter$offset() { return chunk_iter$OFFSET; } /** * Getter for field: @@ -897,7 +902,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } chunk_iter * } */ - public static MemorySegment chunk_iter(MemorySegment union) { + public static MemorySegment chunk_iter(MemorySegment union) + { return union.asSlice(chunk_iter$OFFSET, chunk_iter$LAYOUT.byteSize()); } @@ -910,7 +916,8 @@ public static MemorySegment chunk_iter(MemorySegment union) { * } chunk_iter * } */ - public static void chunk_iter(MemorySegment union, MemorySegment fieldValue) { + public static void chunk_iter(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, chunk_iter$OFFSET, chunk_iter$LAYOUT.byteSize()); } @@ -918,7 +925,8 @@ public static void chunk_iter(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -930,15 +938,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -946,7 +953,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -954,8 +962,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_file_image_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_file_image_t.java index 2b49e6229a7..ee02b973835 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_file_image_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_file_image_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_file_image_t { @@ -23,22 +23,21 @@ */ public class H5VL_native_file_get_file_image_t { - H5VL_native_file_get_file_image_t() { + H5VL_native_file_get_file_image_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_POINTER.withName("image_len") - ).withName("H5VL_native_file_get_file_image_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf"), + hdf5_h.C_POINTER.withName("image_len")) + .withName("H5VL_native_file_get_file_image_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong buf_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("buf_size")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { - return struct.get(buf_size$LAYOUT, buf_size$OFFSET); - } + public static long buf_size(MemorySegment struct) { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } /** * Setter for field: @@ -80,7 +73,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -92,9 +86,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 8; @@ -104,9 +96,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -114,9 +104,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -124,11 +112,13 @@ public static MemorySegment buf(MemorySegment struct) { * void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } - private static final AddressLayout image_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("image_len")); + private static final AddressLayout image_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("image_len")); /** * Layout for field: @@ -136,9 +126,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *image_len * } */ - public static final AddressLayout image_len$layout() { - return image_len$LAYOUT; - } + public static final AddressLayout image_len$layout() { return image_len$LAYOUT; } private static final long image_len$OFFSET = 16; @@ -148,9 +136,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *image_len * } */ - public static final long image_len$offset() { - return image_len$OFFSET; - } + public static final long image_len$offset() { return image_len$OFFSET; } /** * Getter for field: @@ -158,7 +144,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *image_len * } */ - public static MemorySegment image_len(MemorySegment struct) { + public static MemorySegment image_len(MemorySegment struct) + { return struct.get(image_len$LAYOUT, image_len$OFFSET); } @@ -168,7 +155,8 @@ public static MemorySegment image_len(MemorySegment struct) { * size_t *image_len * } */ - public static void image_len(MemorySegment struct, MemorySegment fieldValue) { + public static void image_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(image_len$LAYOUT, image_len$OFFSET, fieldValue); } @@ -176,7 +164,8 @@ public static void image_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +177,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +192,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +201,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_free_sections_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_free_sections_t.java index f9289aaee3a..09a1c059b8a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_free_sections_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_free_sections_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_free_sections_t { @@ -24,24 +24,22 @@ */ public class H5VL_native_file_get_free_sections_t { - H5VL_native_file_get_free_sections_t() { + H5VL_native_file_get_free_sections_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("sect_info"), - hdf5_h.C_LONG.withName("nsects"), - hdf5_h.C_POINTER.withName("sect_count") - ).withName("H5VL_native_file_get_free_sections_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("sect_info"), hdf5_h.C_LONG.withName("nsects"), + hdf5_h.C_POINTER.withName("sect_count")) + .withName("H5VL_native_file_get_free_sections_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -51,9 +49,7 @@ public static final GroupLayout layout() { * H5F_mem_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -63,9 +59,7 @@ public static final GroupLayout layout() { * H5F_mem_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -73,9 +67,7 @@ public static final GroupLayout layout() { * H5F_mem_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -83,11 +75,13 @@ public static int type(MemorySegment struct) { * H5F_mem_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } - private static final AddressLayout sect_info$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sect_info")); + private static final AddressLayout sect_info$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("sect_info")); /** * Layout for field: @@ -95,9 +89,7 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_sect_info_t *sect_info * } */ - public static final AddressLayout sect_info$layout() { - return sect_info$LAYOUT; - } + public static final AddressLayout sect_info$layout() { return sect_info$LAYOUT; } private static final long sect_info$OFFSET = 8; @@ -107,9 +99,7 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_sect_info_t *sect_info * } */ - public static final long sect_info$offset() { - return sect_info$OFFSET; - } + public static final long sect_info$offset() { return sect_info$OFFSET; } /** * Getter for field: @@ -117,7 +107,8 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_sect_info_t *sect_info * } */ - public static MemorySegment sect_info(MemorySegment struct) { + public static MemorySegment sect_info(MemorySegment struct) + { return struct.get(sect_info$LAYOUT, sect_info$OFFSET); } @@ -127,7 +118,8 @@ public static MemorySegment sect_info(MemorySegment struct) { * H5F_sect_info_t *sect_info * } */ - public static void sect_info(MemorySegment struct, MemorySegment fieldValue) { + public static void sect_info(MemorySegment struct, MemorySegment fieldValue) + { struct.set(sect_info$LAYOUT, sect_info$OFFSET, fieldValue); } @@ -139,9 +131,7 @@ public static void sect_info(MemorySegment struct, MemorySegment fieldValue) { * size_t nsects * } */ - public static final OfLong nsects$layout() { - return nsects$LAYOUT; - } + public static final OfLong nsects$layout() { return nsects$LAYOUT; } private static final long nsects$OFFSET = 16; @@ -151,9 +141,7 @@ public static void sect_info(MemorySegment struct, MemorySegment fieldValue) { * size_t nsects * } */ - public static final long nsects$offset() { - return nsects$OFFSET; - } + public static final long nsects$offset() { return nsects$OFFSET; } /** * Getter for field: @@ -161,9 +149,7 @@ public static void sect_info(MemorySegment struct, MemorySegment fieldValue) { * size_t nsects * } */ - public static long nsects(MemorySegment struct) { - return struct.get(nsects$LAYOUT, nsects$OFFSET); - } + public static long nsects(MemorySegment struct) { return struct.get(nsects$LAYOUT, nsects$OFFSET); } /** * Setter for field: @@ -171,11 +157,13 @@ public static long nsects(MemorySegment struct) { * size_t nsects * } */ - public static void nsects(MemorySegment struct, long fieldValue) { + public static void nsects(MemorySegment struct, long fieldValue) + { struct.set(nsects$LAYOUT, nsects$OFFSET, fieldValue); } - private static final AddressLayout sect_count$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sect_count")); + private static final AddressLayout sect_count$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("sect_count")); /** * Layout for field: @@ -183,9 +171,7 @@ public static void nsects(MemorySegment struct, long fieldValue) { * size_t *sect_count * } */ - public static final AddressLayout sect_count$layout() { - return sect_count$LAYOUT; - } + public static final AddressLayout sect_count$layout() { return sect_count$LAYOUT; } private static final long sect_count$OFFSET = 24; @@ -195,9 +181,7 @@ public static void nsects(MemorySegment struct, long fieldValue) { * size_t *sect_count * } */ - public static final long sect_count$offset() { - return sect_count$OFFSET; - } + public static final long sect_count$offset() { return sect_count$OFFSET; } /** * Getter for field: @@ -205,7 +189,8 @@ public static void nsects(MemorySegment struct, long fieldValue) { * size_t *sect_count * } */ - public static MemorySegment sect_count(MemorySegment struct) { + public static MemorySegment sect_count(MemorySegment struct) + { return struct.get(sect_count$LAYOUT, sect_count$OFFSET); } @@ -215,7 +200,8 @@ public static MemorySegment sect_count(MemorySegment struct) { * size_t *sect_count * } */ - public static void sect_count(MemorySegment struct, MemorySegment fieldValue) { + public static void sect_count(MemorySegment struct, MemorySegment fieldValue) + { struct.set(sect_count$LAYOUT, sect_count$OFFSET, fieldValue); } @@ -223,7 +209,8 @@ public static void sect_count(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -235,15 +222,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -251,7 +237,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -259,8 +246,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_freespace_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_freespace_t.java index b2e07299592..f4c33064b60 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_freespace_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_freespace_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_freespace_t { @@ -21,20 +21,18 @@ */ public class H5VL_native_file_get_freespace_t { - H5VL_native_file_get_freespace_t() { + H5VL_native_file_get_freespace_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("size") - ).withName("H5VL_native_file_get_freespace_t"); + private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("size")) + .withName("H5VL_native_file_get_freespace_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("size")); @@ -44,9 +42,7 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -56,9 +52,7 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -66,9 +60,7 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { - return struct.get(size$LAYOUT, size$OFFSET); - } + public static MemorySegment size(MemorySegment struct) { return struct.get(size$LAYOUT, size$OFFSET); } /** * Setter for field: @@ -76,7 +68,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -84,7 +77,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -96,15 +90,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -112,7 +105,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -120,8 +114,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_info_t.java index def2ebfb040..31f8d493984 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_info_t { @@ -22,22 +22,21 @@ */ public class H5VL_native_file_get_info_t { - H5VL_native_file_get_info_t() { + H5VL_native_file_get_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("finfo") - ).withName("H5VL_native_file_get_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("finfo")) + .withName("H5VL_native_file_get_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); @@ -47,9 +46,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static final OfInt type$layout() { - return type$LAYOUT; - } + public static final OfInt type$layout() { return type$LAYOUT; } private static final long type$OFFSET = 0; @@ -59,9 +56,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static final long type$offset() { - return type$OFFSET; - } + public static final long type$offset() { return type$OFFSET; } /** * Getter for field: @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * H5I_type_t type * } */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } + public static int type(MemorySegment struct) { return struct.get(type$LAYOUT, type$OFFSET); } /** * Setter for field: @@ -79,7 +72,8 @@ public static int type(MemorySegment struct) { * H5I_type_t type * } */ - public static void type(MemorySegment struct, int fieldValue) { + public static void type(MemorySegment struct, int fieldValue) + { struct.set(type$LAYOUT, type$OFFSET, fieldValue); } @@ -91,9 +85,7 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_info2_t *finfo * } */ - public static final AddressLayout finfo$layout() { - return finfo$LAYOUT; - } + public static final AddressLayout finfo$layout() { return finfo$LAYOUT; } private static final long finfo$OFFSET = 8; @@ -103,9 +95,7 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_info2_t *finfo * } */ - public static final long finfo$offset() { - return finfo$OFFSET; - } + public static final long finfo$offset() { return finfo$OFFSET; } /** * Getter for field: @@ -113,9 +103,7 @@ public static void type(MemorySegment struct, int fieldValue) { * H5F_info2_t *finfo * } */ - public static MemorySegment finfo(MemorySegment struct) { - return struct.get(finfo$LAYOUT, finfo$OFFSET); - } + public static MemorySegment finfo(MemorySegment struct) { return struct.get(finfo$LAYOUT, finfo$OFFSET); } /** * Setter for field: @@ -123,7 +111,8 @@ public static MemorySegment finfo(MemorySegment struct) { * H5F_info2_t *finfo * } */ - public static void finfo(MemorySegment struct, MemorySegment fieldValue) { + public static void finfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(finfo$LAYOUT, finfo$OFFSET, fieldValue); } @@ -131,7 +120,8 @@ public static void finfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -143,15 +133,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -159,7 +148,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -167,8 +157,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_image_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_image_info_t.java index e05d6a382e2..b9c4d627a18 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_image_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_image_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_mdc_image_info_t { @@ -22,21 +22,19 @@ */ public class H5VL_native_file_get_mdc_image_info_t { - H5VL_native_file_get_mdc_image_info_t() { + H5VL_native_file_get_mdc_image_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("addr"), - hdf5_h.C_POINTER.withName("len") - ).withName("H5VL_native_file_get_mdc_image_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("addr"), hdf5_h.C_POINTER.withName("len")) + .withName("H5VL_native_file_get_mdc_image_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout addr$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("addr")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * haddr_t *addr * } */ - public static final AddressLayout addr$layout() { - return addr$LAYOUT; - } + public static final AddressLayout addr$layout() { return addr$LAYOUT; } private static final long addr$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * haddr_t *addr * } */ - public static final long addr$offset() { - return addr$OFFSET; - } + public static final long addr$offset() { return addr$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * haddr_t *addr * } */ - public static MemorySegment addr(MemorySegment struct) { - return struct.get(addr$LAYOUT, addr$OFFSET); - } + public static MemorySegment addr(MemorySegment struct) { return struct.get(addr$LAYOUT, addr$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static MemorySegment addr(MemorySegment struct) { * haddr_t *addr * } */ - public static void addr(MemorySegment struct, MemorySegment fieldValue) { + public static void addr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(addr$LAYOUT, addr$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *len * } */ - public static final AddressLayout len$layout() { - return len$LAYOUT; - } + public static final AddressLayout len$layout() { return len$LAYOUT; } private static final long len$OFFSET = 8; @@ -102,9 +93,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *len * } */ - public static final long len$offset() { - return len$OFFSET; - } + public static final long len$offset() { return len$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void addr(MemorySegment struct, MemorySegment fieldValue) { * hsize_t *len * } */ - public static MemorySegment len(MemorySegment struct) { - return struct.get(len$LAYOUT, len$OFFSET); - } + public static MemorySegment len(MemorySegment struct) { return struct.get(len$LAYOUT, len$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static MemorySegment len(MemorySegment struct) { * hsize_t *len * } */ - public static void len(MemorySegment struct, MemorySegment fieldValue) { + public static void len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(len$LAYOUT, len$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_logging_status_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_logging_status_t.java index ca0279e1197..817363cb5cb 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_logging_status_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_logging_status_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_mdc_logging_status_t { @@ -22,23 +22,24 @@ */ public class H5VL_native_file_get_mdc_logging_status_t { - H5VL_native_file_get_mdc_logging_status_t() { + H5VL_native_file_get_mdc_logging_status_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("is_enabled"), - hdf5_h.C_POINTER.withName("is_currently_logging") - ).withName("H5VL_native_file_get_mdc_logging_status_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("is_enabled"), + hdf5_h.C_POINTER.withName("is_currently_logging")) + .withName("H5VL_native_file_get_mdc_logging_status_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout is_enabled$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("is_enabled")); + private static final AddressLayout is_enabled$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("is_enabled")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * hbool_t *is_enabled * } */ - public static final AddressLayout is_enabled$layout() { - return is_enabled$LAYOUT; - } + public static final AddressLayout is_enabled$layout() { return is_enabled$LAYOUT; } private static final long is_enabled$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * hbool_t *is_enabled * } */ - public static final long is_enabled$offset() { - return is_enabled$OFFSET; - } + public static final long is_enabled$offset() { return is_enabled$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * hbool_t *is_enabled * } */ - public static MemorySegment is_enabled(MemorySegment struct) { + public static MemorySegment is_enabled(MemorySegment struct) + { return struct.get(is_enabled$LAYOUT, is_enabled$OFFSET); } @@ -78,11 +76,13 @@ public static MemorySegment is_enabled(MemorySegment struct) { * hbool_t *is_enabled * } */ - public static void is_enabled(MemorySegment struct, MemorySegment fieldValue) { + public static void is_enabled(MemorySegment struct, MemorySegment fieldValue) + { struct.set(is_enabled$LAYOUT, is_enabled$OFFSET, fieldValue); } - private static final AddressLayout is_currently_logging$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("is_currently_logging")); + private static final AddressLayout is_currently_logging$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("is_currently_logging")); /** * Layout for field: @@ -90,9 +90,7 @@ public static void is_enabled(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *is_currently_logging * } */ - public static final AddressLayout is_currently_logging$layout() { - return is_currently_logging$LAYOUT; - } + public static final AddressLayout is_currently_logging$layout() { return is_currently_logging$LAYOUT; } private static final long is_currently_logging$OFFSET = 8; @@ -102,9 +100,7 @@ public static void is_enabled(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *is_currently_logging * } */ - public static final long is_currently_logging$offset() { - return is_currently_logging$OFFSET; - } + public static final long is_currently_logging$offset() { return is_currently_logging$OFFSET; } /** * Getter for field: @@ -112,7 +108,8 @@ public static void is_enabled(MemorySegment struct, MemorySegment fieldValue) { * hbool_t *is_currently_logging * } */ - public static MemorySegment is_currently_logging(MemorySegment struct) { + public static MemorySegment is_currently_logging(MemorySegment struct) + { return struct.get(is_currently_logging$LAYOUT, is_currently_logging$OFFSET); } @@ -122,7 +119,8 @@ public static MemorySegment is_currently_logging(MemorySegment struct) { * hbool_t *is_currently_logging * } */ - public static void is_currently_logging(MemorySegment struct, MemorySegment fieldValue) { + public static void is_currently_logging(MemorySegment struct, MemorySegment fieldValue) + { struct.set(is_currently_logging$LAYOUT, is_currently_logging$OFFSET, fieldValue); } @@ -130,7 +128,8 @@ public static void is_currently_logging(MemorySegment struct, MemorySegment fiel * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +141,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +156,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +165,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_size_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_size_t.java index 3019d00ce7a..bc0f282346d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_size_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_mdc_size_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_mdc_size_t { @@ -24,25 +24,24 @@ */ public class H5VL_native_file_get_mdc_size_t { - H5VL_native_file_get_mdc_size_t() { + H5VL_native_file_get_mdc_size_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("max_size"), - hdf5_h.C_POINTER.withName("min_clean_size"), - hdf5_h.C_POINTER.withName("cur_size"), - hdf5_h.C_POINTER.withName("cur_num_entries") - ).withName("H5VL_native_file_get_mdc_size_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("max_size"), hdf5_h.C_POINTER.withName("min_clean_size"), + hdf5_h.C_POINTER.withName("cur_size"), hdf5_h.C_POINTER.withName("cur_num_entries")) + .withName("H5VL_native_file_get_mdc_size_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout max_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("max_size")); + private static final AddressLayout max_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("max_size")); /** * Layout for field: @@ -50,9 +49,7 @@ public static final GroupLayout layout() { * size_t *max_size * } */ - public static final AddressLayout max_size$layout() { - return max_size$LAYOUT; - } + public static final AddressLayout max_size$layout() { return max_size$LAYOUT; } private static final long max_size$OFFSET = 0; @@ -62,9 +59,7 @@ public static final GroupLayout layout() { * size_t *max_size * } */ - public static final long max_size$offset() { - return max_size$OFFSET; - } + public static final long max_size$offset() { return max_size$OFFSET; } /** * Getter for field: @@ -72,7 +67,8 @@ public static final GroupLayout layout() { * size_t *max_size * } */ - public static MemorySegment max_size(MemorySegment struct) { + public static MemorySegment max_size(MemorySegment struct) + { return struct.get(max_size$LAYOUT, max_size$OFFSET); } @@ -82,11 +78,13 @@ public static MemorySegment max_size(MemorySegment struct) { * size_t *max_size * } */ - public static void max_size(MemorySegment struct, MemorySegment fieldValue) { + public static void max_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(max_size$LAYOUT, max_size$OFFSET, fieldValue); } - private static final AddressLayout min_clean_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("min_clean_size")); + private static final AddressLayout min_clean_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("min_clean_size")); /** * Layout for field: @@ -94,9 +92,7 @@ public static void max_size(MemorySegment struct, MemorySegment fieldValue) { * size_t *min_clean_size * } */ - public static final AddressLayout min_clean_size$layout() { - return min_clean_size$LAYOUT; - } + public static final AddressLayout min_clean_size$layout() { return min_clean_size$LAYOUT; } private static final long min_clean_size$OFFSET = 8; @@ -106,9 +102,7 @@ public static void max_size(MemorySegment struct, MemorySegment fieldValue) { * size_t *min_clean_size * } */ - public static final long min_clean_size$offset() { - return min_clean_size$OFFSET; - } + public static final long min_clean_size$offset() { return min_clean_size$OFFSET; } /** * Getter for field: @@ -116,7 +110,8 @@ public static void max_size(MemorySegment struct, MemorySegment fieldValue) { * size_t *min_clean_size * } */ - public static MemorySegment min_clean_size(MemorySegment struct) { + public static MemorySegment min_clean_size(MemorySegment struct) + { return struct.get(min_clean_size$LAYOUT, min_clean_size$OFFSET); } @@ -126,11 +121,13 @@ public static MemorySegment min_clean_size(MemorySegment struct) { * size_t *min_clean_size * } */ - public static void min_clean_size(MemorySegment struct, MemorySegment fieldValue) { + public static void min_clean_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(min_clean_size$LAYOUT, min_clean_size$OFFSET, fieldValue); } - private static final AddressLayout cur_size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("cur_size")); + private static final AddressLayout cur_size$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("cur_size")); /** * Layout for field: @@ -138,9 +135,7 @@ public static void min_clean_size(MemorySegment struct, MemorySegment fieldValue * size_t *cur_size * } */ - public static final AddressLayout cur_size$layout() { - return cur_size$LAYOUT; - } + public static final AddressLayout cur_size$layout() { return cur_size$LAYOUT; } private static final long cur_size$OFFSET = 16; @@ -150,9 +145,7 @@ public static void min_clean_size(MemorySegment struct, MemorySegment fieldValue * size_t *cur_size * } */ - public static final long cur_size$offset() { - return cur_size$OFFSET; - } + public static final long cur_size$offset() { return cur_size$OFFSET; } /** * Getter for field: @@ -160,7 +153,8 @@ public static void min_clean_size(MemorySegment struct, MemorySegment fieldValue * size_t *cur_size * } */ - public static MemorySegment cur_size(MemorySegment struct) { + public static MemorySegment cur_size(MemorySegment struct) + { return struct.get(cur_size$LAYOUT, cur_size$OFFSET); } @@ -170,11 +164,13 @@ public static MemorySegment cur_size(MemorySegment struct) { * size_t *cur_size * } */ - public static void cur_size(MemorySegment struct, MemorySegment fieldValue) { + public static void cur_size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cur_size$LAYOUT, cur_size$OFFSET, fieldValue); } - private static final AddressLayout cur_num_entries$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("cur_num_entries")); + private static final AddressLayout cur_num_entries$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("cur_num_entries")); /** * Layout for field: @@ -182,9 +178,7 @@ public static void cur_size(MemorySegment struct, MemorySegment fieldValue) { * uint32_t *cur_num_entries * } */ - public static final AddressLayout cur_num_entries$layout() { - return cur_num_entries$LAYOUT; - } + public static final AddressLayout cur_num_entries$layout() { return cur_num_entries$LAYOUT; } private static final long cur_num_entries$OFFSET = 24; @@ -194,9 +188,7 @@ public static void cur_size(MemorySegment struct, MemorySegment fieldValue) { * uint32_t *cur_num_entries * } */ - public static final long cur_num_entries$offset() { - return cur_num_entries$OFFSET; - } + public static final long cur_num_entries$offset() { return cur_num_entries$OFFSET; } /** * Getter for field: @@ -204,7 +196,8 @@ public static void cur_size(MemorySegment struct, MemorySegment fieldValue) { * uint32_t *cur_num_entries * } */ - public static MemorySegment cur_num_entries(MemorySegment struct) { + public static MemorySegment cur_num_entries(MemorySegment struct) + { return struct.get(cur_num_entries$LAYOUT, cur_num_entries$OFFSET); } @@ -214,7 +207,8 @@ public static MemorySegment cur_num_entries(MemorySegment struct) { * uint32_t *cur_num_entries * } */ - public static void cur_num_entries(MemorySegment struct, MemorySegment fieldValue) { + public static void cur_num_entries(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cur_num_entries$LAYOUT, cur_num_entries$OFFSET, fieldValue); } @@ -222,7 +216,8 @@ public static void cur_num_entries(MemorySegment struct, MemorySegment fieldValu * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +229,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +244,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +253,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_page_buffering_stats_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_page_buffering_stats_t.java index 977d5d3c5be..f7f2074dcc9 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_page_buffering_stats_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_page_buffering_stats_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_page_buffering_stats_t { @@ -25,26 +25,25 @@ */ public class H5VL_native_file_get_page_buffering_stats_t { - H5VL_native_file_get_page_buffering_stats_t() { + H5VL_native_file_get_page_buffering_stats_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("accesses"), - hdf5_h.C_POINTER.withName("hits"), - hdf5_h.C_POINTER.withName("misses"), - hdf5_h.C_POINTER.withName("evictions"), - hdf5_h.C_POINTER.withName("bypasses") - ).withName("H5VL_native_file_get_page_buffering_stats_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("accesses"), hdf5_h.C_POINTER.withName("hits"), + hdf5_h.C_POINTER.withName("misses"), hdf5_h.C_POINTER.withName("evictions"), + hdf5_h.C_POINTER.withName("bypasses")) + .withName("H5VL_native_file_get_page_buffering_stats_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout accesses$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("accesses")); + private static final AddressLayout accesses$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("accesses")); /** * Layout for field: @@ -52,9 +51,7 @@ public static final GroupLayout layout() { * unsigned int *accesses * } */ - public static final AddressLayout accesses$layout() { - return accesses$LAYOUT; - } + public static final AddressLayout accesses$layout() { return accesses$LAYOUT; } private static final long accesses$OFFSET = 0; @@ -64,9 +61,7 @@ public static final GroupLayout layout() { * unsigned int *accesses * } */ - public static final long accesses$offset() { - return accesses$OFFSET; - } + public static final long accesses$offset() { return accesses$OFFSET; } /** * Getter for field: @@ -74,7 +69,8 @@ public static final GroupLayout layout() { * unsigned int *accesses * } */ - public static MemorySegment accesses(MemorySegment struct) { + public static MemorySegment accesses(MemorySegment struct) + { return struct.get(accesses$LAYOUT, accesses$OFFSET); } @@ -84,7 +80,8 @@ public static MemorySegment accesses(MemorySegment struct) { * unsigned int *accesses * } */ - public static void accesses(MemorySegment struct, MemorySegment fieldValue) { + public static void accesses(MemorySegment struct, MemorySegment fieldValue) + { struct.set(accesses$LAYOUT, accesses$OFFSET, fieldValue); } @@ -96,9 +93,7 @@ public static void accesses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *hits * } */ - public static final AddressLayout hits$layout() { - return hits$LAYOUT; - } + public static final AddressLayout hits$layout() { return hits$LAYOUT; } private static final long hits$OFFSET = 8; @@ -108,9 +103,7 @@ public static void accesses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *hits * } */ - public static final long hits$offset() { - return hits$OFFSET; - } + public static final long hits$offset() { return hits$OFFSET; } /** * Getter for field: @@ -118,9 +111,7 @@ public static void accesses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *hits * } */ - public static MemorySegment hits(MemorySegment struct) { - return struct.get(hits$LAYOUT, hits$OFFSET); - } + public static MemorySegment hits(MemorySegment struct) { return struct.get(hits$LAYOUT, hits$OFFSET); } /** * Setter for field: @@ -128,7 +119,8 @@ public static MemorySegment hits(MemorySegment struct) { * unsigned int *hits * } */ - public static void hits(MemorySegment struct, MemorySegment fieldValue) { + public static void hits(MemorySegment struct, MemorySegment fieldValue) + { struct.set(hits$LAYOUT, hits$OFFSET, fieldValue); } @@ -140,9 +132,7 @@ public static void hits(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *misses * } */ - public static final AddressLayout misses$layout() { - return misses$LAYOUT; - } + public static final AddressLayout misses$layout() { return misses$LAYOUT; } private static final long misses$OFFSET = 16; @@ -152,9 +142,7 @@ public static void hits(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *misses * } */ - public static final long misses$offset() { - return misses$OFFSET; - } + public static final long misses$offset() { return misses$OFFSET; } /** * Getter for field: @@ -162,7 +150,8 @@ public static void hits(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *misses * } */ - public static MemorySegment misses(MemorySegment struct) { + public static MemorySegment misses(MemorySegment struct) + { return struct.get(misses$LAYOUT, misses$OFFSET); } @@ -172,11 +161,13 @@ public static MemorySegment misses(MemorySegment struct) { * unsigned int *misses * } */ - public static void misses(MemorySegment struct, MemorySegment fieldValue) { + public static void misses(MemorySegment struct, MemorySegment fieldValue) + { struct.set(misses$LAYOUT, misses$OFFSET, fieldValue); } - private static final AddressLayout evictions$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("evictions")); + private static final AddressLayout evictions$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("evictions")); /** * Layout for field: @@ -184,9 +175,7 @@ public static void misses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *evictions * } */ - public static final AddressLayout evictions$layout() { - return evictions$LAYOUT; - } + public static final AddressLayout evictions$layout() { return evictions$LAYOUT; } private static final long evictions$OFFSET = 24; @@ -196,9 +185,7 @@ public static void misses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *evictions * } */ - public static final long evictions$offset() { - return evictions$OFFSET; - } + public static final long evictions$offset() { return evictions$OFFSET; } /** * Getter for field: @@ -206,7 +193,8 @@ public static void misses(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *evictions * } */ - public static MemorySegment evictions(MemorySegment struct) { + public static MemorySegment evictions(MemorySegment struct) + { return struct.get(evictions$LAYOUT, evictions$OFFSET); } @@ -216,11 +204,13 @@ public static MemorySegment evictions(MemorySegment struct) { * unsigned int *evictions * } */ - public static void evictions(MemorySegment struct, MemorySegment fieldValue) { + public static void evictions(MemorySegment struct, MemorySegment fieldValue) + { struct.set(evictions$LAYOUT, evictions$OFFSET, fieldValue); } - private static final AddressLayout bypasses$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("bypasses")); + private static final AddressLayout bypasses$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("bypasses")); /** * Layout for field: @@ -228,9 +218,7 @@ public static void evictions(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *bypasses * } */ - public static final AddressLayout bypasses$layout() { - return bypasses$LAYOUT; - } + public static final AddressLayout bypasses$layout() { return bypasses$LAYOUT; } private static final long bypasses$OFFSET = 32; @@ -240,9 +228,7 @@ public static void evictions(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *bypasses * } */ - public static final long bypasses$offset() { - return bypasses$OFFSET; - } + public static final long bypasses$offset() { return bypasses$OFFSET; } /** * Getter for field: @@ -250,7 +236,8 @@ public static void evictions(MemorySegment struct, MemorySegment fieldValue) { * unsigned int *bypasses * } */ - public static MemorySegment bypasses(MemorySegment struct) { + public static MemorySegment bypasses(MemorySegment struct) + { return struct.get(bypasses$LAYOUT, bypasses$OFFSET); } @@ -260,7 +247,8 @@ public static MemorySegment bypasses(MemorySegment struct) { * unsigned int *bypasses * } */ - public static void bypasses(MemorySegment struct, MemorySegment fieldValue) { + public static void bypasses(MemorySegment struct, MemorySegment fieldValue) + { struct.set(bypasses$LAYOUT, bypasses$OFFSET, fieldValue); } @@ -268,7 +256,8 @@ public static void bypasses(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -280,15 +269,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -296,7 +284,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -304,8 +293,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_vfd_handle_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_vfd_handle_t.java index 2a634ad190b..da98751bf77 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_vfd_handle_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_get_vfd_handle_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_get_vfd_handle_t { @@ -22,21 +22,19 @@ */ public class H5VL_native_file_get_vfd_handle_t { - H5VL_native_file_get_vfd_handle_t() { + H5VL_native_file_get_vfd_handle_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("fapl_id"), - hdf5_h.C_POINTER.withName("file_handle") - ).withName("H5VL_native_file_get_vfd_handle_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("fapl_id"), hdf5_h.C_POINTER.withName("file_handle")) + .withName("H5VL_native_file_get_vfd_handle_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong fapl_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("fapl_id")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static final OfLong fapl_id$layout() { - return fapl_id$LAYOUT; - } + public static final OfLong fapl_id$layout() { return fapl_id$LAYOUT; } private static final long fapl_id$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static final long fapl_id$offset() { - return fapl_id$OFFSET; - } + public static final long fapl_id$offset() { return fapl_id$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * hid_t fapl_id * } */ - public static long fapl_id(MemorySegment struct) { - return struct.get(fapl_id$LAYOUT, fapl_id$OFFSET); - } + public static long fapl_id(MemorySegment struct) { return struct.get(fapl_id$LAYOUT, fapl_id$OFFSET); } /** * Setter for field: @@ -78,11 +70,13 @@ public static long fapl_id(MemorySegment struct) { * hid_t fapl_id * } */ - public static void fapl_id(MemorySegment struct, long fieldValue) { + public static void fapl_id(MemorySegment struct, long fieldValue) + { struct.set(fapl_id$LAYOUT, fapl_id$OFFSET, fieldValue); } - private static final AddressLayout file_handle$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file_handle")); + private static final AddressLayout file_handle$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file_handle")); /** * Layout for field: @@ -90,9 +84,7 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * void **file_handle * } */ - public static final AddressLayout file_handle$layout() { - return file_handle$LAYOUT; - } + public static final AddressLayout file_handle$layout() { return file_handle$LAYOUT; } private static final long file_handle$OFFSET = 8; @@ -102,9 +94,7 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * void **file_handle * } */ - public static final long file_handle$offset() { - return file_handle$OFFSET; - } + public static final long file_handle$offset() { return file_handle$OFFSET; } /** * Getter for field: @@ -112,7 +102,8 @@ public static void fapl_id(MemorySegment struct, long fieldValue) { * void **file_handle * } */ - public static MemorySegment file_handle(MemorySegment struct) { + public static MemorySegment file_handle(MemorySegment struct) + { return struct.get(file_handle$LAYOUT, file_handle$OFFSET); } @@ -122,7 +113,8 @@ public static MemorySegment file_handle(MemorySegment struct) { * void **file_handle * } */ - public static void file_handle(MemorySegment struct, MemorySegment fieldValue) { + public static void file_handle(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file_handle$LAYOUT, file_handle$OFFSET, fieldValue); } @@ -130,7 +122,8 @@ public static void file_handle(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +135,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +150,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +159,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_optional_args_t.java index cbd3e45caf3..e62cd77d487 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_native_file_optional_args_t { @@ -57,40 +57,45 @@ */ public class H5VL_native_file_optional_args_t { - H5VL_native_file_optional_args_t() { + H5VL_native_file_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_native_file_get_file_image_t.layout().withName("get_file_image"), - H5VL_native_file_get_free_sections_t.layout().withName("get_free_sections"), - H5VL_native_file_get_freespace_t.layout().withName("get_freespace"), - H5VL_native_file_get_info_t.layout().withName("get_info"), - H5VL_native_file_optional_args_t.get_mdc_config.layout().withName("get_mdc_config"), - H5VL_native_file_optional_args_t.get_mdc_hit_rate.layout().withName("get_mdc_hit_rate"), - H5VL_native_file_get_mdc_size_t.layout().withName("get_mdc_size"), - H5VL_native_file_optional_args_t.get_size.layout().withName("get_size"), - H5VL_native_file_get_vfd_handle_t.layout().withName("get_vfd_handle"), - H5VL_native_file_optional_args_t.set_mdc_config.layout().withName("set_mdc_config"), - H5VL_native_file_optional_args_t.get_metadata_read_retry_info.layout().withName("get_metadata_read_retry_info"), - H5VL_native_file_get_mdc_logging_status_t.layout().withName("get_mdc_logging_status"), - H5VL_native_file_get_page_buffering_stats_t.layout().withName("get_page_buffering_stats"), - H5VL_native_file_get_mdc_image_info_t.layout().withName("get_mdc_image_info"), - H5VL_native_file_optional_args_t.get_eoa.layout().withName("get_eoa"), - H5VL_native_file_optional_args_t.increment_filesize.layout().withName("increment_filesize"), - H5VL_native_file_set_libver_bounds_t.layout().withName("set_libver_bounds"), - H5VL_native_file_optional_args_t.get_min_dset_ohdr_flag.layout().withName("get_min_dset_ohdr_flag"), - H5VL_native_file_optional_args_t.set_min_dset_ohdr_flag.layout().withName("set_min_dset_ohdr_flag") - ).withName("H5VL_native_file_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout( + H5VL_native_file_get_file_image_t.layout().withName("get_file_image"), + H5VL_native_file_get_free_sections_t.layout().withName("get_free_sections"), + H5VL_native_file_get_freespace_t.layout().withName("get_freespace"), + H5VL_native_file_get_info_t.layout().withName("get_info"), + H5VL_native_file_optional_args_t.get_mdc_config.layout().withName("get_mdc_config"), + H5VL_native_file_optional_args_t.get_mdc_hit_rate.layout().withName("get_mdc_hit_rate"), + H5VL_native_file_get_mdc_size_t.layout().withName("get_mdc_size"), + H5VL_native_file_optional_args_t.get_size.layout().withName("get_size"), + H5VL_native_file_get_vfd_handle_t.layout().withName("get_vfd_handle"), + H5VL_native_file_optional_args_t.set_mdc_config.layout().withName("set_mdc_config"), + H5VL_native_file_optional_args_t.get_metadata_read_retry_info.layout().withName( + "get_metadata_read_retry_info"), + H5VL_native_file_get_mdc_logging_status_t.layout().withName("get_mdc_logging_status"), + H5VL_native_file_get_page_buffering_stats_t.layout().withName("get_page_buffering_stats"), + H5VL_native_file_get_mdc_image_info_t.layout().withName("get_mdc_image_info"), + H5VL_native_file_optional_args_t.get_eoa.layout().withName("get_eoa"), + H5VL_native_file_optional_args_t.increment_filesize.layout().withName("increment_filesize"), + H5VL_native_file_set_libver_bounds_t.layout().withName("set_libver_bounds"), + H5VL_native_file_optional_args_t.get_min_dset_ohdr_flag.layout().withName( + "get_min_dset_ohdr_flag"), + H5VL_native_file_optional_args_t.set_min_dset_ohdr_flag.layout().withName( + "set_min_dset_ohdr_flag")) + .withName("H5VL_native_file_optional_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout get_file_image$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_file_image")); + private static final GroupLayout get_file_image$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_file_image")); /** * Layout for field: @@ -98,9 +103,7 @@ public static final GroupLayout layout() { * H5VL_native_file_get_file_image_t get_file_image * } */ - public static final GroupLayout get_file_image$layout() { - return get_file_image$LAYOUT; - } + public static final GroupLayout get_file_image$layout() { return get_file_image$LAYOUT; } private static final long get_file_image$OFFSET = 0; @@ -110,9 +113,7 @@ public static final GroupLayout layout() { * H5VL_native_file_get_file_image_t get_file_image * } */ - public static final long get_file_image$offset() { - return get_file_image$OFFSET; - } + public static final long get_file_image$offset() { return get_file_image$OFFSET; } /** * Getter for field: @@ -120,7 +121,8 @@ public static final GroupLayout layout() { * H5VL_native_file_get_file_image_t get_file_image * } */ - public static MemorySegment get_file_image(MemorySegment union) { + public static MemorySegment get_file_image(MemorySegment union) + { return union.asSlice(get_file_image$OFFSET, get_file_image$LAYOUT.byteSize()); } @@ -130,11 +132,13 @@ public static MemorySegment get_file_image(MemorySegment union) { * H5VL_native_file_get_file_image_t get_file_image * } */ - public static void get_file_image(MemorySegment union, MemorySegment fieldValue) { + public static void get_file_image(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_file_image$OFFSET, get_file_image$LAYOUT.byteSize()); } - private static final GroupLayout get_free_sections$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_free_sections")); + private static final GroupLayout get_free_sections$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_free_sections")); /** * Layout for field: @@ -142,9 +146,7 @@ public static void get_file_image(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_free_sections_t get_free_sections * } */ - public static final GroupLayout get_free_sections$layout() { - return get_free_sections$LAYOUT; - } + public static final GroupLayout get_free_sections$layout() { return get_free_sections$LAYOUT; } private static final long get_free_sections$OFFSET = 0; @@ -154,9 +156,7 @@ public static void get_file_image(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_free_sections_t get_free_sections * } */ - public static final long get_free_sections$offset() { - return get_free_sections$OFFSET; - } + public static final long get_free_sections$offset() { return get_free_sections$OFFSET; } /** * Getter for field: @@ -164,7 +164,8 @@ public static void get_file_image(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_free_sections_t get_free_sections * } */ - public static MemorySegment get_free_sections(MemorySegment union) { + public static MemorySegment get_free_sections(MemorySegment union) + { return union.asSlice(get_free_sections$OFFSET, get_free_sections$LAYOUT.byteSize()); } @@ -174,11 +175,14 @@ public static MemorySegment get_free_sections(MemorySegment union) { * H5VL_native_file_get_free_sections_t get_free_sections * } */ - public static void get_free_sections(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_free_sections$OFFSET, get_free_sections$LAYOUT.byteSize()); + public static void get_free_sections(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_free_sections$OFFSET, + get_free_sections$LAYOUT.byteSize()); } - private static final GroupLayout get_freespace$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_freespace")); + private static final GroupLayout get_freespace$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_freespace")); /** * Layout for field: @@ -186,9 +190,7 @@ public static void get_free_sections(MemorySegment union, MemorySegment fieldVal * H5VL_native_file_get_freespace_t get_freespace * } */ - public static final GroupLayout get_freespace$layout() { - return get_freespace$LAYOUT; - } + public static final GroupLayout get_freespace$layout() { return get_freespace$LAYOUT; } private static final long get_freespace$OFFSET = 0; @@ -198,9 +200,7 @@ public static void get_free_sections(MemorySegment union, MemorySegment fieldVal * H5VL_native_file_get_freespace_t get_freespace * } */ - public static final long get_freespace$offset() { - return get_freespace$OFFSET; - } + public static final long get_freespace$offset() { return get_freespace$OFFSET; } /** * Getter for field: @@ -208,7 +208,8 @@ public static void get_free_sections(MemorySegment union, MemorySegment fieldVal * H5VL_native_file_get_freespace_t get_freespace * } */ - public static MemorySegment get_freespace(MemorySegment union) { + public static MemorySegment get_freespace(MemorySegment union) + { return union.asSlice(get_freespace$OFFSET, get_freespace$LAYOUT.byteSize()); } @@ -218,7 +219,8 @@ public static MemorySegment get_freespace(MemorySegment union) { * H5VL_native_file_get_freespace_t get_freespace * } */ - public static void get_freespace(MemorySegment union, MemorySegment fieldValue) { + public static void get_freespace(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_freespace$OFFSET, get_freespace$LAYOUT.byteSize()); } @@ -230,9 +232,7 @@ public static void get_freespace(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_info_t get_info * } */ - public static final GroupLayout get_info$layout() { - return get_info$LAYOUT; - } + public static final GroupLayout get_info$layout() { return get_info$LAYOUT; } private static final long get_info$OFFSET = 0; @@ -242,9 +242,7 @@ public static void get_freespace(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_info_t get_info * } */ - public static final long get_info$offset() { - return get_info$OFFSET; - } + public static final long get_info$offset() { return get_info$OFFSET; } /** * Getter for field: @@ -252,7 +250,8 @@ public static void get_freespace(MemorySegment union, MemorySegment fieldValue) * H5VL_native_file_get_info_t get_info * } */ - public static MemorySegment get_info(MemorySegment union) { + public static MemorySegment get_info(MemorySegment union) + { return union.asSlice(get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -262,7 +261,8 @@ public static MemorySegment get_info(MemorySegment union) { * H5VL_native_file_get_info_t get_info * } */ - public static void get_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -275,22 +275,21 @@ public static void get_info(MemorySegment union, MemorySegment fieldValue) { */ public static class get_mdc_config { - get_mdc_config() { + get_mdc_config() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("config") - ).withName("$anon$310:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("config")).withName("$anon$310:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout config$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("config")); + private static final AddressLayout config$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("config")); /** * Layout for field: @@ -298,9 +297,7 @@ public static final GroupLayout layout() { * H5AC_cache_config_t *config * } */ - public static final AddressLayout config$layout() { - return config$LAYOUT; - } + public static final AddressLayout config$layout() { return config$LAYOUT; } private static final long config$OFFSET = 0; @@ -310,9 +307,7 @@ public static final GroupLayout layout() { * H5AC_cache_config_t *config * } */ - public static final long config$offset() { - return config$OFFSET; - } + public static final long config$offset() { return config$OFFSET; } /** * Getter for field: @@ -320,7 +315,8 @@ public static final GroupLayout layout() { * H5AC_cache_config_t *config * } */ - public static MemorySegment config(MemorySegment struct) { + public static MemorySegment config(MemorySegment struct) + { return struct.get(config$LAYOUT, config$OFFSET); } @@ -330,7 +326,8 @@ public static MemorySegment config(MemorySegment struct) { * H5AC_cache_config_t *config * } */ - public static void config(MemorySegment struct, MemorySegment fieldValue) { + public static void config(MemorySegment struct, MemorySegment fieldValue) + { struct.set(config$LAYOUT, config$OFFSET, fieldValue); } @@ -338,7 +335,8 @@ public static void config(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -350,7 +348,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -358,7 +357,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -366,7 +366,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -374,12 +376,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_mdc_config$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mdc_config")); + private static final GroupLayout get_mdc_config$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mdc_config")); /** * Layout for field: @@ -389,9 +394,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_config * } */ - public static final GroupLayout get_mdc_config$layout() { - return get_mdc_config$LAYOUT; - } + public static final GroupLayout get_mdc_config$layout() { return get_mdc_config$LAYOUT; } private static final long get_mdc_config$OFFSET = 0; @@ -403,9 +406,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_config * } */ - public static final long get_mdc_config$offset() { - return get_mdc_config$OFFSET; - } + public static final long get_mdc_config$offset() { return get_mdc_config$OFFSET; } /** * Getter for field: @@ -415,7 +416,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_config * } */ - public static MemorySegment get_mdc_config(MemorySegment union) { + public static MemorySegment get_mdc_config(MemorySegment union) + { return union.asSlice(get_mdc_config$OFFSET, get_mdc_config$LAYOUT.byteSize()); } @@ -427,7 +429,8 @@ public static MemorySegment get_mdc_config(MemorySegment union) { * } get_mdc_config * } */ - public static void get_mdc_config(MemorySegment union, MemorySegment fieldValue) { + public static void get_mdc_config(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_mdc_config$OFFSET, get_mdc_config$LAYOUT.byteSize()); } @@ -440,22 +443,21 @@ public static void get_mdc_config(MemorySegment union, MemorySegment fieldValue) */ public static class get_mdc_hit_rate { - get_mdc_hit_rate() { + get_mdc_hit_rate() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("hit_rate") - ).withName("$anon$315:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("hit_rate")).withName("$anon$315:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout hit_rate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("hit_rate")); + private static final AddressLayout hit_rate$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("hit_rate")); /** * Layout for field: @@ -463,9 +465,7 @@ public static final GroupLayout layout() { * double *hit_rate * } */ - public static final AddressLayout hit_rate$layout() { - return hit_rate$LAYOUT; - } + public static final AddressLayout hit_rate$layout() { return hit_rate$LAYOUT; } private static final long hit_rate$OFFSET = 0; @@ -475,9 +475,7 @@ public static final GroupLayout layout() { * double *hit_rate * } */ - public static final long hit_rate$offset() { - return hit_rate$OFFSET; - } + public static final long hit_rate$offset() { return hit_rate$OFFSET; } /** * Getter for field: @@ -485,7 +483,8 @@ public static final GroupLayout layout() { * double *hit_rate * } */ - public static MemorySegment hit_rate(MemorySegment struct) { + public static MemorySegment hit_rate(MemorySegment struct) + { return struct.get(hit_rate$LAYOUT, hit_rate$OFFSET); } @@ -495,7 +494,8 @@ public static MemorySegment hit_rate(MemorySegment struct) { * double *hit_rate * } */ - public static void hit_rate(MemorySegment struct, MemorySegment fieldValue) { + public static void hit_rate(MemorySegment struct, MemorySegment fieldValue) + { struct.set(hit_rate$LAYOUT, hit_rate$OFFSET, fieldValue); } @@ -503,7 +503,8 @@ public static void hit_rate(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -515,7 +516,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -523,7 +525,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -531,7 +534,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -539,12 +544,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_mdc_hit_rate$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mdc_hit_rate")); + private static final GroupLayout get_mdc_hit_rate$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mdc_hit_rate")); /** * Layout for field: @@ -554,9 +562,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_hit_rate * } */ - public static final GroupLayout get_mdc_hit_rate$layout() { - return get_mdc_hit_rate$LAYOUT; - } + public static final GroupLayout get_mdc_hit_rate$layout() { return get_mdc_hit_rate$LAYOUT; } private static final long get_mdc_hit_rate$OFFSET = 0; @@ -568,9 +574,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_hit_rate * } */ - public static final long get_mdc_hit_rate$offset() { - return get_mdc_hit_rate$OFFSET; - } + public static final long get_mdc_hit_rate$offset() { return get_mdc_hit_rate$OFFSET; } /** * Getter for field: @@ -580,7 +584,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_mdc_hit_rate * } */ - public static MemorySegment get_mdc_hit_rate(MemorySegment union) { + public static MemorySegment get_mdc_hit_rate(MemorySegment union) + { return union.asSlice(get_mdc_hit_rate$OFFSET, get_mdc_hit_rate$LAYOUT.byteSize()); } @@ -592,11 +597,14 @@ public static MemorySegment get_mdc_hit_rate(MemorySegment union) { * } get_mdc_hit_rate * } */ - public static void get_mdc_hit_rate(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_mdc_hit_rate$OFFSET, get_mdc_hit_rate$LAYOUT.byteSize()); + public static void get_mdc_hit_rate(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_mdc_hit_rate$OFFSET, + get_mdc_hit_rate$LAYOUT.byteSize()); } - private static final GroupLayout get_mdc_size$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mdc_size")); + private static final GroupLayout get_mdc_size$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mdc_size")); /** * Layout for field: @@ -604,9 +612,7 @@ public static void get_mdc_hit_rate(MemorySegment union, MemorySegment fieldValu * H5VL_native_file_get_mdc_size_t get_mdc_size * } */ - public static final GroupLayout get_mdc_size$layout() { - return get_mdc_size$LAYOUT; - } + public static final GroupLayout get_mdc_size$layout() { return get_mdc_size$LAYOUT; } private static final long get_mdc_size$OFFSET = 0; @@ -616,9 +622,7 @@ public static void get_mdc_hit_rate(MemorySegment union, MemorySegment fieldValu * H5VL_native_file_get_mdc_size_t get_mdc_size * } */ - public static final long get_mdc_size$offset() { - return get_mdc_size$OFFSET; - } + public static final long get_mdc_size$offset() { return get_mdc_size$OFFSET; } /** * Getter for field: @@ -626,7 +630,8 @@ public static void get_mdc_hit_rate(MemorySegment union, MemorySegment fieldValu * H5VL_native_file_get_mdc_size_t get_mdc_size * } */ - public static MemorySegment get_mdc_size(MemorySegment union) { + public static MemorySegment get_mdc_size(MemorySegment union) + { return union.asSlice(get_mdc_size$OFFSET, get_mdc_size$LAYOUT.byteSize()); } @@ -636,7 +641,8 @@ public static MemorySegment get_mdc_size(MemorySegment union) { * H5VL_native_file_get_mdc_size_t get_mdc_size * } */ - public static void get_mdc_size(MemorySegment union, MemorySegment fieldValue) { + public static void get_mdc_size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_mdc_size$OFFSET, get_mdc_size$LAYOUT.byteSize()); } @@ -649,20 +655,18 @@ public static void get_mdc_size(MemorySegment union, MemorySegment fieldValue) { */ public static class get_size { - get_size() { + get_size() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("size") - ).withName("$anon$323:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("size")).withName("$anon$323:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout size$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("size")); @@ -672,9 +676,7 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static final AddressLayout size$layout() { - return size$LAYOUT; - } + public static final AddressLayout size$layout() { return size$LAYOUT; } private static final long size$OFFSET = 0; @@ -684,9 +686,7 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static final long size$offset() { - return size$OFFSET; - } + public static final long size$offset() { return size$OFFSET; } /** * Getter for field: @@ -694,7 +694,8 @@ public static final GroupLayout layout() { * hsize_t *size * } */ - public static MemorySegment size(MemorySegment struct) { + public static MemorySegment size(MemorySegment struct) + { return struct.get(size$LAYOUT, size$OFFSET); } @@ -704,7 +705,8 @@ public static MemorySegment size(MemorySegment struct) { * hsize_t *size * } */ - public static void size(MemorySegment struct, MemorySegment fieldValue) { + public static void size(MemorySegment struct, MemorySegment fieldValue) + { struct.set(size$LAYOUT, size$OFFSET, fieldValue); } @@ -712,7 +714,8 @@ public static void size(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -724,7 +727,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -732,7 +736,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -740,7 +745,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -748,7 +755,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -763,9 +772,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_size * } */ - public static final GroupLayout get_size$layout() { - return get_size$LAYOUT; - } + public static final GroupLayout get_size$layout() { return get_size$LAYOUT; } private static final long get_size$OFFSET = 0; @@ -777,9 +784,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_size * } */ - public static final long get_size$offset() { - return get_size$OFFSET; - } + public static final long get_size$offset() { return get_size$OFFSET; } /** * Getter for field: @@ -789,7 +794,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_size * } */ - public static MemorySegment get_size(MemorySegment union) { + public static MemorySegment get_size(MemorySegment union) + { return union.asSlice(get_size$OFFSET, get_size$LAYOUT.byteSize()); } @@ -801,11 +807,13 @@ public static MemorySegment get_size(MemorySegment union) { * } get_size * } */ - public static void get_size(MemorySegment union, MemorySegment fieldValue) { + public static void get_size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_size$OFFSET, get_size$LAYOUT.byteSize()); } - private static final GroupLayout get_vfd_handle$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_vfd_handle")); + private static final GroupLayout get_vfd_handle$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_vfd_handle")); /** * Layout for field: @@ -813,9 +821,7 @@ public static void get_size(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_file_get_vfd_handle_t get_vfd_handle * } */ - public static final GroupLayout get_vfd_handle$layout() { - return get_vfd_handle$LAYOUT; - } + public static final GroupLayout get_vfd_handle$layout() { return get_vfd_handle$LAYOUT; } private static final long get_vfd_handle$OFFSET = 0; @@ -825,9 +831,7 @@ public static void get_size(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_file_get_vfd_handle_t get_vfd_handle * } */ - public static final long get_vfd_handle$offset() { - return get_vfd_handle$OFFSET; - } + public static final long get_vfd_handle$offset() { return get_vfd_handle$OFFSET; } /** * Getter for field: @@ -835,7 +839,8 @@ public static void get_size(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_file_get_vfd_handle_t get_vfd_handle * } */ - public static MemorySegment get_vfd_handle(MemorySegment union) { + public static MemorySegment get_vfd_handle(MemorySegment union) + { return union.asSlice(get_vfd_handle$OFFSET, get_vfd_handle$LAYOUT.byteSize()); } @@ -845,7 +850,8 @@ public static MemorySegment get_vfd_handle(MemorySegment union) { * H5VL_native_file_get_vfd_handle_t get_vfd_handle * } */ - public static void get_vfd_handle(MemorySegment union, MemorySegment fieldValue) { + public static void get_vfd_handle(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_vfd_handle$OFFSET, get_vfd_handle$LAYOUT.byteSize()); } @@ -858,22 +864,21 @@ public static void get_vfd_handle(MemorySegment union, MemorySegment fieldValue) */ public static class set_mdc_config { - set_mdc_config() { + set_mdc_config() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("config") - ).withName("$anon$334:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("config")).withName("$anon$334:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout config$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("config")); + private static final AddressLayout config$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("config")); /** * Layout for field: @@ -881,9 +886,7 @@ public static final GroupLayout layout() { * const H5AC_cache_config_t *config * } */ - public static final AddressLayout config$layout() { - return config$LAYOUT; - } + public static final AddressLayout config$layout() { return config$LAYOUT; } private static final long config$OFFSET = 0; @@ -893,9 +896,7 @@ public static final GroupLayout layout() { * const H5AC_cache_config_t *config * } */ - public static final long config$offset() { - return config$OFFSET; - } + public static final long config$offset() { return config$OFFSET; } /** * Getter for field: @@ -903,7 +904,8 @@ public static final GroupLayout layout() { * const H5AC_cache_config_t *config * } */ - public static MemorySegment config(MemorySegment struct) { + public static MemorySegment config(MemorySegment struct) + { return struct.get(config$LAYOUT, config$OFFSET); } @@ -913,7 +915,8 @@ public static MemorySegment config(MemorySegment struct) { * const H5AC_cache_config_t *config * } */ - public static void config(MemorySegment struct, MemorySegment fieldValue) { + public static void config(MemorySegment struct, MemorySegment fieldValue) + { struct.set(config$LAYOUT, config$OFFSET, fieldValue); } @@ -921,7 +924,8 @@ public static void config(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -933,7 +937,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -941,7 +946,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -949,7 +955,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -957,12 +965,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout set_mdc_config$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("set_mdc_config")); + private static final GroupLayout set_mdc_config$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("set_mdc_config")); /** * Layout for field: @@ -972,9 +983,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_mdc_config * } */ - public static final GroupLayout set_mdc_config$layout() { - return set_mdc_config$LAYOUT; - } + public static final GroupLayout set_mdc_config$layout() { return set_mdc_config$LAYOUT; } private static final long set_mdc_config$OFFSET = 0; @@ -986,9 +995,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_mdc_config * } */ - public static final long set_mdc_config$offset() { - return set_mdc_config$OFFSET; - } + public static final long set_mdc_config$offset() { return set_mdc_config$OFFSET; } /** * Getter for field: @@ -998,7 +1005,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_mdc_config * } */ - public static MemorySegment set_mdc_config(MemorySegment union) { + public static MemorySegment set_mdc_config(MemorySegment union) + { return union.asSlice(set_mdc_config$OFFSET, set_mdc_config$LAYOUT.byteSize()); } @@ -1010,7 +1018,8 @@ public static MemorySegment set_mdc_config(MemorySegment union) { * } set_mdc_config * } */ - public static void set_mdc_config(MemorySegment union, MemorySegment fieldValue) { + public static void set_mdc_config(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, set_mdc_config$OFFSET, set_mdc_config$LAYOUT.byteSize()); } @@ -1023,20 +1032,18 @@ public static void set_mdc_config(MemorySegment union, MemorySegment fieldValue) */ public static class get_metadata_read_retry_info { - get_metadata_read_retry_info() { + get_metadata_read_retry_info() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("info") - ).withName("$anon$339:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("info")).withName("$anon$339:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout info$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("info")); @@ -1046,9 +1053,7 @@ public static final GroupLayout layout() { * H5F_retry_info_t *info * } */ - public static final AddressLayout info$layout() { - return info$LAYOUT; - } + public static final AddressLayout info$layout() { return info$LAYOUT; } private static final long info$OFFSET = 0; @@ -1058,9 +1063,7 @@ public static final GroupLayout layout() { * H5F_retry_info_t *info * } */ - public static final long info$offset() { - return info$OFFSET; - } + public static final long info$offset() { return info$OFFSET; } /** * Getter for field: @@ -1068,7 +1071,8 @@ public static final GroupLayout layout() { * H5F_retry_info_t *info * } */ - public static MemorySegment info(MemorySegment struct) { + public static MemorySegment info(MemorySegment struct) + { return struct.get(info$LAYOUT, info$OFFSET); } @@ -1078,7 +1082,8 @@ public static MemorySegment info(MemorySegment struct) { * H5F_retry_info_t *info * } */ - public static void info(MemorySegment struct, MemorySegment fieldValue) { + public static void info(MemorySegment struct, MemorySegment fieldValue) + { struct.set(info$LAYOUT, info$OFFSET, fieldValue); } @@ -1086,7 +1091,8 @@ public static void info(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1098,7 +1104,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1106,7 +1113,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1114,7 +1122,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1122,12 +1132,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_metadata_read_retry_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_metadata_read_retry_info")); + private static final GroupLayout get_metadata_read_retry_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_metadata_read_retry_info")); /** * Layout for field: @@ -1137,7 +1150,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_metadata_read_retry_info * } */ - public static final GroupLayout get_metadata_read_retry_info$layout() { + public static final GroupLayout get_metadata_read_retry_info$layout() + { return get_metadata_read_retry_info$LAYOUT; } @@ -1151,7 +1165,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_metadata_read_retry_info * } */ - public static final long get_metadata_read_retry_info$offset() { + public static final long get_metadata_read_retry_info$offset() + { return get_metadata_read_retry_info$OFFSET; } @@ -1163,8 +1178,10 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_metadata_read_retry_info * } */ - public static MemorySegment get_metadata_read_retry_info(MemorySegment union) { - return union.asSlice(get_metadata_read_retry_info$OFFSET, get_metadata_read_retry_info$LAYOUT.byteSize()); + public static MemorySegment get_metadata_read_retry_info(MemorySegment union) + { + return union.asSlice(get_metadata_read_retry_info$OFFSET, + get_metadata_read_retry_info$LAYOUT.byteSize()); } /** @@ -1175,11 +1192,14 @@ public static MemorySegment get_metadata_read_retry_info(MemorySegment union) { * } get_metadata_read_retry_info * } */ - public static void get_metadata_read_retry_info(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_metadata_read_retry_info$OFFSET, get_metadata_read_retry_info$LAYOUT.byteSize()); + public static void get_metadata_read_retry_info(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_metadata_read_retry_info$OFFSET, + get_metadata_read_retry_info$LAYOUT.byteSize()); } - private static final GroupLayout get_mdc_logging_status$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mdc_logging_status")); + private static final GroupLayout get_mdc_logging_status$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mdc_logging_status")); /** * Layout for field: @@ -1187,9 +1207,7 @@ public static void get_metadata_read_retry_info(MemorySegment union, MemorySegme * H5VL_native_file_get_mdc_logging_status_t get_mdc_logging_status * } */ - public static final GroupLayout get_mdc_logging_status$layout() { - return get_mdc_logging_status$LAYOUT; - } + public static final GroupLayout get_mdc_logging_status$layout() { return get_mdc_logging_status$LAYOUT; } private static final long get_mdc_logging_status$OFFSET = 0; @@ -1199,9 +1217,7 @@ public static void get_metadata_read_retry_info(MemorySegment union, MemorySegme * H5VL_native_file_get_mdc_logging_status_t get_mdc_logging_status * } */ - public static final long get_mdc_logging_status$offset() { - return get_mdc_logging_status$OFFSET; - } + public static final long get_mdc_logging_status$offset() { return get_mdc_logging_status$OFFSET; } /** * Getter for field: @@ -1209,7 +1225,8 @@ public static void get_metadata_read_retry_info(MemorySegment union, MemorySegme * H5VL_native_file_get_mdc_logging_status_t get_mdc_logging_status * } */ - public static MemorySegment get_mdc_logging_status(MemorySegment union) { + public static MemorySegment get_mdc_logging_status(MemorySegment union) + { return union.asSlice(get_mdc_logging_status$OFFSET, get_mdc_logging_status$LAYOUT.byteSize()); } @@ -1219,11 +1236,14 @@ public static MemorySegment get_mdc_logging_status(MemorySegment union) { * H5VL_native_file_get_mdc_logging_status_t get_mdc_logging_status * } */ - public static void get_mdc_logging_status(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_mdc_logging_status$OFFSET, get_mdc_logging_status$LAYOUT.byteSize()); + public static void get_mdc_logging_status(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_mdc_logging_status$OFFSET, + get_mdc_logging_status$LAYOUT.byteSize()); } - private static final GroupLayout get_page_buffering_stats$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_page_buffering_stats")); + private static final GroupLayout get_page_buffering_stats$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_page_buffering_stats")); /** * Layout for field: @@ -1231,7 +1251,8 @@ public static void get_mdc_logging_status(MemorySegment union, MemorySegment fie * H5VL_native_file_get_page_buffering_stats_t get_page_buffering_stats * } */ - public static final GroupLayout get_page_buffering_stats$layout() { + public static final GroupLayout get_page_buffering_stats$layout() + { return get_page_buffering_stats$LAYOUT; } @@ -1243,9 +1264,7 @@ public static void get_mdc_logging_status(MemorySegment union, MemorySegment fie * H5VL_native_file_get_page_buffering_stats_t get_page_buffering_stats * } */ - public static final long get_page_buffering_stats$offset() { - return get_page_buffering_stats$OFFSET; - } + public static final long get_page_buffering_stats$offset() { return get_page_buffering_stats$OFFSET; } /** * Getter for field: @@ -1253,7 +1272,8 @@ public static void get_mdc_logging_status(MemorySegment union, MemorySegment fie * H5VL_native_file_get_page_buffering_stats_t get_page_buffering_stats * } */ - public static MemorySegment get_page_buffering_stats(MemorySegment union) { + public static MemorySegment get_page_buffering_stats(MemorySegment union) + { return union.asSlice(get_page_buffering_stats$OFFSET, get_page_buffering_stats$LAYOUT.byteSize()); } @@ -1263,11 +1283,14 @@ public static MemorySegment get_page_buffering_stats(MemorySegment union) { * H5VL_native_file_get_page_buffering_stats_t get_page_buffering_stats * } */ - public static void get_page_buffering_stats(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_page_buffering_stats$OFFSET, get_page_buffering_stats$LAYOUT.byteSize()); + public static void get_page_buffering_stats(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_page_buffering_stats$OFFSET, + get_page_buffering_stats$LAYOUT.byteSize()); } - private static final GroupLayout get_mdc_image_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_mdc_image_info")); + private static final GroupLayout get_mdc_image_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_mdc_image_info")); /** * Layout for field: @@ -1275,9 +1298,7 @@ public static void get_page_buffering_stats(MemorySegment union, MemorySegment f * H5VL_native_file_get_mdc_image_info_t get_mdc_image_info * } */ - public static final GroupLayout get_mdc_image_info$layout() { - return get_mdc_image_info$LAYOUT; - } + public static final GroupLayout get_mdc_image_info$layout() { return get_mdc_image_info$LAYOUT; } private static final long get_mdc_image_info$OFFSET = 0; @@ -1287,9 +1308,7 @@ public static void get_page_buffering_stats(MemorySegment union, MemorySegment f * H5VL_native_file_get_mdc_image_info_t get_mdc_image_info * } */ - public static final long get_mdc_image_info$offset() { - return get_mdc_image_info$OFFSET; - } + public static final long get_mdc_image_info$offset() { return get_mdc_image_info$OFFSET; } /** * Getter for field: @@ -1297,7 +1316,8 @@ public static void get_page_buffering_stats(MemorySegment union, MemorySegment f * H5VL_native_file_get_mdc_image_info_t get_mdc_image_info * } */ - public static MemorySegment get_mdc_image_info(MemorySegment union) { + public static MemorySegment get_mdc_image_info(MemorySegment union) + { return union.asSlice(get_mdc_image_info$OFFSET, get_mdc_image_info$LAYOUT.byteSize()); } @@ -1307,8 +1327,10 @@ public static MemorySegment get_mdc_image_info(MemorySegment union) { * H5VL_native_file_get_mdc_image_info_t get_mdc_image_info * } */ - public static void get_mdc_image_info(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_mdc_image_info$OFFSET, get_mdc_image_info$LAYOUT.byteSize()); + public static void get_mdc_image_info(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_mdc_image_info$OFFSET, + get_mdc_image_info$LAYOUT.byteSize()); } /** @@ -1320,20 +1342,18 @@ public static void get_mdc_image_info(MemorySegment union, MemorySegment fieldVa */ public static class get_eoa { - get_eoa() { + get_eoa() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("eoa") - ).withName("$anon$368:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("eoa")).withName("$anon$368:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout eoa$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("eoa")); @@ -1343,9 +1363,7 @@ public static final GroupLayout layout() { * haddr_t *eoa * } */ - public static final AddressLayout eoa$layout() { - return eoa$LAYOUT; - } + public static final AddressLayout eoa$layout() { return eoa$LAYOUT; } private static final long eoa$OFFSET = 0; @@ -1355,9 +1373,7 @@ public static final GroupLayout layout() { * haddr_t *eoa * } */ - public static final long eoa$offset() { - return eoa$OFFSET; - } + public static final long eoa$offset() { return eoa$OFFSET; } /** * Getter for field: @@ -1365,9 +1381,7 @@ public static final GroupLayout layout() { * haddr_t *eoa * } */ - public static MemorySegment eoa(MemorySegment struct) { - return struct.get(eoa$LAYOUT, eoa$OFFSET); - } + public static MemorySegment eoa(MemorySegment struct) { return struct.get(eoa$LAYOUT, eoa$OFFSET); } /** * Setter for field: @@ -1375,7 +1389,8 @@ public static MemorySegment eoa(MemorySegment struct) { * haddr_t *eoa * } */ - public static void eoa(MemorySegment struct, MemorySegment fieldValue) { + public static void eoa(MemorySegment struct, MemorySegment fieldValue) + { struct.set(eoa$LAYOUT, eoa$OFFSET, fieldValue); } @@ -1383,7 +1398,8 @@ public static void eoa(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1395,7 +1411,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1403,7 +1420,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1411,7 +1429,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1419,7 +1439,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1434,9 +1456,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_eoa * } */ - public static final GroupLayout get_eoa$layout() { - return get_eoa$LAYOUT; - } + public static final GroupLayout get_eoa$layout() { return get_eoa$LAYOUT; } private static final long get_eoa$OFFSET = 0; @@ -1448,9 +1468,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_eoa * } */ - public static final long get_eoa$offset() { - return get_eoa$OFFSET; - } + public static final long get_eoa$offset() { return get_eoa$OFFSET; } /** * Getter for field: @@ -1460,7 +1478,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_eoa * } */ - public static MemorySegment get_eoa(MemorySegment union) { + public static MemorySegment get_eoa(MemorySegment union) + { return union.asSlice(get_eoa$OFFSET, get_eoa$LAYOUT.byteSize()); } @@ -1472,7 +1491,8 @@ public static MemorySegment get_eoa(MemorySegment union) { * } get_eoa * } */ - public static void get_eoa(MemorySegment union, MemorySegment fieldValue) { + public static void get_eoa(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_eoa$OFFSET, get_eoa$LAYOUT.byteSize()); } @@ -1485,20 +1505,18 @@ public static void get_eoa(MemorySegment union, MemorySegment fieldValue) { */ public static class increment_filesize { - increment_filesize() { + increment_filesize() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("increment") - ).withName("$anon$373:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("increment")).withName("$anon$373:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong increment$LAYOUT = (OfLong)$LAYOUT.select(groupElement("increment")); @@ -1508,9 +1526,7 @@ public static final GroupLayout layout() { * hsize_t increment * } */ - public static final OfLong increment$layout() { - return increment$LAYOUT; - } + public static final OfLong increment$layout() { return increment$LAYOUT; } private static final long increment$OFFSET = 0; @@ -1520,9 +1536,7 @@ public static final GroupLayout layout() { * hsize_t increment * } */ - public static final long increment$offset() { - return increment$OFFSET; - } + public static final long increment$offset() { return increment$OFFSET; } /** * Getter for field: @@ -1530,7 +1544,8 @@ public static final GroupLayout layout() { * hsize_t increment * } */ - public static long increment(MemorySegment struct) { + public static long increment(MemorySegment struct) + { return struct.get(increment$LAYOUT, increment$OFFSET); } @@ -1540,7 +1555,8 @@ public static long increment(MemorySegment struct) { * hsize_t increment * } */ - public static void increment(MemorySegment struct, long fieldValue) { + public static void increment(MemorySegment struct, long fieldValue) + { struct.set(increment$LAYOUT, increment$OFFSET, fieldValue); } @@ -1548,7 +1564,8 @@ public static void increment(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1560,7 +1577,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1568,7 +1586,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1576,7 +1595,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1584,12 +1605,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout increment_filesize$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("increment_filesize")); + private static final GroupLayout increment_filesize$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("increment_filesize")); /** * Layout for field: @@ -1599,9 +1623,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } increment_filesize * } */ - public static final GroupLayout increment_filesize$layout() { - return increment_filesize$LAYOUT; - } + public static final GroupLayout increment_filesize$layout() { return increment_filesize$LAYOUT; } private static final long increment_filesize$OFFSET = 0; @@ -1613,9 +1635,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } increment_filesize * } */ - public static final long increment_filesize$offset() { - return increment_filesize$OFFSET; - } + public static final long increment_filesize$offset() { return increment_filesize$OFFSET; } /** * Getter for field: @@ -1625,7 +1645,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } increment_filesize * } */ - public static MemorySegment increment_filesize(MemorySegment union) { + public static MemorySegment increment_filesize(MemorySegment union) + { return union.asSlice(increment_filesize$OFFSET, increment_filesize$LAYOUT.byteSize()); } @@ -1637,11 +1658,14 @@ public static MemorySegment increment_filesize(MemorySegment union) { * } increment_filesize * } */ - public static void increment_filesize(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, increment_filesize$OFFSET, increment_filesize$LAYOUT.byteSize()); + public static void increment_filesize(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, increment_filesize$OFFSET, + increment_filesize$LAYOUT.byteSize()); } - private static final GroupLayout set_libver_bounds$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("set_libver_bounds")); + private static final GroupLayout set_libver_bounds$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("set_libver_bounds")); /** * Layout for field: @@ -1649,9 +1673,7 @@ public static void increment_filesize(MemorySegment union, MemorySegment fieldVa * H5VL_native_file_set_libver_bounds_t set_libver_bounds * } */ - public static final GroupLayout set_libver_bounds$layout() { - return set_libver_bounds$LAYOUT; - } + public static final GroupLayout set_libver_bounds$layout() { return set_libver_bounds$LAYOUT; } private static final long set_libver_bounds$OFFSET = 0; @@ -1661,9 +1683,7 @@ public static void increment_filesize(MemorySegment union, MemorySegment fieldVa * H5VL_native_file_set_libver_bounds_t set_libver_bounds * } */ - public static final long set_libver_bounds$offset() { - return set_libver_bounds$OFFSET; - } + public static final long set_libver_bounds$offset() { return set_libver_bounds$OFFSET; } /** * Getter for field: @@ -1671,7 +1691,8 @@ public static void increment_filesize(MemorySegment union, MemorySegment fieldVa * H5VL_native_file_set_libver_bounds_t set_libver_bounds * } */ - public static MemorySegment set_libver_bounds(MemorySegment union) { + public static MemorySegment set_libver_bounds(MemorySegment union) + { return union.asSlice(set_libver_bounds$OFFSET, set_libver_bounds$LAYOUT.byteSize()); } @@ -1681,8 +1702,10 @@ public static MemorySegment set_libver_bounds(MemorySegment union) { * H5VL_native_file_set_libver_bounds_t set_libver_bounds * } */ - public static void set_libver_bounds(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, set_libver_bounds$OFFSET, set_libver_bounds$LAYOUT.byteSize()); + public static void set_libver_bounds(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, set_libver_bounds$OFFSET, + set_libver_bounds$LAYOUT.byteSize()); } /** @@ -1694,22 +1717,21 @@ public static void set_libver_bounds(MemorySegment union, MemorySegment fieldVal */ public static class get_min_dset_ohdr_flag { - get_min_dset_ohdr_flag() { + get_min_dset_ohdr_flag() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("minimize") - ).withName("$anon$381:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("minimize")).withName("$anon$381:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout minimize$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("minimize")); + private static final AddressLayout minimize$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("minimize")); /** * Layout for field: @@ -1717,9 +1739,7 @@ public static final GroupLayout layout() { * hbool_t *minimize * } */ - public static final AddressLayout minimize$layout() { - return minimize$LAYOUT; - } + public static final AddressLayout minimize$layout() { return minimize$LAYOUT; } private static final long minimize$OFFSET = 0; @@ -1729,9 +1749,7 @@ public static final GroupLayout layout() { * hbool_t *minimize * } */ - public static final long minimize$offset() { - return minimize$OFFSET; - } + public static final long minimize$offset() { return minimize$OFFSET; } /** * Getter for field: @@ -1739,7 +1757,8 @@ public static final GroupLayout layout() { * hbool_t *minimize * } */ - public static MemorySegment minimize(MemorySegment struct) { + public static MemorySegment minimize(MemorySegment struct) + { return struct.get(minimize$LAYOUT, minimize$OFFSET); } @@ -1749,7 +1768,8 @@ public static MemorySegment minimize(MemorySegment struct) { * hbool_t *minimize * } */ - public static void minimize(MemorySegment struct, MemorySegment fieldValue) { + public static void minimize(MemorySegment struct, MemorySegment fieldValue) + { struct.set(minimize$LAYOUT, minimize$OFFSET, fieldValue); } @@ -1757,7 +1777,8 @@ public static void minimize(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1769,7 +1790,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1777,7 +1799,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1785,7 +1808,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1793,12 +1818,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_min_dset_ohdr_flag$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_min_dset_ohdr_flag")); + private static final GroupLayout get_min_dset_ohdr_flag$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_min_dset_ohdr_flag")); /** * Layout for field: @@ -1808,9 +1836,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_min_dset_ohdr_flag * } */ - public static final GroupLayout get_min_dset_ohdr_flag$layout() { - return get_min_dset_ohdr_flag$LAYOUT; - } + public static final GroupLayout get_min_dset_ohdr_flag$layout() { return get_min_dset_ohdr_flag$LAYOUT; } private static final long get_min_dset_ohdr_flag$OFFSET = 0; @@ -1822,9 +1848,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_min_dset_ohdr_flag * } */ - public static final long get_min_dset_ohdr_flag$offset() { - return get_min_dset_ohdr_flag$OFFSET; - } + public static final long get_min_dset_ohdr_flag$offset() { return get_min_dset_ohdr_flag$OFFSET; } /** * Getter for field: @@ -1834,7 +1858,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_min_dset_ohdr_flag * } */ - public static MemorySegment get_min_dset_ohdr_flag(MemorySegment union) { + public static MemorySegment get_min_dset_ohdr_flag(MemorySegment union) + { return union.asSlice(get_min_dset_ohdr_flag$OFFSET, get_min_dset_ohdr_flag$LAYOUT.byteSize()); } @@ -1846,8 +1871,10 @@ public static MemorySegment get_min_dset_ohdr_flag(MemorySegment union) { * } get_min_dset_ohdr_flag * } */ - public static void get_min_dset_ohdr_flag(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, get_min_dset_ohdr_flag$OFFSET, get_min_dset_ohdr_flag$LAYOUT.byteSize()); + public static void get_min_dset_ohdr_flag(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, get_min_dset_ohdr_flag$OFFSET, + get_min_dset_ohdr_flag$LAYOUT.byteSize()); } /** @@ -1859,20 +1886,18 @@ public static void get_min_dset_ohdr_flag(MemorySegment union, MemorySegment fie */ public static class set_min_dset_ohdr_flag { - set_min_dset_ohdr_flag() { + set_min_dset_ohdr_flag() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_BOOL.withName("minimize") - ).withName("$anon$386:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_BOOL.withName("minimize")).withName("$anon$386:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfBoolean minimize$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("minimize")); @@ -1882,9 +1907,7 @@ public static final GroupLayout layout() { * hbool_t minimize * } */ - public static final OfBoolean minimize$layout() { - return minimize$LAYOUT; - } + public static final OfBoolean minimize$layout() { return minimize$LAYOUT; } private static final long minimize$OFFSET = 0; @@ -1894,9 +1917,7 @@ public static final GroupLayout layout() { * hbool_t minimize * } */ - public static final long minimize$offset() { - return minimize$OFFSET; - } + public static final long minimize$offset() { return minimize$OFFSET; } /** * Getter for field: @@ -1904,7 +1925,8 @@ public static final GroupLayout layout() { * hbool_t minimize * } */ - public static boolean minimize(MemorySegment struct) { + public static boolean minimize(MemorySegment struct) + { return struct.get(minimize$LAYOUT, minimize$OFFSET); } @@ -1914,7 +1936,8 @@ public static boolean minimize(MemorySegment struct) { * hbool_t minimize * } */ - public static void minimize(MemorySegment struct, boolean fieldValue) { + public static void minimize(MemorySegment struct, boolean fieldValue) + { struct.set(minimize$LAYOUT, minimize$OFFSET, fieldValue); } @@ -1922,7 +1945,8 @@ public static void minimize(MemorySegment struct, boolean 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1934,7 +1958,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1942,7 +1967,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1950,7 +1976,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1958,12 +1986,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout set_min_dset_ohdr_flag$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("set_min_dset_ohdr_flag")); + private static final GroupLayout set_min_dset_ohdr_flag$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("set_min_dset_ohdr_flag")); /** * Layout for field: @@ -1973,9 +2004,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_min_dset_ohdr_flag * } */ - public static final GroupLayout set_min_dset_ohdr_flag$layout() { - return set_min_dset_ohdr_flag$LAYOUT; - } + public static final GroupLayout set_min_dset_ohdr_flag$layout() { return set_min_dset_ohdr_flag$LAYOUT; } private static final long set_min_dset_ohdr_flag$OFFSET = 0; @@ -1987,9 +2016,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_min_dset_ohdr_flag * } */ - public static final long set_min_dset_ohdr_flag$offset() { - return set_min_dset_ohdr_flag$OFFSET; - } + public static final long set_min_dset_ohdr_flag$offset() { return set_min_dset_ohdr_flag$OFFSET; } /** * Getter for field: @@ -1999,7 +2026,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_min_dset_ohdr_flag * } */ - public static MemorySegment set_min_dset_ohdr_flag(MemorySegment union) { + public static MemorySegment set_min_dset_ohdr_flag(MemorySegment union) + { return union.asSlice(set_min_dset_ohdr_flag$OFFSET, set_min_dset_ohdr_flag$LAYOUT.byteSize()); } @@ -2011,15 +2039,18 @@ public static MemorySegment set_min_dset_ohdr_flag(MemorySegment union) { * } set_min_dset_ohdr_flag * } */ - public static void set_min_dset_ohdr_flag(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, set_min_dset_ohdr_flag$OFFSET, set_min_dset_ohdr_flag$LAYOUT.byteSize()); + public static void set_min_dset_ohdr_flag(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, set_min_dset_ohdr_flag$OFFSET, + set_min_dset_ohdr_flag$LAYOUT.byteSize()); } /** * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -2031,15 +2062,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -2047,7 +2077,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -2055,8 +2086,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_set_libver_bounds_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_set_libver_bounds_t.java index 21022289bfa..bb64f3f72a2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_set_libver_bounds_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_file_set_libver_bounds_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_file_set_libver_bounds_t { @@ -22,21 +22,19 @@ */ public class H5VL_native_file_set_libver_bounds_t { - H5VL_native_file_set_libver_bounds_t() { + H5VL_native_file_set_libver_bounds_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("low"), - hdf5_h.C_INT.withName("high") - ).withName("H5VL_native_file_set_libver_bounds_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_INT.withName("low"), hdf5_h.C_INT.withName("high")) + .withName("H5VL_native_file_set_libver_bounds_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt low$LAYOUT = (OfInt)$LAYOUT.select(groupElement("low")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * H5F_libver_t low * } */ - public static final OfInt low$layout() { - return low$LAYOUT; - } + public static final OfInt low$layout() { return low$LAYOUT; } private static final long low$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * H5F_libver_t low * } */ - public static final long low$offset() { - return low$OFFSET; - } + public static final long low$offset() { return low$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * H5F_libver_t low * } */ - public static int low(MemorySegment struct) { - return struct.get(low$LAYOUT, low$OFFSET); - } + public static int low(MemorySegment struct) { return struct.get(low$LAYOUT, low$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static int low(MemorySegment struct) { * H5F_libver_t low * } */ - public static void low(MemorySegment struct, int fieldValue) { + public static void low(MemorySegment struct, int fieldValue) + { struct.set(low$LAYOUT, low$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void low(MemorySegment struct, int fieldValue) { * H5F_libver_t high * } */ - public static final OfInt high$layout() { - return high$LAYOUT; - } + public static final OfInt high$layout() { return high$LAYOUT; } private static final long high$OFFSET = 4; @@ -102,9 +93,7 @@ public static void low(MemorySegment struct, int fieldValue) { * H5F_libver_t high * } */ - public static final long high$offset() { - return high$OFFSET; - } + public static final long high$offset() { return high$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void low(MemorySegment struct, int fieldValue) { * H5F_libver_t high * } */ - public static int high(MemorySegment struct) { - return struct.get(high$LAYOUT, high$OFFSET); - } + public static int high(MemorySegment struct) { return struct.get(high$LAYOUT, high$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static int high(MemorySegment struct) { * H5F_libver_t high * } */ - public static void high(MemorySegment struct, int fieldValue) { + public static void high(MemorySegment struct, int fieldValue) + { struct.set(high$LAYOUT, high$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void high(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_get_objinfo_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_get_objinfo_t.java index 399679d02f7..78fe0b451b1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_get_objinfo_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_get_objinfo_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_group_get_objinfo_t { @@ -23,25 +23,25 @@ */ public class H5VL_native_group_get_objinfo_t { - H5VL_native_group_get_objinfo_t() { + H5VL_native_group_get_objinfo_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_BOOL.withName("follow_link"), - MemoryLayout.paddingLayout(7), - hdf5_h.C_POINTER.withName("statbuf") - ).withName("H5VL_native_group_get_objinfo_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), + hdf5_h.C_BOOL.withName("follow_link"), MemoryLayout.paddingLayout(7), + hdf5_h.C_POINTER.withName("statbuf")) + .withName("H5VL_native_group_get_objinfo_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -49,9 +49,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -61,9 +59,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -71,7 +67,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -81,11 +78,13 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } - private static final OfBoolean follow_link$LAYOUT = (OfBoolean)$LAYOUT.select(groupElement("follow_link")); + private static final OfBoolean follow_link$LAYOUT = + (OfBoolean)$LAYOUT.select(groupElement("follow_link")); /** * Layout for field: @@ -93,9 +92,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hbool_t follow_link * } */ - public static final OfBoolean follow_link$layout() { - return follow_link$LAYOUT; - } + public static final OfBoolean follow_link$layout() { return follow_link$LAYOUT; } private static final long follow_link$OFFSET = 40; @@ -105,9 +102,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hbool_t follow_link * } */ - public static final long follow_link$offset() { - return follow_link$OFFSET; - } + public static final long follow_link$offset() { return follow_link$OFFSET; } /** * Getter for field: @@ -115,7 +110,8 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hbool_t follow_link * } */ - public static boolean follow_link(MemorySegment struct) { + public static boolean follow_link(MemorySegment struct) + { return struct.get(follow_link$LAYOUT, follow_link$OFFSET); } @@ -125,11 +121,13 @@ public static boolean follow_link(MemorySegment struct) { * hbool_t follow_link * } */ - public static void follow_link(MemorySegment struct, boolean fieldValue) { + public static void follow_link(MemorySegment struct, boolean fieldValue) + { struct.set(follow_link$LAYOUT, follow_link$OFFSET, fieldValue); } - private static final AddressLayout statbuf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("statbuf")); + private static final AddressLayout statbuf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("statbuf")); /** * Layout for field: @@ -137,9 +135,7 @@ public static void follow_link(MemorySegment struct, boolean fieldValue) { * H5G_stat_t *statbuf * } */ - public static final AddressLayout statbuf$layout() { - return statbuf$LAYOUT; - } + public static final AddressLayout statbuf$layout() { return statbuf$LAYOUT; } private static final long statbuf$OFFSET = 48; @@ -149,9 +145,7 @@ public static void follow_link(MemorySegment struct, boolean fieldValue) { * H5G_stat_t *statbuf * } */ - public static final long statbuf$offset() { - return statbuf$OFFSET; - } + public static final long statbuf$offset() { return statbuf$OFFSET; } /** * Getter for field: @@ -159,7 +153,8 @@ public static void follow_link(MemorySegment struct, boolean fieldValue) { * H5G_stat_t *statbuf * } */ - public static MemorySegment statbuf(MemorySegment struct) { + public static MemorySegment statbuf(MemorySegment struct) + { return struct.get(statbuf$LAYOUT, statbuf$OFFSET); } @@ -169,7 +164,8 @@ public static MemorySegment statbuf(MemorySegment struct) { * H5G_stat_t *statbuf * } */ - public static void statbuf(MemorySegment struct, MemorySegment fieldValue) { + public static void statbuf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(statbuf$LAYOUT, statbuf$OFFSET, fieldValue); } @@ -177,7 +173,8 @@ public static void statbuf(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -189,15 +186,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -205,7 +201,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -213,8 +210,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_iterate_old_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_iterate_old_t.java index 6e4fed5d537..55e42ff3e49 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_iterate_old_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_iterate_old_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_group_iterate_old_t { @@ -25,26 +25,25 @@ */ public class H5VL_native_group_iterate_old_t { - H5VL_native_group_iterate_old_t() { + H5VL_native_group_iterate_old_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - H5VL_loc_params_t.layout().withName("loc_params"), - hdf5_h.C_LONG.withName("idx"), - hdf5_h.C_POINTER.withName("last_obj"), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5VL_native_group_iterate_old_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(H5VL_loc_params_t.layout().withName("loc_params"), hdf5_h.C_LONG.withName("idx"), + hdf5_h.C_POINTER.withName("last_obj"), hdf5_h.C_POINTER.withName("op"), + hdf5_h.C_POINTER.withName("op_data")) + .withName("H5VL_native_group_iterate_old_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout loc_params$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("loc_params")); + private static final GroupLayout loc_params$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("loc_params")); /** * Layout for field: @@ -52,9 +51,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final GroupLayout loc_params$layout() { - return loc_params$LAYOUT; - } + public static final GroupLayout loc_params$layout() { return loc_params$LAYOUT; } private static final long loc_params$OFFSET = 0; @@ -64,9 +61,7 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static final long loc_params$offset() { - return loc_params$OFFSET; - } + public static final long loc_params$offset() { return loc_params$OFFSET; } /** * Getter for field: @@ -74,7 +69,8 @@ public static final GroupLayout layout() { * H5VL_loc_params_t loc_params * } */ - public static MemorySegment loc_params(MemorySegment struct) { + public static MemorySegment loc_params(MemorySegment struct) + { return struct.asSlice(loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -84,7 +80,8 @@ public static MemorySegment loc_params(MemorySegment struct) { * H5VL_loc_params_t loc_params * } */ - public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { + public static void loc_params(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, loc_params$OFFSET, loc_params$LAYOUT.byteSize()); } @@ -96,9 +93,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static final OfLong idx$layout() { - return idx$LAYOUT; - } + public static final OfLong idx$layout() { return idx$LAYOUT; } private static final long idx$OFFSET = 40; @@ -108,9 +103,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static final long idx$offset() { - return idx$OFFSET; - } + public static final long idx$offset() { return idx$OFFSET; } /** * Getter for field: @@ -118,9 +111,7 @@ public static void loc_params(MemorySegment struct, MemorySegment fieldValue) { * hsize_t idx * } */ - public static long idx(MemorySegment struct) { - return struct.get(idx$LAYOUT, idx$OFFSET); - } + public static long idx(MemorySegment struct) { return struct.get(idx$LAYOUT, idx$OFFSET); } /** * Setter for field: @@ -128,11 +119,13 @@ public static long idx(MemorySegment struct) { * hsize_t idx * } */ - public static void idx(MemorySegment struct, long fieldValue) { + public static void idx(MemorySegment struct, long fieldValue) + { struct.set(idx$LAYOUT, idx$OFFSET, fieldValue); } - private static final AddressLayout last_obj$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("last_obj")); + private static final AddressLayout last_obj$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("last_obj")); /** * Layout for field: @@ -140,9 +133,7 @@ public static void idx(MemorySegment struct, long fieldValue) { * hsize_t *last_obj * } */ - public static final AddressLayout last_obj$layout() { - return last_obj$LAYOUT; - } + public static final AddressLayout last_obj$layout() { return last_obj$LAYOUT; } private static final long last_obj$OFFSET = 48; @@ -152,9 +143,7 @@ public static void idx(MemorySegment struct, long fieldValue) { * hsize_t *last_obj * } */ - public static final long last_obj$offset() { - return last_obj$OFFSET; - } + public static final long last_obj$offset() { return last_obj$OFFSET; } /** * Getter for field: @@ -162,7 +151,8 @@ public static void idx(MemorySegment struct, long fieldValue) { * hsize_t *last_obj * } */ - public static MemorySegment last_obj(MemorySegment struct) { + public static MemorySegment last_obj(MemorySegment struct) + { return struct.get(last_obj$LAYOUT, last_obj$OFFSET); } @@ -172,7 +162,8 @@ public static MemorySegment last_obj(MemorySegment struct) { * hsize_t *last_obj * } */ - public static void last_obj(MemorySegment struct, MemorySegment fieldValue) { + public static void last_obj(MemorySegment struct, MemorySegment fieldValue) + { struct.set(last_obj$LAYOUT, last_obj$OFFSET, fieldValue); } @@ -184,9 +175,7 @@ public static void last_obj(MemorySegment struct, MemorySegment fieldValue) { * H5G_iterate_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 56; @@ -196,9 +185,7 @@ public static void last_obj(MemorySegment struct, MemorySegment fieldValue) { * H5G_iterate_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -206,9 +193,7 @@ public static void last_obj(MemorySegment struct, MemorySegment fieldValue) { * H5G_iterate_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -216,11 +201,13 @@ public static MemorySegment op(MemorySegment struct) { * H5G_iterate_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -228,9 +215,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 64; @@ -240,9 +225,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -250,7 +233,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -260,7 +244,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -268,7 +253,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -280,15 +266,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -296,7 +281,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -304,8 +290,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_optional_args_t.java index 9cd889a9e85..c521579a1cd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_group_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_native_group_optional_args_t { @@ -22,23 +22,24 @@ */ public class H5VL_native_group_optional_args_t { - H5VL_native_group_optional_args_t() { + H5VL_native_group_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_native_group_iterate_old_t.layout().withName("iterate_old"), - H5VL_native_group_get_objinfo_t.layout().withName("get_objinfo") - ).withName("H5VL_native_group_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_native_group_iterate_old_t.layout().withName("iterate_old"), + H5VL_native_group_get_objinfo_t.layout().withName("get_objinfo")) + .withName("H5VL_native_group_optional_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout iterate_old$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("iterate_old")); + private static final GroupLayout iterate_old$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("iterate_old")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * H5VL_native_group_iterate_old_t iterate_old * } */ - public static final GroupLayout iterate_old$layout() { - return iterate_old$LAYOUT; - } + public static final GroupLayout iterate_old$layout() { return iterate_old$LAYOUT; } private static final long iterate_old$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * H5VL_native_group_iterate_old_t iterate_old * } */ - public static final long iterate_old$offset() { - return iterate_old$OFFSET; - } + public static final long iterate_old$offset() { return iterate_old$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * H5VL_native_group_iterate_old_t iterate_old * } */ - public static MemorySegment iterate_old(MemorySegment union) { + public static MemorySegment iterate_old(MemorySegment union) + { return union.asSlice(iterate_old$OFFSET, iterate_old$LAYOUT.byteSize()); } @@ -78,11 +76,13 @@ public static MemorySegment iterate_old(MemorySegment union) { * H5VL_native_group_iterate_old_t iterate_old * } */ - public static void iterate_old(MemorySegment union, MemorySegment fieldValue) { + public static void iterate_old(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, iterate_old$OFFSET, iterate_old$LAYOUT.byteSize()); } - private static final GroupLayout get_objinfo$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_objinfo")); + private static final GroupLayout get_objinfo$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_objinfo")); /** * Layout for field: @@ -90,9 +90,7 @@ public static void iterate_old(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_group_get_objinfo_t get_objinfo * } */ - public static final GroupLayout get_objinfo$layout() { - return get_objinfo$LAYOUT; - } + public static final GroupLayout get_objinfo$layout() { return get_objinfo$LAYOUT; } private static final long get_objinfo$OFFSET = 0; @@ -102,9 +100,7 @@ public static void iterate_old(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_group_get_objinfo_t get_objinfo * } */ - public static final long get_objinfo$offset() { - return get_objinfo$OFFSET; - } + public static final long get_objinfo$offset() { return get_objinfo$OFFSET; } /** * Getter for field: @@ -112,7 +108,8 @@ public static void iterate_old(MemorySegment union, MemorySegment fieldValue) { * H5VL_native_group_get_objinfo_t get_objinfo * } */ - public static MemorySegment get_objinfo(MemorySegment union) { + public static MemorySegment get_objinfo(MemorySegment union) + { return union.asSlice(get_objinfo$OFFSET, get_objinfo$LAYOUT.byteSize()); } @@ -122,7 +119,8 @@ public static MemorySegment get_objinfo(MemorySegment union) { * H5VL_native_group_get_objinfo_t get_objinfo * } */ - public static void get_objinfo(MemorySegment union, MemorySegment fieldValue) { + public static void get_objinfo(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_objinfo$OFFSET, get_objinfo$LAYOUT.byteSize()); } @@ -130,7 +128,8 @@ public static void get_objinfo(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +141,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +156,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +165,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_comment_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_comment_t.java index dafbcf3c4c7..0ee829f3d67 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_comment_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_comment_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_object_get_comment_t { @@ -23,22 +23,21 @@ */ public class H5VL_native_object_get_comment_t { - H5VL_native_object_get_comment_t() { + H5VL_native_object_get_comment_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_POINTER.withName("comment_len") - ).withName("H5VL_native_object_get_comment_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf"), + hdf5_h.C_POINTER.withName("comment_len")) + .withName("H5VL_native_object_get_comment_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong buf_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("buf_size")); @@ -48,9 +47,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 0; @@ -60,9 +57,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { - return struct.get(buf_size$LAYOUT, buf_size$OFFSET); - } + public static long buf_size(MemorySegment struct) { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } /** * Setter for field: @@ -80,7 +73,8 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } @@ -92,9 +86,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 8; @@ -104,9 +96,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -114,9 +104,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * void *buf * } */ - public static MemorySegment buf(MemorySegment struct) { - return struct.get(buf$LAYOUT, buf$OFFSET); - } + public static MemorySegment buf(MemorySegment struct) { return struct.get(buf$LAYOUT, buf$OFFSET); } /** * Setter for field: @@ -124,11 +112,13 @@ public static MemorySegment buf(MemorySegment struct) { * void *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } - private static final AddressLayout comment_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("comment_len")); + private static final AddressLayout comment_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("comment_len")); /** * Layout for field: @@ -136,9 +126,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *comment_len * } */ - public static final AddressLayout comment_len$layout() { - return comment_len$LAYOUT; - } + public static final AddressLayout comment_len$layout() { return comment_len$LAYOUT; } private static final long comment_len$OFFSET = 16; @@ -148,9 +136,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *comment_len * } */ - public static final long comment_len$offset() { - return comment_len$OFFSET; - } + public static final long comment_len$offset() { return comment_len$OFFSET; } /** * Getter for field: @@ -158,7 +144,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *comment_len * } */ - public static MemorySegment comment_len(MemorySegment struct) { + public static MemorySegment comment_len(MemorySegment struct) + { return struct.get(comment_len$LAYOUT, comment_len$OFFSET); } @@ -168,7 +155,8 @@ public static MemorySegment comment_len(MemorySegment struct) { * size_t *comment_len * } */ - public static void comment_len(MemorySegment struct, MemorySegment fieldValue) { + public static void comment_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(comment_len$LAYOUT, comment_len$OFFSET, fieldValue); } @@ -176,7 +164,8 @@ public static void comment_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -188,15 +177,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -204,7 +192,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -212,8 +201,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_native_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_native_info_t.java index e47f08bad87..fc0d8d48b23 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_native_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_get_native_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_native_object_get_native_info_t { @@ -22,22 +22,21 @@ */ public class H5VL_native_object_get_native_info_t { - H5VL_native_object_get_native_info_t() { + H5VL_native_object_get_native_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("fields"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("ninfo") - ).withName("H5VL_native_object_get_native_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("fields"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("ninfo")) + .withName("H5VL_native_object_get_native_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt fields$LAYOUT = (OfInt)$LAYOUT.select(groupElement("fields")); @@ -47,9 +46,7 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static final OfInt fields$layout() { - return fields$LAYOUT; - } + public static final OfInt fields$layout() { return fields$LAYOUT; } private static final long fields$OFFSET = 0; @@ -59,9 +56,7 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static final long fields$offset() { - return fields$OFFSET; - } + public static final long fields$offset() { return fields$OFFSET; } /** * Getter for field: @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static int fields(MemorySegment struct) { - return struct.get(fields$LAYOUT, fields$OFFSET); - } + public static int fields(MemorySegment struct) { return struct.get(fields$LAYOUT, fields$OFFSET); } /** * Setter for field: @@ -79,7 +72,8 @@ public static int fields(MemorySegment struct) { * unsigned int fields * } */ - public static void fields(MemorySegment struct, int fieldValue) { + public static void fields(MemorySegment struct, int fieldValue) + { struct.set(fields$LAYOUT, fields$OFFSET, fieldValue); } @@ -91,9 +85,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_native_info_t *ninfo * } */ - public static final AddressLayout ninfo$layout() { - return ninfo$LAYOUT; - } + public static final AddressLayout ninfo$layout() { return ninfo$LAYOUT; } private static final long ninfo$OFFSET = 8; @@ -103,9 +95,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_native_info_t *ninfo * } */ - public static final long ninfo$offset() { - return ninfo$OFFSET; - } + public static final long ninfo$offset() { return ninfo$OFFSET; } /** * Getter for field: @@ -113,9 +103,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_native_info_t *ninfo * } */ - public static MemorySegment ninfo(MemorySegment struct) { - return struct.get(ninfo$LAYOUT, ninfo$OFFSET); - } + public static MemorySegment ninfo(MemorySegment struct) { return struct.get(ninfo$LAYOUT, ninfo$OFFSET); } /** * Setter for field: @@ -123,7 +111,8 @@ public static MemorySegment ninfo(MemorySegment struct) { * H5O_native_info_t *ninfo * } */ - public static void ninfo(MemorySegment struct, MemorySegment fieldValue) { + public static void ninfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(ninfo$LAYOUT, ninfo$OFFSET, fieldValue); } @@ -131,7 +120,8 @@ public static void ninfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -143,15 +133,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -159,7 +148,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -167,8 +157,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_optional_args_t.java index bdfd663e4d6..f62ef6ff0b2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_native_object_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union H5VL_native_object_optional_args_t { @@ -28,25 +28,27 @@ */ public class H5VL_native_object_optional_args_t { - H5VL_native_object_optional_args_t() { + H5VL_native_object_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_native_object_get_comment_t.layout().withName("get_comment"), - H5VL_native_object_optional_args_t.set_comment.layout().withName("set_comment"), - H5VL_native_object_optional_args_t.are_mdc_flushes_disabled.layout().withName("are_mdc_flushes_disabled"), - H5VL_native_object_get_native_info_t.layout().withName("get_native_info") - ).withName("H5VL_native_object_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_native_object_get_comment_t.layout().withName("get_comment"), + H5VL_native_object_optional_args_t.set_comment.layout().withName("set_comment"), + H5VL_native_object_optional_args_t.are_mdc_flushes_disabled.layout().withName( + "are_mdc_flushes_disabled"), + H5VL_native_object_get_native_info_t.layout().withName("get_native_info")) + .withName("H5VL_native_object_optional_args_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final GroupLayout get_comment$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_comment")); + private static final GroupLayout get_comment$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_comment")); /** * Layout for field: @@ -54,9 +56,7 @@ public static final GroupLayout layout() { * H5VL_native_object_get_comment_t get_comment * } */ - public static final GroupLayout get_comment$layout() { - return get_comment$LAYOUT; - } + public static final GroupLayout get_comment$layout() { return get_comment$LAYOUT; } private static final long get_comment$OFFSET = 0; @@ -66,9 +66,7 @@ public static final GroupLayout layout() { * H5VL_native_object_get_comment_t get_comment * } */ - public static final long get_comment$offset() { - return get_comment$OFFSET; - } + public static final long get_comment$offset() { return get_comment$OFFSET; } /** * Getter for field: @@ -76,7 +74,8 @@ public static final GroupLayout layout() { * H5VL_native_object_get_comment_t get_comment * } */ - public static MemorySegment get_comment(MemorySegment union) { + public static MemorySegment get_comment(MemorySegment union) + { return union.asSlice(get_comment$OFFSET, get_comment$LAYOUT.byteSize()); } @@ -86,7 +85,8 @@ public static MemorySegment get_comment(MemorySegment union) { * H5VL_native_object_get_comment_t get_comment * } */ - public static void get_comment(MemorySegment union, MemorySegment fieldValue) { + public static void get_comment(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_comment$OFFSET, get_comment$LAYOUT.byteSize()); } @@ -99,22 +99,21 @@ public static void get_comment(MemorySegment union, MemorySegment fieldValue) { */ public static class set_comment { - set_comment() { + set_comment() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("comment") - ).withName("$anon$478:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("comment")).withName("$anon$478:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout comment$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("comment")); + private static final AddressLayout comment$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("comment")); /** * Layout for field: @@ -122,9 +121,7 @@ public static final GroupLayout layout() { * const char *comment * } */ - public static final AddressLayout comment$layout() { - return comment$LAYOUT; - } + public static final AddressLayout comment$layout() { return comment$LAYOUT; } private static final long comment$OFFSET = 0; @@ -134,9 +131,7 @@ public static final GroupLayout layout() { * const char *comment * } */ - public static final long comment$offset() { - return comment$OFFSET; - } + public static final long comment$offset() { return comment$OFFSET; } /** * Getter for field: @@ -144,7 +139,8 @@ public static final GroupLayout layout() { * const char *comment * } */ - public static MemorySegment comment(MemorySegment struct) { + public static MemorySegment comment(MemorySegment struct) + { return struct.get(comment$LAYOUT, comment$OFFSET); } @@ -154,7 +150,8 @@ public static MemorySegment comment(MemorySegment struct) { * const char *comment * } */ - public static void comment(MemorySegment struct, MemorySegment fieldValue) { + public static void comment(MemorySegment struct, MemorySegment fieldValue) + { struct.set(comment$LAYOUT, comment$OFFSET, fieldValue); } @@ -162,7 +159,8 @@ public static void comment(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -174,7 +172,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -182,7 +181,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -190,7 +190,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -198,12 +200,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout set_comment$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("set_comment")); + private static final GroupLayout set_comment$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("set_comment")); /** * Layout for field: @@ -213,9 +218,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_comment * } */ - public static final GroupLayout set_comment$layout() { - return set_comment$LAYOUT; - } + public static final GroupLayout set_comment$layout() { return set_comment$LAYOUT; } private static final long set_comment$OFFSET = 0; @@ -227,9 +230,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_comment * } */ - public static final long set_comment$offset() { - return set_comment$OFFSET; - } + public static final long set_comment$offset() { return set_comment$OFFSET; } /** * Getter for field: @@ -239,7 +240,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } set_comment * } */ - public static MemorySegment set_comment(MemorySegment union) { + public static MemorySegment set_comment(MemorySegment union) + { return union.asSlice(set_comment$OFFSET, set_comment$LAYOUT.byteSize()); } @@ -251,7 +253,8 @@ public static MemorySegment set_comment(MemorySegment union) { * } set_comment * } */ - public static void set_comment(MemorySegment union, MemorySegment fieldValue) { + public static void set_comment(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, set_comment$OFFSET, set_comment$LAYOUT.byteSize()); } @@ -264,20 +267,18 @@ public static void set_comment(MemorySegment union, MemorySegment fieldValue) { */ public static class are_mdc_flushes_disabled { - are_mdc_flushes_disabled() { + are_mdc_flushes_disabled() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("flag") - ).withName("$anon$489:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("flag")).withName("$anon$489:5"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout flag$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("flag")); @@ -287,9 +288,7 @@ public static final GroupLayout layout() { * hbool_t *flag * } */ - public static final AddressLayout flag$layout() { - return flag$LAYOUT; - } + public static final AddressLayout flag$layout() { return flag$LAYOUT; } private static final long flag$OFFSET = 0; @@ -299,9 +298,7 @@ public static final GroupLayout layout() { * hbool_t *flag * } */ - public static final long flag$offset() { - return flag$OFFSET; - } + public static final long flag$offset() { return flag$OFFSET; } /** * Getter for field: @@ -309,7 +306,8 @@ public static final GroupLayout layout() { * hbool_t *flag * } */ - public static MemorySegment flag(MemorySegment struct) { + public static MemorySegment flag(MemorySegment struct) + { return struct.get(flag$LAYOUT, flag$OFFSET); } @@ -319,7 +317,8 @@ public static MemorySegment flag(MemorySegment struct) { * hbool_t *flag * } */ - public static void flag(MemorySegment struct, MemorySegment fieldValue) { + public static void flag(MemorySegment struct, MemorySegment fieldValue) + { struct.set(flag$LAYOUT, flag$OFFSET, fieldValue); } @@ -327,7 +326,8 @@ public static void flag(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -339,7 +339,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -347,7 +348,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -355,7 +357,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -363,12 +367,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout are_mdc_flushes_disabled$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("are_mdc_flushes_disabled")); + private static final GroupLayout are_mdc_flushes_disabled$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("are_mdc_flushes_disabled")); /** * Layout for field: @@ -378,7 +385,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } are_mdc_flushes_disabled * } */ - public static final GroupLayout are_mdc_flushes_disabled$layout() { + public static final GroupLayout are_mdc_flushes_disabled$layout() + { return are_mdc_flushes_disabled$LAYOUT; } @@ -392,9 +400,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } are_mdc_flushes_disabled * } */ - public static final long are_mdc_flushes_disabled$offset() { - return are_mdc_flushes_disabled$OFFSET; - } + public static final long are_mdc_flushes_disabled$offset() { return are_mdc_flushes_disabled$OFFSET; } /** * Getter for field: @@ -404,7 +410,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } are_mdc_flushes_disabled * } */ - public static MemorySegment are_mdc_flushes_disabled(MemorySegment union) { + public static MemorySegment are_mdc_flushes_disabled(MemorySegment union) + { return union.asSlice(are_mdc_flushes_disabled$OFFSET, are_mdc_flushes_disabled$LAYOUT.byteSize()); } @@ -416,11 +423,14 @@ public static MemorySegment are_mdc_flushes_disabled(MemorySegment union) { * } are_mdc_flushes_disabled * } */ - public static void are_mdc_flushes_disabled(MemorySegment union, MemorySegment fieldValue) { - MemorySegment.copy(fieldValue, 0L, union, are_mdc_flushes_disabled$OFFSET, are_mdc_flushes_disabled$LAYOUT.byteSize()); + public static void are_mdc_flushes_disabled(MemorySegment union, MemorySegment fieldValue) + { + MemorySegment.copy(fieldValue, 0L, union, are_mdc_flushes_disabled$OFFSET, + are_mdc_flushes_disabled$LAYOUT.byteSize()); } - private static final GroupLayout get_native_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_native_info")); + private static final GroupLayout get_native_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_native_info")); /** * Layout for field: @@ -428,9 +438,7 @@ public static void are_mdc_flushes_disabled(MemorySegment union, MemorySegment f * H5VL_native_object_get_native_info_t get_native_info * } */ - public static final GroupLayout get_native_info$layout() { - return get_native_info$LAYOUT; - } + public static final GroupLayout get_native_info$layout() { return get_native_info$LAYOUT; } private static final long get_native_info$OFFSET = 0; @@ -440,9 +448,7 @@ public static void are_mdc_flushes_disabled(MemorySegment union, MemorySegment f * H5VL_native_object_get_native_info_t get_native_info * } */ - public static final long get_native_info$offset() { - return get_native_info$OFFSET; - } + public static final long get_native_info$offset() { return get_native_info$OFFSET; } /** * Getter for field: @@ -450,7 +456,8 @@ public static void are_mdc_flushes_disabled(MemorySegment union, MemorySegment f * H5VL_native_object_get_native_info_t get_native_info * } */ - public static MemorySegment get_native_info(MemorySegment union) { + public static MemorySegment get_native_info(MemorySegment union) + { return union.asSlice(get_native_info$OFFSET, get_native_info$LAYOUT.byteSize()); } @@ -460,7 +467,8 @@ public static MemorySegment get_native_info(MemorySegment union) { * H5VL_native_object_get_native_info_t get_native_info * } */ - public static void get_native_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_native_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_native_info$OFFSET, get_native_info$LAYOUT.byteSize()); } @@ -468,7 +476,8 @@ public static void get_native_info(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -480,15 +489,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -496,7 +504,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -504,8 +513,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_class_t.java index 6eee74279a7..b4738eefcc9 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_class_t.java @@ -2,47 +2,46 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_object_class_t { * void *(*open)(void *, const H5VL_loc_params_t *, H5I_type_t *, hid_t, void **); - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **); - * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_object_get_args_t *, hid_t, void **); - * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_object_specific_args_t *, hid_t, void **); - * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **); + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **); herr_t (*get)(void *, const H5VL_loc_params_t *, + * H5VL_object_get_args_t *, hid_t, void **); herr_t (*specific)(void *, const H5VL_loc_params_t *, + * H5VL_object_specific_args_t *, hid_t, void **); herr_t (*optional)(void *, const H5VL_loc_params_t *, + * H5VL_optional_args_t *, hid_t, void **); * } * } */ public class H5VL_object_class_t { - H5VL_object_class_t() { + H5VL_object_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("open"), - hdf5_h.C_POINTER.withName("copy"), - hdf5_h.C_POINTER.withName("get"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional") - ).withName("H5VL_object_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("open"), hdf5_h.C_POINTER.withName("copy"), + hdf5_h.C_POINTER.withName("get"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional")) + .withName("H5VL_object_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -51,7 +50,8 @@ public static final GroupLayout layout() { */ public static class open { - open() { + open() + { // Should not be called directly } @@ -59,24 +59,18 @@ public static class open { * The function pointer signature, expressed as a functional interface */ public interface Function { - MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); + MemorySegment apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, + MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(open.Function.class, "apply", $DESC); @@ -84,7 +78,8 @@ public static FunctionDescriptor descriptor() { * 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(open.Function fi, Arena arena) { + public static MemorySegment allocate(open.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -93,10 +88,13 @@ public static MemorySegment allocate(open.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -110,9 +108,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, H5I_type_t *, hid_t, void **) * } */ - public static final AddressLayout open$layout() { - return open$LAYOUT; - } + public static final AddressLayout open$layout() { return open$LAYOUT; } private static final long open$OFFSET = 0; @@ -122,9 +118,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, H5I_type_t *, hid_t, void **) * } */ - public static final long open$offset() { - return open$OFFSET; - } + public static final long open$offset() { return open$OFFSET; } /** * Getter for field: @@ -132,9 +126,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, Memo * void *(*open)(void *, const H5VL_loc_params_t *, H5I_type_t *, hid_t, void **) * } */ - public static MemorySegment open(MemorySegment struct) { - return struct.get(open$LAYOUT, open$OFFSET); - } + public static MemorySegment open(MemorySegment struct) { return struct.get(open$LAYOUT, open$OFFSET); } /** * Setter for field: @@ -142,18 +134,21 @@ public static MemorySegment open(MemorySegment struct) { * void *(*open)(void *, const H5VL_loc_params_t *, H5I_type_t *, hid_t, void **) * } */ - public static void open(MemorySegment struct, MemorySegment fieldValue) { + public static void open(MemorySegment struct, MemorySegment fieldValue) + { struct.set(open$LAYOUT, open$OFFSET, fieldValue); } /** * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **) * } */ public static class copy { - copy() { + copy() + { // Should not be called directly } @@ -161,29 +156,19 @@ public static class copy { * The function pointer signature, expressed as a functional interface */ public interface Function { - int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, long _x6, long _x7, long _x8, MemorySegment _x9); + int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, + MemorySegment _x4, MemorySegment _x5, long _x6, long _x7, long _x8, MemorySegment _x9); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(copy.Function.class, "apply", $DESC); @@ -191,7 +176,8 @@ public static FunctionDescriptor descriptor() { * 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(copy.Function fi, Arena arena) { + public static MemorySegment allocate(copy.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -200,10 +186,14 @@ public static MemorySegment allocate(copy.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, long _x6, long _x7, long _x8, MemorySegment _x9) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, MemorySegment _x3, MemorySegment _x4, MemorySegment _x5, + long _x6, long _x7, long _x8, MemorySegment _x9) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -214,42 +204,41 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment /** * Layout for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **) * } */ - public static final AddressLayout copy$layout() { - return copy$LAYOUT; - } + public static final AddressLayout copy$layout() { return copy$LAYOUT; } private static final long copy$OFFSET = 8; /** * Offset for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **) * } */ - public static final long copy$offset() { - return copy$OFFSET; - } + public static final long copy$offset() { return copy$OFFSET; } /** * Getter for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **) * } */ - public static MemorySegment copy(MemorySegment struct) { - return struct.get(copy$LAYOUT, copy$OFFSET); - } + public static MemorySegment copy(MemorySegment struct) { return struct.get(copy$LAYOUT, copy$OFFSET); } /** * Setter for field: * {@snippet lang=c : - * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, const char *, hid_t, hid_t, hid_t, void **) + * herr_t (*copy)(void *, const H5VL_loc_params_t *, const char *, void *, const H5VL_loc_params_t *, + * const char *, hid_t, hid_t, hid_t, void **) * } */ - public static void copy(MemorySegment struct, MemorySegment fieldValue) { + public static void copy(MemorySegment struct, MemorySegment fieldValue) + { struct.set(copy$LAYOUT, copy$OFFSET, fieldValue); } @@ -260,7 +249,8 @@ public static void copy(MemorySegment struct, MemorySegment fieldValue) { */ public static class get { - get() { + get() + { // Should not be called directly } @@ -271,21 +261,14 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get.Function.class, "apply", $DESC); @@ -293,7 +276,8 @@ public static FunctionDescriptor descriptor() { * 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(get.Function fi, Arena arena) { + public static MemorySegment allocate(get.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -302,10 +286,13 @@ public static MemorySegment allocate(get.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -319,9 +306,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_object_get_args_t *, hid_t, void **) * } */ - public static final AddressLayout get$layout() { - return get$LAYOUT; - } + public static final AddressLayout get$layout() { return get$LAYOUT; } private static final long get$OFFSET = 16; @@ -331,9 +316,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_object_get_args_t *, hid_t, void **) * } */ - public static final long get$offset() { - return get$OFFSET; - } + public static final long get$offset() { return get$OFFSET; } /** * Getter for field: @@ -341,9 +324,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_object_get_args_t *, hid_t, void **) * } */ - public static MemorySegment get(MemorySegment struct) { - return struct.get(get$LAYOUT, get$OFFSET); - } + public static MemorySegment get(MemorySegment struct) { return struct.get(get$LAYOUT, get$OFFSET); } /** * Setter for field: @@ -351,7 +332,8 @@ public static MemorySegment get(MemorySegment struct) { * herr_t (*get)(void *, const H5VL_loc_params_t *, H5VL_object_get_args_t *, hid_t, void **) * } */ - public static void get(MemorySegment struct, MemorySegment fieldValue) { + public static void get(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get$LAYOUT, get$OFFSET, fieldValue); } @@ -362,7 +344,8 @@ public static void get(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -373,29 +356,24 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -404,16 +382,20 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -421,9 +403,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_object_specific_args_t *, hid_t, void **) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 24; @@ -433,9 +413,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_object_specific_args_t *, hid_t, void **) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -443,7 +421,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_object_specific_args_t *, hid_t, void **) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -453,7 +432,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, const H5VL_loc_params_t *, H5VL_object_specific_args_t *, hid_t, void **) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -464,7 +444,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -475,29 +456,24 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -506,16 +482,20 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, long _x3, MemorySegment _x4) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, long _x3, MemorySegment _x4) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -523,9 +503,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 32; @@ -535,9 +513,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -545,7 +521,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -555,7 +532,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, const H5VL_loc_params_t *, H5VL_optional_args_t *, hid_t, void **) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -563,7 +541,8 @@ public static void optional(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -575,15 +554,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -591,7 +569,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -599,8 +578,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_get_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_get_args_t.java index 31e7e6b6a71..e2675b0c003 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_get_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_get_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_object_get_args_t { @@ -38,22 +38,21 @@ */ public class H5VL_object_get_args_t { - H5VL_object_get_args_t() { + H5VL_object_get_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_object_get_args_t.args.layout().withName("args") - ).withName("H5VL_object_get_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_object_get_args_t.args.layout().withName("args")) + .withName("H5VL_object_get_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -63,9 +62,7 @@ public static final GroupLayout layout() { * H5VL_object_get_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -75,9 +72,7 @@ public static final GroupLayout layout() { * H5VL_object_get_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -85,9 +80,7 @@ public static final GroupLayout layout() { * H5VL_object_get_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -95,7 +88,8 @@ public static int op_type(MemorySegment struct) { * H5VL_object_get_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -122,23 +116,23 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_object_get_args_t.args.get_file.layout().withName("get_file"), - H5VL_object_get_args_t.args.get_name.layout().withName("get_name"), - H5VL_object_get_args_t.args.get_type.layout().withName("get_type"), - H5VL_object_get_args_t.args.get_info.layout().withName("get_info") - ).withName("$anon$688:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_object_get_args_t.args.get_file.layout().withName("get_file"), + H5VL_object_get_args_t.args.get_name.layout().withName("get_name"), + H5VL_object_get_args_t.args.get_type.layout().withName("get_type"), + H5VL_object_get_args_t.args.get_info.layout().withName("get_info")) + .withName("$anon$688:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -149,22 +143,21 @@ public static final GroupLayout layout() { */ public static class get_file { - get_file() { + get_file() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("file") - ).withName("$anon$690:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("file")).withName("$anon$690:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout file$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("file")); + private static final AddressLayout file$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("file")); /** * Layout for field: @@ -172,9 +165,7 @@ public static final GroupLayout layout() { * void **file * } */ - public static final AddressLayout file$layout() { - return file$LAYOUT; - } + public static final AddressLayout file$layout() { return file$LAYOUT; } private static final long file$OFFSET = 0; @@ -184,9 +175,7 @@ public static final GroupLayout layout() { * void **file * } */ - public static final long file$offset() { - return file$OFFSET; - } + public static final long file$offset() { return file$OFFSET; } /** * Getter for field: @@ -194,7 +183,8 @@ public static final GroupLayout layout() { * void **file * } */ - public static MemorySegment file(MemorySegment struct) { + public static MemorySegment file(MemorySegment struct) + { return struct.get(file$LAYOUT, file$OFFSET); } @@ -204,7 +194,8 @@ public static MemorySegment file(MemorySegment struct) { * void **file * } */ - public static void file(MemorySegment struct, MemorySegment fieldValue) { + public static void file(MemorySegment struct, MemorySegment fieldValue) + { struct.set(file$LAYOUT, file$OFFSET, fieldValue); } @@ -212,7 +203,8 @@ public static void file(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -224,7 +216,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -232,7 +225,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -240,7 +234,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -248,12 +244,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_file$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_file")); + private static final GroupLayout get_file$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_file")); /** * Layout for field: @@ -263,9 +262,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_file * } */ - public static final GroupLayout get_file$layout() { - return get_file$LAYOUT; - } + public static final GroupLayout get_file$layout() { return get_file$LAYOUT; } private static final long get_file$OFFSET = 0; @@ -277,9 +274,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_file * } */ - public static final long get_file$offset() { - return get_file$OFFSET; - } + public static final long get_file$offset() { return get_file$OFFSET; } /** * Getter for field: @@ -289,7 +284,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_file * } */ - public static MemorySegment get_file(MemorySegment union) { + public static MemorySegment get_file(MemorySegment union) + { return union.asSlice(get_file$OFFSET, get_file$LAYOUT.byteSize()); } @@ -301,7 +297,8 @@ public static MemorySegment get_file(MemorySegment union) { * } get_file * } */ - public static void get_file(MemorySegment union, MemorySegment fieldValue) { + public static void get_file(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_file$OFFSET, get_file$LAYOUT.byteSize()); } @@ -316,22 +313,21 @@ public static void get_file(MemorySegment union, MemorySegment fieldValue) { */ public static class get_name { - get_name() { + get_name() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("buf_size"), - hdf5_h.C_POINTER.withName("buf"), - hdf5_h.C_POINTER.withName("name_len") - ).withName("$anon$695:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("buf_size"), hdf5_h.C_POINTER.withName("buf"), + hdf5_h.C_POINTER.withName("name_len")) + .withName("$anon$695:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong buf_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("buf_size")); @@ -341,9 +337,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final OfLong buf_size$layout() { - return buf_size$LAYOUT; - } + public static final OfLong buf_size$layout() { return buf_size$LAYOUT; } private static final long buf_size$OFFSET = 0; @@ -353,9 +347,7 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static final long buf_size$offset() { - return buf_size$OFFSET; - } + public static final long buf_size$offset() { return buf_size$OFFSET; } /** * Getter for field: @@ -363,7 +355,8 @@ public static final GroupLayout layout() { * size_t buf_size * } */ - public static long buf_size(MemorySegment struct) { + public static long buf_size(MemorySegment struct) + { return struct.get(buf_size$LAYOUT, buf_size$OFFSET); } @@ -373,11 +366,13 @@ public static long buf_size(MemorySegment struct) { * size_t buf_size * } */ - public static void buf_size(MemorySegment struct, long fieldValue) { + public static void buf_size(MemorySegment struct, long fieldValue) + { struct.set(buf_size$LAYOUT, buf_size$OFFSET, fieldValue); } - private static final AddressLayout buf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("buf")); + private static final AddressLayout buf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("buf")); /** * Layout for field: @@ -385,9 +380,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final AddressLayout buf$layout() { - return buf$LAYOUT; - } + public static final AddressLayout buf$layout() { return buf$LAYOUT; } private static final long buf$OFFSET = 8; @@ -397,9 +390,7 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static final long buf$offset() { - return buf$OFFSET; - } + public static final long buf$offset() { return buf$OFFSET; } /** * Getter for field: @@ -407,7 +398,8 @@ public static void buf_size(MemorySegment struct, long fieldValue) { * char *buf * } */ - public static MemorySegment buf(MemorySegment struct) { + public static MemorySegment buf(MemorySegment struct) + { return struct.get(buf$LAYOUT, buf$OFFSET); } @@ -417,11 +409,13 @@ public static MemorySegment buf(MemorySegment struct) { * char *buf * } */ - public static void buf(MemorySegment struct, MemorySegment fieldValue) { + public static void buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(buf$LAYOUT, buf$OFFSET, fieldValue); } - private static final AddressLayout name_len$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name_len")); + private static final AddressLayout name_len$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("name_len")); /** * Layout for field: @@ -429,9 +423,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static final AddressLayout name_len$layout() { - return name_len$LAYOUT; - } + public static final AddressLayout name_len$layout() { return name_len$LAYOUT; } private static final long name_len$OFFSET = 16; @@ -441,9 +433,7 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static final long name_len$offset() { - return name_len$OFFSET; - } + public static final long name_len$offset() { return name_len$OFFSET; } /** * Getter for field: @@ -451,7 +441,8 @@ public static void buf(MemorySegment struct, MemorySegment fieldValue) { * size_t *name_len * } */ - public static MemorySegment name_len(MemorySegment struct) { + public static MemorySegment name_len(MemorySegment struct) + { return struct.get(name_len$LAYOUT, name_len$OFFSET); } @@ -461,7 +452,8 @@ public static MemorySegment name_len(MemorySegment struct) { * size_t *name_len * } */ - public static void name_len(MemorySegment struct, MemorySegment fieldValue) { + public static void name_len(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name_len$LAYOUT, name_len$OFFSET, fieldValue); } @@ -469,7 +461,8 @@ public static void name_len(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -481,7 +474,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -489,7 +483,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -497,7 +492,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -505,12 +502,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_name$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_name")); + private static final GroupLayout get_name$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_name")); /** * Layout for field: @@ -522,9 +522,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static final GroupLayout get_name$layout() { - return get_name$LAYOUT; - } + public static final GroupLayout get_name$layout() { return get_name$LAYOUT; } private static final long get_name$OFFSET = 0; @@ -538,9 +536,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static final long get_name$offset() { - return get_name$OFFSET; - } + public static final long get_name$offset() { return get_name$OFFSET; } /** * Getter for field: @@ -552,7 +548,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_name * } */ - public static MemorySegment get_name(MemorySegment union) { + public static MemorySegment get_name(MemorySegment union) + { return union.asSlice(get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -566,7 +563,8 @@ public static MemorySegment get_name(MemorySegment union) { * } get_name * } */ - public static void get_name(MemorySegment union, MemorySegment fieldValue) { + public static void get_name(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_name$OFFSET, get_name$LAYOUT.byteSize()); } @@ -579,22 +577,21 @@ public static void get_name(MemorySegment union, MemorySegment fieldValue) { */ public static class get_type { - get_type() { + get_type() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("obj_type") - ).withName("$anon$702:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("obj_type")).withName("$anon$702:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout obj_type$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("obj_type")); + private static final AddressLayout obj_type$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("obj_type")); /** * Layout for field: @@ -602,9 +599,7 @@ public static final GroupLayout layout() { * H5O_type_t *obj_type * } */ - public static final AddressLayout obj_type$layout() { - return obj_type$LAYOUT; - } + public static final AddressLayout obj_type$layout() { return obj_type$LAYOUT; } private static final long obj_type$OFFSET = 0; @@ -614,9 +609,7 @@ public static final GroupLayout layout() { * H5O_type_t *obj_type * } */ - public static final long obj_type$offset() { - return obj_type$OFFSET; - } + public static final long obj_type$offset() { return obj_type$OFFSET; } /** * Getter for field: @@ -624,7 +617,8 @@ public static final GroupLayout layout() { * H5O_type_t *obj_type * } */ - public static MemorySegment obj_type(MemorySegment struct) { + public static MemorySegment obj_type(MemorySegment struct) + { return struct.get(obj_type$LAYOUT, obj_type$OFFSET); } @@ -634,7 +628,8 @@ public static MemorySegment obj_type(MemorySegment struct) { * H5O_type_t *obj_type * } */ - public static void obj_type(MemorySegment struct, MemorySegment fieldValue) { + public static void obj_type(MemorySegment struct, MemorySegment fieldValue) + { struct.set(obj_type$LAYOUT, obj_type$OFFSET, fieldValue); } @@ -642,7 +637,8 @@ public static void obj_type(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -654,7 +650,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -662,7 +659,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -670,7 +668,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -678,12 +678,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_type$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_type")); + private static final GroupLayout get_type$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_type")); /** * Layout for field: @@ -693,9 +696,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final GroupLayout get_type$layout() { - return get_type$LAYOUT; - } + public static final GroupLayout get_type$layout() { return get_type$LAYOUT; } private static final long get_type$OFFSET = 0; @@ -707,9 +708,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static final long get_type$offset() { - return get_type$OFFSET; - } + public static final long get_type$offset() { return get_type$OFFSET; } /** * Getter for field: @@ -719,7 +718,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_type * } */ - public static MemorySegment get_type(MemorySegment union) { + public static MemorySegment get_type(MemorySegment union) + { return union.asSlice(get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -731,7 +731,8 @@ public static MemorySegment get_type(MemorySegment union) { * } get_type * } */ - public static void get_type(MemorySegment union, MemorySegment fieldValue) { + public static void get_type(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_type$OFFSET, get_type$LAYOUT.byteSize()); } @@ -745,22 +746,21 @@ public static void get_type(MemorySegment union, MemorySegment fieldValue) { */ public static class get_info { - get_info() { + get_info() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("fields"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("oinfo") - ).withName("$anon$707:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("fields"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("oinfo")) + .withName("$anon$707:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt fields$LAYOUT = (OfInt)$LAYOUT.select(groupElement("fields")); @@ -770,9 +770,7 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static final OfInt fields$layout() { - return fields$LAYOUT; - } + public static final OfInt fields$layout() { return fields$LAYOUT; } private static final long fields$OFFSET = 0; @@ -782,9 +780,7 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static final long fields$offset() { - return fields$OFFSET; - } + public static final long fields$offset() { return fields$OFFSET; } /** * Getter for field: @@ -792,7 +788,8 @@ public static final GroupLayout layout() { * unsigned int fields * } */ - public static int fields(MemorySegment struct) { + public static int fields(MemorySegment struct) + { return struct.get(fields$LAYOUT, fields$OFFSET); } @@ -802,11 +799,13 @@ public static int fields(MemorySegment struct) { * unsigned int fields * } */ - public static void fields(MemorySegment struct, int fieldValue) { + public static void fields(MemorySegment struct, int fieldValue) + { struct.set(fields$LAYOUT, fields$OFFSET, fieldValue); } - private static final AddressLayout oinfo$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("oinfo")); + private static final AddressLayout oinfo$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("oinfo")); /** * Layout for field: @@ -814,9 +813,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_info2_t *oinfo * } */ - public static final AddressLayout oinfo$layout() { - return oinfo$LAYOUT; - } + public static final AddressLayout oinfo$layout() { return oinfo$LAYOUT; } private static final long oinfo$OFFSET = 8; @@ -826,9 +823,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_info2_t *oinfo * } */ - public static final long oinfo$offset() { - return oinfo$OFFSET; - } + public static final long oinfo$offset() { return oinfo$OFFSET; } /** * Getter for field: @@ -836,7 +831,8 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_info2_t *oinfo * } */ - public static MemorySegment oinfo(MemorySegment struct) { + public static MemorySegment oinfo(MemorySegment struct) + { return struct.get(oinfo$LAYOUT, oinfo$OFFSET); } @@ -846,7 +842,8 @@ public static MemorySegment oinfo(MemorySegment struct) { * H5O_info2_t *oinfo * } */ - public static void oinfo(MemorySegment struct, MemorySegment fieldValue) { + public static void oinfo(MemorySegment struct, MemorySegment fieldValue) + { struct.set(oinfo$LAYOUT, oinfo$OFFSET, fieldValue); } @@ -854,7 +851,8 @@ public static void oinfo(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -866,7 +864,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -874,7 +873,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -882,7 +882,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -890,12 +892,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_info$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_info")); + private static final GroupLayout get_info$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_info")); /** * Layout for field: @@ -906,9 +911,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static final GroupLayout get_info$layout() { - return get_info$LAYOUT; - } + public static final GroupLayout get_info$layout() { return get_info$LAYOUT; } private static final long get_info$OFFSET = 0; @@ -921,9 +924,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static final long get_info$offset() { - return get_info$OFFSET; - } + public static final long get_info$offset() { return get_info$OFFSET; } /** * Getter for field: @@ -934,7 +935,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_info * } */ - public static MemorySegment get_info(MemorySegment union) { + public static MemorySegment get_info(MemorySegment union) + { return union.asSlice(get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -947,7 +949,8 @@ public static MemorySegment get_info(MemorySegment union) { * } get_info * } */ - public static void get_info(MemorySegment union, MemorySegment fieldValue) { + public static void get_info(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_info$OFFSET, get_info$LAYOUT.byteSize()); } @@ -955,7 +958,8 @@ public static void get_info(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -967,7 +971,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -975,7 +980,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -983,7 +989,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -991,7 +999,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1020,9 +1030,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -1048,9 +1056,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1074,7 +1080,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1100,7 +1107,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1108,7 +1116,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1120,15 +1129,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1136,7 +1144,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1144,8 +1153,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_specific_args_t.java index 69413f8d961..9bcd900e2cf 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_object_specific_args_t { @@ -39,22 +39,21 @@ */ public class H5VL_object_specific_args_t { - H5VL_object_specific_args_t() { + H5VL_object_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_object_specific_args_t.args.layout().withName("args") - ).withName("H5VL_object_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_object_specific_args_t.args.layout().withName("args")) + .withName("H5VL_object_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -64,9 +63,7 @@ public static final GroupLayout layout() { * H5VL_object_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -76,9 +73,7 @@ public static final GroupLayout layout() { * H5VL_object_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -86,9 +81,7 @@ public static final GroupLayout layout() { * H5VL_object_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -96,7 +89,8 @@ public static int op_type(MemorySegment struct) { * H5VL_object_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -124,25 +118,25 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_object_specific_args_t.args.change_rc.layout().withName("change_rc"), - H5VL_object_specific_args_t.args.exists.layout().withName("exists"), - H5VL_object_specific_args_t.args.lookup.layout().withName("lookup"), - H5VL_object_visit_args_t.layout().withName("visit"), - H5VL_object_specific_args_t.args.flush.layout().withName("flush"), - H5VL_object_specific_args_t.args.refresh.layout().withName("refresh") - ).withName("$anon$738:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(H5VL_object_specific_args_t.args.change_rc.layout().withName("change_rc"), + H5VL_object_specific_args_t.args.exists.layout().withName("exists"), + H5VL_object_specific_args_t.args.lookup.layout().withName("lookup"), + H5VL_object_visit_args_t.layout().withName("visit"), + H5VL_object_specific_args_t.args.flush.layout().withName("flush"), + H5VL_object_specific_args_t.args.refresh.layout().withName("refresh")) + .withName("$anon$738:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -153,20 +147,18 @@ public static final GroupLayout layout() { */ public static class change_rc { - change_rc() { + change_rc() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("delta") - ).withName("$anon$740:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_INT.withName("delta")).withName("$anon$740:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt delta$LAYOUT = (OfInt)$LAYOUT.select(groupElement("delta")); @@ -176,9 +168,7 @@ public static final GroupLayout layout() { * int delta * } */ - public static final OfInt delta$layout() { - return delta$LAYOUT; - } + public static final OfInt delta$layout() { return delta$LAYOUT; } private static final long delta$OFFSET = 0; @@ -188,9 +178,7 @@ public static final GroupLayout layout() { * int delta * } */ - public static final long delta$offset() { - return delta$OFFSET; - } + public static final long delta$offset() { return delta$OFFSET; } /** * Getter for field: @@ -198,9 +186,7 @@ public static final GroupLayout layout() { * int delta * } */ - public static int delta(MemorySegment struct) { - return struct.get(delta$LAYOUT, delta$OFFSET); - } + public static int delta(MemorySegment struct) { return struct.get(delta$LAYOUT, delta$OFFSET); } /** * Setter for field: @@ -208,7 +194,8 @@ public static int delta(MemorySegment struct) { * int delta * } */ - public static void delta(MemorySegment struct, int fieldValue) { + public static void delta(MemorySegment struct, int fieldValue) + { struct.set(delta$LAYOUT, delta$OFFSET, fieldValue); } @@ -216,7 +203,8 @@ public static void delta(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -228,7 +216,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -236,7 +225,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -244,7 +234,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -252,12 +244,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout change_rc$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("change_rc")); + private static final GroupLayout change_rc$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("change_rc")); /** * Layout for field: @@ -267,9 +262,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } change_rc * } */ - public static final GroupLayout change_rc$layout() { - return change_rc$LAYOUT; - } + public static final GroupLayout change_rc$layout() { return change_rc$LAYOUT; } private static final long change_rc$OFFSET = 0; @@ -281,9 +274,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } change_rc * } */ - public static final long change_rc$offset() { - return change_rc$OFFSET; - } + public static final long change_rc$offset() { return change_rc$OFFSET; } /** * Getter for field: @@ -293,7 +284,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } change_rc * } */ - public static MemorySegment change_rc(MemorySegment union) { + public static MemorySegment change_rc(MemorySegment union) + { return union.asSlice(change_rc$OFFSET, change_rc$LAYOUT.byteSize()); } @@ -305,7 +297,8 @@ public static MemorySegment change_rc(MemorySegment union) { * } change_rc * } */ - public static void change_rc(MemorySegment union, MemorySegment fieldValue) { + public static void change_rc(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, change_rc$OFFSET, change_rc$LAYOUT.byteSize()); } @@ -318,22 +311,21 @@ public static void change_rc(MemorySegment union, MemorySegment fieldValue) { */ public static class exists { - exists() { + exists() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("exists") - ).withName("$anon$745:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("exists")).withName("$anon$745:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout exists$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("exists")); + private static final AddressLayout exists$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("exists")); /** * Layout for field: @@ -341,9 +333,7 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static final AddressLayout exists$layout() { - return exists$LAYOUT; - } + public static final AddressLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -353,9 +343,7 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -363,7 +351,8 @@ public static final GroupLayout layout() { * hbool_t *exists * } */ - public static MemorySegment exists(MemorySegment struct) { + public static MemorySegment exists(MemorySegment struct) + { return struct.get(exists$LAYOUT, exists$OFFSET); } @@ -373,7 +362,8 @@ public static MemorySegment exists(MemorySegment struct) { * hbool_t *exists * } */ - public static void exists(MemorySegment struct, MemorySegment fieldValue) { + public static void exists(MemorySegment struct, MemorySegment fieldValue) + { struct.set(exists$LAYOUT, exists$OFFSET, fieldValue); } @@ -381,7 +371,8 @@ public static void exists(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -393,7 +384,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -401,7 +393,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -409,7 +402,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -417,7 +412,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -432,9 +429,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final GroupLayout exists$layout() { - return exists$LAYOUT; - } + public static final GroupLayout exists$layout() { return exists$LAYOUT; } private static final long exists$OFFSET = 0; @@ -446,9 +441,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static final long exists$offset() { - return exists$OFFSET; - } + public static final long exists$offset() { return exists$OFFSET; } /** * Getter for field: @@ -458,7 +451,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } exists * } */ - public static MemorySegment exists(MemorySegment union) { + public static MemorySegment exists(MemorySegment union) + { return union.asSlice(exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -470,7 +464,8 @@ public static MemorySegment exists(MemorySegment union) { * } exists * } */ - public static void exists(MemorySegment union, MemorySegment fieldValue) { + public static void exists(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, exists$OFFSET, exists$LAYOUT.byteSize()); } @@ -483,22 +478,21 @@ public static void exists(MemorySegment union, MemorySegment fieldValue) { */ public static class lookup { - lookup() { + lookup() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("token_ptr") - ).withName("$anon$750:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("token_ptr")).withName("$anon$750:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout token_ptr$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("token_ptr")); + private static final AddressLayout token_ptr$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("token_ptr")); /** * Layout for field: @@ -506,9 +500,7 @@ public static final GroupLayout layout() { * H5O_token_t *token_ptr * } */ - public static final AddressLayout token_ptr$layout() { - return token_ptr$LAYOUT; - } + public static final AddressLayout token_ptr$layout() { return token_ptr$LAYOUT; } private static final long token_ptr$OFFSET = 0; @@ -518,9 +510,7 @@ public static final GroupLayout layout() { * H5O_token_t *token_ptr * } */ - public static final long token_ptr$offset() { - return token_ptr$OFFSET; - } + public static final long token_ptr$offset() { return token_ptr$OFFSET; } /** * Getter for field: @@ -528,7 +518,8 @@ public static final GroupLayout layout() { * H5O_token_t *token_ptr * } */ - public static MemorySegment token_ptr(MemorySegment struct) { + public static MemorySegment token_ptr(MemorySegment struct) + { return struct.get(token_ptr$LAYOUT, token_ptr$OFFSET); } @@ -538,7 +529,8 @@ public static MemorySegment token_ptr(MemorySegment struct) { * H5O_token_t *token_ptr * } */ - public static void token_ptr(MemorySegment struct, MemorySegment fieldValue) { + public static void token_ptr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(token_ptr$LAYOUT, token_ptr$OFFSET, fieldValue); } @@ -546,7 +538,8 @@ public static void token_ptr(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -558,7 +551,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -566,7 +560,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -574,7 +569,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -582,7 +579,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -597,9 +596,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } lookup * } */ - public static final GroupLayout lookup$layout() { - return lookup$LAYOUT; - } + public static final GroupLayout lookup$layout() { return lookup$LAYOUT; } private static final long lookup$OFFSET = 0; @@ -611,9 +608,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } lookup * } */ - public static final long lookup$offset() { - return lookup$OFFSET; - } + public static final long lookup$offset() { return lookup$OFFSET; } /** * Getter for field: @@ -623,7 +618,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } lookup * } */ - public static MemorySegment lookup(MemorySegment union) { + public static MemorySegment lookup(MemorySegment union) + { return union.asSlice(lookup$OFFSET, lookup$LAYOUT.byteSize()); } @@ -635,7 +631,8 @@ public static MemorySegment lookup(MemorySegment union) { * } lookup * } */ - public static void lookup(MemorySegment union, MemorySegment fieldValue) { + public static void lookup(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, lookup$OFFSET, lookup$LAYOUT.byteSize()); } @@ -647,9 +644,7 @@ public static void lookup(MemorySegment union, MemorySegment fieldValue) { * H5VL_object_visit_args_t visit * } */ - public static final GroupLayout visit$layout() { - return visit$LAYOUT; - } + public static final GroupLayout visit$layout() { return visit$LAYOUT; } private static final long visit$OFFSET = 0; @@ -659,9 +654,7 @@ public static void lookup(MemorySegment union, MemorySegment fieldValue) { * H5VL_object_visit_args_t visit * } */ - public static final long visit$offset() { - return visit$OFFSET; - } + public static final long visit$offset() { return visit$OFFSET; } /** * Getter for field: @@ -669,7 +662,8 @@ public static void lookup(MemorySegment union, MemorySegment fieldValue) { * H5VL_object_visit_args_t visit * } */ - public static MemorySegment visit(MemorySegment union) { + public static MemorySegment visit(MemorySegment union) + { return union.asSlice(visit$OFFSET, visit$LAYOUT.byteSize()); } @@ -679,7 +673,8 @@ public static MemorySegment visit(MemorySegment union) { * H5VL_object_visit_args_t visit * } */ - public static void visit(MemorySegment union, MemorySegment fieldValue) { + public static void visit(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, visit$OFFSET, visit$LAYOUT.byteSize()); } @@ -692,20 +687,18 @@ public static void visit(MemorySegment union, MemorySegment fieldValue) { */ public static class flush { - flush() { + flush() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("obj_id") - ).withName("$anon$758:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("obj_id")).withName("$anon$758:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong obj_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("obj_id")); @@ -715,9 +708,7 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static final OfLong obj_id$layout() { - return obj_id$LAYOUT; - } + public static final OfLong obj_id$layout() { return obj_id$LAYOUT; } private static final long obj_id$OFFSET = 0; @@ -727,9 +718,7 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static final long obj_id$offset() { - return obj_id$OFFSET; - } + public static final long obj_id$offset() { return obj_id$OFFSET; } /** * Getter for field: @@ -737,7 +726,8 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static long obj_id(MemorySegment struct) { + public static long obj_id(MemorySegment struct) + { return struct.get(obj_id$LAYOUT, obj_id$OFFSET); } @@ -747,7 +737,8 @@ public static long obj_id(MemorySegment struct) { * hid_t obj_id * } */ - public static void obj_id(MemorySegment struct, long fieldValue) { + public static void obj_id(MemorySegment struct, long fieldValue) + { struct.set(obj_id$LAYOUT, obj_id$OFFSET, fieldValue); } @@ -755,7 +746,8 @@ public static void obj_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -767,7 +759,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -775,7 +768,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -783,7 +777,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -791,7 +787,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -806,9 +804,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final GroupLayout flush$layout() { - return flush$LAYOUT; - } + public static final GroupLayout flush$layout() { return flush$LAYOUT; } private static final long flush$OFFSET = 0; @@ -820,9 +816,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static final long flush$offset() { - return flush$OFFSET; - } + public static final long flush$offset() { return flush$OFFSET; } /** * Getter for field: @@ -832,7 +826,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } flush * } */ - public static MemorySegment flush(MemorySegment union) { + public static MemorySegment flush(MemorySegment union) + { return union.asSlice(flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -844,7 +839,8 @@ public static MemorySegment flush(MemorySegment union) { * } flush * } */ - public static void flush(MemorySegment union, MemorySegment fieldValue) { + public static void flush(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, flush$OFFSET, flush$LAYOUT.byteSize()); } @@ -857,20 +853,18 @@ public static void flush(MemorySegment union, MemorySegment fieldValue) { */ public static class refresh { - refresh() { + refresh() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("obj_id") - ).withName("$anon$763:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("obj_id")).withName("$anon$763:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong obj_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("obj_id")); @@ -880,9 +874,7 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static final OfLong obj_id$layout() { - return obj_id$LAYOUT; - } + public static final OfLong obj_id$layout() { return obj_id$LAYOUT; } private static final long obj_id$OFFSET = 0; @@ -892,9 +884,7 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static final long obj_id$offset() { - return obj_id$OFFSET; - } + public static final long obj_id$offset() { return obj_id$OFFSET; } /** * Getter for field: @@ -902,7 +892,8 @@ public static final GroupLayout layout() { * hid_t obj_id * } */ - public static long obj_id(MemorySegment struct) { + public static long obj_id(MemorySegment struct) + { return struct.get(obj_id$LAYOUT, obj_id$OFFSET); } @@ -912,7 +903,8 @@ public static long obj_id(MemorySegment struct) { * hid_t obj_id * } */ - public static void obj_id(MemorySegment struct, long fieldValue) { + public static void obj_id(MemorySegment struct, long fieldValue) + { struct.set(obj_id$LAYOUT, obj_id$OFFSET, fieldValue); } @@ -920,7 +912,8 @@ public static void obj_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -932,7 +925,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -940,7 +934,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -948,7 +943,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -956,12 +953,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout refresh$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("refresh")); + private static final GroupLayout refresh$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("refresh")); /** * Layout for field: @@ -971,9 +971,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final GroupLayout refresh$layout() { - return refresh$LAYOUT; - } + public static final GroupLayout refresh$layout() { return refresh$LAYOUT; } private static final long refresh$OFFSET = 0; @@ -985,9 +983,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static final long refresh$offset() { - return refresh$OFFSET; - } + public static final long refresh$offset() { return refresh$OFFSET; } /** * Getter for field: @@ -997,7 +993,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } refresh * } */ - public static MemorySegment refresh(MemorySegment union) { + public static MemorySegment refresh(MemorySegment union) + { return union.asSlice(refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -1009,7 +1006,8 @@ public static MemorySegment refresh(MemorySegment union) { * } refresh * } */ - public static void refresh(MemorySegment union, MemorySegment fieldValue) { + public static void refresh(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, refresh$OFFSET, refresh$LAYOUT.byteSize()); } @@ -1017,7 +1015,8 @@ public static void refresh(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1029,7 +1028,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -1037,7 +1037,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1045,7 +1046,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1053,7 +1056,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -1083,9 +1088,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -1112,9 +1115,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -1139,7 +1140,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -1166,7 +1168,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -1174,7 +1177,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1186,15 +1190,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1202,7 +1205,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1210,8 +1214,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_visit_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_visit_args_t.java index 310823432ac..8869e47a8be 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_visit_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_object_visit_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_object_visit_args_t { @@ -25,25 +25,22 @@ */ public class H5VL_object_visit_args_t { - H5VL_object_visit_args_t() { + H5VL_object_visit_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("idx_type"), - hdf5_h.C_INT.withName("order"), - hdf5_h.C_INT.withName("fields"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("op"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5VL_object_visit_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("idx_type"), hdf5_h.C_INT.withName("order"), + hdf5_h.C_INT.withName("fields"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("op"), hdf5_h.C_POINTER.withName("op_data")) + .withName("H5VL_object_visit_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt idx_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("idx_type")); @@ -53,9 +50,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final OfInt idx_type$layout() { - return idx_type$LAYOUT; - } + public static final OfInt idx_type$layout() { return idx_type$LAYOUT; } private static final long idx_type$OFFSET = 0; @@ -65,9 +60,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static final long idx_type$offset() { - return idx_type$OFFSET; - } + public static final long idx_type$offset() { return idx_type$OFFSET; } /** * Getter for field: @@ -75,9 +68,7 @@ public static final GroupLayout layout() { * H5_index_t idx_type * } */ - public static int idx_type(MemorySegment struct) { - return struct.get(idx_type$LAYOUT, idx_type$OFFSET); - } + public static int idx_type(MemorySegment struct) { return struct.get(idx_type$LAYOUT, idx_type$OFFSET); } /** * Setter for field: @@ -85,7 +76,8 @@ public static int idx_type(MemorySegment struct) { * H5_index_t idx_type * } */ - public static void idx_type(MemorySegment struct, int fieldValue) { + public static void idx_type(MemorySegment struct, int fieldValue) + { struct.set(idx_type$LAYOUT, idx_type$OFFSET, fieldValue); } @@ -97,9 +89,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final OfInt order$layout() { - return order$LAYOUT; - } + public static final OfInt order$layout() { return order$LAYOUT; } private static final long order$OFFSET = 4; @@ -109,9 +99,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static final long order$offset() { - return order$OFFSET; - } + public static final long order$offset() { return order$OFFSET; } /** * Getter for field: @@ -119,9 +107,7 @@ public static void idx_type(MemorySegment struct, int fieldValue) { * H5_iter_order_t order * } */ - public static int order(MemorySegment struct) { - return struct.get(order$LAYOUT, order$OFFSET); - } + public static int order(MemorySegment struct) { return struct.get(order$LAYOUT, order$OFFSET); } /** * Setter for field: @@ -129,7 +115,8 @@ public static int order(MemorySegment struct) { * H5_iter_order_t order * } */ - public static void order(MemorySegment struct, int fieldValue) { + public static void order(MemorySegment struct, int fieldValue) + { struct.set(order$LAYOUT, order$OFFSET, fieldValue); } @@ -141,9 +128,7 @@ public static void order(MemorySegment struct, int fieldValue) { * unsigned int fields * } */ - public static final OfInt fields$layout() { - return fields$LAYOUT; - } + public static final OfInt fields$layout() { return fields$LAYOUT; } private static final long fields$OFFSET = 8; @@ -153,9 +138,7 @@ public static void order(MemorySegment struct, int fieldValue) { * unsigned int fields * } */ - public static final long fields$offset() { - return fields$OFFSET; - } + public static final long fields$offset() { return fields$OFFSET; } /** * Getter for field: @@ -163,9 +146,7 @@ public static void order(MemorySegment struct, int fieldValue) { * unsigned int fields * } */ - public static int fields(MemorySegment struct) { - return struct.get(fields$LAYOUT, fields$OFFSET); - } + public static int fields(MemorySegment struct) { return struct.get(fields$LAYOUT, fields$OFFSET); } /** * Setter for field: @@ -173,7 +154,8 @@ public static int fields(MemorySegment struct) { * unsigned int fields * } */ - public static void fields(MemorySegment struct, int fieldValue) { + public static void fields(MemorySegment struct, int fieldValue) + { struct.set(fields$LAYOUT, fields$OFFSET, fieldValue); } @@ -185,9 +167,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_iterate2_t op * } */ - public static final AddressLayout op$layout() { - return op$LAYOUT; - } + public static final AddressLayout op$layout() { return op$LAYOUT; } private static final long op$OFFSET = 16; @@ -197,9 +177,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_iterate2_t op * } */ - public static final long op$offset() { - return op$OFFSET; - } + public static final long op$offset() { return op$OFFSET; } /** * Getter for field: @@ -207,9 +185,7 @@ public static void fields(MemorySegment struct, int fieldValue) { * H5O_iterate2_t op * } */ - public static MemorySegment op(MemorySegment struct) { - return struct.get(op$LAYOUT, op$OFFSET); - } + public static MemorySegment op(MemorySegment struct) { return struct.get(op$LAYOUT, op$OFFSET); } /** * Setter for field: @@ -217,11 +193,13 @@ public static MemorySegment op(MemorySegment struct) { * H5O_iterate2_t op * } */ - public static void op(MemorySegment struct, MemorySegment fieldValue) { + public static void op(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op$LAYOUT, op$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -229,9 +207,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 24; @@ -241,9 +217,7 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -251,7 +225,8 @@ public static void op(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -261,7 +236,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -269,7 +245,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -281,15 +258,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -297,7 +273,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -305,8 +282,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_optional_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_optional_args_t.java index 31d84baea24..ccc7a0ed5ab 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_optional_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_optional_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_optional_args_t { @@ -22,22 +22,21 @@ */ public class H5VL_optional_args_t { - H5VL_optional_args_t() { + H5VL_optional_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("args") - ).withName("H5VL_optional_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("args")) + .withName("H5VL_optional_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -47,9 +46,7 @@ public static final GroupLayout layout() { * int op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -59,9 +56,7 @@ public static final GroupLayout layout() { * int op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -69,9 +64,7 @@ public static final GroupLayout layout() { * int op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -79,7 +72,8 @@ public static int op_type(MemorySegment struct) { * int op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -91,9 +85,7 @@ public static void op_type(MemorySegment struct, int fieldValue) { * void *args * } */ - public static final AddressLayout args$layout() { - return args$LAYOUT; - } + public static final AddressLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -103,9 +95,7 @@ public static void op_type(MemorySegment struct, int fieldValue) { * void *args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -113,9 +103,7 @@ public static void op_type(MemorySegment struct, int fieldValue) { * void *args * } */ - public static MemorySegment args(MemorySegment struct) { - return struct.get(args$LAYOUT, args$OFFSET); - } + public static MemorySegment args(MemorySegment struct) { return struct.get(args$LAYOUT, args$OFFSET); } /** * Setter for field: @@ -123,7 +111,8 @@ public static MemorySegment args(MemorySegment struct) { * void *args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { struct.set(args$LAYOUT, args$OFFSET, fieldValue); } @@ -131,7 +120,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -143,15 +133,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -159,7 +148,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -167,8 +157,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_pass_through_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_pass_through_info_t.java index 364117ad78d..bd6d2db80bd 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_pass_through_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_pass_through_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_pass_through_info_t { @@ -22,21 +22,20 @@ */ public class H5VL_pass_through_info_t { - H5VL_pass_through_info_t() { + H5VL_pass_through_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("under_vol_id"), - hdf5_h.C_POINTER.withName("under_vol_info") - ).withName("H5VL_pass_through_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG.withName("under_vol_id"), hdf5_h.C_POINTER.withName("under_vol_info")) + .withName("H5VL_pass_through_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong under_vol_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("under_vol_id")); @@ -46,9 +45,7 @@ public static final GroupLayout layout() { * hid_t under_vol_id * } */ - public static final OfLong under_vol_id$layout() { - return under_vol_id$LAYOUT; - } + public static final OfLong under_vol_id$layout() { return under_vol_id$LAYOUT; } private static final long under_vol_id$OFFSET = 0; @@ -58,9 +55,7 @@ public static final GroupLayout layout() { * hid_t under_vol_id * } */ - public static final long under_vol_id$offset() { - return under_vol_id$OFFSET; - } + public static final long under_vol_id$offset() { return under_vol_id$OFFSET; } /** * Getter for field: @@ -68,7 +63,8 @@ public static final GroupLayout layout() { * hid_t under_vol_id * } */ - public static long under_vol_id(MemorySegment struct) { + public static long under_vol_id(MemorySegment struct) + { return struct.get(under_vol_id$LAYOUT, under_vol_id$OFFSET); } @@ -78,11 +74,13 @@ public static long under_vol_id(MemorySegment struct) { * hid_t under_vol_id * } */ - public static void under_vol_id(MemorySegment struct, long fieldValue) { + public static void under_vol_id(MemorySegment struct, long fieldValue) + { struct.set(under_vol_id$LAYOUT, under_vol_id$OFFSET, fieldValue); } - private static final AddressLayout under_vol_info$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("under_vol_info")); + private static final AddressLayout under_vol_info$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("under_vol_info")); /** * Layout for field: @@ -90,9 +88,7 @@ public static void under_vol_id(MemorySegment struct, long fieldValue) { * void *under_vol_info * } */ - public static final AddressLayout under_vol_info$layout() { - return under_vol_info$LAYOUT; - } + public static final AddressLayout under_vol_info$layout() { return under_vol_info$LAYOUT; } private static final long under_vol_info$OFFSET = 8; @@ -102,9 +98,7 @@ public static void under_vol_id(MemorySegment struct, long fieldValue) { * void *under_vol_info * } */ - public static final long under_vol_info$offset() { - return under_vol_info$OFFSET; - } + public static final long under_vol_info$offset() { return under_vol_info$OFFSET; } /** * Getter for field: @@ -112,7 +106,8 @@ public static void under_vol_id(MemorySegment struct, long fieldValue) { * void *under_vol_info * } */ - public static MemorySegment under_vol_info(MemorySegment struct) { + public static MemorySegment under_vol_info(MemorySegment struct) + { return struct.get(under_vol_info$LAYOUT, under_vol_info$OFFSET); } @@ -122,7 +117,8 @@ public static MemorySegment under_vol_info(MemorySegment struct) { * void *under_vol_info * } */ - public static void under_vol_info(MemorySegment struct, MemorySegment fieldValue) { + public static void under_vol_info(MemorySegment struct, MemorySegment fieldValue) + { struct.set(under_vol_info$LAYOUT, under_vol_info$OFFSET, fieldValue); } @@ -130,7 +126,8 @@ public static void under_vol_info(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +139,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +154,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +163,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_class_t.java index 8dfaf834f58..44d64dd3309 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_request_class_t { @@ -26,25 +26,22 @@ */ public class H5VL_request_class_t { - H5VL_request_class_t() { + H5VL_request_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("wait"), - hdf5_h.C_POINTER.withName("notify"), - hdf5_h.C_POINTER.withName("cancel"), - hdf5_h.C_POINTER.withName("specific"), - hdf5_h.C_POINTER.withName("optional"), - hdf5_h.C_POINTER.withName("free") - ).withName("H5VL_request_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("wait"), hdf5_h.C_POINTER.withName("notify"), + hdf5_h.C_POINTER.withName("cancel"), hdf5_h.C_POINTER.withName("specific"), + hdf5_h.C_POINTER.withName("optional"), hdf5_h.C_POINTER.withName("free")) + .withName("H5VL_request_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -53,7 +50,8 @@ public static final GroupLayout layout() { */ public static class wait { - wait() { + wait() + { // Should not be called directly } @@ -64,19 +62,13 @@ public interface Function { int apply(MemorySegment _x0, long _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(wait.Function.class, "apply", $DESC); @@ -84,7 +76,8 @@ public static FunctionDescriptor descriptor() { * 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(wait.Function fi, Arena arena) { + public static MemorySegment allocate(wait.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -93,10 +86,12 @@ public static MemorySegment allocate(wait.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, long _x1, MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -110,9 +105,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*wait)(void *, uint64_t, H5VL_request_status_t *) * } */ - public static final AddressLayout wait$layout() { - return wait$LAYOUT; - } + public static final AddressLayout wait$layout() { return wait$LAYOUT; } private static final long wait$OFFSET = 0; @@ -122,9 +115,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*wait)(void *, uint64_t, H5VL_request_status_t *) * } */ - public static final long wait$offset() { - return wait$OFFSET; - } + public static final long wait$offset() { return wait$OFFSET; } /** * Getter for field: @@ -132,9 +123,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, Memo * herr_t (*wait)(void *, uint64_t, H5VL_request_status_t *) * } */ - public static MemorySegment wait(MemorySegment struct) { - return struct.get(wait$LAYOUT, wait$OFFSET); - } + public static MemorySegment wait(MemorySegment struct) { return struct.get(wait$LAYOUT, wait$OFFSET); } /** * Setter for field: @@ -142,7 +131,8 @@ public static MemorySegment wait(MemorySegment struct) { * herr_t (*wait)(void *, uint64_t, H5VL_request_status_t *) * } */ - public static void wait(MemorySegment struct, MemorySegment fieldValue) { + public static void wait(MemorySegment struct, MemorySegment fieldValue) + { struct.set(wait$LAYOUT, wait$OFFSET, fieldValue); } @@ -153,7 +143,8 @@ public static void wait(MemorySegment struct, MemorySegment fieldValue) { */ public static class notify { - notify() { + notify() + { // Should not be called directly } @@ -164,19 +155,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(notify.Function.class, "apply", $DESC); @@ -184,7 +169,8 @@ public static FunctionDescriptor descriptor() { * 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(notify.Function fi, Arena arena) { + public static MemorySegment allocate(notify.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -193,10 +179,13 @@ public static MemorySegment allocate(notify.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -210,9 +199,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*notify)(void *, H5VL_request_notify_t, void *) * } */ - public static final AddressLayout notify$layout() { - return notify$LAYOUT; - } + public static final AddressLayout notify$layout() { return notify$LAYOUT; } private static final long notify$OFFSET = 8; @@ -222,9 +209,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*notify)(void *, H5VL_request_notify_t, void *) * } */ - public static final long notify$offset() { - return notify$OFFSET; - } + public static final long notify$offset() { return notify$OFFSET; } /** * Getter for field: @@ -232,7 +217,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*notify)(void *, H5VL_request_notify_t, void *) * } */ - public static MemorySegment notify(MemorySegment struct) { + public static MemorySegment notify(MemorySegment struct) + { return struct.get(notify$LAYOUT, notify$OFFSET); } @@ -242,7 +228,8 @@ public static MemorySegment notify(MemorySegment struct) { * herr_t (*notify)(void *, H5VL_request_notify_t, void *) * } */ - public static void notify(MemorySegment struct, MemorySegment fieldValue) { + public static void notify(MemorySegment struct, MemorySegment fieldValue) + { struct.set(notify$LAYOUT, notify$OFFSET, fieldValue); } @@ -253,7 +240,8 @@ public static void notify(MemorySegment struct, MemorySegment fieldValue) { */ public static class cancel { - cancel() { + cancel() + { // Should not be called directly } @@ -264,18 +252,13 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cancel.Function.class, "apply", $DESC); @@ -283,7 +266,8 @@ public static FunctionDescriptor descriptor() { * 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(cancel.Function fi, Arena arena) { + public static MemorySegment allocate(cancel.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -292,10 +276,12 @@ public static MemorySegment allocate(cancel.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -309,9 +295,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cancel)(void *, H5VL_request_status_t *) * } */ - public static final AddressLayout cancel$layout() { - return cancel$LAYOUT; - } + public static final AddressLayout cancel$layout() { return cancel$LAYOUT; } private static final long cancel$OFFSET = 16; @@ -321,9 +305,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cancel)(void *, H5VL_request_status_t *) * } */ - public static final long cancel$offset() { - return cancel$OFFSET; - } + public static final long cancel$offset() { return cancel$OFFSET; } /** * Getter for field: @@ -331,7 +313,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cancel)(void *, H5VL_request_status_t *) * } */ - public static MemorySegment cancel(MemorySegment struct) { + public static MemorySegment cancel(MemorySegment struct) + { return struct.get(cancel$LAYOUT, cancel$OFFSET); } @@ -341,7 +324,8 @@ public static MemorySegment cancel(MemorySegment struct) { * herr_t (*cancel)(void *, H5VL_request_status_t *) * } */ - public static void cancel(MemorySegment struct, MemorySegment fieldValue) { + public static void cancel(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cancel$LAYOUT, cancel$OFFSET, fieldValue); } @@ -352,7 +336,8 @@ public static void cancel(MemorySegment struct, MemorySegment fieldValue) { */ public static class specific { - specific() { + specific() + { // Should not be called directly } @@ -363,26 +348,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(specific.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(specific.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(specific.Function fi, Arena arena) { + public static MemorySegment allocate(specific.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -391,16 +373,19 @@ public static MemorySegment allocate(specific.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout specific$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("specific")); + private static final AddressLayout specific$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("specific")); /** * Layout for field: @@ -408,9 +393,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_request_specific_args_t *) * } */ - public static final AddressLayout specific$layout() { - return specific$LAYOUT; - } + public static final AddressLayout specific$layout() { return specific$LAYOUT; } private static final long specific$OFFSET = 24; @@ -420,9 +403,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_request_specific_args_t *) * } */ - public static final long specific$offset() { - return specific$OFFSET; - } + public static final long specific$offset() { return specific$OFFSET; } /** * Getter for field: @@ -430,7 +411,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*specific)(void *, H5VL_request_specific_args_t *) * } */ - public static MemorySegment specific(MemorySegment struct) { + public static MemorySegment specific(MemorySegment struct) + { return struct.get(specific$LAYOUT, specific$OFFSET); } @@ -440,7 +422,8 @@ public static MemorySegment specific(MemorySegment struct) { * herr_t (*specific)(void *, H5VL_request_specific_args_t *) * } */ - public static void specific(MemorySegment struct, MemorySegment fieldValue) { + public static void specific(MemorySegment struct, MemorySegment fieldValue) + { struct.set(specific$LAYOUT, specific$OFFSET, fieldValue); } @@ -451,7 +434,8 @@ public static void specific(MemorySegment struct, MemorySegment fieldValue) { */ public static class optional { - optional() { + optional() + { // Should not be called directly } @@ -462,26 +446,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(optional.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(optional.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(optional.Function fi, Arena arena) { + public static MemorySegment allocate(optional.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -490,16 +471,19 @@ public static MemorySegment allocate(optional.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout optional$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("optional")); + private static final AddressLayout optional$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("optional")); /** * Layout for field: @@ -507,9 +491,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *) * } */ - public static final AddressLayout optional$layout() { - return optional$LAYOUT; - } + public static final AddressLayout optional$layout() { return optional$LAYOUT; } private static final long optional$OFFSET = 32; @@ -519,9 +501,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *) * } */ - public static final long optional$offset() { - return optional$OFFSET; - } + public static final long optional$offset() { return optional$OFFSET; } /** * Getter for field: @@ -529,7 +509,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*optional)(void *, H5VL_optional_args_t *) * } */ - public static MemorySegment optional(MemorySegment struct) { + public static MemorySegment optional(MemorySegment struct) + { return struct.get(optional$LAYOUT, optional$OFFSET); } @@ -539,7 +520,8 @@ public static MemorySegment optional(MemorySegment struct) { * herr_t (*optional)(void *, H5VL_optional_args_t *) * } */ - public static void optional(MemorySegment struct, MemorySegment fieldValue) { + public static void optional(MemorySegment struct, MemorySegment fieldValue) + { struct.set(optional$LAYOUT, optional$OFFSET, fieldValue); } @@ -550,7 +532,8 @@ public static void optional(MemorySegment struct, MemorySegment fieldValue) { */ public static class free { - free() { + free() + { // Should not be called directly } @@ -561,17 +544,12 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(free.Function.class, "apply", $DESC); @@ -579,7 +557,8 @@ public static FunctionDescriptor descriptor() { * 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(free.Function fi, Arena arena) { + public static MemorySegment allocate(free.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -588,10 +567,12 @@ public static MemorySegment allocate(free.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -605,9 +586,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static final AddressLayout free$layout() { - return free$LAYOUT; - } + public static final AddressLayout free$layout() { return free$LAYOUT; } private static final long free$OFFSET = 40; @@ -617,9 +596,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static final long free$offset() { - return free$OFFSET; - } + public static final long free$offset() { return free$OFFSET; } /** * Getter for field: @@ -627,9 +604,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free)(void *) * } */ - public static MemorySegment free(MemorySegment struct) { - return struct.get(free$LAYOUT, free$OFFSET); - } + public static MemorySegment free(MemorySegment struct) { return struct.get(free$LAYOUT, free$OFFSET); } /** * Setter for field: @@ -637,7 +612,8 @@ public static MemorySegment free(MemorySegment struct) { * herr_t (*free)(void *) * } */ - public static void free(MemorySegment struct, MemorySegment fieldValue) { + public static void free(MemorySegment struct, MemorySegment fieldValue) + { struct.set(free$LAYOUT, free$OFFSET, fieldValue); } @@ -645,7 +621,8 @@ public static void free(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -657,15 +634,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -673,7 +649,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -681,8 +658,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_notify_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_notify_t.java index e8e62ba6dea..98aa7fe248b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_notify_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_notify_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5VL_request_notify_t)(void *, H5VL_request_status_t) @@ -19,7 +19,8 @@ */ public class H5VL_request_notify_t { - H5VL_request_notify_t() { + H5VL_request_notify_t() + { // Should not be called directly } @@ -30,26 +31,23 @@ public interface Function { int apply(MemorySegment ctx, int status); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5VL_request_notify_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5VL_request_notify_t.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(H5VL_request_notify_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5VL_request_notify_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -58,12 +56,13 @@ public static MemorySegment allocate(H5VL_request_notify_t.Function fi, Arena ar /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment ctx, int status) { + public static int invoke(MemorySegment funcPtr, MemorySegment ctx, int status) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, ctx, status); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, ctx, status); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_specific_args_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_specific_args_t.java index 52eb21e168b..dbd3320f33c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_specific_args_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_request_specific_args_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_request_specific_args_t { @@ -30,22 +30,21 @@ */ public class H5VL_request_specific_args_t { - H5VL_request_specific_args_t() { + H5VL_request_specific_args_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("op_type"), - MemoryLayout.paddingLayout(4), - H5VL_request_specific_args_t.args.layout().withName("args") - ).withName("H5VL_request_specific_args_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("op_type"), MemoryLayout.paddingLayout(4), + H5VL_request_specific_args_t.args.layout().withName("args")) + .withName("H5VL_request_specific_args_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt op_type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("op_type")); @@ -55,9 +54,7 @@ public static final GroupLayout layout() { * H5VL_request_specific_t op_type * } */ - public static final OfInt op_type$layout() { - return op_type$LAYOUT; - } + public static final OfInt op_type$layout() { return op_type$LAYOUT; } private static final long op_type$OFFSET = 0; @@ -67,9 +64,7 @@ public static final GroupLayout layout() { * H5VL_request_specific_t op_type * } */ - public static final long op_type$offset() { - return op_type$OFFSET; - } + public static final long op_type$offset() { return op_type$OFFSET; } /** * Getter for field: @@ -77,9 +72,7 @@ public static final GroupLayout layout() { * H5VL_request_specific_t op_type * } */ - public static int op_type(MemorySegment struct) { - return struct.get(op_type$LAYOUT, op_type$OFFSET); - } + public static int op_type(MemorySegment struct) { return struct.get(op_type$LAYOUT, op_type$OFFSET); } /** * Setter for field: @@ -87,7 +80,8 @@ public static int op_type(MemorySegment struct) { * H5VL_request_specific_t op_type * } */ - public static void op_type(MemorySegment struct, int fieldValue) { + public static void op_type(MemorySegment struct, int fieldValue) + { struct.set(op_type$LAYOUT, op_type$OFFSET, fieldValue); } @@ -106,21 +100,22 @@ public static void op_type(MemorySegment struct, int fieldValue) { */ public static class args { - args() { + args() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - H5VL_request_specific_args_t.args.get_err_stack.layout().withName("get_err_stack"), - H5VL_request_specific_args_t.args.get_exec_time.layout().withName("get_exec_time") - ).withName("$anon$796:5"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout( + H5VL_request_specific_args_t.args.get_err_stack.layout().withName("get_err_stack"), + H5VL_request_specific_args_t.args.get_exec_time.layout().withName("get_exec_time")) + .withName("$anon$796:5"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -131,22 +126,21 @@ public static final GroupLayout layout() { */ public static class get_err_stack { - get_err_stack() { + get_err_stack() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("err_stack_id") - ).withName("$anon$798:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("err_stack_id")).withName("$anon$798:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong err_stack_id$LAYOUT = (OfLong)$LAYOUT.select(groupElement("err_stack_id")); + private static final OfLong err_stack_id$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("err_stack_id")); /** * Layout for field: @@ -154,9 +148,7 @@ public static final GroupLayout layout() { * hid_t err_stack_id * } */ - public static final OfLong err_stack_id$layout() { - return err_stack_id$LAYOUT; - } + public static final OfLong err_stack_id$layout() { return err_stack_id$LAYOUT; } private static final long err_stack_id$OFFSET = 0; @@ -166,9 +158,7 @@ public static final GroupLayout layout() { * hid_t err_stack_id * } */ - public static final long err_stack_id$offset() { - return err_stack_id$OFFSET; - } + public static final long err_stack_id$offset() { return err_stack_id$OFFSET; } /** * Getter for field: @@ -176,7 +166,8 @@ public static final GroupLayout layout() { * hid_t err_stack_id * } */ - public static long err_stack_id(MemorySegment struct) { + public static long err_stack_id(MemorySegment struct) + { return struct.get(err_stack_id$LAYOUT, err_stack_id$OFFSET); } @@ -186,7 +177,8 @@ public static long err_stack_id(MemorySegment struct) { * hid_t err_stack_id * } */ - public static void err_stack_id(MemorySegment struct, long fieldValue) { + public static void err_stack_id(MemorySegment struct, long fieldValue) + { struct.set(err_stack_id$LAYOUT, err_stack_id$OFFSET, fieldValue); } @@ -194,7 +186,8 @@ public static void err_stack_id(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -206,7 +199,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -214,7 +208,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -222,7 +217,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -230,12 +227,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_err_stack$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_err_stack")); + private static final GroupLayout get_err_stack$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_err_stack")); /** * Layout for field: @@ -245,9 +245,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_err_stack * } */ - public static final GroupLayout get_err_stack$layout() { - return get_err_stack$LAYOUT; - } + public static final GroupLayout get_err_stack$layout() { return get_err_stack$LAYOUT; } private static final long get_err_stack$OFFSET = 0; @@ -259,9 +257,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_err_stack * } */ - public static final long get_err_stack$offset() { - return get_err_stack$OFFSET; - } + public static final long get_err_stack$offset() { return get_err_stack$OFFSET; } /** * Getter for field: @@ -271,7 +267,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_err_stack * } */ - public static MemorySegment get_err_stack(MemorySegment union) { + public static MemorySegment get_err_stack(MemorySegment union) + { return union.asSlice(get_err_stack$OFFSET, get_err_stack$LAYOUT.byteSize()); } @@ -283,7 +280,8 @@ public static MemorySegment get_err_stack(MemorySegment union) { * } get_err_stack * } */ - public static void get_err_stack(MemorySegment union, MemorySegment fieldValue) { + public static void get_err_stack(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_err_stack$OFFSET, get_err_stack$LAYOUT.byteSize()); } @@ -297,23 +295,24 @@ public static void get_err_stack(MemorySegment union, MemorySegment fieldValue) */ public static class get_exec_time { - get_exec_time() { + get_exec_time() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("exec_ts"), - hdf5_h.C_POINTER.withName("exec_time") - ).withName("$anon$803:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("exec_ts"), + hdf5_h.C_POINTER.withName("exec_time")) + .withName("$anon$803:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final AddressLayout exec_ts$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("exec_ts")); + private static final AddressLayout exec_ts$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("exec_ts")); /** * Layout for field: @@ -321,9 +320,7 @@ public static final GroupLayout layout() { * uint64_t *exec_ts * } */ - public static final AddressLayout exec_ts$layout() { - return exec_ts$LAYOUT; - } + public static final AddressLayout exec_ts$layout() { return exec_ts$LAYOUT; } private static final long exec_ts$OFFSET = 0; @@ -333,9 +330,7 @@ public static final GroupLayout layout() { * uint64_t *exec_ts * } */ - public static final long exec_ts$offset() { - return exec_ts$OFFSET; - } + public static final long exec_ts$offset() { return exec_ts$OFFSET; } /** * Getter for field: @@ -343,7 +338,8 @@ public static final GroupLayout layout() { * uint64_t *exec_ts * } */ - public static MemorySegment exec_ts(MemorySegment struct) { + public static MemorySegment exec_ts(MemorySegment struct) + { return struct.get(exec_ts$LAYOUT, exec_ts$OFFSET); } @@ -353,11 +349,13 @@ public static MemorySegment exec_ts(MemorySegment struct) { * uint64_t *exec_ts * } */ - public static void exec_ts(MemorySegment struct, MemorySegment fieldValue) { + public static void exec_ts(MemorySegment struct, MemorySegment fieldValue) + { struct.set(exec_ts$LAYOUT, exec_ts$OFFSET, fieldValue); } - private static final AddressLayout exec_time$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("exec_time")); + private static final AddressLayout exec_time$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("exec_time")); /** * Layout for field: @@ -365,9 +363,7 @@ public static void exec_ts(MemorySegment struct, MemorySegment fieldValue) { * uint64_t *exec_time * } */ - public static final AddressLayout exec_time$layout() { - return exec_time$LAYOUT; - } + public static final AddressLayout exec_time$layout() { return exec_time$LAYOUT; } private static final long exec_time$OFFSET = 8; @@ -377,9 +373,7 @@ public static void exec_ts(MemorySegment struct, MemorySegment fieldValue) { * uint64_t *exec_time * } */ - public static final long exec_time$offset() { - return exec_time$OFFSET; - } + public static final long exec_time$offset() { return exec_time$OFFSET; } /** * Getter for field: @@ -387,7 +381,8 @@ public static void exec_ts(MemorySegment struct, MemorySegment fieldValue) { * uint64_t *exec_time * } */ - public static MemorySegment exec_time(MemorySegment struct) { + public static MemorySegment exec_time(MemorySegment struct) + { return struct.get(exec_time$LAYOUT, exec_time$OFFSET); } @@ -397,7 +392,8 @@ public static MemorySegment exec_time(MemorySegment struct) { * uint64_t *exec_time * } */ - public static void exec_time(MemorySegment struct, MemorySegment fieldValue) { + public static void exec_time(MemorySegment struct, MemorySegment fieldValue) + { struct.set(exec_time$LAYOUT, exec_time$OFFSET, fieldValue); } @@ -405,7 +401,8 @@ public static void exec_time(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -417,7 +414,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -425,7 +423,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -433,7 +432,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -441,12 +442,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout get_exec_time$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("get_exec_time")); + private static final GroupLayout get_exec_time$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("get_exec_time")); /** * Layout for field: @@ -457,9 +461,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_exec_time * } */ - public static final GroupLayout get_exec_time$layout() { - return get_exec_time$LAYOUT; - } + public static final GroupLayout get_exec_time$layout() { return get_exec_time$LAYOUT; } private static final long get_exec_time$OFFSET = 0; @@ -472,9 +474,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_exec_time * } */ - public static final long get_exec_time$offset() { - return get_exec_time$OFFSET; - } + public static final long get_exec_time$offset() { return get_exec_time$OFFSET; } /** * Getter for field: @@ -485,7 +485,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } get_exec_time * } */ - public static MemorySegment get_exec_time(MemorySegment union) { + public static MemorySegment get_exec_time(MemorySegment union) + { return union.asSlice(get_exec_time$OFFSET, get_exec_time$LAYOUT.byteSize()); } @@ -498,7 +499,8 @@ public static MemorySegment get_exec_time(MemorySegment union) { * } get_exec_time * } */ - public static void get_exec_time(MemorySegment union, MemorySegment fieldValue) { + public static void get_exec_time(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, get_exec_time$OFFSET, get_exec_time$LAYOUT.byteSize()); } @@ -506,7 +508,8 @@ public static void get_exec_time(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -518,7 +521,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -526,7 +530,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -534,7 +539,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -542,7 +549,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -563,9 +572,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final GroupLayout args$layout() { - return args$LAYOUT; - } + public static final GroupLayout args$layout() { return args$LAYOUT; } private static final long args$OFFSET = 8; @@ -583,9 +590,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static final long args$offset() { - return args$OFFSET; - } + public static final long args$offset() { return args$OFFSET; } /** * Getter for field: @@ -601,7 +606,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } args * } */ - public static MemorySegment args(MemorySegment struct) { + public static MemorySegment args(MemorySegment struct) + { return struct.asSlice(args$OFFSET, args$LAYOUT.byteSize()); } @@ -619,7 +625,8 @@ public static MemorySegment args(MemorySegment struct) { * } args * } */ - public static void args(MemorySegment struct, MemorySegment fieldValue) { + public static void args(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, args$OFFSET, args$LAYOUT.byteSize()); } @@ -627,7 +634,8 @@ public static void args(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -639,15 +647,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -655,7 +662,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -663,8 +671,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_token_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_token_class_t.java index c670a7d68e9..f60d9a290ed 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_token_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_token_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_token_class_t { @@ -23,22 +23,21 @@ */ public class H5VL_token_class_t { - H5VL_token_class_t() { + H5VL_token_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("cmp"), - hdf5_h.C_POINTER.withName("to_str"), - hdf5_h.C_POINTER.withName("from_str") - ).withName("H5VL_token_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("cmp"), hdf5_h.C_POINTER.withName("to_str"), + hdf5_h.C_POINTER.withName("from_str")) + .withName("H5VL_token_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -47,7 +46,8 @@ public static final GroupLayout layout() { */ public static class cmp { - cmp() { + cmp() + { // Should not be called directly } @@ -59,19 +59,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cmp.Function.class, "apply", $DESC); @@ -79,7 +72,8 @@ public static FunctionDescriptor descriptor() { * 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(cmp.Function fi, Arena arena) { + public static MemorySegment allocate(cmp.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -88,10 +82,13 @@ public static MemorySegment allocate(cmp.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1, + MemorySegment _x2, MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -105,9 +102,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(void *, const H5O_token_t *, const H5O_token_t *, int *) * } */ - public static final AddressLayout cmp$layout() { - return cmp$LAYOUT; - } + public static final AddressLayout cmp$layout() { return cmp$LAYOUT; } private static final long cmp$OFFSET = 0; @@ -117,9 +112,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(void *, const H5O_token_t *, const H5O_token_t *, int *) * } */ - public static final long cmp$offset() { - return cmp$OFFSET; - } + public static final long cmp$offset() { return cmp$OFFSET; } /** * Getter for field: @@ -127,9 +120,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*cmp)(void *, const H5O_token_t *, const H5O_token_t *, int *) * } */ - public static MemorySegment cmp(MemorySegment struct) { - return struct.get(cmp$LAYOUT, cmp$OFFSET); - } + public static MemorySegment cmp(MemorySegment struct) { return struct.get(cmp$LAYOUT, cmp$OFFSET); } /** * Setter for field: @@ -137,7 +128,8 @@ public static MemorySegment cmp(MemorySegment struct) { * herr_t (*cmp)(void *, const H5O_token_t *, const H5O_token_t *, int *) * } */ - public static void cmp(MemorySegment struct, MemorySegment fieldValue) { + public static void cmp(MemorySegment struct, MemorySegment fieldValue) + { struct.set(cmp$LAYOUT, cmp$OFFSET, fieldValue); } @@ -148,7 +140,8 @@ public static void cmp(MemorySegment struct, MemorySegment fieldValue) { */ public static class to_str { - to_str() { + to_str() + { // Should not be called directly } @@ -160,19 +153,12 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(to_str.Function.class, "apply", $DESC); @@ -180,7 +166,8 @@ public static FunctionDescriptor descriptor() { * 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(to_str.Function fi, Arena arena) { + public static MemorySegment allocate(to_str.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -189,10 +176,13 @@ public static MemorySegment allocate(to_str.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, MemorySegment _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, MemorySegment _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } @@ -206,9 +196,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*to_str)(void *, H5I_type_t, const H5O_token_t *, char **) * } */ - public static final AddressLayout to_str$layout() { - return to_str$LAYOUT; - } + public static final AddressLayout to_str$layout() { return to_str$LAYOUT; } private static final long to_str$OFFSET = 8; @@ -218,9 +206,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*to_str)(void *, H5I_type_t, const H5O_token_t *, char **) * } */ - public static final long to_str$offset() { - return to_str$OFFSET; - } + public static final long to_str$offset() { return to_str$OFFSET; } /** * Getter for field: @@ -228,7 +214,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*to_str)(void *, H5I_type_t, const H5O_token_t *, char **) * } */ - public static MemorySegment to_str(MemorySegment struct) { + public static MemorySegment to_str(MemorySegment struct) + { return struct.get(to_str$LAYOUT, to_str$OFFSET); } @@ -238,7 +225,8 @@ public static MemorySegment to_str(MemorySegment struct) { * herr_t (*to_str)(void *, H5I_type_t, const H5O_token_t *, char **) * } */ - public static void to_str(MemorySegment struct, MemorySegment fieldValue) { + public static void to_str(MemorySegment struct, MemorySegment fieldValue) + { struct.set(to_str$LAYOUT, to_str$OFFSET, fieldValue); } @@ -249,7 +237,8 @@ public static void to_str(MemorySegment struct, MemorySegment fieldValue) { */ public static class from_str { - from_str() { + from_str() + { // Should not be called directly } @@ -261,27 +250,22 @@ public interface Function { } private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(from_str.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(from_str.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(from_str.Function fi, Arena arena) { + public static MemorySegment allocate(from_str.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -290,16 +274,20 @@ public static MemorySegment allocate(from_str.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, MemorySegment _x2, MemorySegment _x3) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, MemorySegment _x2, + MemorySegment _x3) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout from_str$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("from_str")); + private static final AddressLayout from_str$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("from_str")); /** * Layout for field: @@ -307,9 +295,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*from_str)(void *, H5I_type_t, const char *, H5O_token_t *) * } */ - public static final AddressLayout from_str$layout() { - return from_str$LAYOUT; - } + public static final AddressLayout from_str$layout() { return from_str$LAYOUT; } private static final long from_str$OFFSET = 16; @@ -319,9 +305,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*from_str)(void *, H5I_type_t, const char *, H5O_token_t *) * } */ - public static final long from_str$offset() { - return from_str$OFFSET; - } + public static final long from_str$offset() { return from_str$OFFSET; } /** * Getter for field: @@ -329,7 +313,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, Memor * herr_t (*from_str)(void *, H5I_type_t, const char *, H5O_token_t *) * } */ - public static MemorySegment from_str(MemorySegment struct) { + public static MemorySegment from_str(MemorySegment struct) + { return struct.get(from_str$LAYOUT, from_str$OFFSET); } @@ -339,7 +324,8 @@ public static MemorySegment from_str(MemorySegment struct) { * herr_t (*from_str)(void *, H5I_type_t, const char *, H5O_token_t *) * } */ - public static void from_str(MemorySegment struct, MemorySegment fieldValue) { + public static void from_str(MemorySegment struct, MemorySegment fieldValue) + { struct.set(from_str$LAYOUT, from_str$OFFSET, fieldValue); } @@ -347,7 +333,8 @@ public static void from_str(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -359,15 +346,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -375,7 +361,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -383,8 +370,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5VL_wrap_class_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5VL_wrap_class_t.java index 41a8f6a3437..2c482736c5f 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5VL_wrap_class_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5VL_wrap_class_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5VL_wrap_class_t { @@ -25,24 +25,23 @@ */ public class H5VL_wrap_class_t { - H5VL_wrap_class_t() { + H5VL_wrap_class_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("get_object"), - hdf5_h.C_POINTER.withName("get_wrap_ctx"), - hdf5_h.C_POINTER.withName("wrap_object"), - hdf5_h.C_POINTER.withName("unwrap_object"), - hdf5_h.C_POINTER.withName("free_wrap_ctx") - ).withName("H5VL_wrap_class_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("get_object"), hdf5_h.C_POINTER.withName("get_wrap_ctx"), + hdf5_h.C_POINTER.withName("wrap_object"), + hdf5_h.C_POINTER.withName("unwrap_object"), + hdf5_h.C_POINTER.withName("free_wrap_ctx")) + .withName("H5VL_wrap_class_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } /** * {@snippet lang=c : @@ -51,7 +50,8 @@ public static final GroupLayout layout() { */ public static class get_object { - get_object() { + get_object() + { // Should not be called directly } @@ -62,25 +62,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_object.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_object.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(get_object.Function fi, Arena arena) { + public static MemorySegment allocate(get_object.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -89,16 +87,19 @@ public static MemorySegment allocate(get_object.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_object$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_object")); + private static final AddressLayout get_object$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_object")); /** * Layout for field: @@ -106,9 +107,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*get_object)(const void *) * } */ - public static final AddressLayout get_object$layout() { - return get_object$LAYOUT; - } + public static final AddressLayout get_object$layout() { return get_object$LAYOUT; } private static final long get_object$OFFSET = 0; @@ -118,9 +117,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*get_object)(const void *) * } */ - public static final long get_object$offset() { - return get_object$OFFSET; - } + public static final long get_object$offset() { return get_object$OFFSET; } /** * Getter for field: @@ -128,7 +125,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*get_object)(const void *) * } */ - public static MemorySegment get_object(MemorySegment struct) { + public static MemorySegment get_object(MemorySegment struct) + { return struct.get(get_object$LAYOUT, get_object$OFFSET); } @@ -138,7 +136,8 @@ public static MemorySegment get_object(MemorySegment struct) { * void *(*get_object)(const void *) * } */ - public static void get_object(MemorySegment struct, MemorySegment fieldValue) { + public static void get_object(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_object$LAYOUT, get_object$OFFSET, fieldValue); } @@ -149,7 +148,8 @@ public static void get_object(MemorySegment struct, MemorySegment fieldValue) { */ public static class get_wrap_ctx { - get_wrap_ctx() { + get_wrap_ctx() + { // Should not be called directly } @@ -160,26 +160,23 @@ public interface Function { int apply(MemorySegment _x0, MemorySegment _x1); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(get_wrap_ctx.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(get_wrap_ctx.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(get_wrap_ctx.Function fi, Arena arena) { + public static MemorySegment allocate(get_wrap_ctx.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -188,16 +185,19 @@ public static MemorySegment allocate(get_wrap_ctx.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0, MemorySegment _x1) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0, _x1); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout get_wrap_ctx$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("get_wrap_ctx")); + private static final AddressLayout get_wrap_ctx$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("get_wrap_ctx")); /** * Layout for field: @@ -205,9 +205,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_wrap_ctx)(const void *, void **) * } */ - public static final AddressLayout get_wrap_ctx$layout() { - return get_wrap_ctx$LAYOUT; - } + public static final AddressLayout get_wrap_ctx$layout() { return get_wrap_ctx$LAYOUT; } private static final long get_wrap_ctx$OFFSET = 8; @@ -217,9 +215,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_wrap_ctx)(const void *, void **) * } */ - public static final long get_wrap_ctx$offset() { - return get_wrap_ctx$OFFSET; - } + public static final long get_wrap_ctx$offset() { return get_wrap_ctx$OFFSET; } /** * Getter for field: @@ -227,7 +223,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment * herr_t (*get_wrap_ctx)(const void *, void **) * } */ - public static MemorySegment get_wrap_ctx(MemorySegment struct) { + public static MemorySegment get_wrap_ctx(MemorySegment struct) + { return struct.get(get_wrap_ctx$LAYOUT, get_wrap_ctx$OFFSET); } @@ -237,7 +234,8 @@ public static MemorySegment get_wrap_ctx(MemorySegment struct) { * herr_t (*get_wrap_ctx)(const void *, void **) * } */ - public static void get_wrap_ctx(MemorySegment struct, MemorySegment fieldValue) { + public static void get_wrap_ctx(MemorySegment struct, MemorySegment fieldValue) + { struct.set(get_wrap_ctx$LAYOUT, get_wrap_ctx$OFFSET, fieldValue); } @@ -248,7 +246,8 @@ public static void get_wrap_ctx(MemorySegment struct, MemorySegment fieldValue) */ public static class wrap_object { - wrap_object() { + wrap_object() + { // Should not be called directly } @@ -259,27 +258,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0, int _x1, MemorySegment _x2); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(wrap_object.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(wrap_object.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(wrap_object.Function fi, Arena arena) { + public static MemorySegment allocate(wrap_object.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -288,16 +283,20 @@ public static MemorySegment allocate(wrap_object.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int _x1, MemorySegment _x2) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0, int _x1, + MemorySegment _x2) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout wrap_object$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("wrap_object")); + private static final AddressLayout wrap_object$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("wrap_object")); /** * Layout for field: @@ -305,9 +304,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*wrap_object)(void *, H5I_type_t, void *) * } */ - public static final AddressLayout wrap_object$layout() { - return wrap_object$LAYOUT; - } + public static final AddressLayout wrap_object$layout() { return wrap_object$LAYOUT; } private static final long wrap_object$OFFSET = 16; @@ -317,9 +314,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*wrap_object)(void *, H5I_type_t, void *) * } */ - public static final long wrap_object$offset() { - return wrap_object$OFFSET; - } + public static final long wrap_object$offset() { return wrap_object$OFFSET; } /** * Getter for field: @@ -327,7 +322,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0, int * void *(*wrap_object)(void *, H5I_type_t, void *) * } */ - public static MemorySegment wrap_object(MemorySegment struct) { + public static MemorySegment wrap_object(MemorySegment struct) + { return struct.get(wrap_object$LAYOUT, wrap_object$OFFSET); } @@ -337,7 +333,8 @@ public static MemorySegment wrap_object(MemorySegment struct) { * void *(*wrap_object)(void *, H5I_type_t, void *) * } */ - public static void wrap_object(MemorySegment struct, MemorySegment fieldValue) { + public static void wrap_object(MemorySegment struct, MemorySegment fieldValue) + { struct.set(wrap_object$LAYOUT, wrap_object$OFFSET, fieldValue); } @@ -348,7 +345,8 @@ public static void wrap_object(MemorySegment struct, MemorySegment fieldValue) { */ public static class unwrap_object { - unwrap_object() { + unwrap_object() + { // Should not be called directly } @@ -359,25 +357,23 @@ public interface Function { MemorySegment apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(unwrap_object.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(unwrap_object.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(unwrap_object.Function fi, Arena arena) { + public static MemorySegment allocate(unwrap_object.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -386,16 +382,19 @@ public static MemorySegment allocate(unwrap_object.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (MemorySegment)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout unwrap_object$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("unwrap_object")); + private static final AddressLayout unwrap_object$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("unwrap_object")); /** * Layout for field: @@ -403,9 +402,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*unwrap_object)(void *) * } */ - public static final AddressLayout unwrap_object$layout() { - return unwrap_object$LAYOUT; - } + public static final AddressLayout unwrap_object$layout() { return unwrap_object$LAYOUT; } private static final long unwrap_object$OFFSET = 24; @@ -415,9 +412,7 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*unwrap_object)(void *) * } */ - public static final long unwrap_object$offset() { - return unwrap_object$OFFSET; - } + public static final long unwrap_object$offset() { return unwrap_object$OFFSET; } /** * Getter for field: @@ -425,7 +420,8 @@ public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) { * void *(*unwrap_object)(void *) * } */ - public static MemorySegment unwrap_object(MemorySegment struct) { + public static MemorySegment unwrap_object(MemorySegment struct) + { return struct.get(unwrap_object$LAYOUT, unwrap_object$OFFSET); } @@ -435,7 +431,8 @@ public static MemorySegment unwrap_object(MemorySegment struct) { * void *(*unwrap_object)(void *) * } */ - public static void unwrap_object(MemorySegment struct, MemorySegment fieldValue) { + public static void unwrap_object(MemorySegment struct, MemorySegment fieldValue) + { struct.set(unwrap_object$LAYOUT, unwrap_object$OFFSET, fieldValue); } @@ -446,7 +443,8 @@ public static void unwrap_object(MemorySegment struct, MemorySegment fieldValue) */ public static class free_wrap_ctx { - free_wrap_ctx() { + free_wrap_ctx() + { // Should not be called directly } @@ -457,25 +455,22 @@ public interface Function { int apply(MemorySegment _x0); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(free_wrap_ctx.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(free_wrap_ctx.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(free_wrap_ctx.Function fi, Arena arena) { + public static MemorySegment allocate(free_wrap_ctx.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -484,16 +479,19 @@ public static MemorySegment allocate(free_wrap_ctx.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { + public static int invoke(MemorySegment funcPtr, MemorySegment _x0) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, _x0); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, _x0); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - private static final AddressLayout free_wrap_ctx$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("free_wrap_ctx")); + private static final AddressLayout free_wrap_ctx$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("free_wrap_ctx")); /** * Layout for field: @@ -501,9 +499,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free_wrap_ctx)(void *) * } */ - public static final AddressLayout free_wrap_ctx$layout() { - return free_wrap_ctx$LAYOUT; - } + public static final AddressLayout free_wrap_ctx$layout() { return free_wrap_ctx$LAYOUT; } private static final long free_wrap_ctx$OFFSET = 32; @@ -513,9 +509,7 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free_wrap_ctx)(void *) * } */ - public static final long free_wrap_ctx$offset() { - return free_wrap_ctx$OFFSET; - } + public static final long free_wrap_ctx$offset() { return free_wrap_ctx$OFFSET; } /** * Getter for field: @@ -523,7 +517,8 @@ public static int invoke(MemorySegment funcPtr,MemorySegment _x0) { * herr_t (*free_wrap_ctx)(void *) * } */ - public static MemorySegment free_wrap_ctx(MemorySegment struct) { + public static MemorySegment free_wrap_ctx(MemorySegment struct) + { return struct.get(free_wrap_ctx$LAYOUT, free_wrap_ctx$OFFSET); } @@ -533,7 +528,8 @@ public static MemorySegment free_wrap_ctx(MemorySegment struct) { * herr_t (*free_wrap_ctx)(void *) * } */ - public static void free_wrap_ctx(MemorySegment struct, MemorySegment fieldValue) { + public static void free_wrap_ctx(MemorySegment struct, MemorySegment fieldValue) + { struct.set(free_wrap_ctx$LAYOUT, free_wrap_ctx$OFFSET, fieldValue); } @@ -541,7 +537,8 @@ public static void free_wrap_ctx(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -553,15 +550,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -569,7 +565,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -577,8 +574,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_can_apply_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_can_apply_func_t.java index 4b0d2272281..3597817405a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_can_apply_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_can_apply_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef htri_t (*H5Z_can_apply_func_t)(hid_t, hid_t, hid_t) @@ -19,7 +19,8 @@ */ public class H5Z_can_apply_func_t { - H5Z_can_apply_func_t() { + H5Z_can_apply_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long dcpl_id, long type_id, long space_id); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5Z_can_apply_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5Z_can_apply_func_t.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(H5Z_can_apply_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5Z_can_apply_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5Z_can_apply_func_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long dcpl_id, long type_id, long space_id) { + public static int invoke(MemorySegment funcPtr, long dcpl_id, long type_id, long space_id) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, dcpl_id, type_id, space_id); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, dcpl_id, type_id, space_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_cb_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_cb_t.java index a7022aa05ad..c735f17bce4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_cb_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_cb_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5Z_cb_t { @@ -22,21 +22,19 @@ */ public class H5Z_cb_t { - H5Z_cb_t() { + H5Z_cb_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("func"), - hdf5_h.C_POINTER.withName("op_data") - ).withName("H5Z_cb_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("func"), hdf5_h.C_POINTER.withName("op_data")) + .withName("H5Z_cb_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout func$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("func")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * H5Z_filter_func_t func * } */ - public static final AddressLayout func$layout() { - return func$LAYOUT; - } + public static final AddressLayout func$layout() { return func$LAYOUT; } private static final long func$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * H5Z_filter_func_t func * } */ - public static final long func$offset() { - return func$OFFSET; - } + public static final long func$offset() { return func$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * H5Z_filter_func_t func * } */ - public static MemorySegment func(MemorySegment struct) { - return struct.get(func$LAYOUT, func$OFFSET); - } + public static MemorySegment func(MemorySegment struct) { return struct.get(func$LAYOUT, func$OFFSET); } /** * Setter for field: @@ -78,11 +70,13 @@ public static MemorySegment func(MemorySegment struct) { * H5Z_filter_func_t func * } */ - public static void func(MemorySegment struct, MemorySegment fieldValue) { + public static void func(MemorySegment struct, MemorySegment fieldValue) + { struct.set(func$LAYOUT, func$OFFSET, fieldValue); } - private static final AddressLayout op_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("op_data")); + private static final AddressLayout op_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("op_data")); /** * Layout for field: @@ -90,9 +84,7 @@ public static void func(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final AddressLayout op_data$layout() { - return op_data$LAYOUT; - } + public static final AddressLayout op_data$layout() { return op_data$LAYOUT; } private static final long op_data$OFFSET = 8; @@ -102,9 +94,7 @@ public static void func(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static final long op_data$offset() { - return op_data$OFFSET; - } + public static final long op_data$offset() { return op_data$OFFSET; } /** * Getter for field: @@ -112,7 +102,8 @@ public static void func(MemorySegment struct, MemorySegment fieldValue) { * void *op_data * } */ - public static MemorySegment op_data(MemorySegment struct) { + public static MemorySegment op_data(MemorySegment struct) + { return struct.get(op_data$LAYOUT, op_data$OFFSET); } @@ -122,7 +113,8 @@ public static MemorySegment op_data(MemorySegment struct) { * void *op_data * } */ - public static void op_data(MemorySegment struct, MemorySegment fieldValue) { + public static void op_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(op_data$LAYOUT, op_data$OFFSET, fieldValue); } @@ -130,7 +122,8 @@ public static void op_data(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +135,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +150,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +159,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_class1_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_class1_t.java index 60ef6db42ee..ebe186c863c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_class1_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_class1_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5Z_class1_t { @@ -25,25 +25,22 @@ */ public class H5Z_class1_t { - H5Z_class1_t() { + H5Z_class1_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("id"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_POINTER.withName("can_apply"), - hdf5_h.C_POINTER.withName("set_local"), - hdf5_h.C_POINTER.withName("filter") - ).withName("H5Z_class1_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("id"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_POINTER.withName("can_apply"), + hdf5_h.C_POINTER.withName("set_local"), hdf5_h.C_POINTER.withName("filter")) + .withName("H5Z_class1_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt id$LAYOUT = (OfInt)$LAYOUT.select(groupElement("id")); @@ -53,9 +50,7 @@ public static final GroupLayout layout() { * H5Z_filter_t id * } */ - public static final OfInt id$layout() { - return id$LAYOUT; - } + public static final OfInt id$layout() { return id$LAYOUT; } private static final long id$OFFSET = 0; @@ -65,9 +60,7 @@ public static final GroupLayout layout() { * H5Z_filter_t id * } */ - public static final long id$offset() { - return id$OFFSET; - } + public static final long id$offset() { return id$OFFSET; } /** * Getter for field: @@ -75,9 +68,7 @@ public static final GroupLayout layout() { * H5Z_filter_t id * } */ - public static int id(MemorySegment struct) { - return struct.get(id$LAYOUT, id$OFFSET); - } + public static int id(MemorySegment struct) { return struct.get(id$LAYOUT, id$OFFSET); } /** * Setter for field: @@ -85,7 +76,8 @@ public static int id(MemorySegment struct) { * H5Z_filter_t id * } */ - public static void id(MemorySegment struct, int fieldValue) { + public static void id(MemorySegment struct, int fieldValue) + { struct.set(id$LAYOUT, id$OFFSET, fieldValue); } @@ -97,9 +89,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 8; @@ -109,9 +99,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -119,9 +107,7 @@ public static void id(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -129,11 +115,13 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } - private static final AddressLayout can_apply$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("can_apply")); + private static final AddressLayout can_apply$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("can_apply")); /** * Layout for field: @@ -141,9 +129,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static final AddressLayout can_apply$layout() { - return can_apply$LAYOUT; - } + public static final AddressLayout can_apply$layout() { return can_apply$LAYOUT; } private static final long can_apply$OFFSET = 16; @@ -153,9 +139,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static final long can_apply$offset() { - return can_apply$OFFSET; - } + public static final long can_apply$offset() { return can_apply$OFFSET; } /** * Getter for field: @@ -163,7 +147,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static MemorySegment can_apply(MemorySegment struct) { + public static MemorySegment can_apply(MemorySegment struct) + { return struct.get(can_apply$LAYOUT, can_apply$OFFSET); } @@ -173,11 +158,13 @@ public static MemorySegment can_apply(MemorySegment struct) { * H5Z_can_apply_func_t can_apply * } */ - public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { + public static void can_apply(MemorySegment struct, MemorySegment fieldValue) + { struct.set(can_apply$LAYOUT, can_apply$OFFSET, fieldValue); } - private static final AddressLayout set_local$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("set_local")); + private static final AddressLayout set_local$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("set_local")); /** * Layout for field: @@ -185,9 +172,7 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static final AddressLayout set_local$layout() { - return set_local$LAYOUT; - } + public static final AddressLayout set_local$layout() { return set_local$LAYOUT; } private static final long set_local$OFFSET = 24; @@ -197,9 +182,7 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static final long set_local$offset() { - return set_local$OFFSET; - } + public static final long set_local$offset() { return set_local$OFFSET; } /** * Getter for field: @@ -207,7 +190,8 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static MemorySegment set_local(MemorySegment struct) { + public static MemorySegment set_local(MemorySegment struct) + { return struct.get(set_local$LAYOUT, set_local$OFFSET); } @@ -217,7 +201,8 @@ public static MemorySegment set_local(MemorySegment struct) { * H5Z_set_local_func_t set_local * } */ - public static void set_local(MemorySegment struct, MemorySegment fieldValue) { + public static void set_local(MemorySegment struct, MemorySegment fieldValue) + { struct.set(set_local$LAYOUT, set_local$OFFSET, fieldValue); } @@ -229,9 +214,7 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static final AddressLayout filter$layout() { - return filter$LAYOUT; - } + public static final AddressLayout filter$layout() { return filter$LAYOUT; } private static final long filter$OFFSET = 32; @@ -241,9 +224,7 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static final long filter$offset() { - return filter$OFFSET; - } + public static final long filter$offset() { return filter$OFFSET; } /** * Getter for field: @@ -251,7 +232,8 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static MemorySegment filter(MemorySegment struct) { + public static MemorySegment filter(MemorySegment struct) + { return struct.get(filter$LAYOUT, filter$OFFSET); } @@ -261,7 +243,8 @@ public static MemorySegment filter(MemorySegment struct) { * H5Z_func_t filter * } */ - public static void filter(MemorySegment struct, MemorySegment fieldValue) { + public static void filter(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filter$LAYOUT, filter$OFFSET, fieldValue); } @@ -269,7 +252,8 @@ public static void filter(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -281,15 +265,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -297,7 +280,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -305,8 +289,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_class2_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_class2_t.java index faf1f0a180b..6f56f7d950c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_class2_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_class2_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5Z_class2_t { @@ -28,27 +28,23 @@ */ public class H5Z_class2_t { - H5Z_class2_t() { + H5Z_class2_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("version"), - hdf5_h.C_INT.withName("id"), - hdf5_h.C_INT.withName("encoder_present"), - hdf5_h.C_INT.withName("decoder_present"), - hdf5_h.C_POINTER.withName("name"), - hdf5_h.C_POINTER.withName("can_apply"), - hdf5_h.C_POINTER.withName("set_local"), - hdf5_h.C_POINTER.withName("filter") - ).withName("H5Z_class2_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("version"), hdf5_h.C_INT.withName("id"), + hdf5_h.C_INT.withName("encoder_present"), hdf5_h.C_INT.withName("decoder_present"), + hdf5_h.C_POINTER.withName("name"), hdf5_h.C_POINTER.withName("can_apply"), + hdf5_h.C_POINTER.withName("set_local"), hdf5_h.C_POINTER.withName("filter")) + .withName("H5Z_class2_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt version$LAYOUT = (OfInt)$LAYOUT.select(groupElement("version")); @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final OfInt version$layout() { - return version$LAYOUT; - } + public static final OfInt version$layout() { return version$LAYOUT; } private static final long version$OFFSET = 0; @@ -70,9 +64,7 @@ public static final GroupLayout layout() { * int version * } */ - public static final long version$offset() { - return version$OFFSET; - } + public static final long version$offset() { return version$OFFSET; } /** * Getter for field: @@ -80,9 +72,7 @@ public static final GroupLayout layout() { * int version * } */ - public static int version(MemorySegment struct) { - return struct.get(version$LAYOUT, version$OFFSET); - } + public static int version(MemorySegment struct) { return struct.get(version$LAYOUT, version$OFFSET); } /** * Setter for field: @@ -90,7 +80,8 @@ public static int version(MemorySegment struct) { * int version * } */ - public static void version(MemorySegment struct, int fieldValue) { + public static void version(MemorySegment struct, int fieldValue) + { struct.set(version$LAYOUT, version$OFFSET, fieldValue); } @@ -102,9 +93,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5Z_filter_t id * } */ - public static final OfInt id$layout() { - return id$LAYOUT; - } + public static final OfInt id$layout() { return id$LAYOUT; } private static final long id$OFFSET = 4; @@ -114,9 +103,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5Z_filter_t id * } */ - public static final long id$offset() { - return id$OFFSET; - } + public static final long id$offset() { return id$OFFSET; } /** * Getter for field: @@ -124,9 +111,7 @@ public static void version(MemorySegment struct, int fieldValue) { * H5Z_filter_t id * } */ - public static int id(MemorySegment struct) { - return struct.get(id$LAYOUT, id$OFFSET); - } + public static int id(MemorySegment struct) { return struct.get(id$LAYOUT, id$OFFSET); } /** * Setter for field: @@ -134,11 +119,13 @@ public static int id(MemorySegment struct) { * H5Z_filter_t id * } */ - public static void id(MemorySegment struct, int fieldValue) { + public static void id(MemorySegment struct, int fieldValue) + { struct.set(id$LAYOUT, id$OFFSET, fieldValue); } - private static final OfInt encoder_present$LAYOUT = (OfInt)$LAYOUT.select(groupElement("encoder_present")); + private static final OfInt encoder_present$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("encoder_present")); /** * Layout for field: @@ -146,9 +133,7 @@ public static void id(MemorySegment struct, int fieldValue) { * unsigned int encoder_present * } */ - public static final OfInt encoder_present$layout() { - return encoder_present$LAYOUT; - } + public static final OfInt encoder_present$layout() { return encoder_present$LAYOUT; } private static final long encoder_present$OFFSET = 8; @@ -158,9 +143,7 @@ public static void id(MemorySegment struct, int fieldValue) { * unsigned int encoder_present * } */ - public static final long encoder_present$offset() { - return encoder_present$OFFSET; - } + public static final long encoder_present$offset() { return encoder_present$OFFSET; } /** * Getter for field: @@ -168,7 +151,8 @@ public static void id(MemorySegment struct, int fieldValue) { * unsigned int encoder_present * } */ - public static int encoder_present(MemorySegment struct) { + public static int encoder_present(MemorySegment struct) + { return struct.get(encoder_present$LAYOUT, encoder_present$OFFSET); } @@ -178,11 +162,13 @@ public static int encoder_present(MemorySegment struct) { * unsigned int encoder_present * } */ - public static void encoder_present(MemorySegment struct, int fieldValue) { + public static void encoder_present(MemorySegment struct, int fieldValue) + { struct.set(encoder_present$LAYOUT, encoder_present$OFFSET, fieldValue); } - private static final OfInt decoder_present$LAYOUT = (OfInt)$LAYOUT.select(groupElement("decoder_present")); + private static final OfInt decoder_present$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("decoder_present")); /** * Layout for field: @@ -190,9 +176,7 @@ public static void encoder_present(MemorySegment struct, int fieldValue) { * unsigned int decoder_present * } */ - public static final OfInt decoder_present$layout() { - return decoder_present$LAYOUT; - } + public static final OfInt decoder_present$layout() { return decoder_present$LAYOUT; } private static final long decoder_present$OFFSET = 12; @@ -202,9 +186,7 @@ public static void encoder_present(MemorySegment struct, int fieldValue) { * unsigned int decoder_present * } */ - public static final long decoder_present$offset() { - return decoder_present$OFFSET; - } + public static final long decoder_present$offset() { return decoder_present$OFFSET; } /** * Getter for field: @@ -212,7 +194,8 @@ public static void encoder_present(MemorySegment struct, int fieldValue) { * unsigned int decoder_present * } */ - public static int decoder_present(MemorySegment struct) { + public static int decoder_present(MemorySegment struct) + { return struct.get(decoder_present$LAYOUT, decoder_present$OFFSET); } @@ -222,7 +205,8 @@ public static int decoder_present(MemorySegment struct) { * unsigned int decoder_present * } */ - public static void decoder_present(MemorySegment struct, int fieldValue) { + public static void decoder_present(MemorySegment struct, int fieldValue) + { struct.set(decoder_present$LAYOUT, decoder_present$OFFSET, fieldValue); } @@ -234,9 +218,7 @@ public static void decoder_present(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } + public static final AddressLayout name$layout() { return name$LAYOUT; } private static final long name$OFFSET = 16; @@ -246,9 +228,7 @@ public static void decoder_present(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static final long name$offset() { - return name$OFFSET; - } + public static final long name$offset() { return name$OFFSET; } /** * Getter for field: @@ -256,9 +236,7 @@ public static void decoder_present(MemorySegment struct, int fieldValue) { * const char *name * } */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } + public static MemorySegment name(MemorySegment struct) { return struct.get(name$LAYOUT, name$OFFSET); } /** * Setter for field: @@ -266,11 +244,13 @@ public static MemorySegment name(MemorySegment struct) { * const char *name * } */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { + public static void name(MemorySegment struct, MemorySegment fieldValue) + { struct.set(name$LAYOUT, name$OFFSET, fieldValue); } - private static final AddressLayout can_apply$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("can_apply")); + private static final AddressLayout can_apply$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("can_apply")); /** * Layout for field: @@ -278,9 +258,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static final AddressLayout can_apply$layout() { - return can_apply$LAYOUT; - } + public static final AddressLayout can_apply$layout() { return can_apply$LAYOUT; } private static final long can_apply$OFFSET = 24; @@ -290,9 +268,7 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static final long can_apply$offset() { - return can_apply$OFFSET; - } + public static final long can_apply$offset() { return can_apply$OFFSET; } /** * Getter for field: @@ -300,7 +276,8 @@ public static void name(MemorySegment struct, MemorySegment fieldValue) { * H5Z_can_apply_func_t can_apply * } */ - public static MemorySegment can_apply(MemorySegment struct) { + public static MemorySegment can_apply(MemorySegment struct) + { return struct.get(can_apply$LAYOUT, can_apply$OFFSET); } @@ -310,11 +287,13 @@ public static MemorySegment can_apply(MemorySegment struct) { * H5Z_can_apply_func_t can_apply * } */ - public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { + public static void can_apply(MemorySegment struct, MemorySegment fieldValue) + { struct.set(can_apply$LAYOUT, can_apply$OFFSET, fieldValue); } - private static final AddressLayout set_local$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("set_local")); + private static final AddressLayout set_local$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("set_local")); /** * Layout for field: @@ -322,9 +301,7 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static final AddressLayout set_local$layout() { - return set_local$LAYOUT; - } + public static final AddressLayout set_local$layout() { return set_local$LAYOUT; } private static final long set_local$OFFSET = 32; @@ -334,9 +311,7 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static final long set_local$offset() { - return set_local$OFFSET; - } + public static final long set_local$offset() { return set_local$OFFSET; } /** * Getter for field: @@ -344,7 +319,8 @@ public static void can_apply(MemorySegment struct, MemorySegment fieldValue) { * H5Z_set_local_func_t set_local * } */ - public static MemorySegment set_local(MemorySegment struct) { + public static MemorySegment set_local(MemorySegment struct) + { return struct.get(set_local$LAYOUT, set_local$OFFSET); } @@ -354,7 +330,8 @@ public static MemorySegment set_local(MemorySegment struct) { * H5Z_set_local_func_t set_local * } */ - public static void set_local(MemorySegment struct, MemorySegment fieldValue) { + public static void set_local(MemorySegment struct, MemorySegment fieldValue) + { struct.set(set_local$LAYOUT, set_local$OFFSET, fieldValue); } @@ -366,9 +343,7 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static final AddressLayout filter$layout() { - return filter$LAYOUT; - } + public static final AddressLayout filter$layout() { return filter$LAYOUT; } private static final long filter$OFFSET = 40; @@ -378,9 +353,7 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static final long filter$offset() { - return filter$OFFSET; - } + public static final long filter$offset() { return filter$OFFSET; } /** * Getter for field: @@ -388,7 +361,8 @@ public static void set_local(MemorySegment struct, MemorySegment fieldValue) { * H5Z_func_t filter * } */ - public static MemorySegment filter(MemorySegment struct) { + public static MemorySegment filter(MemorySegment struct) + { return struct.get(filter$LAYOUT, filter$OFFSET); } @@ -398,7 +372,8 @@ public static MemorySegment filter(MemorySegment struct) { * H5Z_func_t filter * } */ - public static void filter(MemorySegment struct, MemorySegment fieldValue) { + public static void filter(MemorySegment struct, MemorySegment fieldValue) + { struct.set(filter$LAYOUT, filter$OFFSET, fieldValue); } @@ -406,7 +381,8 @@ public static void filter(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -418,15 +394,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -434,7 +409,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -442,8 +418,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_filter_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_filter_func_t.java index 25ce185d315..378ad86b24f 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_filter_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_filter_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef H5Z_cb_return_t (*H5Z_filter_func_t)(H5Z_filter_t, void *, size_t, void *) @@ -19,7 +19,8 @@ */ public class H5Z_filter_func_t { - H5Z_filter_func_t() { + H5Z_filter_func_t() + { // Should not be called directly } @@ -30,28 +31,23 @@ public interface Function { int apply(int filter, MemorySegment buf, long buf_size, MemorySegment op_data); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5Z_filter_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5Z_filter_func_t.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(H5Z_filter_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5Z_filter_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -60,12 +56,14 @@ public static MemorySegment allocate(H5Z_filter_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,int filter, MemorySegment buf, long buf_size, MemorySegment op_data) { + public static int invoke(MemorySegment funcPtr, int filter, MemorySegment buf, long buf_size, + MemorySegment op_data) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, filter, buf, buf_size, op_data); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, filter, buf, buf_size, op_data); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_func_t.java index f889171c308..7a3f5ab70d4 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef size_t (*H5Z_func_t)(unsigned int, size_t, const unsigned int *, size_t, size_t *, void **) @@ -19,7 +19,8 @@ */ public class H5Z_func_t { - H5Z_func_t() { + H5Z_func_t() + { // Should not be called directly } @@ -27,25 +28,18 @@ public class H5Z_func_t { * The function pointer signature, expressed as a functional interface */ public interface Function { - long apply(int flags, long cd_nelmts, MemorySegment cd_values, long nbytes, MemorySegment buf_size, MemorySegment buf); + long apply(int flags, long cd_nelmts, MemorySegment cd_values, long nbytes, MemorySegment buf_size, + MemorySegment buf); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5Z_func_t.Function.class, "apply", $DESC); @@ -53,7 +47,8 @@ public static FunctionDescriptor descriptor() { * 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(H5Z_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5Z_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -62,12 +57,14 @@ public static MemorySegment allocate(H5Z_func_t.Function fi, Arena arena) { /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,int flags, long cd_nelmts, MemorySegment cd_values, long nbytes, MemorySegment buf_size, MemorySegment buf) { + public static long invoke(MemorySegment funcPtr, int flags, long cd_nelmts, MemorySegment cd_values, + long nbytes, MemorySegment buf_size, MemorySegment buf) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, flags, cd_nelmts, cd_values, nbytes, buf_size, buf); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, flags, cd_nelmts, cd_values, nbytes, buf_size, buf); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5Z_set_local_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5Z_set_local_func_t.java index 8ba5a3cce00..1ab3d2fd24c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5Z_set_local_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5Z_set_local_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef herr_t (*H5Z_set_local_func_t)(hid_t, hid_t, hid_t) @@ -19,7 +19,8 @@ */ public class H5Z_set_local_func_t { - H5Z_set_local_func_t() { + H5Z_set_local_func_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(long dcpl_id, long type_id, long space_id); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5Z_set_local_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5Z_set_local_func_t.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(H5Z_set_local_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5Z_set_local_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(H5Z_set_local_func_t.Function fi, Arena are /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,long dcpl_id, long type_id, long space_id) { + public static int invoke(MemorySegment funcPtr, long dcpl_id, long type_id, long space_id) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, dcpl_id, type_id, space_id); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, dcpl_id, type_id, space_id); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5_atclose_func_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5_atclose_func_t.java index 7ac57d6adb0..0e2f9f173d0 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5_atclose_func_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5_atclose_func_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef void (*H5_atclose_func_t)(void *) @@ -19,7 +19,8 @@ */ public class H5_atclose_func_t { - H5_atclose_func_t() { + H5_atclose_func_t() + { // Should not be called directly } @@ -30,24 +31,22 @@ public interface Function { void apply(MemorySegment ctx); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(H5_atclose_func_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(H5_atclose_func_t.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(H5_atclose_func_t.Function fi, Arena arena) { + public static MemorySegment allocate(H5_atclose_func_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -56,12 +55,13 @@ public static MemorySegment allocate(H5_atclose_func_t.Function fi, Arena arena) /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static void invoke(MemorySegment funcPtr,MemorySegment ctx) { + public static void invoke(MemorySegment funcPtr, MemorySegment ctx) + { try { - DOWN$MH.invokeExact(funcPtr, ctx); - } catch (Throwable ex$) { + DOWN$MH.invokeExact(funcPtr, ctx); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/H5_ih_info_t.java b/java/jsrc/org/hdfgroup/javahdf5/H5_ih_info_t.java index e6a24152a8a..59624dfd2c0 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/H5_ih_info_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/H5_ih_info_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 H5_ih_info_t { @@ -22,21 +22,19 @@ */ public class H5_ih_info_t { - H5_ih_info_t() { + H5_ih_info_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("index_size"), - hdf5_h.C_LONG.withName("heap_size") - ).withName("H5_ih_info_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("index_size"), hdf5_h.C_LONG.withName("heap_size")) + .withName("H5_ih_info_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong index_size$LAYOUT = (OfLong)$LAYOUT.select(groupElement("index_size")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * hsize_t index_size * } */ - public static final OfLong index_size$layout() { - return index_size$LAYOUT; - } + public static final OfLong index_size$layout() { return index_size$LAYOUT; } private static final long index_size$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * hsize_t index_size * } */ - public static final long index_size$offset() { - return index_size$OFFSET; - } + public static final long index_size$offset() { return index_size$OFFSET; } /** * Getter for field: @@ -68,7 +62,8 @@ public static final GroupLayout layout() { * hsize_t index_size * } */ - public static long index_size(MemorySegment struct) { + public static long index_size(MemorySegment struct) + { return struct.get(index_size$LAYOUT, index_size$OFFSET); } @@ -78,7 +73,8 @@ public static long index_size(MemorySegment struct) { * hsize_t index_size * } */ - public static void index_size(MemorySegment struct, long fieldValue) { + public static void index_size(MemorySegment struct, long fieldValue) + { struct.set(index_size$LAYOUT, index_size$OFFSET, fieldValue); } @@ -90,9 +86,7 @@ public static void index_size(MemorySegment struct, long fieldValue) { * hsize_t heap_size * } */ - public static final OfLong heap_size$layout() { - return heap_size$LAYOUT; - } + public static final OfLong heap_size$layout() { return heap_size$LAYOUT; } private static final long heap_size$OFFSET = 8; @@ -102,9 +96,7 @@ public static void index_size(MemorySegment struct, long fieldValue) { * hsize_t heap_size * } */ - public static final long heap_size$offset() { - return heap_size$OFFSET; - } + public static final long heap_size$offset() { return heap_size$OFFSET; } /** * Getter for field: @@ -112,7 +104,8 @@ public static void index_size(MemorySegment struct, long fieldValue) { * hsize_t heap_size * } */ - public static long heap_size(MemorySegment struct) { + public static long heap_size(MemorySegment struct) + { return struct.get(heap_size$LAYOUT, heap_size$OFFSET); } @@ -122,7 +115,8 @@ public static long heap_size(MemorySegment struct) { * hsize_t heap_size * } */ - public static void heap_size(MemorySegment struct, long fieldValue) { + public static void heap_size(MemorySegment struct, long fieldValue) + { struct.set(heap_size$LAYOUT, heap_size$OFFSET, fieldValue); } @@ -130,7 +124,8 @@ public static void heap_size(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +137,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +152,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +161,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/_G_fpos64_t.java b/java/jsrc/org/hdfgroup/javahdf5/_G_fpos64_t.java index 9d8165af17d..534a6586012 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/_G_fpos64_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/_G_fpos64_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 _G_fpos64_t { @@ -22,21 +22,19 @@ */ public class _G_fpos64_t { - _G_fpos64_t() { + _G_fpos64_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("__pos"), - __mbstate_t.layout().withName("__state") - ).withName("_G_fpos64_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("__pos"), __mbstate_t.layout().withName("__state")) + .withName("_G_fpos64_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong __pos$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__pos")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * __off64_t __pos * } */ - public static final OfLong __pos$layout() { - return __pos$LAYOUT; - } + public static final OfLong __pos$layout() { return __pos$LAYOUT; } private static final long __pos$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * __off64_t __pos * } */ - public static final long __pos$offset() { - return __pos$OFFSET; - } + public static final long __pos$offset() { return __pos$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * __off64_t __pos * } */ - public static long __pos(MemorySegment struct) { - return struct.get(__pos$LAYOUT, __pos$OFFSET); - } + public static long __pos(MemorySegment struct) { return struct.get(__pos$LAYOUT, __pos$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long __pos(MemorySegment struct) { * __off64_t __pos * } */ - public static void __pos(MemorySegment struct, long fieldValue) { + public static void __pos(MemorySegment struct, long fieldValue) + { struct.set(__pos$LAYOUT, __pos$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static final GroupLayout __state$layout() { - return __state$LAYOUT; - } + public static final GroupLayout __state$layout() { return __state$LAYOUT; } private static final long __state$OFFSET = 8; @@ -102,9 +93,7 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static final long __state$offset() { - return __state$OFFSET; - } + public static final long __state$offset() { return __state$OFFSET; } /** * Getter for field: @@ -112,7 +101,8 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static MemorySegment __state(MemorySegment struct) { + public static MemorySegment __state(MemorySegment struct) + { return struct.asSlice(__state$OFFSET, __state$LAYOUT.byteSize()); } @@ -122,7 +112,8 @@ public static MemorySegment __state(MemorySegment struct) { * __mbstate_t __state * } */ - public static void __state(MemorySegment struct, MemorySegment fieldValue) { + public static void __state(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __state$OFFSET, __state$LAYOUT.byteSize()); } @@ -130,7 +121,8 @@ public static void __state(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +134,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +149,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +158,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/_G_fpos_t.java b/java/jsrc/org/hdfgroup/javahdf5/_G_fpos_t.java index 3193f9f811a..f5c8499d714 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/_G_fpos_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/_G_fpos_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 _G_fpos_t { @@ -22,21 +22,19 @@ */ public class _G_fpos_t { - _G_fpos_t() { + _G_fpos_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("__pos"), - __mbstate_t.layout().withName("__state") - ).withName("_G_fpos_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("__pos"), __mbstate_t.layout().withName("__state")) + .withName("_G_fpos_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong __pos$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__pos")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * __off_t __pos * } */ - public static final OfLong __pos$layout() { - return __pos$LAYOUT; - } + public static final OfLong __pos$layout() { return __pos$LAYOUT; } private static final long __pos$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * __off_t __pos * } */ - public static final long __pos$offset() { - return __pos$OFFSET; - } + public static final long __pos$offset() { return __pos$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * __off_t __pos * } */ - public static long __pos(MemorySegment struct) { - return struct.get(__pos$LAYOUT, __pos$OFFSET); - } + public static long __pos(MemorySegment struct) { return struct.get(__pos$LAYOUT, __pos$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long __pos(MemorySegment struct) { * __off_t __pos * } */ - public static void __pos(MemorySegment struct, long fieldValue) { + public static void __pos(MemorySegment struct, long fieldValue) + { struct.set(__pos$LAYOUT, __pos$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static final GroupLayout __state$layout() { - return __state$LAYOUT; - } + public static final GroupLayout __state$layout() { return __state$LAYOUT; } private static final long __state$OFFSET = 8; @@ -102,9 +93,7 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static final long __state$offset() { - return __state$OFFSET; - } + public static final long __state$offset() { return __state$OFFSET; } /** * Getter for field: @@ -112,7 +101,8 @@ public static void __pos(MemorySegment struct, long fieldValue) { * __mbstate_t __state * } */ - public static MemorySegment __state(MemorySegment struct) { + public static MemorySegment __state(MemorySegment struct) + { return struct.asSlice(__state$OFFSET, __state$LAYOUT.byteSize()); } @@ -122,7 +112,8 @@ public static MemorySegment __state(MemorySegment struct) { * __mbstate_t __state * } */ - public static void __state(MemorySegment struct, MemorySegment fieldValue) { + public static void __state(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __state$OFFSET, __state$LAYOUT.byteSize()); } @@ -130,7 +121,8 @@ public static void __state(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +134,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +149,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +158,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/_IO_FILE.java b/java/jsrc/org/hdfgroup/javahdf5/_IO_FILE.java index 5b0ab29c8bf..a8a1d03afd5 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/_IO_FILE.java +++ b/java/jsrc/org/hdfgroup/javahdf5/_IO_FILE.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 _IO_FILE { @@ -49,50 +49,37 @@ */ public class _IO_FILE { - _IO_FILE() { + _IO_FILE() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("_flags"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("_IO_read_ptr"), - hdf5_h.C_POINTER.withName("_IO_read_end"), - hdf5_h.C_POINTER.withName("_IO_read_base"), - hdf5_h.C_POINTER.withName("_IO_write_base"), - hdf5_h.C_POINTER.withName("_IO_write_ptr"), - hdf5_h.C_POINTER.withName("_IO_write_end"), - hdf5_h.C_POINTER.withName("_IO_buf_base"), - hdf5_h.C_POINTER.withName("_IO_buf_end"), - hdf5_h.C_POINTER.withName("_IO_save_base"), - hdf5_h.C_POINTER.withName("_IO_backup_base"), - hdf5_h.C_POINTER.withName("_IO_save_end"), - hdf5_h.C_POINTER.withName("_markers"), - hdf5_h.C_POINTER.withName("_chain"), - hdf5_h.C_INT.withName("_fileno"), - hdf5_h.C_INT.withName("_flags2"), - hdf5_h.C_LONG.withName("_old_offset"), - hdf5_h.C_SHORT.withName("_cur_column"), - hdf5_h.C_CHAR.withName("_vtable_offset"), - MemoryLayout.sequenceLayout(1, hdf5_h.C_CHAR).withName("_shortbuf"), - MemoryLayout.paddingLayout(4), - hdf5_h.C_POINTER.withName("_lock"), - hdf5_h.C_LONG.withName("_offset"), - hdf5_h.C_POINTER.withName("_codecvt"), - hdf5_h.C_POINTER.withName("_wide_data"), - hdf5_h.C_POINTER.withName("_freeres_list"), - hdf5_h.C_POINTER.withName("_freeres_buf"), - hdf5_h.C_LONG.withName("__pad5"), - hdf5_h.C_INT.withName("_mode"), - MemoryLayout.sequenceLayout(20, hdf5_h.C_CHAR).withName("_unused2") - ).withName("_IO_FILE"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout( + hdf5_h.C_INT.withName("_flags"), MemoryLayout.paddingLayout(4), + hdf5_h.C_POINTER.withName("_IO_read_ptr"), hdf5_h.C_POINTER.withName("_IO_read_end"), + hdf5_h.C_POINTER.withName("_IO_read_base"), hdf5_h.C_POINTER.withName("_IO_write_base"), + hdf5_h.C_POINTER.withName("_IO_write_ptr"), hdf5_h.C_POINTER.withName("_IO_write_end"), + hdf5_h.C_POINTER.withName("_IO_buf_base"), hdf5_h.C_POINTER.withName("_IO_buf_end"), + hdf5_h.C_POINTER.withName("_IO_save_base"), hdf5_h.C_POINTER.withName("_IO_backup_base"), + hdf5_h.C_POINTER.withName("_IO_save_end"), hdf5_h.C_POINTER.withName("_markers"), + hdf5_h.C_POINTER.withName("_chain"), hdf5_h.C_INT.withName("_fileno"), + hdf5_h.C_INT.withName("_flags2"), hdf5_h.C_LONG.withName("_old_offset"), + hdf5_h.C_SHORT.withName("_cur_column"), hdf5_h.C_CHAR.withName("_vtable_offset"), + MemoryLayout.sequenceLayout(1, hdf5_h.C_CHAR).withName("_shortbuf"), + MemoryLayout.paddingLayout(4), hdf5_h.C_POINTER.withName("_lock"), + hdf5_h.C_LONG.withName("_offset"), hdf5_h.C_POINTER.withName("_codecvt"), + hdf5_h.C_POINTER.withName("_wide_data"), hdf5_h.C_POINTER.withName("_freeres_list"), + hdf5_h.C_POINTER.withName("_freeres_buf"), hdf5_h.C_LONG.withName("__pad5"), + hdf5_h.C_INT.withName("_mode"), + MemoryLayout.sequenceLayout(20, hdf5_h.C_CHAR).withName("_unused2")) + .withName("_IO_FILE"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt _flags$LAYOUT = (OfInt)$LAYOUT.select(groupElement("_flags")); @@ -102,9 +89,7 @@ public static final GroupLayout layout() { * int _flags * } */ - public static final OfInt _flags$layout() { - return _flags$LAYOUT; - } + public static final OfInt _flags$layout() { return _flags$LAYOUT; } private static final long _flags$OFFSET = 0; @@ -114,9 +99,7 @@ public static final GroupLayout layout() { * int _flags * } */ - public static final long _flags$offset() { - return _flags$OFFSET; - } + public static final long _flags$offset() { return _flags$OFFSET; } /** * Getter for field: @@ -124,9 +107,7 @@ public static final GroupLayout layout() { * int _flags * } */ - public static int _flags(MemorySegment struct) { - return struct.get(_flags$LAYOUT, _flags$OFFSET); - } + public static int _flags(MemorySegment struct) { return struct.get(_flags$LAYOUT, _flags$OFFSET); } /** * Setter for field: @@ -134,11 +115,13 @@ public static int _flags(MemorySegment struct) { * int _flags * } */ - public static void _flags(MemorySegment struct, int fieldValue) { + public static void _flags(MemorySegment struct, int fieldValue) + { struct.set(_flags$LAYOUT, _flags$OFFSET, fieldValue); } - private static final AddressLayout _IO_read_ptr$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_read_ptr")); + private static final AddressLayout _IO_read_ptr$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_read_ptr")); /** * Layout for field: @@ -146,9 +129,7 @@ public static void _flags(MemorySegment struct, int fieldValue) { * char *_IO_read_ptr * } */ - public static final AddressLayout _IO_read_ptr$layout() { - return _IO_read_ptr$LAYOUT; - } + public static final AddressLayout _IO_read_ptr$layout() { return _IO_read_ptr$LAYOUT; } private static final long _IO_read_ptr$OFFSET = 8; @@ -158,9 +139,7 @@ public static void _flags(MemorySegment struct, int fieldValue) { * char *_IO_read_ptr * } */ - public static final long _IO_read_ptr$offset() { - return _IO_read_ptr$OFFSET; - } + public static final long _IO_read_ptr$offset() { return _IO_read_ptr$OFFSET; } /** * Getter for field: @@ -168,7 +147,8 @@ public static void _flags(MemorySegment struct, int fieldValue) { * char *_IO_read_ptr * } */ - public static MemorySegment _IO_read_ptr(MemorySegment struct) { + public static MemorySegment _IO_read_ptr(MemorySegment struct) + { return struct.get(_IO_read_ptr$LAYOUT, _IO_read_ptr$OFFSET); } @@ -178,11 +158,13 @@ public static MemorySegment _IO_read_ptr(MemorySegment struct) { * char *_IO_read_ptr * } */ - public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_read_ptr$LAYOUT, _IO_read_ptr$OFFSET, fieldValue); } - private static final AddressLayout _IO_read_end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_read_end")); + private static final AddressLayout _IO_read_end$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_read_end")); /** * Layout for field: @@ -190,9 +172,7 @@ public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_end * } */ - public static final AddressLayout _IO_read_end$layout() { - return _IO_read_end$LAYOUT; - } + public static final AddressLayout _IO_read_end$layout() { return _IO_read_end$LAYOUT; } private static final long _IO_read_end$OFFSET = 16; @@ -202,9 +182,7 @@ public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_end * } */ - public static final long _IO_read_end$offset() { - return _IO_read_end$OFFSET; - } + public static final long _IO_read_end$offset() { return _IO_read_end$OFFSET; } /** * Getter for field: @@ -212,7 +190,8 @@ public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_end * } */ - public static MemorySegment _IO_read_end(MemorySegment struct) { + public static MemorySegment _IO_read_end(MemorySegment struct) + { return struct.get(_IO_read_end$LAYOUT, _IO_read_end$OFFSET); } @@ -222,11 +201,13 @@ public static MemorySegment _IO_read_end(MemorySegment struct) { * char *_IO_read_end * } */ - public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_read_end$LAYOUT, _IO_read_end$OFFSET, fieldValue); } - private static final AddressLayout _IO_read_base$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_read_base")); + private static final AddressLayout _IO_read_base$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_read_base")); /** * Layout for field: @@ -234,9 +215,7 @@ public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_base * } */ - public static final AddressLayout _IO_read_base$layout() { - return _IO_read_base$LAYOUT; - } + public static final AddressLayout _IO_read_base$layout() { return _IO_read_base$LAYOUT; } private static final long _IO_read_base$OFFSET = 24; @@ -246,9 +225,7 @@ public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_base * } */ - public static final long _IO_read_base$offset() { - return _IO_read_base$OFFSET; - } + public static final long _IO_read_base$offset() { return _IO_read_base$OFFSET; } /** * Getter for field: @@ -256,7 +233,8 @@ public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_read_base * } */ - public static MemorySegment _IO_read_base(MemorySegment struct) { + public static MemorySegment _IO_read_base(MemorySegment struct) + { return struct.get(_IO_read_base$LAYOUT, _IO_read_base$OFFSET); } @@ -266,11 +244,13 @@ public static MemorySegment _IO_read_base(MemorySegment struct) { * char *_IO_read_base * } */ - public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_read_base$LAYOUT, _IO_read_base$OFFSET, fieldValue); } - private static final AddressLayout _IO_write_base$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_write_base")); + private static final AddressLayout _IO_write_base$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_write_base")); /** * Layout for field: @@ -278,9 +258,7 @@ public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_base * } */ - public static final AddressLayout _IO_write_base$layout() { - return _IO_write_base$LAYOUT; - } + public static final AddressLayout _IO_write_base$layout() { return _IO_write_base$LAYOUT; } private static final long _IO_write_base$OFFSET = 32; @@ -290,9 +268,7 @@ public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_base * } */ - public static final long _IO_write_base$offset() { - return _IO_write_base$OFFSET; - } + public static final long _IO_write_base$offset() { return _IO_write_base$OFFSET; } /** * Getter for field: @@ -300,7 +276,8 @@ public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_base * } */ - public static MemorySegment _IO_write_base(MemorySegment struct) { + public static MemorySegment _IO_write_base(MemorySegment struct) + { return struct.get(_IO_write_base$LAYOUT, _IO_write_base$OFFSET); } @@ -310,11 +287,13 @@ public static MemorySegment _IO_write_base(MemorySegment struct) { * char *_IO_write_base * } */ - public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_write_base$LAYOUT, _IO_write_base$OFFSET, fieldValue); } - private static final AddressLayout _IO_write_ptr$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_write_ptr")); + private static final AddressLayout _IO_write_ptr$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_write_ptr")); /** * Layout for field: @@ -322,9 +301,7 @@ public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue * char *_IO_write_ptr * } */ - public static final AddressLayout _IO_write_ptr$layout() { - return _IO_write_ptr$LAYOUT; - } + public static final AddressLayout _IO_write_ptr$layout() { return _IO_write_ptr$LAYOUT; } private static final long _IO_write_ptr$OFFSET = 40; @@ -334,9 +311,7 @@ public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue * char *_IO_write_ptr * } */ - public static final long _IO_write_ptr$offset() { - return _IO_write_ptr$OFFSET; - } + public static final long _IO_write_ptr$offset() { return _IO_write_ptr$OFFSET; } /** * Getter for field: @@ -344,7 +319,8 @@ public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue * char *_IO_write_ptr * } */ - public static MemorySegment _IO_write_ptr(MemorySegment struct) { + public static MemorySegment _IO_write_ptr(MemorySegment struct) + { return struct.get(_IO_write_ptr$LAYOUT, _IO_write_ptr$OFFSET); } @@ -354,11 +330,13 @@ public static MemorySegment _IO_write_ptr(MemorySegment struct) { * char *_IO_write_ptr * } */ - public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_write_ptr$LAYOUT, _IO_write_ptr$OFFSET, fieldValue); } - private static final AddressLayout _IO_write_end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_write_end")); + private static final AddressLayout _IO_write_end$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_write_end")); /** * Layout for field: @@ -366,9 +344,7 @@ public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_end * } */ - public static final AddressLayout _IO_write_end$layout() { - return _IO_write_end$LAYOUT; - } + public static final AddressLayout _IO_write_end$layout() { return _IO_write_end$LAYOUT; } private static final long _IO_write_end$OFFSET = 48; @@ -378,9 +354,7 @@ public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_end * } */ - public static final long _IO_write_end$offset() { - return _IO_write_end$OFFSET; - } + public static final long _IO_write_end$offset() { return _IO_write_end$OFFSET; } /** * Getter for field: @@ -388,7 +362,8 @@ public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue) * char *_IO_write_end * } */ - public static MemorySegment _IO_write_end(MemorySegment struct) { + public static MemorySegment _IO_write_end(MemorySegment struct) + { return struct.get(_IO_write_end$LAYOUT, _IO_write_end$OFFSET); } @@ -398,11 +373,13 @@ public static MemorySegment _IO_write_end(MemorySegment struct) { * char *_IO_write_end * } */ - public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_write_end$LAYOUT, _IO_write_end$OFFSET, fieldValue); } - private static final AddressLayout _IO_buf_base$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_buf_base")); + private static final AddressLayout _IO_buf_base$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_buf_base")); /** * Layout for field: @@ -410,9 +387,7 @@ public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_base * } */ - public static final AddressLayout _IO_buf_base$layout() { - return _IO_buf_base$LAYOUT; - } + public static final AddressLayout _IO_buf_base$layout() { return _IO_buf_base$LAYOUT; } private static final long _IO_buf_base$OFFSET = 56; @@ -422,9 +397,7 @@ public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_base * } */ - public static final long _IO_buf_base$offset() { - return _IO_buf_base$OFFSET; - } + public static final long _IO_buf_base$offset() { return _IO_buf_base$OFFSET; } /** * Getter for field: @@ -432,7 +405,8 @@ public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_base * } */ - public static MemorySegment _IO_buf_base(MemorySegment struct) { + public static MemorySegment _IO_buf_base(MemorySegment struct) + { return struct.get(_IO_buf_base$LAYOUT, _IO_buf_base$OFFSET); } @@ -442,11 +416,13 @@ public static MemorySegment _IO_buf_base(MemorySegment struct) { * char *_IO_buf_base * } */ - public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_buf_base$LAYOUT, _IO_buf_base$OFFSET, fieldValue); } - private static final AddressLayout _IO_buf_end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_buf_end")); + private static final AddressLayout _IO_buf_end$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_buf_end")); /** * Layout for field: @@ -454,9 +430,7 @@ public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_end * } */ - public static final AddressLayout _IO_buf_end$layout() { - return _IO_buf_end$LAYOUT; - } + public static final AddressLayout _IO_buf_end$layout() { return _IO_buf_end$LAYOUT; } private static final long _IO_buf_end$OFFSET = 64; @@ -466,9 +440,7 @@ public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_end * } */ - public static final long _IO_buf_end$offset() { - return _IO_buf_end$OFFSET; - } + public static final long _IO_buf_end$offset() { return _IO_buf_end$OFFSET; } /** * Getter for field: @@ -476,7 +448,8 @@ public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_buf_end * } */ - public static MemorySegment _IO_buf_end(MemorySegment struct) { + public static MemorySegment _IO_buf_end(MemorySegment struct) + { return struct.get(_IO_buf_end$LAYOUT, _IO_buf_end$OFFSET); } @@ -486,11 +459,13 @@ public static MemorySegment _IO_buf_end(MemorySegment struct) { * char *_IO_buf_end * } */ - public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_buf_end$LAYOUT, _IO_buf_end$OFFSET, fieldValue); } - private static final AddressLayout _IO_save_base$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_save_base")); + private static final AddressLayout _IO_save_base$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_save_base")); /** * Layout for field: @@ -498,9 +473,7 @@ public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue) { * char *_IO_save_base * } */ - public static final AddressLayout _IO_save_base$layout() { - return _IO_save_base$LAYOUT; - } + public static final AddressLayout _IO_save_base$layout() { return _IO_save_base$LAYOUT; } private static final long _IO_save_base$OFFSET = 72; @@ -510,9 +483,7 @@ public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue) { * char *_IO_save_base * } */ - public static final long _IO_save_base$offset() { - return _IO_save_base$OFFSET; - } + public static final long _IO_save_base$offset() { return _IO_save_base$OFFSET; } /** * Getter for field: @@ -520,7 +491,8 @@ public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue) { * char *_IO_save_base * } */ - public static MemorySegment _IO_save_base(MemorySegment struct) { + public static MemorySegment _IO_save_base(MemorySegment struct) + { return struct.get(_IO_save_base$LAYOUT, _IO_save_base$OFFSET); } @@ -530,11 +502,13 @@ public static MemorySegment _IO_save_base(MemorySegment struct) { * char *_IO_save_base * } */ - public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_save_base$LAYOUT, _IO_save_base$OFFSET, fieldValue); } - private static final AddressLayout _IO_backup_base$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_backup_base")); + private static final AddressLayout _IO_backup_base$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_backup_base")); /** * Layout for field: @@ -542,9 +516,7 @@ public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_backup_base * } */ - public static final AddressLayout _IO_backup_base$layout() { - return _IO_backup_base$LAYOUT; - } + public static final AddressLayout _IO_backup_base$layout() { return _IO_backup_base$LAYOUT; } private static final long _IO_backup_base$OFFSET = 80; @@ -554,9 +526,7 @@ public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_backup_base * } */ - public static final long _IO_backup_base$offset() { - return _IO_backup_base$OFFSET; - } + public static final long _IO_backup_base$offset() { return _IO_backup_base$OFFSET; } /** * Getter for field: @@ -564,7 +534,8 @@ public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue) * char *_IO_backup_base * } */ - public static MemorySegment _IO_backup_base(MemorySegment struct) { + public static MemorySegment _IO_backup_base(MemorySegment struct) + { return struct.get(_IO_backup_base$LAYOUT, _IO_backup_base$OFFSET); } @@ -574,11 +545,13 @@ public static MemorySegment _IO_backup_base(MemorySegment struct) { * char *_IO_backup_base * } */ - public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_backup_base$LAYOUT, _IO_backup_base$OFFSET, fieldValue); } - private static final AddressLayout _IO_save_end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_IO_save_end")); + private static final AddressLayout _IO_save_end$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_IO_save_end")); /** * Layout for field: @@ -586,9 +559,7 @@ public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValu * char *_IO_save_end * } */ - public static final AddressLayout _IO_save_end$layout() { - return _IO_save_end$LAYOUT; - } + public static final AddressLayout _IO_save_end$layout() { return _IO_save_end$LAYOUT; } private static final long _IO_save_end$OFFSET = 88; @@ -598,9 +569,7 @@ public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValu * char *_IO_save_end * } */ - public static final long _IO_save_end$offset() { - return _IO_save_end$OFFSET; - } + public static final long _IO_save_end$offset() { return _IO_save_end$OFFSET; } /** * Getter for field: @@ -608,7 +577,8 @@ public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValu * char *_IO_save_end * } */ - public static MemorySegment _IO_save_end(MemorySegment struct) { + public static MemorySegment _IO_save_end(MemorySegment struct) + { return struct.get(_IO_save_end$LAYOUT, _IO_save_end$OFFSET); } @@ -618,11 +588,13 @@ public static MemorySegment _IO_save_end(MemorySegment struct) { * char *_IO_save_end * } */ - public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue) { + public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_IO_save_end$LAYOUT, _IO_save_end$OFFSET, fieldValue); } - private static final AddressLayout _markers$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_markers")); + private static final AddressLayout _markers$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_markers")); /** * Layout for field: @@ -630,9 +602,7 @@ public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue) * struct _IO_marker *_markers * } */ - public static final AddressLayout _markers$layout() { - return _markers$LAYOUT; - } + public static final AddressLayout _markers$layout() { return _markers$LAYOUT; } private static final long _markers$OFFSET = 96; @@ -642,9 +612,7 @@ public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue) * struct _IO_marker *_markers * } */ - public static final long _markers$offset() { - return _markers$OFFSET; - } + public static final long _markers$offset() { return _markers$OFFSET; } /** * Getter for field: @@ -652,7 +620,8 @@ public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue) * struct _IO_marker *_markers * } */ - public static MemorySegment _markers(MemorySegment struct) { + public static MemorySegment _markers(MemorySegment struct) + { return struct.get(_markers$LAYOUT, _markers$OFFSET); } @@ -662,7 +631,8 @@ public static MemorySegment _markers(MemorySegment struct) { * struct _IO_marker *_markers * } */ - public static void _markers(MemorySegment struct, MemorySegment fieldValue) { + public static void _markers(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_markers$LAYOUT, _markers$OFFSET, fieldValue); } @@ -674,9 +644,7 @@ public static void _markers(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_chain * } */ - public static final AddressLayout _chain$layout() { - return _chain$LAYOUT; - } + public static final AddressLayout _chain$layout() { return _chain$LAYOUT; } private static final long _chain$OFFSET = 104; @@ -686,9 +654,7 @@ public static void _markers(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_chain * } */ - public static final long _chain$offset() { - return _chain$OFFSET; - } + public static final long _chain$offset() { return _chain$OFFSET; } /** * Getter for field: @@ -696,7 +662,8 @@ public static void _markers(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_chain * } */ - public static MemorySegment _chain(MemorySegment struct) { + public static MemorySegment _chain(MemorySegment struct) + { return struct.get(_chain$LAYOUT, _chain$OFFSET); } @@ -706,7 +673,8 @@ public static MemorySegment _chain(MemorySegment struct) { * struct _IO_FILE *_chain * } */ - public static void _chain(MemorySegment struct, MemorySegment fieldValue) { + public static void _chain(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_chain$LAYOUT, _chain$OFFSET, fieldValue); } @@ -718,9 +686,7 @@ public static void _chain(MemorySegment struct, MemorySegment fieldValue) { * int _fileno * } */ - public static final OfInt _fileno$layout() { - return _fileno$LAYOUT; - } + public static final OfInt _fileno$layout() { return _fileno$LAYOUT; } private static final long _fileno$OFFSET = 112; @@ -730,9 +696,7 @@ public static void _chain(MemorySegment struct, MemorySegment fieldValue) { * int _fileno * } */ - public static final long _fileno$offset() { - return _fileno$OFFSET; - } + public static final long _fileno$offset() { return _fileno$OFFSET; } /** * Getter for field: @@ -740,9 +704,7 @@ public static void _chain(MemorySegment struct, MemorySegment fieldValue) { * int _fileno * } */ - public static int _fileno(MemorySegment struct) { - return struct.get(_fileno$LAYOUT, _fileno$OFFSET); - } + public static int _fileno(MemorySegment struct) { return struct.get(_fileno$LAYOUT, _fileno$OFFSET); } /** * Setter for field: @@ -750,7 +712,8 @@ public static int _fileno(MemorySegment struct) { * int _fileno * } */ - public static void _fileno(MemorySegment struct, int fieldValue) { + public static void _fileno(MemorySegment struct, int fieldValue) + { struct.set(_fileno$LAYOUT, _fileno$OFFSET, fieldValue); } @@ -762,9 +725,7 @@ public static void _fileno(MemorySegment struct, int fieldValue) { * int _flags2 * } */ - public static final OfInt _flags2$layout() { - return _flags2$LAYOUT; - } + public static final OfInt _flags2$layout() { return _flags2$LAYOUT; } private static final long _flags2$OFFSET = 116; @@ -774,9 +735,7 @@ public static void _fileno(MemorySegment struct, int fieldValue) { * int _flags2 * } */ - public static final long _flags2$offset() { - return _flags2$OFFSET; - } + public static final long _flags2$offset() { return _flags2$OFFSET; } /** * Getter for field: @@ -784,9 +743,7 @@ public static void _fileno(MemorySegment struct, int fieldValue) { * int _flags2 * } */ - public static int _flags2(MemorySegment struct) { - return struct.get(_flags2$LAYOUT, _flags2$OFFSET); - } + public static int _flags2(MemorySegment struct) { return struct.get(_flags2$LAYOUT, _flags2$OFFSET); } /** * Setter for field: @@ -794,7 +751,8 @@ public static int _flags2(MemorySegment struct) { * int _flags2 * } */ - public static void _flags2(MemorySegment struct, int fieldValue) { + public static void _flags2(MemorySegment struct, int fieldValue) + { struct.set(_flags2$LAYOUT, _flags2$OFFSET, fieldValue); } @@ -806,9 +764,7 @@ public static void _flags2(MemorySegment struct, int fieldValue) { * __off_t _old_offset * } */ - public static final OfLong _old_offset$layout() { - return _old_offset$LAYOUT; - } + public static final OfLong _old_offset$layout() { return _old_offset$LAYOUT; } private static final long _old_offset$OFFSET = 120; @@ -818,9 +774,7 @@ public static void _flags2(MemorySegment struct, int fieldValue) { * __off_t _old_offset * } */ - public static final long _old_offset$offset() { - return _old_offset$OFFSET; - } + public static final long _old_offset$offset() { return _old_offset$OFFSET; } /** * Getter for field: @@ -828,7 +782,8 @@ public static void _flags2(MemorySegment struct, int fieldValue) { * __off_t _old_offset * } */ - public static long _old_offset(MemorySegment struct) { + public static long _old_offset(MemorySegment struct) + { return struct.get(_old_offset$LAYOUT, _old_offset$OFFSET); } @@ -838,7 +793,8 @@ public static long _old_offset(MemorySegment struct) { * __off_t _old_offset * } */ - public static void _old_offset(MemorySegment struct, long fieldValue) { + public static void _old_offset(MemorySegment struct, long fieldValue) + { struct.set(_old_offset$LAYOUT, _old_offset$OFFSET, fieldValue); } @@ -850,9 +806,7 @@ public static void _old_offset(MemorySegment struct, long fieldValue) { * unsigned short _cur_column * } */ - public static final OfShort _cur_column$layout() { - return _cur_column$LAYOUT; - } + public static final OfShort _cur_column$layout() { return _cur_column$LAYOUT; } private static final long _cur_column$OFFSET = 128; @@ -862,9 +816,7 @@ public static void _old_offset(MemorySegment struct, long fieldValue) { * unsigned short _cur_column * } */ - public static final long _cur_column$offset() { - return _cur_column$OFFSET; - } + public static final long _cur_column$offset() { return _cur_column$OFFSET; } /** * Getter for field: @@ -872,7 +824,8 @@ public static void _old_offset(MemorySegment struct, long fieldValue) { * unsigned short _cur_column * } */ - public static short _cur_column(MemorySegment struct) { + public static short _cur_column(MemorySegment struct) + { return struct.get(_cur_column$LAYOUT, _cur_column$OFFSET); } @@ -882,11 +835,13 @@ public static short _cur_column(MemorySegment struct) { * unsigned short _cur_column * } */ - public static void _cur_column(MemorySegment struct, short fieldValue) { + public static void _cur_column(MemorySegment struct, short fieldValue) + { struct.set(_cur_column$LAYOUT, _cur_column$OFFSET, fieldValue); } - private static final OfByte _vtable_offset$LAYOUT = (OfByte)$LAYOUT.select(groupElement("_vtable_offset")); + private static final OfByte _vtable_offset$LAYOUT = + (OfByte)$LAYOUT.select(groupElement("_vtable_offset")); /** * Layout for field: @@ -894,9 +849,7 @@ public static void _cur_column(MemorySegment struct, short fieldValue) { * signed char _vtable_offset * } */ - public static final OfByte _vtable_offset$layout() { - return _vtable_offset$LAYOUT; - } + public static final OfByte _vtable_offset$layout() { return _vtable_offset$LAYOUT; } private static final long _vtable_offset$OFFSET = 130; @@ -906,9 +859,7 @@ public static void _cur_column(MemorySegment struct, short fieldValue) { * signed char _vtable_offset * } */ - public static final long _vtable_offset$offset() { - return _vtable_offset$OFFSET; - } + public static final long _vtable_offset$offset() { return _vtable_offset$OFFSET; } /** * Getter for field: @@ -916,7 +867,8 @@ public static void _cur_column(MemorySegment struct, short fieldValue) { * signed char _vtable_offset * } */ - public static byte _vtable_offset(MemorySegment struct) { + public static byte _vtable_offset(MemorySegment struct) + { return struct.get(_vtable_offset$LAYOUT, _vtable_offset$OFFSET); } @@ -926,11 +878,13 @@ public static byte _vtable_offset(MemorySegment struct) { * signed char _vtable_offset * } */ - public static void _vtable_offset(MemorySegment struct, byte fieldValue) { + public static void _vtable_offset(MemorySegment struct, byte fieldValue) + { struct.set(_vtable_offset$LAYOUT, _vtable_offset$OFFSET, fieldValue); } - private static final SequenceLayout _shortbuf$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("_shortbuf")); + private static final SequenceLayout _shortbuf$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("_shortbuf")); /** * Layout for field: @@ -938,9 +892,7 @@ public static void _vtable_offset(MemorySegment struct, byte fieldValue) { * char _shortbuf[1] * } */ - public static final SequenceLayout _shortbuf$layout() { - return _shortbuf$LAYOUT; - } + public static final SequenceLayout _shortbuf$layout() { return _shortbuf$LAYOUT; } private static final long _shortbuf$OFFSET = 131; @@ -950,9 +902,7 @@ public static void _vtable_offset(MemorySegment struct, byte fieldValue) { * char _shortbuf[1] * } */ - public static final long _shortbuf$offset() { - return _shortbuf$OFFSET; - } + public static final long _shortbuf$offset() { return _shortbuf$OFFSET; } /** * Getter for field: @@ -960,7 +910,8 @@ public static void _vtable_offset(MemorySegment struct, byte fieldValue) { * char _shortbuf[1] * } */ - public static MemorySegment _shortbuf(MemorySegment struct) { + public static MemorySegment _shortbuf(MemorySegment struct) + { return struct.asSlice(_shortbuf$OFFSET, _shortbuf$LAYOUT.byteSize()); } @@ -970,11 +921,12 @@ public static MemorySegment _shortbuf(MemorySegment struct) { * char _shortbuf[1] * } */ - public static void _shortbuf(MemorySegment struct, MemorySegment fieldValue) { + public static void _shortbuf(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, _shortbuf$OFFSET, _shortbuf$LAYOUT.byteSize()); } - private static long[] _shortbuf$DIMS = { 1 }; + private static long[] _shortbuf$DIMS = {1}; /** * Dimensions for array field: @@ -982,9 +934,7 @@ public static void _shortbuf(MemorySegment struct, MemorySegment fieldValue) { * char _shortbuf[1] * } */ - public static long[] _shortbuf$dimensions() { - return _shortbuf$DIMS; - } + public static long[] _shortbuf$dimensions() { return _shortbuf$DIMS; } private static final VarHandle _shortbuf$ELEM_HANDLE = _shortbuf$LAYOUT.varHandle(sequenceElement()); /** @@ -993,7 +943,8 @@ public static void _shortbuf(MemorySegment struct, MemorySegment fieldValue) { * char _shortbuf[1] * } */ - public static byte _shortbuf(MemorySegment struct, long index0) { + public static byte _shortbuf(MemorySegment struct, long index0) + { return (byte)_shortbuf$ELEM_HANDLE.get(struct, 0L, index0); } @@ -1003,7 +954,8 @@ public static byte _shortbuf(MemorySegment struct, long index0) { * char _shortbuf[1] * } */ - public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue) { + public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue) + { _shortbuf$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -1015,9 +967,7 @@ public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue) * _IO_lock_t *_lock * } */ - public static final AddressLayout _lock$layout() { - return _lock$LAYOUT; - } + public static final AddressLayout _lock$layout() { return _lock$LAYOUT; } private static final long _lock$OFFSET = 136; @@ -1027,9 +977,7 @@ public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue) * _IO_lock_t *_lock * } */ - public static final long _lock$offset() { - return _lock$OFFSET; - } + public static final long _lock$offset() { return _lock$OFFSET; } /** * Getter for field: @@ -1037,9 +985,7 @@ public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue) * _IO_lock_t *_lock * } */ - public static MemorySegment _lock(MemorySegment struct) { - return struct.get(_lock$LAYOUT, _lock$OFFSET); - } + public static MemorySegment _lock(MemorySegment struct) { return struct.get(_lock$LAYOUT, _lock$OFFSET); } /** * Setter for field: @@ -1047,7 +993,8 @@ public static MemorySegment _lock(MemorySegment struct) { * _IO_lock_t *_lock * } */ - public static void _lock(MemorySegment struct, MemorySegment fieldValue) { + public static void _lock(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_lock$LAYOUT, _lock$OFFSET, fieldValue); } @@ -1059,9 +1006,7 @@ public static void _lock(MemorySegment struct, MemorySegment fieldValue) { * __off64_t _offset * } */ - public static final OfLong _offset$layout() { - return _offset$LAYOUT; - } + public static final OfLong _offset$layout() { return _offset$LAYOUT; } private static final long _offset$OFFSET = 144; @@ -1071,9 +1016,7 @@ public static void _lock(MemorySegment struct, MemorySegment fieldValue) { * __off64_t _offset * } */ - public static final long _offset$offset() { - return _offset$OFFSET; - } + public static final long _offset$offset() { return _offset$OFFSET; } /** * Getter for field: @@ -1081,9 +1024,7 @@ public static void _lock(MemorySegment struct, MemorySegment fieldValue) { * __off64_t _offset * } */ - public static long _offset(MemorySegment struct) { - return struct.get(_offset$LAYOUT, _offset$OFFSET); - } + public static long _offset(MemorySegment struct) { return struct.get(_offset$LAYOUT, _offset$OFFSET); } /** * Setter for field: @@ -1091,11 +1032,13 @@ public static long _offset(MemorySegment struct) { * __off64_t _offset * } */ - public static void _offset(MemorySegment struct, long fieldValue) { + public static void _offset(MemorySegment struct, long fieldValue) + { struct.set(_offset$LAYOUT, _offset$OFFSET, fieldValue); } - private static final AddressLayout _codecvt$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_codecvt")); + private static final AddressLayout _codecvt$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_codecvt")); /** * Layout for field: @@ -1103,9 +1046,7 @@ public static void _offset(MemorySegment struct, long fieldValue) { * struct _IO_codecvt *_codecvt * } */ - public static final AddressLayout _codecvt$layout() { - return _codecvt$LAYOUT; - } + public static final AddressLayout _codecvt$layout() { return _codecvt$LAYOUT; } private static final long _codecvt$OFFSET = 152; @@ -1115,9 +1056,7 @@ public static void _offset(MemorySegment struct, long fieldValue) { * struct _IO_codecvt *_codecvt * } */ - public static final long _codecvt$offset() { - return _codecvt$OFFSET; - } + public static final long _codecvt$offset() { return _codecvt$OFFSET; } /** * Getter for field: @@ -1125,7 +1064,8 @@ public static void _offset(MemorySegment struct, long fieldValue) { * struct _IO_codecvt *_codecvt * } */ - public static MemorySegment _codecvt(MemorySegment struct) { + public static MemorySegment _codecvt(MemorySegment struct) + { return struct.get(_codecvt$LAYOUT, _codecvt$OFFSET); } @@ -1135,11 +1075,13 @@ public static MemorySegment _codecvt(MemorySegment struct) { * struct _IO_codecvt *_codecvt * } */ - public static void _codecvt(MemorySegment struct, MemorySegment fieldValue) { + public static void _codecvt(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_codecvt$LAYOUT, _codecvt$OFFSET, fieldValue); } - private static final AddressLayout _wide_data$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_wide_data")); + private static final AddressLayout _wide_data$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_wide_data")); /** * Layout for field: @@ -1147,9 +1089,7 @@ public static void _codecvt(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_wide_data *_wide_data * } */ - public static final AddressLayout _wide_data$layout() { - return _wide_data$LAYOUT; - } + public static final AddressLayout _wide_data$layout() { return _wide_data$LAYOUT; } private static final long _wide_data$OFFSET = 160; @@ -1159,9 +1099,7 @@ public static void _codecvt(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_wide_data *_wide_data * } */ - public static final long _wide_data$offset() { - return _wide_data$OFFSET; - } + public static final long _wide_data$offset() { return _wide_data$OFFSET; } /** * Getter for field: @@ -1169,7 +1107,8 @@ public static void _codecvt(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_wide_data *_wide_data * } */ - public static MemorySegment _wide_data(MemorySegment struct) { + public static MemorySegment _wide_data(MemorySegment struct) + { return struct.get(_wide_data$LAYOUT, _wide_data$OFFSET); } @@ -1179,11 +1118,13 @@ public static MemorySegment _wide_data(MemorySegment struct) { * struct _IO_wide_data *_wide_data * } */ - public static void _wide_data(MemorySegment struct, MemorySegment fieldValue) { + public static void _wide_data(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_wide_data$LAYOUT, _wide_data$OFFSET, fieldValue); } - private static final AddressLayout _freeres_list$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_freeres_list")); + private static final AddressLayout _freeres_list$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_freeres_list")); /** * Layout for field: @@ -1191,9 +1132,7 @@ public static void _wide_data(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_freeres_list * } */ - public static final AddressLayout _freeres_list$layout() { - return _freeres_list$LAYOUT; - } + public static final AddressLayout _freeres_list$layout() { return _freeres_list$LAYOUT; } private static final long _freeres_list$OFFSET = 168; @@ -1203,9 +1142,7 @@ public static void _wide_data(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_freeres_list * } */ - public static final long _freeres_list$offset() { - return _freeres_list$OFFSET; - } + public static final long _freeres_list$offset() { return _freeres_list$OFFSET; } /** * Getter for field: @@ -1213,7 +1150,8 @@ public static void _wide_data(MemorySegment struct, MemorySegment fieldValue) { * struct _IO_FILE *_freeres_list * } */ - public static MemorySegment _freeres_list(MemorySegment struct) { + public static MemorySegment _freeres_list(MemorySegment struct) + { return struct.get(_freeres_list$LAYOUT, _freeres_list$OFFSET); } @@ -1223,11 +1161,13 @@ public static MemorySegment _freeres_list(MemorySegment struct) { * struct _IO_FILE *_freeres_list * } */ - public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue) { + public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_freeres_list$LAYOUT, _freeres_list$OFFSET, fieldValue); } - private static final AddressLayout _freeres_buf$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_freeres_buf")); + private static final AddressLayout _freeres_buf$LAYOUT = + (AddressLayout)$LAYOUT.select(groupElement("_freeres_buf")); /** * Layout for field: @@ -1235,9 +1175,7 @@ public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue) * void *_freeres_buf * } */ - public static final AddressLayout _freeres_buf$layout() { - return _freeres_buf$LAYOUT; - } + public static final AddressLayout _freeres_buf$layout() { return _freeres_buf$LAYOUT; } private static final long _freeres_buf$OFFSET = 176; @@ -1247,9 +1185,7 @@ public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue) * void *_freeres_buf * } */ - public static final long _freeres_buf$offset() { - return _freeres_buf$OFFSET; - } + public static final long _freeres_buf$offset() { return _freeres_buf$OFFSET; } /** * Getter for field: @@ -1257,7 +1193,8 @@ public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue) * void *_freeres_buf * } */ - public static MemorySegment _freeres_buf(MemorySegment struct) { + public static MemorySegment _freeres_buf(MemorySegment struct) + { return struct.get(_freeres_buf$LAYOUT, _freeres_buf$OFFSET); } @@ -1267,7 +1204,8 @@ public static MemorySegment _freeres_buf(MemorySegment struct) { * void *_freeres_buf * } */ - public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue) { + public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue) + { struct.set(_freeres_buf$LAYOUT, _freeres_buf$OFFSET, fieldValue); } @@ -1279,9 +1217,7 @@ public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue) * size_t __pad5 * } */ - public static final OfLong __pad5$layout() { - return __pad5$LAYOUT; - } + public static final OfLong __pad5$layout() { return __pad5$LAYOUT; } private static final long __pad5$OFFSET = 184; @@ -1291,9 +1227,7 @@ public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue) * size_t __pad5 * } */ - public static final long __pad5$offset() { - return __pad5$OFFSET; - } + public static final long __pad5$offset() { return __pad5$OFFSET; } /** * Getter for field: @@ -1301,9 +1235,7 @@ public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue) * size_t __pad5 * } */ - public static long __pad5(MemorySegment struct) { - return struct.get(__pad5$LAYOUT, __pad5$OFFSET); - } + public static long __pad5(MemorySegment struct) { return struct.get(__pad5$LAYOUT, __pad5$OFFSET); } /** * Setter for field: @@ -1311,7 +1243,8 @@ public static long __pad5(MemorySegment struct) { * size_t __pad5 * } */ - public static void __pad5(MemorySegment struct, long fieldValue) { + public static void __pad5(MemorySegment struct, long fieldValue) + { struct.set(__pad5$LAYOUT, __pad5$OFFSET, fieldValue); } @@ -1323,9 +1256,7 @@ public static void __pad5(MemorySegment struct, long fieldValue) { * int _mode * } */ - public static final OfInt _mode$layout() { - return _mode$LAYOUT; - } + public static final OfInt _mode$layout() { return _mode$LAYOUT; } private static final long _mode$OFFSET = 192; @@ -1335,9 +1266,7 @@ public static void __pad5(MemorySegment struct, long fieldValue) { * int _mode * } */ - public static final long _mode$offset() { - return _mode$OFFSET; - } + public static final long _mode$offset() { return _mode$OFFSET; } /** * Getter for field: @@ -1345,9 +1274,7 @@ public static void __pad5(MemorySegment struct, long fieldValue) { * int _mode * } */ - public static int _mode(MemorySegment struct) { - return struct.get(_mode$LAYOUT, _mode$OFFSET); - } + public static int _mode(MemorySegment struct) { return struct.get(_mode$LAYOUT, _mode$OFFSET); } /** * Setter for field: @@ -1355,11 +1282,13 @@ public static int _mode(MemorySegment struct) { * int _mode * } */ - public static void _mode(MemorySegment struct, int fieldValue) { + public static void _mode(MemorySegment struct, int fieldValue) + { struct.set(_mode$LAYOUT, _mode$OFFSET, fieldValue); } - private static final SequenceLayout _unused2$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("_unused2")); + private static final SequenceLayout _unused2$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("_unused2")); /** * Layout for field: @@ -1367,9 +1296,7 @@ public static void _mode(MemorySegment struct, int fieldValue) { * char _unused2[20] * } */ - public static final SequenceLayout _unused2$layout() { - return _unused2$LAYOUT; - } + public static final SequenceLayout _unused2$layout() { return _unused2$LAYOUT; } private static final long _unused2$OFFSET = 196; @@ -1379,9 +1306,7 @@ public static void _mode(MemorySegment struct, int fieldValue) { * char _unused2[20] * } */ - public static final long _unused2$offset() { - return _unused2$OFFSET; - } + public static final long _unused2$offset() { return _unused2$OFFSET; } /** * Getter for field: @@ -1389,7 +1314,8 @@ public static void _mode(MemorySegment struct, int fieldValue) { * char _unused2[20] * } */ - public static MemorySegment _unused2(MemorySegment struct) { + public static MemorySegment _unused2(MemorySegment struct) + { return struct.asSlice(_unused2$OFFSET, _unused2$LAYOUT.byteSize()); } @@ -1399,11 +1325,12 @@ public static MemorySegment _unused2(MemorySegment struct) { * char _unused2[20] * } */ - public static void _unused2(MemorySegment struct, MemorySegment fieldValue) { + public static void _unused2(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, _unused2$OFFSET, _unused2$LAYOUT.byteSize()); } - private static long[] _unused2$DIMS = { 20 }; + private static long[] _unused2$DIMS = {20}; /** * Dimensions for array field: @@ -1411,9 +1338,7 @@ public static void _unused2(MemorySegment struct, MemorySegment fieldValue) { * char _unused2[20] * } */ - public static long[] _unused2$dimensions() { - return _unused2$DIMS; - } + public static long[] _unused2$dimensions() { return _unused2$DIMS; } private static final VarHandle _unused2$ELEM_HANDLE = _unused2$LAYOUT.varHandle(sequenceElement()); /** @@ -1422,7 +1347,8 @@ public static void _unused2(MemorySegment struct, MemorySegment fieldValue) { * char _unused2[20] * } */ - public static byte _unused2(MemorySegment struct, long index0) { + public static byte _unused2(MemorySegment struct, long index0) + { return (byte)_unused2$ELEM_HANDLE.get(struct, 0L, index0); } @@ -1432,7 +1358,8 @@ public static byte _unused2(MemorySegment struct, long index0) { * char _unused2[20] * } */ - public static void _unused2(MemorySegment struct, long index0, byte fieldValue) { + public static void _unused2(MemorySegment struct, long index0, byte fieldValue) + { _unused2$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -1440,7 +1367,8 @@ public static void _unused2(MemorySegment struct, long index0, byte 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -1452,15 +1380,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -1468,7 +1395,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -1476,8 +1404,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/_IO_cookie_io_functions_t.java b/java/jsrc/org/hdfgroup/javahdf5/_IO_cookie_io_functions_t.java index 38440076f1c..92302235b41 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/_IO_cookie_io_functions_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/_IO_cookie_io_functions_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 _IO_cookie_io_functions_t { @@ -24,23 +24,21 @@ */ public class _IO_cookie_io_functions_t { - _IO_cookie_io_functions_t() { + _IO_cookie_io_functions_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("read"), - hdf5_h.C_POINTER.withName("write"), - hdf5_h.C_POINTER.withName("seek"), - hdf5_h.C_POINTER.withName("close") - ).withName("_IO_cookie_io_functions_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_POINTER.withName("read"), hdf5_h.C_POINTER.withName("write"), + hdf5_h.C_POINTER.withName("seek"), hdf5_h.C_POINTER.withName("close")) + .withName("_IO_cookie_io_functions_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout read$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("read")); @@ -50,9 +48,7 @@ public static final GroupLayout layout() { * cookie_read_function_t *read * } */ - public static final AddressLayout read$layout() { - return read$LAYOUT; - } + public static final AddressLayout read$layout() { return read$LAYOUT; } private static final long read$OFFSET = 0; @@ -62,9 +58,7 @@ public static final GroupLayout layout() { * cookie_read_function_t *read * } */ - public static final long read$offset() { - return read$OFFSET; - } + public static final long read$offset() { return read$OFFSET; } /** * Getter for field: @@ -72,9 +66,7 @@ public static final GroupLayout layout() { * cookie_read_function_t *read * } */ - public static MemorySegment read(MemorySegment struct) { - return struct.get(read$LAYOUT, read$OFFSET); - } + public static MemorySegment read(MemorySegment struct) { return struct.get(read$LAYOUT, read$OFFSET); } /** * Setter for field: @@ -82,7 +74,8 @@ public static MemorySegment read(MemorySegment struct) { * cookie_read_function_t *read * } */ - public static void read(MemorySegment struct, MemorySegment fieldValue) { + public static void read(MemorySegment struct, MemorySegment fieldValue) + { struct.set(read$LAYOUT, read$OFFSET, fieldValue); } @@ -94,9 +87,7 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { * cookie_write_function_t *write * } */ - public static final AddressLayout write$layout() { - return write$LAYOUT; - } + public static final AddressLayout write$layout() { return write$LAYOUT; } private static final long write$OFFSET = 8; @@ -106,9 +97,7 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { * cookie_write_function_t *write * } */ - public static final long write$offset() { - return write$OFFSET; - } + public static final long write$offset() { return write$OFFSET; } /** * Getter for field: @@ -116,9 +105,7 @@ public static void read(MemorySegment struct, MemorySegment fieldValue) { * cookie_write_function_t *write * } */ - public static MemorySegment write(MemorySegment struct) { - return struct.get(write$LAYOUT, write$OFFSET); - } + public static MemorySegment write(MemorySegment struct) { return struct.get(write$LAYOUT, write$OFFSET); } /** * Setter for field: @@ -126,7 +113,8 @@ public static MemorySegment write(MemorySegment struct) { * cookie_write_function_t *write * } */ - public static void write(MemorySegment struct, MemorySegment fieldValue) { + public static void write(MemorySegment struct, MemorySegment fieldValue) + { struct.set(write$LAYOUT, write$OFFSET, fieldValue); } @@ -138,9 +126,7 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { * cookie_seek_function_t *seek * } */ - public static final AddressLayout seek$layout() { - return seek$LAYOUT; - } + public static final AddressLayout seek$layout() { return seek$LAYOUT; } private static final long seek$OFFSET = 16; @@ -150,9 +136,7 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { * cookie_seek_function_t *seek * } */ - public static final long seek$offset() { - return seek$OFFSET; - } + public static final long seek$offset() { return seek$OFFSET; } /** * Getter for field: @@ -160,9 +144,7 @@ public static void write(MemorySegment struct, MemorySegment fieldValue) { * cookie_seek_function_t *seek * } */ - public static MemorySegment seek(MemorySegment struct) { - return struct.get(seek$LAYOUT, seek$OFFSET); - } + public static MemorySegment seek(MemorySegment struct) { return struct.get(seek$LAYOUT, seek$OFFSET); } /** * Setter for field: @@ -170,7 +152,8 @@ public static MemorySegment seek(MemorySegment struct) { * cookie_seek_function_t *seek * } */ - public static void seek(MemorySegment struct, MemorySegment fieldValue) { + public static void seek(MemorySegment struct, MemorySegment fieldValue) + { struct.set(seek$LAYOUT, seek$OFFSET, fieldValue); } @@ -182,9 +165,7 @@ public static void seek(MemorySegment struct, MemorySegment fieldValue) { * cookie_close_function_t *close * } */ - public static final AddressLayout close$layout() { - return close$LAYOUT; - } + public static final AddressLayout close$layout() { return close$LAYOUT; } private static final long close$OFFSET = 24; @@ -194,9 +175,7 @@ public static void seek(MemorySegment struct, MemorySegment fieldValue) { * cookie_close_function_t *close * } */ - public static final long close$offset() { - return close$OFFSET; - } + public static final long close$offset() { return close$OFFSET; } /** * Getter for field: @@ -204,9 +183,7 @@ public static void seek(MemorySegment struct, MemorySegment fieldValue) { * cookie_close_function_t *close * } */ - public static MemorySegment close(MemorySegment struct) { - return struct.get(close$LAYOUT, close$OFFSET); - } + public static MemorySegment close(MemorySegment struct) { return struct.get(close$LAYOUT, close$OFFSET); } /** * Setter for field: @@ -214,7 +191,8 @@ public static MemorySegment close(MemorySegment struct) { * cookie_close_function_t *close * } */ - public static void close(MemorySegment struct, MemorySegment fieldValue) { + public static void close(MemorySegment struct, MemorySegment fieldValue) + { struct.set(close$LAYOUT, close$OFFSET, fieldValue); } @@ -222,7 +200,8 @@ public static void close(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -234,15 +213,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -250,7 +228,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -258,8 +237,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__FILE.java b/java/jsrc/org/hdfgroup/javahdf5/__FILE.java index 5246c18f22a..cff5aca23a1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__FILE.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__FILE.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct _IO_FILE { @@ -49,8 +49,8 @@ */ public class __FILE extends _IO_FILE { - __FILE() { + __FILE() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__atomic_wide_counter.java b/java/jsrc/org/hdfgroup/javahdf5/__atomic_wide_counter.java index db6b44e1ce1..767592aa5f3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__atomic_wide_counter.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__atomic_wide_counter.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -25,21 +25,21 @@ */ public class __atomic_wide_counter { - __atomic_wide_counter() { + __atomic_wide_counter() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - hdf5_h.C_LONG_LONG.withName("__value64"), - __atomic_wide_counter.__value32.layout().withName("__value32") - ).withName("$anon$25:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(hdf5_h.C_LONG_LONG.withName("__value64"), + __atomic_wide_counter.__value32.layout().withName("__value32")) + .withName("$anon$25:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong __value64$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__value64")); @@ -49,9 +49,7 @@ public static final GroupLayout layout() { * unsigned long long __value64 * } */ - public static final OfLong __value64$layout() { - return __value64$LAYOUT; - } + public static final OfLong __value64$layout() { return __value64$LAYOUT; } private static final long __value64$OFFSET = 0; @@ -61,9 +59,7 @@ public static final GroupLayout layout() { * unsigned long long __value64 * } */ - public static final long __value64$offset() { - return __value64$OFFSET; - } + public static final long __value64$offset() { return __value64$OFFSET; } /** * Getter for field: @@ -71,7 +67,8 @@ public static final GroupLayout layout() { * unsigned long long __value64 * } */ - public static long __value64(MemorySegment union) { + public static long __value64(MemorySegment union) + { return union.get(__value64$LAYOUT, __value64$OFFSET); } @@ -81,7 +78,8 @@ public static long __value64(MemorySegment union) { * unsigned long long __value64 * } */ - public static void __value64(MemorySegment union, long fieldValue) { + public static void __value64(MemorySegment union, long fieldValue) + { union.set(__value64$LAYOUT, __value64$OFFSET, fieldValue); } @@ -95,21 +93,19 @@ public static void __value64(MemorySegment union, long fieldValue) { */ public static class __value32 { - __value32() { + __value32() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("__low"), - hdf5_h.C_INT.withName("__high") - ).withName("$anon$28:3"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_INT.withName("__low"), hdf5_h.C_INT.withName("__high")) + .withName("$anon$28:3"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __low$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__low")); @@ -119,9 +115,7 @@ public static final GroupLayout layout() { * unsigned int __low * } */ - public static final OfInt __low$layout() { - return __low$LAYOUT; - } + public static final OfInt __low$layout() { return __low$LAYOUT; } private static final long __low$OFFSET = 0; @@ -131,9 +125,7 @@ public static final GroupLayout layout() { * unsigned int __low * } */ - public static final long __low$offset() { - return __low$OFFSET; - } + public static final long __low$offset() { return __low$OFFSET; } /** * Getter for field: @@ -141,9 +133,7 @@ public static final GroupLayout layout() { * unsigned int __low * } */ - public static int __low(MemorySegment struct) { - return struct.get(__low$LAYOUT, __low$OFFSET); - } + public static int __low(MemorySegment struct) { return struct.get(__low$LAYOUT, __low$OFFSET); } /** * Setter for field: @@ -151,7 +141,8 @@ public static int __low(MemorySegment struct) { * unsigned int __low * } */ - public static void __low(MemorySegment struct, int fieldValue) { + public static void __low(MemorySegment struct, int fieldValue) + { struct.set(__low$LAYOUT, __low$OFFSET, fieldValue); } @@ -163,9 +154,7 @@ public static void __low(MemorySegment struct, int fieldValue) { * unsigned int __high * } */ - public static final OfInt __high$layout() { - return __high$LAYOUT; - } + public static final OfInt __high$layout() { return __high$LAYOUT; } private static final long __high$OFFSET = 4; @@ -175,9 +164,7 @@ public static void __low(MemorySegment struct, int fieldValue) { * unsigned int __high * } */ - public static final long __high$offset() { - return __high$OFFSET; - } + public static final long __high$offset() { return __high$OFFSET; } /** * Getter for field: @@ -185,9 +172,7 @@ public static void __low(MemorySegment struct, int fieldValue) { * unsigned int __high * } */ - public static int __high(MemorySegment struct) { - return struct.get(__high$LAYOUT, __high$OFFSET); - } + public static int __high(MemorySegment struct) { return struct.get(__high$LAYOUT, __high$OFFSET); } /** * Setter for field: @@ -195,7 +180,8 @@ public static int __high(MemorySegment struct) { * unsigned int __high * } */ - public static void __high(MemorySegment struct, int fieldValue) { + public static void __high(MemorySegment struct, int fieldValue) + { struct.set(__high$LAYOUT, __high$OFFSET, fieldValue); } @@ -203,7 +189,8 @@ public static void __high(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -215,7 +202,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -223,7 +211,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -231,7 +220,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -239,12 +230,15 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - private static final GroupLayout __value32$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__value32")); + private static final GroupLayout __value32$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("__value32")); /** * Layout for field: @@ -255,9 +249,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value32 * } */ - public static final GroupLayout __value32$layout() { - return __value32$LAYOUT; - } + public static final GroupLayout __value32$layout() { return __value32$LAYOUT; } private static final long __value32$OFFSET = 0; @@ -270,9 +262,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value32 * } */ - public static final long __value32$offset() { - return __value32$OFFSET; - } + public static final long __value32$offset() { return __value32$OFFSET; } /** * Getter for field: @@ -283,7 +273,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value32 * } */ - public static MemorySegment __value32(MemorySegment union) { + public static MemorySegment __value32(MemorySegment union) + { return union.asSlice(__value32$OFFSET, __value32$LAYOUT.byteSize()); } @@ -296,7 +287,8 @@ public static MemorySegment __value32(MemorySegment union) { * } __value32 * } */ - public static void __value32(MemorySegment union, MemorySegment fieldValue) { + public static void __value32(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __value32$OFFSET, __value32$LAYOUT.byteSize()); } @@ -304,7 +296,8 @@ public static void __value32(MemorySegment union, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -316,15 +309,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -332,7 +324,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -340,8 +333,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__fpos64_t.java b/java/jsrc/org/hdfgroup/javahdf5/__fpos64_t.java index 19fb22815c3..5480ac45cc9 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__fpos64_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__fpos64_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct _G_fpos64_t { @@ -22,8 +22,8 @@ */ public class __fpos64_t extends _G_fpos64_t { - __fpos64_t() { + __fpos64_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__fpos_t.java b/java/jsrc/org/hdfgroup/javahdf5/__fpos_t.java index 22c360b2c60..4608aec79d5 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__fpos_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__fpos_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct _G_fpos_t { @@ -22,8 +22,8 @@ */ public class __fpos_t extends _G_fpos_t { - __fpos_t() { + __fpos_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__fsid_t.java b/java/jsrc/org/hdfgroup/javahdf5/__fsid_t.java index 1ccb4be5835..fc0c95c7ff3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__fsid_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__fsid_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -21,20 +21,19 @@ */ public class __fsid_t { - __fsid_t() { + __fsid_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__val") - ).withName("$anon$155:12"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__val")) + .withName("$anon$155:12"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final SequenceLayout __val$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__val")); @@ -44,9 +43,7 @@ public static final GroupLayout layout() { * int __val[2] * } */ - public static final SequenceLayout __val$layout() { - return __val$LAYOUT; - } + public static final SequenceLayout __val$layout() { return __val$LAYOUT; } private static final long __val$OFFSET = 0; @@ -56,9 +53,7 @@ public static final GroupLayout layout() { * int __val[2] * } */ - public static final long __val$offset() { - return __val$OFFSET; - } + public static final long __val$offset() { return __val$OFFSET; } /** * Getter for field: @@ -66,7 +61,8 @@ public static final GroupLayout layout() { * int __val[2] * } */ - public static MemorySegment __val(MemorySegment struct) { + public static MemorySegment __val(MemorySegment struct) + { return struct.asSlice(__val$OFFSET, __val$LAYOUT.byteSize()); } @@ -76,11 +72,12 @@ public static MemorySegment __val(MemorySegment struct) { * int __val[2] * } */ - public static void __val(MemorySegment struct, MemorySegment fieldValue) { + public static void __val(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __val$OFFSET, __val$LAYOUT.byteSize()); } - private static long[] __val$DIMS = { 2 }; + private static long[] __val$DIMS = {2}; /** * Dimensions for array field: @@ -88,9 +85,7 @@ public static void __val(MemorySegment struct, MemorySegment fieldValue) { * int __val[2] * } */ - public static long[] __val$dimensions() { - return __val$DIMS; - } + public static long[] __val$dimensions() { return __val$DIMS; } private static final VarHandle __val$ELEM_HANDLE = __val$LAYOUT.varHandle(sequenceElement()); /** @@ -99,7 +94,8 @@ public static void __val(MemorySegment struct, MemorySegment fieldValue) { * int __val[2] * } */ - public static int __val(MemorySegment struct, long index0) { + public static int __val(MemorySegment struct, long index0) + { return (int)__val$ELEM_HANDLE.get(struct, 0L, index0); } @@ -109,7 +105,8 @@ public static int __val(MemorySegment struct, long index0) { * int __val[2] * } */ - public static void __val(MemorySegment struct, long index0, int fieldValue) { + public static void __val(MemorySegment struct, long index0, int fieldValue) + { __val$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -117,7 +114,8 @@ public static void __val(MemorySegment struct, long index0, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -129,15 +127,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -145,7 +142,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -153,8 +151,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__mbstate_t.java b/java/jsrc/org/hdfgroup/javahdf5/__mbstate_t.java index a443dac24f8..b225a8bc704 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__mbstate_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__mbstate_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -25,21 +25,20 @@ */ public class __mbstate_t { - __mbstate_t() { + __mbstate_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("__count"), - __mbstate_t.__value.layout().withName("__value") - ).withName("$anon$13:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("__count"), __mbstate_t.__value.layout().withName("__value")) + .withName("$anon$13:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __count$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__count")); @@ -49,9 +48,7 @@ public static final GroupLayout layout() { * int __count * } */ - public static final OfInt __count$layout() { - return __count$LAYOUT; - } + public static final OfInt __count$layout() { return __count$LAYOUT; } private static final long __count$OFFSET = 0; @@ -61,9 +58,7 @@ public static final GroupLayout layout() { * int __count * } */ - public static final long __count$offset() { - return __count$OFFSET; - } + public static final long __count$offset() { return __count$OFFSET; } /** * Getter for field: @@ -71,9 +66,7 @@ public static final GroupLayout layout() { * int __count * } */ - public static int __count(MemorySegment struct) { - return struct.get(__count$LAYOUT, __count$OFFSET); - } + public static int __count(MemorySegment struct) { return struct.get(__count$LAYOUT, __count$OFFSET); } /** * Setter for field: @@ -81,7 +74,8 @@ public static int __count(MemorySegment struct) { * int __count * } */ - public static void __count(MemorySegment struct, int fieldValue) { + public static void __count(MemorySegment struct, int fieldValue) + { struct.set(__count$LAYOUT, __count$OFFSET, fieldValue); } @@ -95,21 +89,21 @@ public static void __count(MemorySegment struct, int fieldValue) { */ public static class __value { - __value() { + __value() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - hdf5_h.C_INT.withName("__wch"), - MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__wchb") - ).withName("$anon$16:3"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(hdf5_h.C_INT.withName("__wch"), + MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__wchb")) + .withName("$anon$16:3"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __wch$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__wch")); @@ -119,9 +113,7 @@ public static final GroupLayout layout() { * unsigned int __wch * } */ - public static final OfInt __wch$layout() { - return __wch$LAYOUT; - } + public static final OfInt __wch$layout() { return __wch$LAYOUT; } private static final long __wch$OFFSET = 0; @@ -131,9 +123,7 @@ public static final GroupLayout layout() { * unsigned int __wch * } */ - public static final long __wch$offset() { - return __wch$OFFSET; - } + public static final long __wch$offset() { return __wch$OFFSET; } /** * Getter for field: @@ -141,9 +131,7 @@ public static final GroupLayout layout() { * unsigned int __wch * } */ - public static int __wch(MemorySegment union) { - return union.get(__wch$LAYOUT, __wch$OFFSET); - } + public static int __wch(MemorySegment union) { return union.get(__wch$LAYOUT, __wch$OFFSET); } /** * Setter for field: @@ -151,11 +139,13 @@ public static int __wch(MemorySegment union) { * unsigned int __wch * } */ - public static void __wch(MemorySegment union, int fieldValue) { + public static void __wch(MemorySegment union, int fieldValue) + { union.set(__wch$LAYOUT, __wch$OFFSET, fieldValue); } - private static final SequenceLayout __wchb$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__wchb")); + private static final SequenceLayout __wchb$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__wchb")); /** * Layout for field: @@ -163,9 +153,7 @@ public static void __wch(MemorySegment union, int fieldValue) { * char __wchb[4] * } */ - public static final SequenceLayout __wchb$layout() { - return __wchb$LAYOUT; - } + public static final SequenceLayout __wchb$layout() { return __wchb$LAYOUT; } private static final long __wchb$OFFSET = 0; @@ -175,9 +163,7 @@ public static void __wch(MemorySegment union, int fieldValue) { * char __wchb[4] * } */ - public static final long __wchb$offset() { - return __wchb$OFFSET; - } + public static final long __wchb$offset() { return __wchb$OFFSET; } /** * Getter for field: @@ -185,7 +171,8 @@ public static void __wch(MemorySegment union, int fieldValue) { * char __wchb[4] * } */ - public static MemorySegment __wchb(MemorySegment union) { + public static MemorySegment __wchb(MemorySegment union) + { return union.asSlice(__wchb$OFFSET, __wchb$LAYOUT.byteSize()); } @@ -195,11 +182,12 @@ public static MemorySegment __wchb(MemorySegment union) { * char __wchb[4] * } */ - public static void __wchb(MemorySegment union, MemorySegment fieldValue) { + public static void __wchb(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __wchb$OFFSET, __wchb$LAYOUT.byteSize()); } - private static long[] __wchb$DIMS = { 4 }; + private static long[] __wchb$DIMS = {4}; /** * Dimensions for array field: @@ -207,9 +195,7 @@ public static void __wchb(MemorySegment union, MemorySegment fieldValue) { * char __wchb[4] * } */ - public static long[] __wchb$dimensions() { - return __wchb$DIMS; - } + public static long[] __wchb$dimensions() { return __wchb$DIMS; } private static final VarHandle __wchb$ELEM_HANDLE = __wchb$LAYOUT.varHandle(sequenceElement()); /** @@ -218,7 +204,8 @@ public static void __wchb(MemorySegment union, MemorySegment fieldValue) { * char __wchb[4] * } */ - public static byte __wchb(MemorySegment union, long index0) { + public static byte __wchb(MemorySegment union, long index0) + { return (byte)__wchb$ELEM_HANDLE.get(union, 0L, index0); } @@ -228,7 +215,8 @@ public static byte __wchb(MemorySegment union, long index0) { * char __wchb[4] * } */ - public static void __wchb(MemorySegment union, long index0, byte fieldValue) { + public static void __wchb(MemorySegment union, long index0, byte fieldValue) + { __wchb$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -236,7 +224,8 @@ public static void __wchb(MemorySegment union, long index0, byte 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -248,7 +237,8 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { + public static MemorySegment allocate(SegmentAllocator allocator) + { return allocator.allocate(layout()); } @@ -256,7 +246,8 @@ public static MemorySegment allocate(SegmentAllocator allocator) { * 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -264,7 +255,9 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, + Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -272,7 +265,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } @@ -288,9 +283,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value * } */ - public static final GroupLayout __value$layout() { - return __value$LAYOUT; - } + public static final GroupLayout __value$layout() { return __value$LAYOUT; } private static final long __value$OFFSET = 4; @@ -303,9 +296,7 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value * } */ - public static final long __value$offset() { - return __value$OFFSET; - } + public static final long __value$offset() { return __value$OFFSET; } /** * Getter for field: @@ -316,7 +307,8 @@ public static MemorySegment reinterpret(MemorySegment addr, long elementCount, A * } __value * } */ - public static MemorySegment __value(MemorySegment struct) { + public static MemorySegment __value(MemorySegment struct) + { return struct.asSlice(__value$OFFSET, __value$LAYOUT.byteSize()); } @@ -329,7 +321,8 @@ public static MemorySegment __value(MemorySegment struct) { * } __value * } */ - public static void __value(MemorySegment struct, MemorySegment fieldValue) { + public static void __value(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __value$OFFSET, __value$LAYOUT.byteSize()); } @@ -337,7 +330,8 @@ public static void __value(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -349,15 +343,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -365,7 +358,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -373,8 +367,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__once_flag.java b/java/jsrc/org/hdfgroup/javahdf5/__once_flag.java index a52ef0a7883..abfb029f563 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__once_flag.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__once_flag.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -21,20 +21,18 @@ */ public class __once_flag { - __once_flag() { + __once_flag() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("__data") - ).withName("$anon$108:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_INT.withName("__data")).withName("$anon$108:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __data$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__data")); @@ -44,9 +42,7 @@ public static final GroupLayout layout() { * int __data * } */ - public static final OfInt __data$layout() { - return __data$LAYOUT; - } + public static final OfInt __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -56,9 +52,7 @@ public static final GroupLayout layout() { * int __data * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -66,9 +60,7 @@ public static final GroupLayout layout() { * int __data * } */ - public static int __data(MemorySegment struct) { - return struct.get(__data$LAYOUT, __data$OFFSET); - } + public static int __data(MemorySegment struct) { return struct.get(__data$LAYOUT, __data$OFFSET); } /** * Setter for field: @@ -76,7 +68,8 @@ public static int __data(MemorySegment struct) { * int __data * } */ - public static void __data(MemorySegment struct, int fieldValue) { + public static void __data(MemorySegment struct, int fieldValue) + { struct.set(__data$LAYOUT, __data$OFFSET, fieldValue); } @@ -84,7 +77,8 @@ public static void __data(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -96,15 +90,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -112,7 +105,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -120,8 +114,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_cond_s.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_cond_s.java index 16dea883ae8..772231b868e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_cond_s.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_cond_s.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 __pthread_cond_s { @@ -27,26 +27,25 @@ */ public class __pthread_cond_s { - __pthread_cond_s() { + __pthread_cond_s() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - __atomic_wide_counter.layout().withName("__wseq"), - __atomic_wide_counter.layout().withName("__g1_start"), - MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_refs"), - MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_size"), - hdf5_h.C_INT.withName("__g1_orig_size"), - hdf5_h.C_INT.withName("__wrefs"), - MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_signals") - ).withName("__pthread_cond_s"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(__atomic_wide_counter.layout().withName("__wseq"), + __atomic_wide_counter.layout().withName("__g1_start"), + MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_refs"), + MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_size"), + hdf5_h.C_INT.withName("__g1_orig_size"), hdf5_h.C_INT.withName("__wrefs"), + MemoryLayout.sequenceLayout(2, hdf5_h.C_INT).withName("__g_signals")) + .withName("__pthread_cond_s"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout __wseq$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__wseq")); @@ -56,9 +55,7 @@ public static final GroupLayout layout() { * __atomic_wide_counter __wseq * } */ - public static final GroupLayout __wseq$layout() { - return __wseq$LAYOUT; - } + public static final GroupLayout __wseq$layout() { return __wseq$LAYOUT; } private static final long __wseq$OFFSET = 0; @@ -68,9 +65,7 @@ public static final GroupLayout layout() { * __atomic_wide_counter __wseq * } */ - public static final long __wseq$offset() { - return __wseq$OFFSET; - } + public static final long __wseq$offset() { return __wseq$OFFSET; } /** * Getter for field: @@ -78,7 +73,8 @@ public static final GroupLayout layout() { * __atomic_wide_counter __wseq * } */ - public static MemorySegment __wseq(MemorySegment struct) { + public static MemorySegment __wseq(MemorySegment struct) + { return struct.asSlice(__wseq$OFFSET, __wseq$LAYOUT.byteSize()); } @@ -88,11 +84,13 @@ public static MemorySegment __wseq(MemorySegment struct) { * __atomic_wide_counter __wseq * } */ - public static void __wseq(MemorySegment struct, MemorySegment fieldValue) { + public static void __wseq(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __wseq$OFFSET, __wseq$LAYOUT.byteSize()); } - private static final GroupLayout __g1_start$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__g1_start")); + private static final GroupLayout __g1_start$LAYOUT = + (GroupLayout)$LAYOUT.select(groupElement("__g1_start")); /** * Layout for field: @@ -100,9 +98,7 @@ public static void __wseq(MemorySegment struct, MemorySegment fieldValue) { * __atomic_wide_counter __g1_start * } */ - public static final GroupLayout __g1_start$layout() { - return __g1_start$LAYOUT; - } + public static final GroupLayout __g1_start$layout() { return __g1_start$LAYOUT; } private static final long __g1_start$OFFSET = 8; @@ -112,9 +108,7 @@ public static void __wseq(MemorySegment struct, MemorySegment fieldValue) { * __atomic_wide_counter __g1_start * } */ - public static final long __g1_start$offset() { - return __g1_start$OFFSET; - } + public static final long __g1_start$offset() { return __g1_start$OFFSET; } /** * Getter for field: @@ -122,7 +116,8 @@ public static void __wseq(MemorySegment struct, MemorySegment fieldValue) { * __atomic_wide_counter __g1_start * } */ - public static MemorySegment __g1_start(MemorySegment struct) { + public static MemorySegment __g1_start(MemorySegment struct) + { return struct.asSlice(__g1_start$OFFSET, __g1_start$LAYOUT.byteSize()); } @@ -132,11 +127,13 @@ public static MemorySegment __g1_start(MemorySegment struct) { * __atomic_wide_counter __g1_start * } */ - public static void __g1_start(MemorySegment struct, MemorySegment fieldValue) { + public static void __g1_start(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __g1_start$OFFSET, __g1_start$LAYOUT.byteSize()); } - private static final SequenceLayout __g_refs$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__g_refs")); + private static final SequenceLayout __g_refs$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__g_refs")); /** * Layout for field: @@ -144,9 +141,7 @@ public static void __g1_start(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_refs[2] * } */ - public static final SequenceLayout __g_refs$layout() { - return __g_refs$LAYOUT; - } + public static final SequenceLayout __g_refs$layout() { return __g_refs$LAYOUT; } private static final long __g_refs$OFFSET = 16; @@ -156,9 +151,7 @@ public static void __g1_start(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_refs[2] * } */ - public static final long __g_refs$offset() { - return __g_refs$OFFSET; - } + public static final long __g_refs$offset() { return __g_refs$OFFSET; } /** * Getter for field: @@ -166,7 +159,8 @@ public static void __g1_start(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_refs[2] * } */ - public static MemorySegment __g_refs(MemorySegment struct) { + public static MemorySegment __g_refs(MemorySegment struct) + { return struct.asSlice(__g_refs$OFFSET, __g_refs$LAYOUT.byteSize()); } @@ -176,11 +170,12 @@ public static MemorySegment __g_refs(MemorySegment struct) { * unsigned int __g_refs[2] * } */ - public static void __g_refs(MemorySegment struct, MemorySegment fieldValue) { + public static void __g_refs(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __g_refs$OFFSET, __g_refs$LAYOUT.byteSize()); } - private static long[] __g_refs$DIMS = { 2 }; + private static long[] __g_refs$DIMS = {2}; /** * Dimensions for array field: @@ -188,9 +183,7 @@ public static void __g_refs(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_refs[2] * } */ - public static long[] __g_refs$dimensions() { - return __g_refs$DIMS; - } + public static long[] __g_refs$dimensions() { return __g_refs$DIMS; } private static final VarHandle __g_refs$ELEM_HANDLE = __g_refs$LAYOUT.varHandle(sequenceElement()); /** @@ -199,7 +192,8 @@ public static void __g_refs(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_refs[2] * } */ - public static int __g_refs(MemorySegment struct, long index0) { + public static int __g_refs(MemorySegment struct, long index0) + { return (int)__g_refs$ELEM_HANDLE.get(struct, 0L, index0); } @@ -209,11 +203,13 @@ public static int __g_refs(MemorySegment struct, long index0) { * unsigned int __g_refs[2] * } */ - public static void __g_refs(MemorySegment struct, long index0, int fieldValue) { + public static void __g_refs(MemorySegment struct, long index0, int fieldValue) + { __g_refs$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } - private static final SequenceLayout __g_size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__g_size")); + private static final SequenceLayout __g_size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__g_size")); /** * Layout for field: @@ -221,9 +217,7 @@ public static void __g_refs(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g_size[2] * } */ - public static final SequenceLayout __g_size$layout() { - return __g_size$LAYOUT; - } + public static final SequenceLayout __g_size$layout() { return __g_size$LAYOUT; } private static final long __g_size$OFFSET = 24; @@ -233,9 +227,7 @@ public static void __g_refs(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g_size[2] * } */ - public static final long __g_size$offset() { - return __g_size$OFFSET; - } + public static final long __g_size$offset() { return __g_size$OFFSET; } /** * Getter for field: @@ -243,7 +235,8 @@ public static void __g_refs(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g_size[2] * } */ - public static MemorySegment __g_size(MemorySegment struct) { + public static MemorySegment __g_size(MemorySegment struct) + { return struct.asSlice(__g_size$OFFSET, __g_size$LAYOUT.byteSize()); } @@ -253,11 +246,12 @@ public static MemorySegment __g_size(MemorySegment struct) { * unsigned int __g_size[2] * } */ - public static void __g_size(MemorySegment struct, MemorySegment fieldValue) { + public static void __g_size(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __g_size$OFFSET, __g_size$LAYOUT.byteSize()); } - private static long[] __g_size$DIMS = { 2 }; + private static long[] __g_size$DIMS = {2}; /** * Dimensions for array field: @@ -265,9 +259,7 @@ public static void __g_size(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_size[2] * } */ - public static long[] __g_size$dimensions() { - return __g_size$DIMS; - } + public static long[] __g_size$dimensions() { return __g_size$DIMS; } private static final VarHandle __g_size$ELEM_HANDLE = __g_size$LAYOUT.varHandle(sequenceElement()); /** @@ -276,7 +268,8 @@ public static void __g_size(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_size[2] * } */ - public static int __g_size(MemorySegment struct, long index0) { + public static int __g_size(MemorySegment struct, long index0) + { return (int)__g_size$ELEM_HANDLE.get(struct, 0L, index0); } @@ -286,7 +279,8 @@ public static int __g_size(MemorySegment struct, long index0) { * unsigned int __g_size[2] * } */ - public static void __g_size(MemorySegment struct, long index0, int fieldValue) { + public static void __g_size(MemorySegment struct, long index0, int fieldValue) + { __g_size$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -298,9 +292,7 @@ public static void __g_size(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g1_orig_size * } */ - public static final OfInt __g1_orig_size$layout() { - return __g1_orig_size$LAYOUT; - } + public static final OfInt __g1_orig_size$layout() { return __g1_orig_size$LAYOUT; } private static final long __g1_orig_size$OFFSET = 32; @@ -310,9 +302,7 @@ public static void __g_size(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g1_orig_size * } */ - public static final long __g1_orig_size$offset() { - return __g1_orig_size$OFFSET; - } + public static final long __g1_orig_size$offset() { return __g1_orig_size$OFFSET; } /** * Getter for field: @@ -320,7 +310,8 @@ public static void __g_size(MemorySegment struct, long index0, int fieldValue) { * unsigned int __g1_orig_size * } */ - public static int __g1_orig_size(MemorySegment struct) { + public static int __g1_orig_size(MemorySegment struct) + { return struct.get(__g1_orig_size$LAYOUT, __g1_orig_size$OFFSET); } @@ -330,7 +321,8 @@ public static int __g1_orig_size(MemorySegment struct) { * unsigned int __g1_orig_size * } */ - public static void __g1_orig_size(MemorySegment struct, int fieldValue) { + public static void __g1_orig_size(MemorySegment struct, int fieldValue) + { struct.set(__g1_orig_size$LAYOUT, __g1_orig_size$OFFSET, fieldValue); } @@ -342,9 +334,7 @@ public static void __g1_orig_size(MemorySegment struct, int fieldValue) { * unsigned int __wrefs * } */ - public static final OfInt __wrefs$layout() { - return __wrefs$LAYOUT; - } + public static final OfInt __wrefs$layout() { return __wrefs$LAYOUT; } private static final long __wrefs$OFFSET = 36; @@ -354,9 +344,7 @@ public static void __g1_orig_size(MemorySegment struct, int fieldValue) { * unsigned int __wrefs * } */ - public static final long __wrefs$offset() { - return __wrefs$OFFSET; - } + public static final long __wrefs$offset() { return __wrefs$OFFSET; } /** * Getter for field: @@ -364,9 +352,7 @@ public static void __g1_orig_size(MemorySegment struct, int fieldValue) { * unsigned int __wrefs * } */ - public static int __wrefs(MemorySegment struct) { - return struct.get(__wrefs$LAYOUT, __wrefs$OFFSET); - } + public static int __wrefs(MemorySegment struct) { return struct.get(__wrefs$LAYOUT, __wrefs$OFFSET); } /** * Setter for field: @@ -374,11 +360,13 @@ public static int __wrefs(MemorySegment struct) { * unsigned int __wrefs * } */ - public static void __wrefs(MemorySegment struct, int fieldValue) { + public static void __wrefs(MemorySegment struct, int fieldValue) + { struct.set(__wrefs$LAYOUT, __wrefs$OFFSET, fieldValue); } - private static final SequenceLayout __g_signals$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__g_signals")); + private static final SequenceLayout __g_signals$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__g_signals")); /** * Layout for field: @@ -386,9 +374,7 @@ public static void __wrefs(MemorySegment struct, int fieldValue) { * unsigned int __g_signals[2] * } */ - public static final SequenceLayout __g_signals$layout() { - return __g_signals$LAYOUT; - } + public static final SequenceLayout __g_signals$layout() { return __g_signals$LAYOUT; } private static final long __g_signals$OFFSET = 40; @@ -398,9 +384,7 @@ public static void __wrefs(MemorySegment struct, int fieldValue) { * unsigned int __g_signals[2] * } */ - public static final long __g_signals$offset() { - return __g_signals$OFFSET; - } + public static final long __g_signals$offset() { return __g_signals$OFFSET; } /** * Getter for field: @@ -408,7 +392,8 @@ public static void __wrefs(MemorySegment struct, int fieldValue) { * unsigned int __g_signals[2] * } */ - public static MemorySegment __g_signals(MemorySegment struct) { + public static MemorySegment __g_signals(MemorySegment struct) + { return struct.asSlice(__g_signals$OFFSET, __g_signals$LAYOUT.byteSize()); } @@ -418,11 +403,12 @@ public static MemorySegment __g_signals(MemorySegment struct) { * unsigned int __g_signals[2] * } */ - public static void __g_signals(MemorySegment struct, MemorySegment fieldValue) { + public static void __g_signals(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __g_signals$OFFSET, __g_signals$LAYOUT.byteSize()); } - private static long[] __g_signals$DIMS = { 2 }; + private static long[] __g_signals$DIMS = {2}; /** * Dimensions for array field: @@ -430,9 +416,7 @@ public static void __g_signals(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_signals[2] * } */ - public static long[] __g_signals$dimensions() { - return __g_signals$DIMS; - } + public static long[] __g_signals$dimensions() { return __g_signals$DIMS; } private static final VarHandle __g_signals$ELEM_HANDLE = __g_signals$LAYOUT.varHandle(sequenceElement()); /** @@ -441,7 +425,8 @@ public static void __g_signals(MemorySegment struct, MemorySegment fieldValue) { * unsigned int __g_signals[2] * } */ - public static int __g_signals(MemorySegment struct, long index0) { + public static int __g_signals(MemorySegment struct, long index0) + { return (int)__g_signals$ELEM_HANDLE.get(struct, 0L, index0); } @@ -451,7 +436,8 @@ public static int __g_signals(MemorySegment struct, long index0) { * unsigned int __g_signals[2] * } */ - public static void __g_signals(MemorySegment struct, long index0, int fieldValue) { + public static void __g_signals(MemorySegment struct, long index0, int fieldValue) + { __g_signals$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -459,7 +445,8 @@ public static void __g_signals(MemorySegment struct, long index0, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -471,15 +458,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -487,7 +473,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -495,8 +482,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_list.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_list.java index 0f755a9ff8a..85fbdef588d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_list.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_list.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 __pthread_internal_list { @@ -22,21 +22,19 @@ */ public class __pthread_internal_list { - __pthread_internal_list() { + __pthread_internal_list() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("__prev"), - hdf5_h.C_POINTER.withName("__next") - ).withName("__pthread_internal_list"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("__prev"), hdf5_h.C_POINTER.withName("__next")) + .withName("__pthread_internal_list"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout __prev$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("__prev")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * struct __pthread_internal_list *__prev * } */ - public static final AddressLayout __prev$layout() { - return __prev$LAYOUT; - } + public static final AddressLayout __prev$layout() { return __prev$LAYOUT; } private static final long __prev$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * struct __pthread_internal_list *__prev * } */ - public static final long __prev$offset() { - return __prev$OFFSET; - } + public static final long __prev$offset() { return __prev$OFFSET; } /** * Getter for field: @@ -68,7 +62,8 @@ public static final GroupLayout layout() { * struct __pthread_internal_list *__prev * } */ - public static MemorySegment __prev(MemorySegment struct) { + public static MemorySegment __prev(MemorySegment struct) + { return struct.get(__prev$LAYOUT, __prev$OFFSET); } @@ -78,7 +73,8 @@ public static MemorySegment __prev(MemorySegment struct) { * struct __pthread_internal_list *__prev * } */ - public static void __prev(MemorySegment struct, MemorySegment fieldValue) { + public static void __prev(MemorySegment struct, MemorySegment fieldValue) + { struct.set(__prev$LAYOUT, __prev$OFFSET, fieldValue); } @@ -90,9 +86,7 @@ public static void __prev(MemorySegment struct, MemorySegment fieldValue) { * struct __pthread_internal_list *__next * } */ - public static final AddressLayout __next$layout() { - return __next$LAYOUT; - } + public static final AddressLayout __next$layout() { return __next$LAYOUT; } private static final long __next$OFFSET = 8; @@ -102,9 +96,7 @@ public static void __prev(MemorySegment struct, MemorySegment fieldValue) { * struct __pthread_internal_list *__next * } */ - public static final long __next$offset() { - return __next$OFFSET; - } + public static final long __next$offset() { return __next$OFFSET; } /** * Getter for field: @@ -112,7 +104,8 @@ public static void __prev(MemorySegment struct, MemorySegment fieldValue) { * struct __pthread_internal_list *__next * } */ - public static MemorySegment __next(MemorySegment struct) { + public static MemorySegment __next(MemorySegment struct) + { return struct.get(__next$LAYOUT, __next$OFFSET); } @@ -122,7 +115,8 @@ public static MemorySegment __next(MemorySegment struct) { * struct __pthread_internal_list *__next * } */ - public static void __next(MemorySegment struct, MemorySegment fieldValue) { + public static void __next(MemorySegment struct, MemorySegment fieldValue) + { struct.set(__next$LAYOUT, __next$OFFSET, fieldValue); } @@ -130,7 +124,8 @@ public static void __next(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +137,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +152,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +161,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_slist.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_slist.java index 02edb453e12..2179bbd049b 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_slist.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_internal_slist.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 __pthread_internal_slist { @@ -21,20 +21,18 @@ */ public class __pthread_internal_slist { - __pthread_internal_slist() { + __pthread_internal_slist() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_POINTER.withName("__next") - ).withName("__pthread_internal_slist"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_POINTER.withName("__next")).withName("__pthread_internal_slist"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final AddressLayout __next$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("__next")); @@ -44,9 +42,7 @@ public static final GroupLayout layout() { * struct __pthread_internal_slist *__next * } */ - public static final AddressLayout __next$layout() { - return __next$LAYOUT; - } + public static final AddressLayout __next$layout() { return __next$LAYOUT; } private static final long __next$OFFSET = 0; @@ -56,9 +52,7 @@ public static final GroupLayout layout() { * struct __pthread_internal_slist *__next * } */ - public static final long __next$offset() { - return __next$OFFSET; - } + public static final long __next$offset() { return __next$OFFSET; } /** * Getter for field: @@ -66,7 +60,8 @@ public static final GroupLayout layout() { * struct __pthread_internal_slist *__next * } */ - public static MemorySegment __next(MemorySegment struct) { + public static MemorySegment __next(MemorySegment struct) + { return struct.get(__next$LAYOUT, __next$OFFSET); } @@ -76,7 +71,8 @@ public static MemorySegment __next(MemorySegment struct) { * struct __pthread_internal_slist *__next * } */ - public static void __next(MemorySegment struct, MemorySegment fieldValue) { + public static void __next(MemorySegment struct, MemorySegment fieldValue) + { struct.set(__next$LAYOUT, __next$OFFSET, fieldValue); } @@ -84,7 +80,8 @@ public static void __next(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -96,15 +93,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -112,7 +108,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -120,8 +117,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_list_t.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_list_t.java index 0c753cbff52..85de197b6fe 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_list_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_list_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct __pthread_internal_list { @@ -22,8 +22,8 @@ */ public class __pthread_list_t extends __pthread_internal_list { - __pthread_list_t() { + __pthread_list_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_mutex_s.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_mutex_s.java index 2098c83399d..60aae278786 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_mutex_s.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_mutex_s.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 __pthread_mutex_s { @@ -28,27 +28,24 @@ */ public class __pthread_mutex_s { - __pthread_mutex_s() { + __pthread_mutex_s() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("__lock"), - hdf5_h.C_INT.withName("__count"), - hdf5_h.C_INT.withName("__owner"), - hdf5_h.C_INT.withName("__nusers"), - hdf5_h.C_INT.withName("__kind"), - hdf5_h.C_SHORT.withName("__spins"), - hdf5_h.C_SHORT.withName("__elision"), - __pthread_internal_list.layout().withName("__list") - ).withName("__pthread_mutex_s"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("__lock"), hdf5_h.C_INT.withName("__count"), + hdf5_h.C_INT.withName("__owner"), hdf5_h.C_INT.withName("__nusers"), + hdf5_h.C_INT.withName("__kind"), hdf5_h.C_SHORT.withName("__spins"), + hdf5_h.C_SHORT.withName("__elision"), + __pthread_internal_list.layout().withName("__list")) + .withName("__pthread_mutex_s"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __lock$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__lock")); @@ -58,9 +55,7 @@ public static final GroupLayout layout() { * int __lock * } */ - public static final OfInt __lock$layout() { - return __lock$LAYOUT; - } + public static final OfInt __lock$layout() { return __lock$LAYOUT; } private static final long __lock$OFFSET = 0; @@ -70,9 +65,7 @@ public static final GroupLayout layout() { * int __lock * } */ - public static final long __lock$offset() { - return __lock$OFFSET; - } + public static final long __lock$offset() { return __lock$OFFSET; } /** * Getter for field: @@ -80,9 +73,7 @@ public static final GroupLayout layout() { * int __lock * } */ - public static int __lock(MemorySegment struct) { - return struct.get(__lock$LAYOUT, __lock$OFFSET); - } + public static int __lock(MemorySegment struct) { return struct.get(__lock$LAYOUT, __lock$OFFSET); } /** * Setter for field: @@ -90,7 +81,8 @@ public static int __lock(MemorySegment struct) { * int __lock * } */ - public static void __lock(MemorySegment struct, int fieldValue) { + public static void __lock(MemorySegment struct, int fieldValue) + { struct.set(__lock$LAYOUT, __lock$OFFSET, fieldValue); } @@ -102,9 +94,7 @@ public static void __lock(MemorySegment struct, int fieldValue) { * unsigned int __count * } */ - public static final OfInt __count$layout() { - return __count$LAYOUT; - } + public static final OfInt __count$layout() { return __count$LAYOUT; } private static final long __count$OFFSET = 4; @@ -114,9 +104,7 @@ public static void __lock(MemorySegment struct, int fieldValue) { * unsigned int __count * } */ - public static final long __count$offset() { - return __count$OFFSET; - } + public static final long __count$offset() { return __count$OFFSET; } /** * Getter for field: @@ -124,9 +112,7 @@ public static void __lock(MemorySegment struct, int fieldValue) { * unsigned int __count * } */ - public static int __count(MemorySegment struct) { - return struct.get(__count$LAYOUT, __count$OFFSET); - } + public static int __count(MemorySegment struct) { return struct.get(__count$LAYOUT, __count$OFFSET); } /** * Setter for field: @@ -134,7 +120,8 @@ public static int __count(MemorySegment struct) { * unsigned int __count * } */ - public static void __count(MemorySegment struct, int fieldValue) { + public static void __count(MemorySegment struct, int fieldValue) + { struct.set(__count$LAYOUT, __count$OFFSET, fieldValue); } @@ -146,9 +133,7 @@ public static void __count(MemorySegment struct, int fieldValue) { * int __owner * } */ - public static final OfInt __owner$layout() { - return __owner$LAYOUT; - } + public static final OfInt __owner$layout() { return __owner$LAYOUT; } private static final long __owner$OFFSET = 8; @@ -158,9 +143,7 @@ public static void __count(MemorySegment struct, int fieldValue) { * int __owner * } */ - public static final long __owner$offset() { - return __owner$OFFSET; - } + public static final long __owner$offset() { return __owner$OFFSET; } /** * Getter for field: @@ -168,9 +151,7 @@ public static void __count(MemorySegment struct, int fieldValue) { * int __owner * } */ - public static int __owner(MemorySegment struct) { - return struct.get(__owner$LAYOUT, __owner$OFFSET); - } + public static int __owner(MemorySegment struct) { return struct.get(__owner$LAYOUT, __owner$OFFSET); } /** * Setter for field: @@ -178,7 +159,8 @@ public static int __owner(MemorySegment struct) { * int __owner * } */ - public static void __owner(MemorySegment struct, int fieldValue) { + public static void __owner(MemorySegment struct, int fieldValue) + { struct.set(__owner$LAYOUT, __owner$OFFSET, fieldValue); } @@ -190,9 +172,7 @@ public static void __owner(MemorySegment struct, int fieldValue) { * unsigned int __nusers * } */ - public static final OfInt __nusers$layout() { - return __nusers$LAYOUT; - } + public static final OfInt __nusers$layout() { return __nusers$LAYOUT; } private static final long __nusers$OFFSET = 12; @@ -202,9 +182,7 @@ public static void __owner(MemorySegment struct, int fieldValue) { * unsigned int __nusers * } */ - public static final long __nusers$offset() { - return __nusers$OFFSET; - } + public static final long __nusers$offset() { return __nusers$OFFSET; } /** * Getter for field: @@ -212,9 +190,7 @@ public static void __owner(MemorySegment struct, int fieldValue) { * unsigned int __nusers * } */ - public static int __nusers(MemorySegment struct) { - return struct.get(__nusers$LAYOUT, __nusers$OFFSET); - } + public static int __nusers(MemorySegment struct) { return struct.get(__nusers$LAYOUT, __nusers$OFFSET); } /** * Setter for field: @@ -222,7 +198,8 @@ public static int __nusers(MemorySegment struct) { * unsigned int __nusers * } */ - public static void __nusers(MemorySegment struct, int fieldValue) { + public static void __nusers(MemorySegment struct, int fieldValue) + { struct.set(__nusers$LAYOUT, __nusers$OFFSET, fieldValue); } @@ -234,9 +211,7 @@ public static void __nusers(MemorySegment struct, int fieldValue) { * int __kind * } */ - public static final OfInt __kind$layout() { - return __kind$LAYOUT; - } + public static final OfInt __kind$layout() { return __kind$LAYOUT; } private static final long __kind$OFFSET = 16; @@ -246,9 +221,7 @@ public static void __nusers(MemorySegment struct, int fieldValue) { * int __kind * } */ - public static final long __kind$offset() { - return __kind$OFFSET; - } + public static final long __kind$offset() { return __kind$OFFSET; } /** * Getter for field: @@ -256,9 +229,7 @@ public static void __nusers(MemorySegment struct, int fieldValue) { * int __kind * } */ - public static int __kind(MemorySegment struct) { - return struct.get(__kind$LAYOUT, __kind$OFFSET); - } + public static int __kind(MemorySegment struct) { return struct.get(__kind$LAYOUT, __kind$OFFSET); } /** * Setter for field: @@ -266,7 +237,8 @@ public static int __kind(MemorySegment struct) { * int __kind * } */ - public static void __kind(MemorySegment struct, int fieldValue) { + public static void __kind(MemorySegment struct, int fieldValue) + { struct.set(__kind$LAYOUT, __kind$OFFSET, fieldValue); } @@ -278,9 +250,7 @@ public static void __kind(MemorySegment struct, int fieldValue) { * short __spins * } */ - public static final OfShort __spins$layout() { - return __spins$LAYOUT; - } + public static final OfShort __spins$layout() { return __spins$LAYOUT; } private static final long __spins$OFFSET = 20; @@ -290,9 +260,7 @@ public static void __kind(MemorySegment struct, int fieldValue) { * short __spins * } */ - public static final long __spins$offset() { - return __spins$OFFSET; - } + public static final long __spins$offset() { return __spins$OFFSET; } /** * Getter for field: @@ -300,9 +268,7 @@ public static void __kind(MemorySegment struct, int fieldValue) { * short __spins * } */ - public static short __spins(MemorySegment struct) { - return struct.get(__spins$LAYOUT, __spins$OFFSET); - } + public static short __spins(MemorySegment struct) { return struct.get(__spins$LAYOUT, __spins$OFFSET); } /** * Setter for field: @@ -310,7 +276,8 @@ public static short __spins(MemorySegment struct) { * short __spins * } */ - public static void __spins(MemorySegment struct, short fieldValue) { + public static void __spins(MemorySegment struct, short fieldValue) + { struct.set(__spins$LAYOUT, __spins$OFFSET, fieldValue); } @@ -322,9 +289,7 @@ public static void __spins(MemorySegment struct, short fieldValue) { * short __elision * } */ - public static final OfShort __elision$layout() { - return __elision$LAYOUT; - } + public static final OfShort __elision$layout() { return __elision$LAYOUT; } private static final long __elision$OFFSET = 22; @@ -334,9 +299,7 @@ public static void __spins(MemorySegment struct, short fieldValue) { * short __elision * } */ - public static final long __elision$offset() { - return __elision$OFFSET; - } + public static final long __elision$offset() { return __elision$OFFSET; } /** * Getter for field: @@ -344,7 +307,8 @@ public static void __spins(MemorySegment struct, short fieldValue) { * short __elision * } */ - public static short __elision(MemorySegment struct) { + public static short __elision(MemorySegment struct) + { return struct.get(__elision$LAYOUT, __elision$OFFSET); } @@ -354,7 +318,8 @@ public static short __elision(MemorySegment struct) { * short __elision * } */ - public static void __elision(MemorySegment struct, short fieldValue) { + public static void __elision(MemorySegment struct, short fieldValue) + { struct.set(__elision$LAYOUT, __elision$OFFSET, fieldValue); } @@ -366,9 +331,7 @@ public static void __elision(MemorySegment struct, short fieldValue) { * __pthread_list_t __list * } */ - public static final GroupLayout __list$layout() { - return __list$LAYOUT; - } + public static final GroupLayout __list$layout() { return __list$LAYOUT; } private static final long __list$OFFSET = 24; @@ -378,9 +341,7 @@ public static void __elision(MemorySegment struct, short fieldValue) { * __pthread_list_t __list * } */ - public static final long __list$offset() { - return __list$OFFSET; - } + public static final long __list$offset() { return __list$OFFSET; } /** * Getter for field: @@ -388,7 +349,8 @@ public static void __elision(MemorySegment struct, short fieldValue) { * __pthread_list_t __list * } */ - public static MemorySegment __list(MemorySegment struct) { + public static MemorySegment __list(MemorySegment struct) + { return struct.asSlice(__list$OFFSET, __list$LAYOUT.byteSize()); } @@ -398,7 +360,8 @@ public static MemorySegment __list(MemorySegment struct) { * __pthread_list_t __list * } */ - public static void __list(MemorySegment struct, MemorySegment fieldValue) { + public static void __list(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __list$OFFSET, __list$LAYOUT.byteSize()); } @@ -406,7 +369,8 @@ public static void __list(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -418,15 +382,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -434,7 +397,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -442,8 +406,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_rwlock_arch_t.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_rwlock_arch_t.java index bdde07adc33..48c12352ec1 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_rwlock_arch_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_rwlock_arch_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 __pthread_rwlock_arch_t { @@ -32,32 +32,27 @@ */ public class __pthread_rwlock_arch_t { - __pthread_rwlock_arch_t() { + __pthread_rwlock_arch_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_INT.withName("__readers"), - hdf5_h.C_INT.withName("__writers"), - hdf5_h.C_INT.withName("__wrphase_futex"), - hdf5_h.C_INT.withName("__writers_futex"), - hdf5_h.C_INT.withName("__pad3"), - hdf5_h.C_INT.withName("__pad4"), - hdf5_h.C_INT.withName("__cur_writer"), - hdf5_h.C_INT.withName("__shared"), - hdf5_h.C_CHAR.withName("__rwelision"), - MemoryLayout.sequenceLayout(7, hdf5_h.C_CHAR).withName("__pad1"), - hdf5_h.C_LONG.withName("__pad2"), - hdf5_h.C_INT.withName("__flags"), - MemoryLayout.paddingLayout(4) - ).withName("__pthread_rwlock_arch_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_INT.withName("__readers"), hdf5_h.C_INT.withName("__writers"), + hdf5_h.C_INT.withName("__wrphase_futex"), hdf5_h.C_INT.withName("__writers_futex"), + hdf5_h.C_INT.withName("__pad3"), hdf5_h.C_INT.withName("__pad4"), + hdf5_h.C_INT.withName("__cur_writer"), hdf5_h.C_INT.withName("__shared"), + hdf5_h.C_CHAR.withName("__rwelision"), + MemoryLayout.sequenceLayout(7, hdf5_h.C_CHAR).withName("__pad1"), + hdf5_h.C_LONG.withName("__pad2"), hdf5_h.C_INT.withName("__flags"), + MemoryLayout.paddingLayout(4)) + .withName("__pthread_rwlock_arch_t"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfInt __readers$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__readers")); @@ -67,9 +62,7 @@ public static final GroupLayout layout() { * unsigned int __readers * } */ - public static final OfInt __readers$layout() { - return __readers$LAYOUT; - } + public static final OfInt __readers$layout() { return __readers$LAYOUT; } private static final long __readers$OFFSET = 0; @@ -79,9 +72,7 @@ public static final GroupLayout layout() { * unsigned int __readers * } */ - public static final long __readers$offset() { - return __readers$OFFSET; - } + public static final long __readers$offset() { return __readers$OFFSET; } /** * Getter for field: @@ -89,7 +80,8 @@ public static final GroupLayout layout() { * unsigned int __readers * } */ - public static int __readers(MemorySegment struct) { + public static int __readers(MemorySegment struct) + { return struct.get(__readers$LAYOUT, __readers$OFFSET); } @@ -99,7 +91,8 @@ public static int __readers(MemorySegment struct) { * unsigned int __readers * } */ - public static void __readers(MemorySegment struct, int fieldValue) { + public static void __readers(MemorySegment struct, int fieldValue) + { struct.set(__readers$LAYOUT, __readers$OFFSET, fieldValue); } @@ -111,9 +104,7 @@ public static void __readers(MemorySegment struct, int fieldValue) { * unsigned int __writers * } */ - public static final OfInt __writers$layout() { - return __writers$LAYOUT; - } + public static final OfInt __writers$layout() { return __writers$LAYOUT; } private static final long __writers$OFFSET = 4; @@ -123,9 +114,7 @@ public static void __readers(MemorySegment struct, int fieldValue) { * unsigned int __writers * } */ - public static final long __writers$offset() { - return __writers$OFFSET; - } + public static final long __writers$offset() { return __writers$OFFSET; } /** * Getter for field: @@ -133,7 +122,8 @@ public static void __readers(MemorySegment struct, int fieldValue) { * unsigned int __writers * } */ - public static int __writers(MemorySegment struct) { + public static int __writers(MemorySegment struct) + { return struct.get(__writers$LAYOUT, __writers$OFFSET); } @@ -143,11 +133,13 @@ public static int __writers(MemorySegment struct) { * unsigned int __writers * } */ - public static void __writers(MemorySegment struct, int fieldValue) { + public static void __writers(MemorySegment struct, int fieldValue) + { struct.set(__writers$LAYOUT, __writers$OFFSET, fieldValue); } - private static final OfInt __wrphase_futex$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__wrphase_futex")); + private static final OfInt __wrphase_futex$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("__wrphase_futex")); /** * Layout for field: @@ -155,9 +147,7 @@ public static void __writers(MemorySegment struct, int fieldValue) { * unsigned int __wrphase_futex * } */ - public static final OfInt __wrphase_futex$layout() { - return __wrphase_futex$LAYOUT; - } + public static final OfInt __wrphase_futex$layout() { return __wrphase_futex$LAYOUT; } private static final long __wrphase_futex$OFFSET = 8; @@ -167,9 +157,7 @@ public static void __writers(MemorySegment struct, int fieldValue) { * unsigned int __wrphase_futex * } */ - public static final long __wrphase_futex$offset() { - return __wrphase_futex$OFFSET; - } + public static final long __wrphase_futex$offset() { return __wrphase_futex$OFFSET; } /** * Getter for field: @@ -177,7 +165,8 @@ public static void __writers(MemorySegment struct, int fieldValue) { * unsigned int __wrphase_futex * } */ - public static int __wrphase_futex(MemorySegment struct) { + public static int __wrphase_futex(MemorySegment struct) + { return struct.get(__wrphase_futex$LAYOUT, __wrphase_futex$OFFSET); } @@ -187,11 +176,13 @@ public static int __wrphase_futex(MemorySegment struct) { * unsigned int __wrphase_futex * } */ - public static void __wrphase_futex(MemorySegment struct, int fieldValue) { + public static void __wrphase_futex(MemorySegment struct, int fieldValue) + { struct.set(__wrphase_futex$LAYOUT, __wrphase_futex$OFFSET, fieldValue); } - private static final OfInt __writers_futex$LAYOUT = (OfInt)$LAYOUT.select(groupElement("__writers_futex")); + private static final OfInt __writers_futex$LAYOUT = + (OfInt)$LAYOUT.select(groupElement("__writers_futex")); /** * Layout for field: @@ -199,9 +190,7 @@ public static void __wrphase_futex(MemorySegment struct, int fieldValue) { * unsigned int __writers_futex * } */ - public static final OfInt __writers_futex$layout() { - return __writers_futex$LAYOUT; - } + public static final OfInt __writers_futex$layout() { return __writers_futex$LAYOUT; } private static final long __writers_futex$OFFSET = 12; @@ -211,9 +200,7 @@ public static void __wrphase_futex(MemorySegment struct, int fieldValue) { * unsigned int __writers_futex * } */ - public static final long __writers_futex$offset() { - return __writers_futex$OFFSET; - } + public static final long __writers_futex$offset() { return __writers_futex$OFFSET; } /** * Getter for field: @@ -221,7 +208,8 @@ public static void __wrphase_futex(MemorySegment struct, int fieldValue) { * unsigned int __writers_futex * } */ - public static int __writers_futex(MemorySegment struct) { + public static int __writers_futex(MemorySegment struct) + { return struct.get(__writers_futex$LAYOUT, __writers_futex$OFFSET); } @@ -231,7 +219,8 @@ public static int __writers_futex(MemorySegment struct) { * unsigned int __writers_futex * } */ - public static void __writers_futex(MemorySegment struct, int fieldValue) { + public static void __writers_futex(MemorySegment struct, int fieldValue) + { struct.set(__writers_futex$LAYOUT, __writers_futex$OFFSET, fieldValue); } @@ -243,9 +232,7 @@ public static void __writers_futex(MemorySegment struct, int fieldValue) { * unsigned int __pad3 * } */ - public static final OfInt __pad3$layout() { - return __pad3$LAYOUT; - } + public static final OfInt __pad3$layout() { return __pad3$LAYOUT; } private static final long __pad3$OFFSET = 16; @@ -255,9 +242,7 @@ public static void __writers_futex(MemorySegment struct, int fieldValue) { * unsigned int __pad3 * } */ - public static final long __pad3$offset() { - return __pad3$OFFSET; - } + public static final long __pad3$offset() { return __pad3$OFFSET; } /** * Getter for field: @@ -265,9 +250,7 @@ public static void __writers_futex(MemorySegment struct, int fieldValue) { * unsigned int __pad3 * } */ - public static int __pad3(MemorySegment struct) { - return struct.get(__pad3$LAYOUT, __pad3$OFFSET); - } + public static int __pad3(MemorySegment struct) { return struct.get(__pad3$LAYOUT, __pad3$OFFSET); } /** * Setter for field: @@ -275,7 +258,8 @@ public static int __pad3(MemorySegment struct) { * unsigned int __pad3 * } */ - public static void __pad3(MemorySegment struct, int fieldValue) { + public static void __pad3(MemorySegment struct, int fieldValue) + { struct.set(__pad3$LAYOUT, __pad3$OFFSET, fieldValue); } @@ -287,9 +271,7 @@ public static void __pad3(MemorySegment struct, int fieldValue) { * unsigned int __pad4 * } */ - public static final OfInt __pad4$layout() { - return __pad4$LAYOUT; - } + public static final OfInt __pad4$layout() { return __pad4$LAYOUT; } private static final long __pad4$OFFSET = 20; @@ -299,9 +281,7 @@ public static void __pad3(MemorySegment struct, int fieldValue) { * unsigned int __pad4 * } */ - public static final long __pad4$offset() { - return __pad4$OFFSET; - } + public static final long __pad4$offset() { return __pad4$OFFSET; } /** * Getter for field: @@ -309,9 +289,7 @@ public static void __pad3(MemorySegment struct, int fieldValue) { * unsigned int __pad4 * } */ - public static int __pad4(MemorySegment struct) { - return struct.get(__pad4$LAYOUT, __pad4$OFFSET); - } + public static int __pad4(MemorySegment struct) { return struct.get(__pad4$LAYOUT, __pad4$OFFSET); } /** * Setter for field: @@ -319,7 +297,8 @@ public static int __pad4(MemorySegment struct) { * unsigned int __pad4 * } */ - public static void __pad4(MemorySegment struct, int fieldValue) { + public static void __pad4(MemorySegment struct, int fieldValue) + { struct.set(__pad4$LAYOUT, __pad4$OFFSET, fieldValue); } @@ -331,9 +310,7 @@ public static void __pad4(MemorySegment struct, int fieldValue) { * int __cur_writer * } */ - public static final OfInt __cur_writer$layout() { - return __cur_writer$LAYOUT; - } + public static final OfInt __cur_writer$layout() { return __cur_writer$LAYOUT; } private static final long __cur_writer$OFFSET = 24; @@ -343,9 +320,7 @@ public static void __pad4(MemorySegment struct, int fieldValue) { * int __cur_writer * } */ - public static final long __cur_writer$offset() { - return __cur_writer$OFFSET; - } + public static final long __cur_writer$offset() { return __cur_writer$OFFSET; } /** * Getter for field: @@ -353,7 +328,8 @@ public static void __pad4(MemorySegment struct, int fieldValue) { * int __cur_writer * } */ - public static int __cur_writer(MemorySegment struct) { + public static int __cur_writer(MemorySegment struct) + { return struct.get(__cur_writer$LAYOUT, __cur_writer$OFFSET); } @@ -363,7 +339,8 @@ public static int __cur_writer(MemorySegment struct) { * int __cur_writer * } */ - public static void __cur_writer(MemorySegment struct, int fieldValue) { + public static void __cur_writer(MemorySegment struct, int fieldValue) + { struct.set(__cur_writer$LAYOUT, __cur_writer$OFFSET, fieldValue); } @@ -375,9 +352,7 @@ public static void __cur_writer(MemorySegment struct, int fieldValue) { * int __shared * } */ - public static final OfInt __shared$layout() { - return __shared$LAYOUT; - } + public static final OfInt __shared$layout() { return __shared$LAYOUT; } private static final long __shared$OFFSET = 28; @@ -387,9 +362,7 @@ public static void __cur_writer(MemorySegment struct, int fieldValue) { * int __shared * } */ - public static final long __shared$offset() { - return __shared$OFFSET; - } + public static final long __shared$offset() { return __shared$OFFSET; } /** * Getter for field: @@ -397,9 +370,7 @@ public static void __cur_writer(MemorySegment struct, int fieldValue) { * int __shared * } */ - public static int __shared(MemorySegment struct) { - return struct.get(__shared$LAYOUT, __shared$OFFSET); - } + public static int __shared(MemorySegment struct) { return struct.get(__shared$LAYOUT, __shared$OFFSET); } /** * Setter for field: @@ -407,7 +378,8 @@ public static int __shared(MemorySegment struct) { * int __shared * } */ - public static void __shared(MemorySegment struct, int fieldValue) { + public static void __shared(MemorySegment struct, int fieldValue) + { struct.set(__shared$LAYOUT, __shared$OFFSET, fieldValue); } @@ -419,9 +391,7 @@ public static void __shared(MemorySegment struct, int fieldValue) { * signed char __rwelision * } */ - public static final OfByte __rwelision$layout() { - return __rwelision$LAYOUT; - } + public static final OfByte __rwelision$layout() { return __rwelision$LAYOUT; } private static final long __rwelision$OFFSET = 32; @@ -431,9 +401,7 @@ public static void __shared(MemorySegment struct, int fieldValue) { * signed char __rwelision * } */ - public static final long __rwelision$offset() { - return __rwelision$OFFSET; - } + public static final long __rwelision$offset() { return __rwelision$OFFSET; } /** * Getter for field: @@ -441,7 +409,8 @@ public static void __shared(MemorySegment struct, int fieldValue) { * signed char __rwelision * } */ - public static byte __rwelision(MemorySegment struct) { + public static byte __rwelision(MemorySegment struct) + { return struct.get(__rwelision$LAYOUT, __rwelision$OFFSET); } @@ -451,11 +420,13 @@ public static byte __rwelision(MemorySegment struct) { * signed char __rwelision * } */ - public static void __rwelision(MemorySegment struct, byte fieldValue) { + public static void __rwelision(MemorySegment struct, byte fieldValue) + { struct.set(__rwelision$LAYOUT, __rwelision$OFFSET, fieldValue); } - private static final SequenceLayout __pad1$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__pad1")); + private static final SequenceLayout __pad1$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__pad1")); /** * Layout for field: @@ -463,9 +434,7 @@ public static void __rwelision(MemorySegment struct, byte fieldValue) { * unsigned char __pad1[7] * } */ - public static final SequenceLayout __pad1$layout() { - return __pad1$LAYOUT; - } + public static final SequenceLayout __pad1$layout() { return __pad1$LAYOUT; } private static final long __pad1$OFFSET = 33; @@ -475,9 +444,7 @@ public static void __rwelision(MemorySegment struct, byte fieldValue) { * unsigned char __pad1[7] * } */ - public static final long __pad1$offset() { - return __pad1$OFFSET; - } + public static final long __pad1$offset() { return __pad1$OFFSET; } /** * Getter for field: @@ -485,7 +452,8 @@ public static void __rwelision(MemorySegment struct, byte fieldValue) { * unsigned char __pad1[7] * } */ - public static MemorySegment __pad1(MemorySegment struct) { + public static MemorySegment __pad1(MemorySegment struct) + { return struct.asSlice(__pad1$OFFSET, __pad1$LAYOUT.byteSize()); } @@ -495,11 +463,12 @@ public static MemorySegment __pad1(MemorySegment struct) { * unsigned char __pad1[7] * } */ - public static void __pad1(MemorySegment struct, MemorySegment fieldValue) { + public static void __pad1(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __pad1$OFFSET, __pad1$LAYOUT.byteSize()); } - private static long[] __pad1$DIMS = { 7 }; + private static long[] __pad1$DIMS = {7}; /** * Dimensions for array field: @@ -507,9 +476,7 @@ public static void __pad1(MemorySegment struct, MemorySegment fieldValue) { * unsigned char __pad1[7] * } */ - public static long[] __pad1$dimensions() { - return __pad1$DIMS; - } + public static long[] __pad1$dimensions() { return __pad1$DIMS; } private static final VarHandle __pad1$ELEM_HANDLE = __pad1$LAYOUT.varHandle(sequenceElement()); /** @@ -518,7 +485,8 @@ public static void __pad1(MemorySegment struct, MemorySegment fieldValue) { * unsigned char __pad1[7] * } */ - public static byte __pad1(MemorySegment struct, long index0) { + public static byte __pad1(MemorySegment struct, long index0) + { return (byte)__pad1$ELEM_HANDLE.get(struct, 0L, index0); } @@ -528,7 +496,8 @@ public static byte __pad1(MemorySegment struct, long index0) { * unsigned char __pad1[7] * } */ - public static void __pad1(MemorySegment struct, long index0, byte fieldValue) { + public static void __pad1(MemorySegment struct, long index0, byte fieldValue) + { __pad1$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -540,9 +509,7 @@ public static void __pad1(MemorySegment struct, long index0, byte fieldValue) { * unsigned long __pad2 * } */ - public static final OfLong __pad2$layout() { - return __pad2$LAYOUT; - } + public static final OfLong __pad2$layout() { return __pad2$LAYOUT; } private static final long __pad2$OFFSET = 40; @@ -552,9 +519,7 @@ public static void __pad1(MemorySegment struct, long index0, byte fieldValue) { * unsigned long __pad2 * } */ - public static final long __pad2$offset() { - return __pad2$OFFSET; - } + public static final long __pad2$offset() { return __pad2$OFFSET; } /** * Getter for field: @@ -562,9 +527,7 @@ public static void __pad1(MemorySegment struct, long index0, byte fieldValue) { * unsigned long __pad2 * } */ - public static long __pad2(MemorySegment struct) { - return struct.get(__pad2$LAYOUT, __pad2$OFFSET); - } + public static long __pad2(MemorySegment struct) { return struct.get(__pad2$LAYOUT, __pad2$OFFSET); } /** * Setter for field: @@ -572,7 +535,8 @@ public static long __pad2(MemorySegment struct) { * unsigned long __pad2 * } */ - public static void __pad2(MemorySegment struct, long fieldValue) { + public static void __pad2(MemorySegment struct, long fieldValue) + { struct.set(__pad2$LAYOUT, __pad2$OFFSET, fieldValue); } @@ -584,9 +548,7 @@ public static void __pad2(MemorySegment struct, long fieldValue) { * unsigned int __flags * } */ - public static final OfInt __flags$layout() { - return __flags$LAYOUT; - } + public static final OfInt __flags$layout() { return __flags$LAYOUT; } private static final long __flags$OFFSET = 48; @@ -596,9 +558,7 @@ public static void __pad2(MemorySegment struct, long fieldValue) { * unsigned int __flags * } */ - public static final long __flags$offset() { - return __flags$OFFSET; - } + public static final long __flags$offset() { return __flags$OFFSET; } /** * Getter for field: @@ -606,9 +566,7 @@ public static void __pad2(MemorySegment struct, long fieldValue) { * unsigned int __flags * } */ - public static int __flags(MemorySegment struct) { - return struct.get(__flags$LAYOUT, __flags$OFFSET); - } + public static int __flags(MemorySegment struct) { return struct.get(__flags$LAYOUT, __flags$OFFSET); } /** * Setter for field: @@ -616,7 +574,8 @@ public static int __flags(MemorySegment struct) { * unsigned int __flags * } */ - public static void __flags(MemorySegment struct, int fieldValue) { + public static void __flags(MemorySegment struct, int fieldValue) + { struct.set(__flags$LAYOUT, __flags$OFFSET, fieldValue); } @@ -624,7 +583,8 @@ public static void __flags(MemorySegment struct, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -636,15 +596,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -652,7 +611,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -660,8 +620,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__pthread_slist_t.java b/java/jsrc/org/hdfgroup/javahdf5/__pthread_slist_t.java index 877d50bb4ee..994af415f3c 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__pthread_slist_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__pthread_slist_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct __pthread_internal_slist { @@ -21,8 +21,8 @@ */ public class __pthread_slist_t extends __pthread_internal_slist { - __pthread_slist_t() { + __pthread_slist_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/__sigset_t.java b/java/jsrc/org/hdfgroup/javahdf5/__sigset_t.java index 4f0bdbdda08..7e7d702c74d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/__sigset_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/__sigset_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -21,20 +21,19 @@ */ public class __sigset_t { - __sigset_t() { + __sigset_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(16, hdf5_h.C_LONG).withName("__val") - ).withName("$anon$5:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(MemoryLayout.sequenceLayout(16, hdf5_h.C_LONG).withName("__val")) + .withName("$anon$5:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final SequenceLayout __val$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__val")); @@ -44,9 +43,7 @@ public static final GroupLayout layout() { * unsigned long __val[16] * } */ - public static final SequenceLayout __val$layout() { - return __val$LAYOUT; - } + public static final SequenceLayout __val$layout() { return __val$LAYOUT; } private static final long __val$OFFSET = 0; @@ -56,9 +53,7 @@ public static final GroupLayout layout() { * unsigned long __val[16] * } */ - public static final long __val$offset() { - return __val$OFFSET; - } + public static final long __val$offset() { return __val$OFFSET; } /** * Getter for field: @@ -66,7 +61,8 @@ public static final GroupLayout layout() { * unsigned long __val[16] * } */ - public static MemorySegment __val(MemorySegment struct) { + public static MemorySegment __val(MemorySegment struct) + { return struct.asSlice(__val$OFFSET, __val$LAYOUT.byteSize()); } @@ -76,11 +72,12 @@ public static MemorySegment __val(MemorySegment struct) { * unsigned long __val[16] * } */ - public static void __val(MemorySegment struct, MemorySegment fieldValue) { + public static void __val(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __val$OFFSET, __val$LAYOUT.byteSize()); } - private static long[] __val$DIMS = { 16 }; + private static long[] __val$DIMS = {16}; /** * Dimensions for array field: @@ -88,9 +85,7 @@ public static void __val(MemorySegment struct, MemorySegment fieldValue) { * unsigned long __val[16] * } */ - public static long[] __val$dimensions() { - return __val$DIMS; - } + public static long[] __val$dimensions() { return __val$DIMS; } private static final VarHandle __val$ELEM_HANDLE = __val$LAYOUT.varHandle(sequenceElement()); /** @@ -99,7 +94,8 @@ public static void __val(MemorySegment struct, MemorySegment fieldValue) { * unsigned long __val[16] * } */ - public static long __val(MemorySegment struct, long index0) { + public static long __val(MemorySegment struct, long index0) + { return (long)__val$ELEM_HANDLE.get(struct, 0L, index0); } @@ -109,7 +105,8 @@ public static long __val(MemorySegment struct, long index0) { * unsigned long __val[16] * } */ - public static void __val(MemorySegment struct, long index0, long fieldValue) { + public static void __val(MemorySegment struct, long index0, long fieldValue) + { __val$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -117,7 +114,8 @@ public static void __val(MemorySegment struct, long index0, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -129,15 +127,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -145,7 +142,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -153,8 +151,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/cookie_close_function_t.java b/java/jsrc/org/hdfgroup/javahdf5/cookie_close_function_t.java index 90afdfdd240..83edb0104bf 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/cookie_close_function_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/cookie_close_function_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (cookie_close_function_t)(void *) @@ -19,7 +19,8 @@ */ public class cookie_close_function_t { - cookie_close_function_t() { + cookie_close_function_t() + { // Should not be called directly } @@ -30,25 +31,22 @@ public interface Function { int apply(MemorySegment __cookie); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor $DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cookie_close_function_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(cookie_close_function_t.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(cookie_close_function_t.Function fi, Arena arena) { + public static MemorySegment allocate(cookie_close_function_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -57,12 +55,13 @@ public static MemorySegment allocate(cookie_close_function_t.Function fi, Arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment __cookie) { + public static int invoke(MemorySegment funcPtr, MemorySegment __cookie) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, __cookie); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, __cookie); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/cookie_io_functions_t.java b/java/jsrc/org/hdfgroup/javahdf5/cookie_io_functions_t.java index 9c2be13a576..7c0b72130c7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/cookie_io_functions_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/cookie_io_functions_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef struct _IO_cookie_io_functions_t { @@ -24,8 +24,8 @@ */ public class cookie_io_functions_t extends _IO_cookie_io_functions_t { - cookie_io_functions_t() { + cookie_io_functions_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/cookie_read_function_t.java b/java/jsrc/org/hdfgroup/javahdf5/cookie_read_function_t.java index 35364a6a314..b3896330ac7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/cookie_read_function_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/cookie_read_function_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef __ssize_t (cookie_read_function_t)(void *, char *, size_t) @@ -19,7 +19,8 @@ */ public class cookie_read_function_t { - cookie_read_function_t() { + cookie_read_function_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { long apply(MemorySegment __cookie, MemorySegment __buf, long __nbytes); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cookie_read_function_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(cookie_read_function_t.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(cookie_read_function_t.Function fi, Arena arena) { + public static MemorySegment allocate(cookie_read_function_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(cookie_read_function_t.Function fi, Arena a /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment __cookie, MemorySegment __buf, long __nbytes) { + public static long invoke(MemorySegment funcPtr, MemorySegment __cookie, MemorySegment __buf, + long __nbytes) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, __cookie, __buf, __nbytes); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, __cookie, __buf, __nbytes); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/cookie_seek_function_t.java b/java/jsrc/org/hdfgroup/javahdf5/cookie_seek_function_t.java index 752a9e27dd4..c938ad2d4d3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/cookie_seek_function_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/cookie_seek_function_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef int (cookie_seek_function_t)(void *, __off64_t *, int) @@ -19,7 +19,8 @@ */ public class cookie_seek_function_t { - cookie_seek_function_t() { + cookie_seek_function_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { int apply(MemorySegment __cookie, MemorySegment __pos, int __w); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cookie_seek_function_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(cookie_seek_function_t.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(cookie_seek_function_t.Function fi, Arena arena) { + public static MemorySegment allocate(cookie_seek_function_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,13 @@ public static MemorySegment allocate(cookie_seek_function_t.Function fi, Arena a /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static int invoke(MemorySegment funcPtr,MemorySegment __cookie, MemorySegment __pos, int __w) { + public static int invoke(MemorySegment funcPtr, MemorySegment __cookie, MemorySegment __pos, int __w) + { try { - return (int) DOWN$MH.invokeExact(funcPtr, __cookie, __pos, __w); - } catch (Throwable ex$) { + return (int)DOWN$MH.invokeExact(funcPtr, __cookie, __pos, __w); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/cookie_write_function_t.java b/java/jsrc/org/hdfgroup/javahdf5/cookie_write_function_t.java index 342f4150c1a..04a7f8930e6 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/cookie_write_function_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/cookie_write_function_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef __ssize_t (cookie_write_function_t)(void *, const char *, size_t) @@ -19,7 +19,8 @@ */ public class cookie_write_function_t { - cookie_write_function_t() { + cookie_write_function_t() + { // Should not be called directly } @@ -30,27 +31,23 @@ public interface Function { long apply(MemorySegment __cookie, MemorySegment __buf, long __nbytes); } - private static final FunctionDescriptor $DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + private static final FunctionDescriptor $DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); /** * The descriptor of this function pointer */ - public static FunctionDescriptor descriptor() { - return $DESC; - } + public static FunctionDescriptor descriptor() { return $DESC; } - private static final MethodHandle UP$MH = hdf5_h.upcallHandle(cookie_write_function_t.Function.class, "apply", $DESC); + private static final MethodHandle UP$MH = + hdf5_h.upcallHandle(cookie_write_function_t.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(cookie_write_function_t.Function fi, Arena arena) { + public static MemorySegment allocate(cookie_write_function_t.Function fi, Arena arena) + { return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena); } @@ -59,12 +56,14 @@ public static MemorySegment allocate(cookie_write_function_t.Function fi, Arena /** * Invoke the upcall stub {@code funcPtr}, with given parameters */ - public static long invoke(MemorySegment funcPtr,MemorySegment __cookie, MemorySegment __buf, long __nbytes) { + public static long invoke(MemorySegment funcPtr, MemorySegment __cookie, MemorySegment __buf, + long __nbytes) + { try { - return (long) DOWN$MH.invokeExact(funcPtr, __cookie, __buf, __nbytes); - } catch (Throwable ex$) { + return (long)DOWN$MH.invokeExact(funcPtr, __cookie, __buf, __nbytes); + } + catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/fd_set.java b/java/jsrc/org/hdfgroup/javahdf5/fd_set.java index 7652e168598..ec4af534e72 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/fd_set.java +++ b/java/jsrc/org/hdfgroup/javahdf5/fd_set.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -21,22 +21,22 @@ */ public class fd_set { - fd_set() { + fd_set() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(16, hdf5_h.C_LONG).withName("__fds_bits") - ).withName("$anon$59:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(MemoryLayout.sequenceLayout(16, hdf5_h.C_LONG).withName("__fds_bits")) + .withName("$anon$59:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __fds_bits$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__fds_bits")); + private static final SequenceLayout __fds_bits$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__fds_bits")); /** * Layout for field: @@ -44,9 +44,7 @@ public static final GroupLayout layout() { * __fd_mask __fds_bits[16] * } */ - public static final SequenceLayout __fds_bits$layout() { - return __fds_bits$LAYOUT; - } + public static final SequenceLayout __fds_bits$layout() { return __fds_bits$LAYOUT; } private static final long __fds_bits$OFFSET = 0; @@ -56,9 +54,7 @@ public static final GroupLayout layout() { * __fd_mask __fds_bits[16] * } */ - public static final long __fds_bits$offset() { - return __fds_bits$OFFSET; - } + public static final long __fds_bits$offset() { return __fds_bits$OFFSET; } /** * Getter for field: @@ -66,7 +62,8 @@ public static final GroupLayout layout() { * __fd_mask __fds_bits[16] * } */ - public static MemorySegment __fds_bits(MemorySegment struct) { + public static MemorySegment __fds_bits(MemorySegment struct) + { return struct.asSlice(__fds_bits$OFFSET, __fds_bits$LAYOUT.byteSize()); } @@ -76,11 +73,12 @@ public static MemorySegment __fds_bits(MemorySegment struct) { * __fd_mask __fds_bits[16] * } */ - public static void __fds_bits(MemorySegment struct, MemorySegment fieldValue) { + public static void __fds_bits(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __fds_bits$OFFSET, __fds_bits$LAYOUT.byteSize()); } - private static long[] __fds_bits$DIMS = { 16 }; + private static long[] __fds_bits$DIMS = {16}; /** * Dimensions for array field: @@ -88,9 +86,7 @@ public static void __fds_bits(MemorySegment struct, MemorySegment fieldValue) { * __fd_mask __fds_bits[16] * } */ - public static long[] __fds_bits$dimensions() { - return __fds_bits$DIMS; - } + public static long[] __fds_bits$dimensions() { return __fds_bits$DIMS; } private static final VarHandle __fds_bits$ELEM_HANDLE = __fds_bits$LAYOUT.varHandle(sequenceElement()); /** @@ -99,7 +95,8 @@ public static void __fds_bits(MemorySegment struct, MemorySegment fieldValue) { * __fd_mask __fds_bits[16] * } */ - public static long __fds_bits(MemorySegment struct, long index0) { + public static long __fds_bits(MemorySegment struct, long index0) + { return (long)__fds_bits$ELEM_HANDLE.get(struct, 0L, index0); } @@ -109,7 +106,8 @@ public static long __fds_bits(MemorySegment struct, long index0) { * __fd_mask __fds_bits[16] * } */ - public static void __fds_bits(MemorySegment struct, long index0, long fieldValue) { + public static void __fds_bits(MemorySegment struct, long index0, long fieldValue) + { __fds_bits$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -117,7 +115,8 @@ public static void __fds_bits(MemorySegment struct, long index0, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -129,15 +128,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -145,7 +143,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -153,8 +152,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/fpos_t.java b/java/jsrc/org/hdfgroup/javahdf5/fpos_t.java index ba611fc7034..8216f573665 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/fpos_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/fpos_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef __fpos_t fpos_t @@ -19,8 +19,8 @@ */ public class fpos_t extends _G_fpos_t { - fpos_t() { + fpos_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/fsid_t.java b/java/jsrc/org/hdfgroup/javahdf5/fsid_t.java index f250d92a20a..086b7e44082 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/fsid_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/fsid_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef __fsid_t fsid_t @@ -19,8 +19,8 @@ */ public class fsid_t extends __fsid_t { - fsid_t() { + fsid_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h.java b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h.java index 3d76cab219a..032ca07a274 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h.java +++ b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h.java @@ -2,19 +2,20 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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.*; - public class hdf5_h extends hdf5_h_1 { - hdf5_h() { + hdf5_h() + { // Should not be called directly } private static final int H5D_MPIO_CHUNK_MIXED = (int)3L; @@ -23,61 +24,50 @@ public class hdf5_h extends hdf5_h_1 { * enum H5D_mpio_actual_io_mode_t.H5D_MPIO_CHUNK_MIXED = 3 * } */ - public static int H5D_MPIO_CHUNK_MIXED() { - return H5D_MPIO_CHUNK_MIXED; - } + public static int H5D_MPIO_CHUNK_MIXED() { return H5D_MPIO_CHUNK_MIXED; } private static final int H5D_MPIO_CONTIGUOUS_COLLECTIVE = (int)4L; /** * {@snippet lang=c : * enum H5D_mpio_actual_io_mode_t.H5D_MPIO_CONTIGUOUS_COLLECTIVE = 4 * } */ - public static int H5D_MPIO_CONTIGUOUS_COLLECTIVE() { - return H5D_MPIO_CONTIGUOUS_COLLECTIVE; - } + public static int H5D_MPIO_CONTIGUOUS_COLLECTIVE() { return H5D_MPIO_CONTIGUOUS_COLLECTIVE; } private static final int H5D_MPIO_COLLECTIVE = (int)0L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_COLLECTIVE = 0 * } */ - public static int H5D_MPIO_COLLECTIVE() { - return H5D_MPIO_COLLECTIVE; - } + public static int H5D_MPIO_COLLECTIVE() { return H5D_MPIO_COLLECTIVE; } private static final int H5D_MPIO_SET_INDEPENDENT = (int)1L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_SET_INDEPENDENT = 1 * } */ - public static int H5D_MPIO_SET_INDEPENDENT() { - return H5D_MPIO_SET_INDEPENDENT; - } + public static int H5D_MPIO_SET_INDEPENDENT() { return H5D_MPIO_SET_INDEPENDENT; } private static final int H5D_MPIO_DATATYPE_CONVERSION = (int)2L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_DATATYPE_CONVERSION = 2 * } */ - public static int H5D_MPIO_DATATYPE_CONVERSION() { - return H5D_MPIO_DATATYPE_CONVERSION; - } + public static int H5D_MPIO_DATATYPE_CONVERSION() { return H5D_MPIO_DATATYPE_CONVERSION; } private static final int H5D_MPIO_DATA_TRANSFORMS = (int)4L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_DATA_TRANSFORMS = 4 * } */ - public static int H5D_MPIO_DATA_TRANSFORMS() { - return H5D_MPIO_DATA_TRANSFORMS; - } + public static int H5D_MPIO_DATA_TRANSFORMS() { return H5D_MPIO_DATA_TRANSFORMS; } private static final int H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED = (int)8L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED = 8 * } */ - public static int H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED() { + public static int H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED() + { return H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED; } private static final int H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES = (int)16L; @@ -86,7 +76,8 @@ public static int H5D_MPIO_MPI_OPT_TYPES_ENV_VAR_DISABLED() { * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES = 16 * } */ - public static int H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES() { + public static int H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES() + { return H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES; } private static final int H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET = (int)32L; @@ -95,7 +86,8 @@ public static int H5D_MPIO_NOT_SIMPLE_OR_SCALAR_DATASPACES() { * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET = 32 * } */ - public static int H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() { + public static int H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() + { return H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET; } private static final int H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED = (int)64L; @@ -104,7 +96,8 @@ public static int H5D_MPIO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() { * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED = 64 * } */ - public static int H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED() { + public static int H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED() + { return H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED; } private static final int H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE = (int)128L; @@ -113,7 +106,8 @@ public static int H5D_MPIO_PARALLEL_FILTERED_WRITES_DISABLED() { * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE = 128 * } */ - public static int H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE() { + public static int H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE() + { return H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE; } private static final int H5D_MPIO_NO_SELECTION_IO = (int)256L; @@ -122,49 +116,40 @@ public static int H5D_MPIO_ERROR_WHILE_CHECKING_COLLECTIVE_POSSIBLE() { * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_NO_SELECTION_IO = 256 * } */ - public static int H5D_MPIO_NO_SELECTION_IO() { - return H5D_MPIO_NO_SELECTION_IO; - } + public static int H5D_MPIO_NO_SELECTION_IO() { return H5D_MPIO_NO_SELECTION_IO; } private static final int H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE = (int)512L; /** * {@snippet lang=c : * enum H5D_mpio_no_collective_cause_t.H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE = 512 * } */ - public static int H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE() { - return H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE; - } + public static int H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE() { return H5D_MPIO_NO_COLLECTIVE_MAX_CAUSE; } private static final int H5D_SELECTION_IO_MODE_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5D_selection_io_mode_t.H5D_SELECTION_IO_MODE_DEFAULT = 0 * } */ - public static int H5D_SELECTION_IO_MODE_DEFAULT() { - return H5D_SELECTION_IO_MODE_DEFAULT; - } + public static int H5D_SELECTION_IO_MODE_DEFAULT() { return H5D_SELECTION_IO_MODE_DEFAULT; } private static final int H5D_SELECTION_IO_MODE_OFF = (int)1L; /** * {@snippet lang=c : * enum H5D_selection_io_mode_t.H5D_SELECTION_IO_MODE_OFF = 1 * } */ - public static int H5D_SELECTION_IO_MODE_OFF() { - return H5D_SELECTION_IO_MODE_OFF; - } + public static int H5D_SELECTION_IO_MODE_OFF() { return H5D_SELECTION_IO_MODE_OFF; } private static final int H5D_SELECTION_IO_MODE_ON = (int)2L; /** * {@snippet lang=c : * enum H5D_selection_io_mode_t.H5D_SELECTION_IO_MODE_ON = 2 * } */ - public static int H5D_SELECTION_IO_MODE_ON() { - return H5D_SELECTION_IO_MODE_ON; - } + public static int H5D_SELECTION_IO_MODE_ON() { return H5D_SELECTION_IO_MODE_ON; } private static class H5P_CLS_ROOT_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_ROOT_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_ROOT_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -173,9 +158,7 @@ private static class H5P_CLS_ROOT_ID_g$constants { * extern hid_t H5P_CLS_ROOT_ID_g * } */ - public static OfLong H5P_CLS_ROOT_ID_g$layout() { - return H5P_CLS_ROOT_ID_g$constants.LAYOUT; - } + public static OfLong H5P_CLS_ROOT_ID_g$layout() { return H5P_CLS_ROOT_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -183,9 +166,7 @@ private static class H5P_CLS_ROOT_ID_g$constants { * extern hid_t H5P_CLS_ROOT_ID_g * } */ - public static MemorySegment H5P_CLS_ROOT_ID_g$segment() { - return H5P_CLS_ROOT_ID_g$constants.SEGMENT; - } + public static MemorySegment H5P_CLS_ROOT_ID_g$segment() { return H5P_CLS_ROOT_ID_g$constants.SEGMENT; } /** * Getter for variable: @@ -193,7 +174,8 @@ private static class H5P_CLS_ROOT_ID_g$constants { * extern hid_t H5P_CLS_ROOT_ID_g * } */ - public static long H5P_CLS_ROOT_ID_g() { + public static long H5P_CLS_ROOT_ID_g() + { return H5P_CLS_ROOT_ID_g$constants.SEGMENT.get(H5P_CLS_ROOT_ID_g$constants.LAYOUT, 0L); } @@ -203,13 +185,15 @@ public static long H5P_CLS_ROOT_ID_g() { * extern hid_t H5P_CLS_ROOT_ID_g * } */ - public static void H5P_CLS_ROOT_ID_g(long varValue) { + public static void H5P_CLS_ROOT_ID_g(long varValue) + { H5P_CLS_ROOT_ID_g$constants.SEGMENT.set(H5P_CLS_ROOT_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_CLS_OBJECT_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_OBJECT_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_OBJECT_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -218,7 +202,8 @@ private static class H5P_CLS_OBJECT_CREATE_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_CREATE_ID_g * } */ - public static OfLong H5P_CLS_OBJECT_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_OBJECT_CREATE_ID_g$layout() + { return H5P_CLS_OBJECT_CREATE_ID_g$constants.LAYOUT; } @@ -228,7 +213,8 @@ private static class H5P_CLS_OBJECT_CREATE_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_OBJECT_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_OBJECT_CREATE_ID_g$segment() + { return H5P_CLS_OBJECT_CREATE_ID_g$constants.SEGMENT; } @@ -238,8 +224,10 @@ private static class H5P_CLS_OBJECT_CREATE_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_CREATE_ID_g * } */ - public static long H5P_CLS_OBJECT_CREATE_ID_g() { - return H5P_CLS_OBJECT_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_OBJECT_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_OBJECT_CREATE_ID_g() + { + return H5P_CLS_OBJECT_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_OBJECT_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -248,13 +236,16 @@ public static long H5P_CLS_OBJECT_CREATE_ID_g() { * extern hid_t H5P_CLS_OBJECT_CREATE_ID_g * } */ - public static void H5P_CLS_OBJECT_CREATE_ID_g(long varValue) { - H5P_CLS_OBJECT_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_OBJECT_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_OBJECT_CREATE_ID_g(long varValue) + { + H5P_CLS_OBJECT_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_OBJECT_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_FILE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_FILE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_FILE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -263,7 +254,8 @@ private static class H5P_CLS_FILE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_FILE_CREATE_ID_g * } */ - public static OfLong H5P_CLS_FILE_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_FILE_CREATE_ID_g$layout() + { return H5P_CLS_FILE_CREATE_ID_g$constants.LAYOUT; } @@ -273,7 +265,8 @@ private static class H5P_CLS_FILE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_FILE_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_FILE_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_FILE_CREATE_ID_g$segment() + { return H5P_CLS_FILE_CREATE_ID_g$constants.SEGMENT; } @@ -283,7 +276,8 @@ private static class H5P_CLS_FILE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_FILE_CREATE_ID_g * } */ - public static long H5P_CLS_FILE_CREATE_ID_g() { + public static long H5P_CLS_FILE_CREATE_ID_g() + { return H5P_CLS_FILE_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_FILE_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -293,13 +287,16 @@ public static long H5P_CLS_FILE_CREATE_ID_g() { * extern hid_t H5P_CLS_FILE_CREATE_ID_g * } */ - public static void H5P_CLS_FILE_CREATE_ID_g(long varValue) { - H5P_CLS_FILE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_FILE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_FILE_CREATE_ID_g(long varValue) + { + H5P_CLS_FILE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_FILE_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_FILE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_FILE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_FILE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -308,7 +305,8 @@ private static class H5P_CLS_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_FILE_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_FILE_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_FILE_ACCESS_ID_g$layout() + { return H5P_CLS_FILE_ACCESS_ID_g$constants.LAYOUT; } @@ -318,7 +316,8 @@ private static class H5P_CLS_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_FILE_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_FILE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_FILE_ACCESS_ID_g$segment() + { return H5P_CLS_FILE_ACCESS_ID_g$constants.SEGMENT; } @@ -328,7 +327,8 @@ private static class H5P_CLS_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_FILE_ACCESS_ID_g * } */ - public static long H5P_CLS_FILE_ACCESS_ID_g() { + public static long H5P_CLS_FILE_ACCESS_ID_g() + { return H5P_CLS_FILE_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_FILE_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -338,13 +338,16 @@ public static long H5P_CLS_FILE_ACCESS_ID_g() { * extern hid_t H5P_CLS_FILE_ACCESS_ID_g * } */ - public static void H5P_CLS_FILE_ACCESS_ID_g(long varValue) { - H5P_CLS_FILE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_FILE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_FILE_ACCESS_ID_g(long varValue) + { + H5P_CLS_FILE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_FILE_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_DATASET_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_DATASET_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_DATASET_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -353,7 +356,8 @@ private static class H5P_CLS_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATASET_CREATE_ID_g * } */ - public static OfLong H5P_CLS_DATASET_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_DATASET_CREATE_ID_g$layout() + { return H5P_CLS_DATASET_CREATE_ID_g$constants.LAYOUT; } @@ -363,7 +367,8 @@ private static class H5P_CLS_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATASET_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_DATASET_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_DATASET_CREATE_ID_g$segment() + { return H5P_CLS_DATASET_CREATE_ID_g$constants.SEGMENT; } @@ -373,8 +378,10 @@ private static class H5P_CLS_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATASET_CREATE_ID_g * } */ - public static long H5P_CLS_DATASET_CREATE_ID_g() { - return H5P_CLS_DATASET_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_DATASET_CREATE_ID_g() + { + return H5P_CLS_DATASET_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -383,13 +390,16 @@ public static long H5P_CLS_DATASET_CREATE_ID_g() { * extern hid_t H5P_CLS_DATASET_CREATE_ID_g * } */ - public static void H5P_CLS_DATASET_CREATE_ID_g(long varValue) { - H5P_CLS_DATASET_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_DATASET_CREATE_ID_g(long varValue) + { + H5P_CLS_DATASET_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_DATASET_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_DATASET_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_DATASET_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -398,7 +408,8 @@ private static class H5P_CLS_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATASET_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_DATASET_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_DATASET_ACCESS_ID_g$layout() + { return H5P_CLS_DATASET_ACCESS_ID_g$constants.LAYOUT; } @@ -408,7 +419,8 @@ private static class H5P_CLS_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATASET_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_DATASET_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_DATASET_ACCESS_ID_g$segment() + { return H5P_CLS_DATASET_ACCESS_ID_g$constants.SEGMENT; } @@ -418,8 +430,10 @@ private static class H5P_CLS_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATASET_ACCESS_ID_g * } */ - public static long H5P_CLS_DATASET_ACCESS_ID_g() { - return H5P_CLS_DATASET_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_DATASET_ACCESS_ID_g() + { + return H5P_CLS_DATASET_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_ACCESS_ID_g$constants.LAYOUT, + 0L); } /** @@ -428,13 +442,16 @@ public static long H5P_CLS_DATASET_ACCESS_ID_g() { * extern hid_t H5P_CLS_DATASET_ACCESS_ID_g * } */ - public static void H5P_CLS_DATASET_ACCESS_ID_g(long varValue) { - H5P_CLS_DATASET_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_DATASET_ACCESS_ID_g(long varValue) + { + H5P_CLS_DATASET_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_DATASET_XFER_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_DATASET_XFER_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_DATASET_XFER_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -443,7 +460,8 @@ private static class H5P_CLS_DATASET_XFER_ID_g$constants { * extern hid_t H5P_CLS_DATASET_XFER_ID_g * } */ - public static OfLong H5P_CLS_DATASET_XFER_ID_g$layout() { + public static OfLong H5P_CLS_DATASET_XFER_ID_g$layout() + { return H5P_CLS_DATASET_XFER_ID_g$constants.LAYOUT; } @@ -453,7 +471,8 @@ private static class H5P_CLS_DATASET_XFER_ID_g$constants { * extern hid_t H5P_CLS_DATASET_XFER_ID_g * } */ - public static MemorySegment H5P_CLS_DATASET_XFER_ID_g$segment() { + public static MemorySegment H5P_CLS_DATASET_XFER_ID_g$segment() + { return H5P_CLS_DATASET_XFER_ID_g$constants.SEGMENT; } @@ -463,8 +482,10 @@ private static class H5P_CLS_DATASET_XFER_ID_g$constants { * extern hid_t H5P_CLS_DATASET_XFER_ID_g * } */ - public static long H5P_CLS_DATASET_XFER_ID_g() { - return H5P_CLS_DATASET_XFER_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_XFER_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_DATASET_XFER_ID_g() + { + return H5P_CLS_DATASET_XFER_ID_g$constants.SEGMENT.get(H5P_CLS_DATASET_XFER_ID_g$constants.LAYOUT, + 0L); } /** @@ -473,13 +494,16 @@ public static long H5P_CLS_DATASET_XFER_ID_g() { * extern hid_t H5P_CLS_DATASET_XFER_ID_g * } */ - public static void H5P_CLS_DATASET_XFER_ID_g(long varValue) { - H5P_CLS_DATASET_XFER_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_XFER_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_DATASET_XFER_ID_g(long varValue) + { + H5P_CLS_DATASET_XFER_ID_g$constants.SEGMENT.set(H5P_CLS_DATASET_XFER_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_FILE_MOUNT_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_FILE_MOUNT_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_FILE_MOUNT_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -488,9 +512,7 @@ private static class H5P_CLS_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_CLS_FILE_MOUNT_ID_g * } */ - public static OfLong H5P_CLS_FILE_MOUNT_ID_g$layout() { - return H5P_CLS_FILE_MOUNT_ID_g$constants.LAYOUT; - } + public static OfLong H5P_CLS_FILE_MOUNT_ID_g$layout() { return H5P_CLS_FILE_MOUNT_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -498,7 +520,8 @@ private static class H5P_CLS_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_CLS_FILE_MOUNT_ID_g * } */ - public static MemorySegment H5P_CLS_FILE_MOUNT_ID_g$segment() { + public static MemorySegment H5P_CLS_FILE_MOUNT_ID_g$segment() + { return H5P_CLS_FILE_MOUNT_ID_g$constants.SEGMENT; } @@ -508,7 +531,8 @@ private static class H5P_CLS_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_CLS_FILE_MOUNT_ID_g * } */ - public static long H5P_CLS_FILE_MOUNT_ID_g() { + public static long H5P_CLS_FILE_MOUNT_ID_g() + { return H5P_CLS_FILE_MOUNT_ID_g$constants.SEGMENT.get(H5P_CLS_FILE_MOUNT_ID_g$constants.LAYOUT, 0L); } @@ -518,13 +542,15 @@ public static long H5P_CLS_FILE_MOUNT_ID_g() { * extern hid_t H5P_CLS_FILE_MOUNT_ID_g * } */ - public static void H5P_CLS_FILE_MOUNT_ID_g(long varValue) { + public static void H5P_CLS_FILE_MOUNT_ID_g(long varValue) + { H5P_CLS_FILE_MOUNT_ID_g$constants.SEGMENT.set(H5P_CLS_FILE_MOUNT_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_CLS_GROUP_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_GROUP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_GROUP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -533,7 +559,8 @@ private static class H5P_CLS_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_GROUP_CREATE_ID_g * } */ - public static OfLong H5P_CLS_GROUP_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_GROUP_CREATE_ID_g$layout() + { return H5P_CLS_GROUP_CREATE_ID_g$constants.LAYOUT; } @@ -543,7 +570,8 @@ private static class H5P_CLS_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_GROUP_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_GROUP_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_GROUP_CREATE_ID_g$segment() + { return H5P_CLS_GROUP_CREATE_ID_g$constants.SEGMENT; } @@ -553,8 +581,10 @@ private static class H5P_CLS_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_GROUP_CREATE_ID_g * } */ - public static long H5P_CLS_GROUP_CREATE_ID_g() { - return H5P_CLS_GROUP_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_GROUP_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_GROUP_CREATE_ID_g() + { + return H5P_CLS_GROUP_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_GROUP_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -563,13 +593,16 @@ public static long H5P_CLS_GROUP_CREATE_ID_g() { * extern hid_t H5P_CLS_GROUP_CREATE_ID_g * } */ - public static void H5P_CLS_GROUP_CREATE_ID_g(long varValue) { - H5P_CLS_GROUP_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_GROUP_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_GROUP_CREATE_ID_g(long varValue) + { + H5P_CLS_GROUP_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_GROUP_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_GROUP_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_GROUP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_GROUP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -578,7 +611,8 @@ private static class H5P_CLS_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_GROUP_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_GROUP_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_GROUP_ACCESS_ID_g$layout() + { return H5P_CLS_GROUP_ACCESS_ID_g$constants.LAYOUT; } @@ -588,7 +622,8 @@ private static class H5P_CLS_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_GROUP_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_GROUP_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_GROUP_ACCESS_ID_g$segment() + { return H5P_CLS_GROUP_ACCESS_ID_g$constants.SEGMENT; } @@ -598,8 +633,10 @@ private static class H5P_CLS_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_GROUP_ACCESS_ID_g * } */ - public static long H5P_CLS_GROUP_ACCESS_ID_g() { - return H5P_CLS_GROUP_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_GROUP_ACCESS_ID_g() + { + return H5P_CLS_GROUP_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_GROUP_ACCESS_ID_g$constants.LAYOUT, + 0L); } /** @@ -608,13 +645,16 @@ public static long H5P_CLS_GROUP_ACCESS_ID_g() { * extern hid_t H5P_CLS_GROUP_ACCESS_ID_g * } */ - public static void H5P_CLS_GROUP_ACCESS_ID_g(long varValue) { - H5P_CLS_GROUP_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_GROUP_ACCESS_ID_g(long varValue) + { + H5P_CLS_GROUP_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_DATATYPE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_DATATYPE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_DATATYPE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -623,7 +663,8 @@ private static class H5P_CLS_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_CREATE_ID_g * } */ - public static OfLong H5P_CLS_DATATYPE_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_DATATYPE_CREATE_ID_g$layout() + { return H5P_CLS_DATATYPE_CREATE_ID_g$constants.LAYOUT; } @@ -633,7 +674,8 @@ private static class H5P_CLS_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_DATATYPE_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_DATATYPE_CREATE_ID_g$segment() + { return H5P_CLS_DATATYPE_CREATE_ID_g$constants.SEGMENT; } @@ -643,8 +685,10 @@ private static class H5P_CLS_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_CREATE_ID_g * } */ - public static long H5P_CLS_DATATYPE_CREATE_ID_g() { - return H5P_CLS_DATATYPE_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_DATATYPE_CREATE_ID_g() + { + return H5P_CLS_DATATYPE_CREATE_ID_g$constants.SEGMENT.get( + H5P_CLS_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L); } /** @@ -653,13 +697,16 @@ public static long H5P_CLS_DATATYPE_CREATE_ID_g() { * extern hid_t H5P_CLS_DATATYPE_CREATE_ID_g * } */ - public static void H5P_CLS_DATATYPE_CREATE_ID_g(long varValue) { - H5P_CLS_DATATYPE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_DATATYPE_CREATE_ID_g(long varValue) + { + H5P_CLS_DATATYPE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_DATATYPE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_DATATYPE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_DATATYPE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -668,7 +715,8 @@ private static class H5P_CLS_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_DATATYPE_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_DATATYPE_ACCESS_ID_g$layout() + { return H5P_CLS_DATATYPE_ACCESS_ID_g$constants.LAYOUT; } @@ -678,7 +726,8 @@ private static class H5P_CLS_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_DATATYPE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_DATATYPE_ACCESS_ID_g$segment() + { return H5P_CLS_DATATYPE_ACCESS_ID_g$constants.SEGMENT; } @@ -688,8 +737,10 @@ private static class H5P_CLS_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_DATATYPE_ACCESS_ID_g * } */ - public static long H5P_CLS_DATATYPE_ACCESS_ID_g() { - return H5P_CLS_DATATYPE_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_DATATYPE_ACCESS_ID_g() + { + return H5P_CLS_DATATYPE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_CLS_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -698,13 +749,16 @@ public static long H5P_CLS_DATATYPE_ACCESS_ID_g() { * extern hid_t H5P_CLS_DATATYPE_ACCESS_ID_g * } */ - public static void H5P_CLS_DATATYPE_ACCESS_ID_g(long varValue) { - H5P_CLS_DATATYPE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_DATATYPE_ACCESS_ID_g(long varValue) + { + H5P_CLS_DATATYPE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_MAP_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_MAP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_MAP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -713,9 +767,7 @@ private static class H5P_CLS_MAP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_MAP_CREATE_ID_g * } */ - public static OfLong H5P_CLS_MAP_CREATE_ID_g$layout() { - return H5P_CLS_MAP_CREATE_ID_g$constants.LAYOUT; - } + public static OfLong H5P_CLS_MAP_CREATE_ID_g$layout() { return H5P_CLS_MAP_CREATE_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -723,7 +775,8 @@ private static class H5P_CLS_MAP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_MAP_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_MAP_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_MAP_CREATE_ID_g$segment() + { return H5P_CLS_MAP_CREATE_ID_g$constants.SEGMENT; } @@ -733,7 +786,8 @@ private static class H5P_CLS_MAP_CREATE_ID_g$constants { * extern hid_t H5P_CLS_MAP_CREATE_ID_g * } */ - public static long H5P_CLS_MAP_CREATE_ID_g() { + public static long H5P_CLS_MAP_CREATE_ID_g() + { return H5P_CLS_MAP_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_MAP_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -743,13 +797,15 @@ public static long H5P_CLS_MAP_CREATE_ID_g() { * extern hid_t H5P_CLS_MAP_CREATE_ID_g * } */ - public static void H5P_CLS_MAP_CREATE_ID_g(long varValue) { + public static void H5P_CLS_MAP_CREATE_ID_g(long varValue) + { H5P_CLS_MAP_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_MAP_CREATE_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_CLS_MAP_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_MAP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_MAP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -758,9 +814,7 @@ private static class H5P_CLS_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_MAP_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_MAP_ACCESS_ID_g$layout() { - return H5P_CLS_MAP_ACCESS_ID_g$constants.LAYOUT; - } + public static OfLong H5P_CLS_MAP_ACCESS_ID_g$layout() { return H5P_CLS_MAP_ACCESS_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -768,7 +822,8 @@ private static class H5P_CLS_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_MAP_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_MAP_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_MAP_ACCESS_ID_g$segment() + { return H5P_CLS_MAP_ACCESS_ID_g$constants.SEGMENT; } @@ -778,7 +833,8 @@ private static class H5P_CLS_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_MAP_ACCESS_ID_g * } */ - public static long H5P_CLS_MAP_ACCESS_ID_g() { + public static long H5P_CLS_MAP_ACCESS_ID_g() + { return H5P_CLS_MAP_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_MAP_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -788,13 +844,15 @@ public static long H5P_CLS_MAP_ACCESS_ID_g() { * extern hid_t H5P_CLS_MAP_ACCESS_ID_g * } */ - public static void H5P_CLS_MAP_ACCESS_ID_g(long varValue) { + public static void H5P_CLS_MAP_ACCESS_ID_g(long varValue) + { H5P_CLS_MAP_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_MAP_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_CLS_STRING_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_STRING_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_STRING_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -803,7 +861,8 @@ private static class H5P_CLS_STRING_CREATE_ID_g$constants { * extern hid_t H5P_CLS_STRING_CREATE_ID_g * } */ - public static OfLong H5P_CLS_STRING_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_STRING_CREATE_ID_g$layout() + { return H5P_CLS_STRING_CREATE_ID_g$constants.LAYOUT; } @@ -813,7 +872,8 @@ private static class H5P_CLS_STRING_CREATE_ID_g$constants { * extern hid_t H5P_CLS_STRING_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_STRING_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_STRING_CREATE_ID_g$segment() + { return H5P_CLS_STRING_CREATE_ID_g$constants.SEGMENT; } @@ -823,8 +883,10 @@ private static class H5P_CLS_STRING_CREATE_ID_g$constants { * extern hid_t H5P_CLS_STRING_CREATE_ID_g * } */ - public static long H5P_CLS_STRING_CREATE_ID_g() { - return H5P_CLS_STRING_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_STRING_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_STRING_CREATE_ID_g() + { + return H5P_CLS_STRING_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_STRING_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -833,13 +895,16 @@ public static long H5P_CLS_STRING_CREATE_ID_g() { * extern hid_t H5P_CLS_STRING_CREATE_ID_g * } */ - public static void H5P_CLS_STRING_CREATE_ID_g(long varValue) { - H5P_CLS_STRING_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_STRING_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_STRING_CREATE_ID_g(long varValue) + { + H5P_CLS_STRING_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_STRING_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_ATTRIBUTE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_ATTRIBUTE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -848,7 +913,8 @@ private static class H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_CREATE_ID_g * } */ - public static OfLong H5P_CLS_ATTRIBUTE_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_ATTRIBUTE_CREATE_ID_g$layout() + { return H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT; } @@ -858,7 +924,8 @@ private static class H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_ATTRIBUTE_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_ATTRIBUTE_CREATE_ID_g$segment() + { return H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT; } @@ -868,8 +935,10 @@ private static class H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_CREATE_ID_g * } */ - public static long H5P_CLS_ATTRIBUTE_CREATE_ID_g() { - return H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_ATTRIBUTE_CREATE_ID_g() + { + return H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.get( + H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L); } /** @@ -878,13 +947,16 @@ public static long H5P_CLS_ATTRIBUTE_CREATE_ID_g() { * extern hid_t H5P_CLS_ATTRIBUTE_CREATE_ID_g * } */ - public static void H5P_CLS_ATTRIBUTE_CREATE_ID_g(long varValue) { - H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_ATTRIBUTE_CREATE_ID_g(long varValue) + { + H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_ATTRIBUTE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_ATTRIBUTE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -893,7 +965,8 @@ private static class H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_ATTRIBUTE_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_ATTRIBUTE_ACCESS_ID_g$layout() + { return H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT; } @@ -903,7 +976,8 @@ private static class H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_ATTRIBUTE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_ATTRIBUTE_ACCESS_ID_g$segment() + { return H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT; } @@ -913,8 +987,10 @@ private static class H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_ATTRIBUTE_ACCESS_ID_g * } */ - public static long H5P_CLS_ATTRIBUTE_ACCESS_ID_g() { - return H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_ATTRIBUTE_ACCESS_ID_g() + { + return H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -923,13 +999,16 @@ public static long H5P_CLS_ATTRIBUTE_ACCESS_ID_g() { * extern hid_t H5P_CLS_ATTRIBUTE_ACCESS_ID_g * } */ - public static void H5P_CLS_ATTRIBUTE_ACCESS_ID_g(long varValue) { - H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_ATTRIBUTE_ACCESS_ID_g(long varValue) + { + H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5P_CLS_OBJECT_COPY_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_OBJECT_COPY_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_OBJECT_COPY_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -938,7 +1017,8 @@ private static class H5P_CLS_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_COPY_ID_g * } */ - public static OfLong H5P_CLS_OBJECT_COPY_ID_g$layout() { + public static OfLong H5P_CLS_OBJECT_COPY_ID_g$layout() + { return H5P_CLS_OBJECT_COPY_ID_g$constants.LAYOUT; } @@ -948,7 +1028,8 @@ private static class H5P_CLS_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_COPY_ID_g * } */ - public static MemorySegment H5P_CLS_OBJECT_COPY_ID_g$segment() { + public static MemorySegment H5P_CLS_OBJECT_COPY_ID_g$segment() + { return H5P_CLS_OBJECT_COPY_ID_g$constants.SEGMENT; } @@ -958,7 +1039,8 @@ private static class H5P_CLS_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_CLS_OBJECT_COPY_ID_g * } */ - public static long H5P_CLS_OBJECT_COPY_ID_g() { + public static long H5P_CLS_OBJECT_COPY_ID_g() + { return H5P_CLS_OBJECT_COPY_ID_g$constants.SEGMENT.get(H5P_CLS_OBJECT_COPY_ID_g$constants.LAYOUT, 0L); } @@ -968,13 +1050,16 @@ public static long H5P_CLS_OBJECT_COPY_ID_g() { * extern hid_t H5P_CLS_OBJECT_COPY_ID_g * } */ - public static void H5P_CLS_OBJECT_COPY_ID_g(long varValue) { - H5P_CLS_OBJECT_COPY_ID_g$constants.SEGMENT.set(H5P_CLS_OBJECT_COPY_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_OBJECT_COPY_ID_g(long varValue) + { + H5P_CLS_OBJECT_COPY_ID_g$constants.SEGMENT.set(H5P_CLS_OBJECT_COPY_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_LINK_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_LINK_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_LINK_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -983,7 +1068,8 @@ private static class H5P_CLS_LINK_CREATE_ID_g$constants { * extern hid_t H5P_CLS_LINK_CREATE_ID_g * } */ - public static OfLong H5P_CLS_LINK_CREATE_ID_g$layout() { + public static OfLong H5P_CLS_LINK_CREATE_ID_g$layout() + { return H5P_CLS_LINK_CREATE_ID_g$constants.LAYOUT; } @@ -993,7 +1079,8 @@ private static class H5P_CLS_LINK_CREATE_ID_g$constants { * extern hid_t H5P_CLS_LINK_CREATE_ID_g * } */ - public static MemorySegment H5P_CLS_LINK_CREATE_ID_g$segment() { + public static MemorySegment H5P_CLS_LINK_CREATE_ID_g$segment() + { return H5P_CLS_LINK_CREATE_ID_g$constants.SEGMENT; } @@ -1003,7 +1090,8 @@ private static class H5P_CLS_LINK_CREATE_ID_g$constants { * extern hid_t H5P_CLS_LINK_CREATE_ID_g * } */ - public static long H5P_CLS_LINK_CREATE_ID_g() { + public static long H5P_CLS_LINK_CREATE_ID_g() + { return H5P_CLS_LINK_CREATE_ID_g$constants.SEGMENT.get(H5P_CLS_LINK_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -1013,13 +1101,16 @@ public static long H5P_CLS_LINK_CREATE_ID_g() { * extern hid_t H5P_CLS_LINK_CREATE_ID_g * } */ - public static void H5P_CLS_LINK_CREATE_ID_g(long varValue) { - H5P_CLS_LINK_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_LINK_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_LINK_CREATE_ID_g(long varValue) + { + H5P_CLS_LINK_CREATE_ID_g$constants.SEGMENT.set(H5P_CLS_LINK_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_LINK_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_LINK_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_LINK_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1028,7 +1119,8 @@ private static class H5P_CLS_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_LINK_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_LINK_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_LINK_ACCESS_ID_g$layout() + { return H5P_CLS_LINK_ACCESS_ID_g$constants.LAYOUT; } @@ -1038,7 +1130,8 @@ private static class H5P_CLS_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_LINK_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_LINK_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_LINK_ACCESS_ID_g$segment() + { return H5P_CLS_LINK_ACCESS_ID_g$constants.SEGMENT; } @@ -1048,7 +1141,8 @@ private static class H5P_CLS_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_LINK_ACCESS_ID_g * } */ - public static long H5P_CLS_LINK_ACCESS_ID_g() { + public static long H5P_CLS_LINK_ACCESS_ID_g() + { return H5P_CLS_LINK_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_LINK_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -1058,13 +1152,16 @@ public static long H5P_CLS_LINK_ACCESS_ID_g() { * extern hid_t H5P_CLS_LINK_ACCESS_ID_g * } */ - public static void H5P_CLS_LINK_ACCESS_ID_g(long varValue) { - H5P_CLS_LINK_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_LINK_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_LINK_ACCESS_ID_g(long varValue) + { + H5P_CLS_LINK_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_LINK_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_VOL_INITIALIZE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_VOL_INITIALIZE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_VOL_INITIALIZE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1073,7 +1170,8 @@ private static class H5P_CLS_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_CLS_VOL_INITIALIZE_ID_g * } */ - public static OfLong H5P_CLS_VOL_INITIALIZE_ID_g$layout() { + public static OfLong H5P_CLS_VOL_INITIALIZE_ID_g$layout() + { return H5P_CLS_VOL_INITIALIZE_ID_g$constants.LAYOUT; } @@ -1083,7 +1181,8 @@ private static class H5P_CLS_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_CLS_VOL_INITIALIZE_ID_g * } */ - public static MemorySegment H5P_CLS_VOL_INITIALIZE_ID_g$segment() { + public static MemorySegment H5P_CLS_VOL_INITIALIZE_ID_g$segment() + { return H5P_CLS_VOL_INITIALIZE_ID_g$constants.SEGMENT; } @@ -1093,8 +1192,10 @@ private static class H5P_CLS_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_CLS_VOL_INITIALIZE_ID_g * } */ - public static long H5P_CLS_VOL_INITIALIZE_ID_g() { - return H5P_CLS_VOL_INITIALIZE_ID_g$constants.SEGMENT.get(H5P_CLS_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_VOL_INITIALIZE_ID_g() + { + return H5P_CLS_VOL_INITIALIZE_ID_g$constants.SEGMENT.get(H5P_CLS_VOL_INITIALIZE_ID_g$constants.LAYOUT, + 0L); } /** @@ -1103,13 +1204,16 @@ public static long H5P_CLS_VOL_INITIALIZE_ID_g() { * extern hid_t H5P_CLS_VOL_INITIALIZE_ID_g * } */ - public static void H5P_CLS_VOL_INITIALIZE_ID_g(long varValue) { - H5P_CLS_VOL_INITIALIZE_ID_g$constants.SEGMENT.set(H5P_CLS_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_VOL_INITIALIZE_ID_g(long varValue) + { + H5P_CLS_VOL_INITIALIZE_ID_g$constants.SEGMENT.set(H5P_CLS_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_CLS_REFERENCE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_CLS_REFERENCE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_CLS_REFERENCE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1118,7 +1222,8 @@ private static class H5P_CLS_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_REFERENCE_ACCESS_ID_g * } */ - public static OfLong H5P_CLS_REFERENCE_ACCESS_ID_g$layout() { + public static OfLong H5P_CLS_REFERENCE_ACCESS_ID_g$layout() + { return H5P_CLS_REFERENCE_ACCESS_ID_g$constants.LAYOUT; } @@ -1128,7 +1233,8 @@ private static class H5P_CLS_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_REFERENCE_ACCESS_ID_g * } */ - public static MemorySegment H5P_CLS_REFERENCE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_CLS_REFERENCE_ACCESS_ID_g$segment() + { return H5P_CLS_REFERENCE_ACCESS_ID_g$constants.SEGMENT; } @@ -1138,8 +1244,10 @@ private static class H5P_CLS_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_CLS_REFERENCE_ACCESS_ID_g * } */ - public static long H5P_CLS_REFERENCE_ACCESS_ID_g() { - return H5P_CLS_REFERENCE_ACCESS_ID_g$constants.SEGMENT.get(H5P_CLS_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_CLS_REFERENCE_ACCESS_ID_g() + { + return H5P_CLS_REFERENCE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_CLS_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -1148,13 +1256,16 @@ public static long H5P_CLS_REFERENCE_ACCESS_ID_g() { * extern hid_t H5P_CLS_REFERENCE_ACCESS_ID_g * } */ - public static void H5P_CLS_REFERENCE_ACCESS_ID_g(long varValue) { - H5P_CLS_REFERENCE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_CLS_REFERENCE_ACCESS_ID_g(long varValue) + { + H5P_CLS_REFERENCE_ACCESS_ID_g$constants.SEGMENT.set(H5P_CLS_REFERENCE_ACCESS_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5P_LST_FILE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_FILE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_FILE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1163,7 +1274,8 @@ private static class H5P_LST_FILE_CREATE_ID_g$constants { * extern hid_t H5P_LST_FILE_CREATE_ID_g * } */ - public static OfLong H5P_LST_FILE_CREATE_ID_g$layout() { + public static OfLong H5P_LST_FILE_CREATE_ID_g$layout() + { return H5P_LST_FILE_CREATE_ID_g$constants.LAYOUT; } @@ -1173,7 +1285,8 @@ private static class H5P_LST_FILE_CREATE_ID_g$constants { * extern hid_t H5P_LST_FILE_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_FILE_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_FILE_CREATE_ID_g$segment() + { return H5P_LST_FILE_CREATE_ID_g$constants.SEGMENT; } @@ -1183,7 +1296,8 @@ private static class H5P_LST_FILE_CREATE_ID_g$constants { * extern hid_t H5P_LST_FILE_CREATE_ID_g * } */ - public static long H5P_LST_FILE_CREATE_ID_g() { + public static long H5P_LST_FILE_CREATE_ID_g() + { return H5P_LST_FILE_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_FILE_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -1193,13 +1307,16 @@ public static long H5P_LST_FILE_CREATE_ID_g() { * extern hid_t H5P_LST_FILE_CREATE_ID_g * } */ - public static void H5P_LST_FILE_CREATE_ID_g(long varValue) { - H5P_LST_FILE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_FILE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_FILE_CREATE_ID_g(long varValue) + { + H5P_LST_FILE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_FILE_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_FILE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_FILE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_FILE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1208,7 +1325,8 @@ private static class H5P_LST_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_FILE_ACCESS_ID_g * } */ - public static OfLong H5P_LST_FILE_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_FILE_ACCESS_ID_g$layout() + { return H5P_LST_FILE_ACCESS_ID_g$constants.LAYOUT; } @@ -1218,7 +1336,8 @@ private static class H5P_LST_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_FILE_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_FILE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_FILE_ACCESS_ID_g$segment() + { return H5P_LST_FILE_ACCESS_ID_g$constants.SEGMENT; } @@ -1228,7 +1347,8 @@ private static class H5P_LST_FILE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_FILE_ACCESS_ID_g * } */ - public static long H5P_LST_FILE_ACCESS_ID_g() { + public static long H5P_LST_FILE_ACCESS_ID_g() + { return H5P_LST_FILE_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_FILE_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -1238,13 +1358,16 @@ public static long H5P_LST_FILE_ACCESS_ID_g() { * extern hid_t H5P_LST_FILE_ACCESS_ID_g * } */ - public static void H5P_LST_FILE_ACCESS_ID_g(long varValue) { - H5P_LST_FILE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_FILE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_FILE_ACCESS_ID_g(long varValue) + { + H5P_LST_FILE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_FILE_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_DATASET_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_DATASET_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_DATASET_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1253,7 +1376,8 @@ private static class H5P_LST_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATASET_CREATE_ID_g * } */ - public static OfLong H5P_LST_DATASET_CREATE_ID_g$layout() { + public static OfLong H5P_LST_DATASET_CREATE_ID_g$layout() + { return H5P_LST_DATASET_CREATE_ID_g$constants.LAYOUT; } @@ -1263,7 +1387,8 @@ private static class H5P_LST_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATASET_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_DATASET_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_DATASET_CREATE_ID_g$segment() + { return H5P_LST_DATASET_CREATE_ID_g$constants.SEGMENT; } @@ -1273,8 +1398,10 @@ private static class H5P_LST_DATASET_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATASET_CREATE_ID_g * } */ - public static long H5P_LST_DATASET_CREATE_ID_g() { - return H5P_LST_DATASET_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_DATASET_CREATE_ID_g() + { + return H5P_LST_DATASET_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -1283,13 +1410,16 @@ public static long H5P_LST_DATASET_CREATE_ID_g() { * extern hid_t H5P_LST_DATASET_CREATE_ID_g * } */ - public static void H5P_LST_DATASET_CREATE_ID_g(long varValue) { - H5P_LST_DATASET_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_DATASET_CREATE_ID_g(long varValue) + { + H5P_LST_DATASET_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_DATASET_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_DATASET_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_DATASET_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1298,7 +1428,8 @@ private static class H5P_LST_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATASET_ACCESS_ID_g * } */ - public static OfLong H5P_LST_DATASET_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_DATASET_ACCESS_ID_g$layout() + { return H5P_LST_DATASET_ACCESS_ID_g$constants.LAYOUT; } @@ -1308,7 +1439,8 @@ private static class H5P_LST_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATASET_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_DATASET_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_DATASET_ACCESS_ID_g$segment() + { return H5P_LST_DATASET_ACCESS_ID_g$constants.SEGMENT; } @@ -1318,8 +1450,10 @@ private static class H5P_LST_DATASET_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATASET_ACCESS_ID_g * } */ - public static long H5P_LST_DATASET_ACCESS_ID_g() { - return H5P_LST_DATASET_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_DATASET_ACCESS_ID_g() + { + return H5P_LST_DATASET_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_ACCESS_ID_g$constants.LAYOUT, + 0L); } /** @@ -1328,13 +1462,16 @@ public static long H5P_LST_DATASET_ACCESS_ID_g() { * extern hid_t H5P_LST_DATASET_ACCESS_ID_g * } */ - public static void H5P_LST_DATASET_ACCESS_ID_g(long varValue) { - H5P_LST_DATASET_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_DATASET_ACCESS_ID_g(long varValue) + { + H5P_LST_DATASET_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_DATASET_XFER_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_DATASET_XFER_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_DATASET_XFER_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1343,7 +1480,8 @@ private static class H5P_LST_DATASET_XFER_ID_g$constants { * extern hid_t H5P_LST_DATASET_XFER_ID_g * } */ - public static OfLong H5P_LST_DATASET_XFER_ID_g$layout() { + public static OfLong H5P_LST_DATASET_XFER_ID_g$layout() + { return H5P_LST_DATASET_XFER_ID_g$constants.LAYOUT; } @@ -1353,7 +1491,8 @@ private static class H5P_LST_DATASET_XFER_ID_g$constants { * extern hid_t H5P_LST_DATASET_XFER_ID_g * } */ - public static MemorySegment H5P_LST_DATASET_XFER_ID_g$segment() { + public static MemorySegment H5P_LST_DATASET_XFER_ID_g$segment() + { return H5P_LST_DATASET_XFER_ID_g$constants.SEGMENT; } @@ -1363,8 +1502,10 @@ private static class H5P_LST_DATASET_XFER_ID_g$constants { * extern hid_t H5P_LST_DATASET_XFER_ID_g * } */ - public static long H5P_LST_DATASET_XFER_ID_g() { - return H5P_LST_DATASET_XFER_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_XFER_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_DATASET_XFER_ID_g() + { + return H5P_LST_DATASET_XFER_ID_g$constants.SEGMENT.get(H5P_LST_DATASET_XFER_ID_g$constants.LAYOUT, + 0L); } /** @@ -1373,13 +1514,16 @@ public static long H5P_LST_DATASET_XFER_ID_g() { * extern hid_t H5P_LST_DATASET_XFER_ID_g * } */ - public static void H5P_LST_DATASET_XFER_ID_g(long varValue) { - H5P_LST_DATASET_XFER_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_XFER_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_DATASET_XFER_ID_g(long varValue) + { + H5P_LST_DATASET_XFER_ID_g$constants.SEGMENT.set(H5P_LST_DATASET_XFER_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_FILE_MOUNT_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_FILE_MOUNT_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_FILE_MOUNT_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1388,9 +1532,7 @@ private static class H5P_LST_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_LST_FILE_MOUNT_ID_g * } */ - public static OfLong H5P_LST_FILE_MOUNT_ID_g$layout() { - return H5P_LST_FILE_MOUNT_ID_g$constants.LAYOUT; - } + public static OfLong H5P_LST_FILE_MOUNT_ID_g$layout() { return H5P_LST_FILE_MOUNT_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -1398,7 +1540,8 @@ private static class H5P_LST_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_LST_FILE_MOUNT_ID_g * } */ - public static MemorySegment H5P_LST_FILE_MOUNT_ID_g$segment() { + public static MemorySegment H5P_LST_FILE_MOUNT_ID_g$segment() + { return H5P_LST_FILE_MOUNT_ID_g$constants.SEGMENT; } @@ -1408,7 +1551,8 @@ private static class H5P_LST_FILE_MOUNT_ID_g$constants { * extern hid_t H5P_LST_FILE_MOUNT_ID_g * } */ - public static long H5P_LST_FILE_MOUNT_ID_g() { + public static long H5P_LST_FILE_MOUNT_ID_g() + { return H5P_LST_FILE_MOUNT_ID_g$constants.SEGMENT.get(H5P_LST_FILE_MOUNT_ID_g$constants.LAYOUT, 0L); } @@ -1418,13 +1562,15 @@ public static long H5P_LST_FILE_MOUNT_ID_g() { * extern hid_t H5P_LST_FILE_MOUNT_ID_g * } */ - public static void H5P_LST_FILE_MOUNT_ID_g(long varValue) { + public static void H5P_LST_FILE_MOUNT_ID_g(long varValue) + { H5P_LST_FILE_MOUNT_ID_g$constants.SEGMENT.set(H5P_LST_FILE_MOUNT_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_LST_GROUP_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_GROUP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_GROUP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1433,7 +1579,8 @@ private static class H5P_LST_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_LST_GROUP_CREATE_ID_g * } */ - public static OfLong H5P_LST_GROUP_CREATE_ID_g$layout() { + public static OfLong H5P_LST_GROUP_CREATE_ID_g$layout() + { return H5P_LST_GROUP_CREATE_ID_g$constants.LAYOUT; } @@ -1443,7 +1590,8 @@ private static class H5P_LST_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_LST_GROUP_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_GROUP_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_GROUP_CREATE_ID_g$segment() + { return H5P_LST_GROUP_CREATE_ID_g$constants.SEGMENT; } @@ -1453,8 +1601,10 @@ private static class H5P_LST_GROUP_CREATE_ID_g$constants { * extern hid_t H5P_LST_GROUP_CREATE_ID_g * } */ - public static long H5P_LST_GROUP_CREATE_ID_g() { - return H5P_LST_GROUP_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_GROUP_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_GROUP_CREATE_ID_g() + { + return H5P_LST_GROUP_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_GROUP_CREATE_ID_g$constants.LAYOUT, + 0L); } /** @@ -1463,13 +1613,16 @@ public static long H5P_LST_GROUP_CREATE_ID_g() { * extern hid_t H5P_LST_GROUP_CREATE_ID_g * } */ - public static void H5P_LST_GROUP_CREATE_ID_g(long varValue) { - H5P_LST_GROUP_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_GROUP_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_GROUP_CREATE_ID_g(long varValue) + { + H5P_LST_GROUP_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_GROUP_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_GROUP_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_GROUP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_GROUP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1478,7 +1631,8 @@ private static class H5P_LST_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_GROUP_ACCESS_ID_g * } */ - public static OfLong H5P_LST_GROUP_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_GROUP_ACCESS_ID_g$layout() + { return H5P_LST_GROUP_ACCESS_ID_g$constants.LAYOUT; } @@ -1488,7 +1642,8 @@ private static class H5P_LST_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_GROUP_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_GROUP_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_GROUP_ACCESS_ID_g$segment() + { return H5P_LST_GROUP_ACCESS_ID_g$constants.SEGMENT; } @@ -1498,8 +1653,10 @@ private static class H5P_LST_GROUP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_GROUP_ACCESS_ID_g * } */ - public static long H5P_LST_GROUP_ACCESS_ID_g() { - return H5P_LST_GROUP_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_GROUP_ACCESS_ID_g() + { + return H5P_LST_GROUP_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_GROUP_ACCESS_ID_g$constants.LAYOUT, + 0L); } /** @@ -1508,13 +1665,16 @@ public static long H5P_LST_GROUP_ACCESS_ID_g() { * extern hid_t H5P_LST_GROUP_ACCESS_ID_g * } */ - public static void H5P_LST_GROUP_ACCESS_ID_g(long varValue) { - H5P_LST_GROUP_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_GROUP_ACCESS_ID_g(long varValue) + { + H5P_LST_GROUP_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_GROUP_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_DATATYPE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_DATATYPE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_DATATYPE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1523,7 +1683,8 @@ private static class H5P_LST_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_CREATE_ID_g * } */ - public static OfLong H5P_LST_DATATYPE_CREATE_ID_g$layout() { + public static OfLong H5P_LST_DATATYPE_CREATE_ID_g$layout() + { return H5P_LST_DATATYPE_CREATE_ID_g$constants.LAYOUT; } @@ -1533,7 +1694,8 @@ private static class H5P_LST_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_DATATYPE_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_DATATYPE_CREATE_ID_g$segment() + { return H5P_LST_DATATYPE_CREATE_ID_g$constants.SEGMENT; } @@ -1543,8 +1705,10 @@ private static class H5P_LST_DATATYPE_CREATE_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_CREATE_ID_g * } */ - public static long H5P_LST_DATATYPE_CREATE_ID_g() { - return H5P_LST_DATATYPE_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_DATATYPE_CREATE_ID_g() + { + return H5P_LST_DATATYPE_CREATE_ID_g$constants.SEGMENT.get( + H5P_LST_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L); } /** @@ -1553,13 +1717,16 @@ public static long H5P_LST_DATATYPE_CREATE_ID_g() { * extern hid_t H5P_LST_DATATYPE_CREATE_ID_g * } */ - public static void H5P_LST_DATATYPE_CREATE_ID_g(long varValue) { - H5P_LST_DATATYPE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_DATATYPE_CREATE_ID_g(long varValue) + { + H5P_LST_DATATYPE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_DATATYPE_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_DATATYPE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_DATATYPE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_DATATYPE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1568,7 +1735,8 @@ private static class H5P_LST_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_ACCESS_ID_g * } */ - public static OfLong H5P_LST_DATATYPE_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_DATATYPE_ACCESS_ID_g$layout() + { return H5P_LST_DATATYPE_ACCESS_ID_g$constants.LAYOUT; } @@ -1578,7 +1746,8 @@ private static class H5P_LST_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_DATATYPE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_DATATYPE_ACCESS_ID_g$segment() + { return H5P_LST_DATATYPE_ACCESS_ID_g$constants.SEGMENT; } @@ -1588,8 +1757,10 @@ private static class H5P_LST_DATATYPE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_DATATYPE_ACCESS_ID_g * } */ - public static long H5P_LST_DATATYPE_ACCESS_ID_g() { - return H5P_LST_DATATYPE_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_DATATYPE_ACCESS_ID_g() + { + return H5P_LST_DATATYPE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_LST_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -1598,13 +1769,16 @@ public static long H5P_LST_DATATYPE_ACCESS_ID_g() { * extern hid_t H5P_LST_DATATYPE_ACCESS_ID_g * } */ - public static void H5P_LST_DATATYPE_ACCESS_ID_g(long varValue) { - H5P_LST_DATATYPE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_DATATYPE_ACCESS_ID_g(long varValue) + { + H5P_LST_DATATYPE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_DATATYPE_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_MAP_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_MAP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_MAP_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1613,9 +1787,7 @@ private static class H5P_LST_MAP_CREATE_ID_g$constants { * extern hid_t H5P_LST_MAP_CREATE_ID_g * } */ - public static OfLong H5P_LST_MAP_CREATE_ID_g$layout() { - return H5P_LST_MAP_CREATE_ID_g$constants.LAYOUT; - } + public static OfLong H5P_LST_MAP_CREATE_ID_g$layout() { return H5P_LST_MAP_CREATE_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -1623,7 +1795,8 @@ private static class H5P_LST_MAP_CREATE_ID_g$constants { * extern hid_t H5P_LST_MAP_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_MAP_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_MAP_CREATE_ID_g$segment() + { return H5P_LST_MAP_CREATE_ID_g$constants.SEGMENT; } @@ -1633,7 +1806,8 @@ private static class H5P_LST_MAP_CREATE_ID_g$constants { * extern hid_t H5P_LST_MAP_CREATE_ID_g * } */ - public static long H5P_LST_MAP_CREATE_ID_g() { + public static long H5P_LST_MAP_CREATE_ID_g() + { return H5P_LST_MAP_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_MAP_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -1643,13 +1817,15 @@ public static long H5P_LST_MAP_CREATE_ID_g() { * extern hid_t H5P_LST_MAP_CREATE_ID_g * } */ - public static void H5P_LST_MAP_CREATE_ID_g(long varValue) { + public static void H5P_LST_MAP_CREATE_ID_g(long varValue) + { H5P_LST_MAP_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_MAP_CREATE_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_LST_MAP_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_MAP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_MAP_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1658,9 +1834,7 @@ private static class H5P_LST_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_MAP_ACCESS_ID_g * } */ - public static OfLong H5P_LST_MAP_ACCESS_ID_g$layout() { - return H5P_LST_MAP_ACCESS_ID_g$constants.LAYOUT; - } + public static OfLong H5P_LST_MAP_ACCESS_ID_g$layout() { return H5P_LST_MAP_ACCESS_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -1668,7 +1842,8 @@ private static class H5P_LST_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_MAP_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_MAP_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_MAP_ACCESS_ID_g$segment() + { return H5P_LST_MAP_ACCESS_ID_g$constants.SEGMENT; } @@ -1678,7 +1853,8 @@ private static class H5P_LST_MAP_ACCESS_ID_g$constants { * extern hid_t H5P_LST_MAP_ACCESS_ID_g * } */ - public static long H5P_LST_MAP_ACCESS_ID_g() { + public static long H5P_LST_MAP_ACCESS_ID_g() + { return H5P_LST_MAP_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_MAP_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -1688,13 +1864,15 @@ public static long H5P_LST_MAP_ACCESS_ID_g() { * extern hid_t H5P_LST_MAP_ACCESS_ID_g * } */ - public static void H5P_LST_MAP_ACCESS_ID_g(long varValue) { + public static void H5P_LST_MAP_ACCESS_ID_g(long varValue) + { H5P_LST_MAP_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_MAP_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5P_LST_ATTRIBUTE_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_ATTRIBUTE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_ATTRIBUTE_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1703,7 +1881,8 @@ private static class H5P_LST_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_CREATE_ID_g * } */ - public static OfLong H5P_LST_ATTRIBUTE_CREATE_ID_g$layout() { + public static OfLong H5P_LST_ATTRIBUTE_CREATE_ID_g$layout() + { return H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT; } @@ -1713,7 +1892,8 @@ private static class H5P_LST_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_ATTRIBUTE_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_ATTRIBUTE_CREATE_ID_g$segment() + { return H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT; } @@ -1723,8 +1903,10 @@ private static class H5P_LST_ATTRIBUTE_CREATE_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_CREATE_ID_g * } */ - public static long H5P_LST_ATTRIBUTE_CREATE_ID_g() { - return H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_ATTRIBUTE_CREATE_ID_g() + { + return H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.get( + H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L); } /** @@ -1733,13 +1915,16 @@ public static long H5P_LST_ATTRIBUTE_CREATE_ID_g() { * extern hid_t H5P_LST_ATTRIBUTE_CREATE_ID_g * } */ - public static void H5P_LST_ATTRIBUTE_CREATE_ID_g(long varValue) { - H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_ATTRIBUTE_CREATE_ID_g(long varValue) + { + H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_ATTRIBUTE_CREATE_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_ATTRIBUTE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_ATTRIBUTE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1748,7 +1933,8 @@ private static class H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_ACCESS_ID_g * } */ - public static OfLong H5P_LST_ATTRIBUTE_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_ATTRIBUTE_ACCESS_ID_g$layout() + { return H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT; } @@ -1758,7 +1944,8 @@ private static class H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_ATTRIBUTE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_ATTRIBUTE_ACCESS_ID_g$segment() + { return H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT; } @@ -1768,8 +1955,10 @@ private static class H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_ATTRIBUTE_ACCESS_ID_g * } */ - public static long H5P_LST_ATTRIBUTE_ACCESS_ID_g() { - return H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_ATTRIBUTE_ACCESS_ID_g() + { + return H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -1778,13 +1967,16 @@ public static long H5P_LST_ATTRIBUTE_ACCESS_ID_g() { * extern hid_t H5P_LST_ATTRIBUTE_ACCESS_ID_g * } */ - public static void H5P_LST_ATTRIBUTE_ACCESS_ID_g(long varValue) { - H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_ATTRIBUTE_ACCESS_ID_g(long varValue) + { + H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_ATTRIBUTE_ACCESS_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5P_LST_OBJECT_COPY_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_OBJECT_COPY_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_OBJECT_COPY_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1793,7 +1985,8 @@ private static class H5P_LST_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_LST_OBJECT_COPY_ID_g * } */ - public static OfLong H5P_LST_OBJECT_COPY_ID_g$layout() { + public static OfLong H5P_LST_OBJECT_COPY_ID_g$layout() + { return H5P_LST_OBJECT_COPY_ID_g$constants.LAYOUT; } @@ -1803,7 +1996,8 @@ private static class H5P_LST_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_LST_OBJECT_COPY_ID_g * } */ - public static MemorySegment H5P_LST_OBJECT_COPY_ID_g$segment() { + public static MemorySegment H5P_LST_OBJECT_COPY_ID_g$segment() + { return H5P_LST_OBJECT_COPY_ID_g$constants.SEGMENT; } @@ -1813,7 +2007,8 @@ private static class H5P_LST_OBJECT_COPY_ID_g$constants { * extern hid_t H5P_LST_OBJECT_COPY_ID_g * } */ - public static long H5P_LST_OBJECT_COPY_ID_g() { + public static long H5P_LST_OBJECT_COPY_ID_g() + { return H5P_LST_OBJECT_COPY_ID_g$constants.SEGMENT.get(H5P_LST_OBJECT_COPY_ID_g$constants.LAYOUT, 0L); } @@ -1823,13 +2018,16 @@ public static long H5P_LST_OBJECT_COPY_ID_g() { * extern hid_t H5P_LST_OBJECT_COPY_ID_g * } */ - public static void H5P_LST_OBJECT_COPY_ID_g(long varValue) { - H5P_LST_OBJECT_COPY_ID_g$constants.SEGMENT.set(H5P_LST_OBJECT_COPY_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_OBJECT_COPY_ID_g(long varValue) + { + H5P_LST_OBJECT_COPY_ID_g$constants.SEGMENT.set(H5P_LST_OBJECT_COPY_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_LINK_CREATE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_LINK_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_LINK_CREATE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1838,7 +2036,8 @@ private static class H5P_LST_LINK_CREATE_ID_g$constants { * extern hid_t H5P_LST_LINK_CREATE_ID_g * } */ - public static OfLong H5P_LST_LINK_CREATE_ID_g$layout() { + public static OfLong H5P_LST_LINK_CREATE_ID_g$layout() + { return H5P_LST_LINK_CREATE_ID_g$constants.LAYOUT; } @@ -1848,7 +2047,8 @@ private static class H5P_LST_LINK_CREATE_ID_g$constants { * extern hid_t H5P_LST_LINK_CREATE_ID_g * } */ - public static MemorySegment H5P_LST_LINK_CREATE_ID_g$segment() { + public static MemorySegment H5P_LST_LINK_CREATE_ID_g$segment() + { return H5P_LST_LINK_CREATE_ID_g$constants.SEGMENT; } @@ -1858,7 +2058,8 @@ private static class H5P_LST_LINK_CREATE_ID_g$constants { * extern hid_t H5P_LST_LINK_CREATE_ID_g * } */ - public static long H5P_LST_LINK_CREATE_ID_g() { + public static long H5P_LST_LINK_CREATE_ID_g() + { return H5P_LST_LINK_CREATE_ID_g$constants.SEGMENT.get(H5P_LST_LINK_CREATE_ID_g$constants.LAYOUT, 0L); } @@ -1868,13 +2069,16 @@ public static long H5P_LST_LINK_CREATE_ID_g() { * extern hid_t H5P_LST_LINK_CREATE_ID_g * } */ - public static void H5P_LST_LINK_CREATE_ID_g(long varValue) { - H5P_LST_LINK_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_LINK_CREATE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_LINK_CREATE_ID_g(long varValue) + { + H5P_LST_LINK_CREATE_ID_g$constants.SEGMENT.set(H5P_LST_LINK_CREATE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_LINK_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_LINK_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_LINK_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1883,7 +2087,8 @@ private static class H5P_LST_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_LST_LINK_ACCESS_ID_g * } */ - public static OfLong H5P_LST_LINK_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_LINK_ACCESS_ID_g$layout() + { return H5P_LST_LINK_ACCESS_ID_g$constants.LAYOUT; } @@ -1893,7 +2098,8 @@ private static class H5P_LST_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_LST_LINK_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_LINK_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_LINK_ACCESS_ID_g$segment() + { return H5P_LST_LINK_ACCESS_ID_g$constants.SEGMENT; } @@ -1903,7 +2109,8 @@ private static class H5P_LST_LINK_ACCESS_ID_g$constants { * extern hid_t H5P_LST_LINK_ACCESS_ID_g * } */ - public static long H5P_LST_LINK_ACCESS_ID_g() { + public static long H5P_LST_LINK_ACCESS_ID_g() + { return H5P_LST_LINK_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_LINK_ACCESS_ID_g$constants.LAYOUT, 0L); } @@ -1913,13 +2120,16 @@ public static long H5P_LST_LINK_ACCESS_ID_g() { * extern hid_t H5P_LST_LINK_ACCESS_ID_g * } */ - public static void H5P_LST_LINK_ACCESS_ID_g(long varValue) { - H5P_LST_LINK_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_LINK_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_LINK_ACCESS_ID_g(long varValue) + { + H5P_LST_LINK_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_LINK_ACCESS_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_VOL_INITIALIZE_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_VOL_INITIALIZE_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_VOL_INITIALIZE_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1928,7 +2138,8 @@ private static class H5P_LST_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_LST_VOL_INITIALIZE_ID_g * } */ - public static OfLong H5P_LST_VOL_INITIALIZE_ID_g$layout() { + public static OfLong H5P_LST_VOL_INITIALIZE_ID_g$layout() + { return H5P_LST_VOL_INITIALIZE_ID_g$constants.LAYOUT; } @@ -1938,7 +2149,8 @@ private static class H5P_LST_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_LST_VOL_INITIALIZE_ID_g * } */ - public static MemorySegment H5P_LST_VOL_INITIALIZE_ID_g$segment() { + public static MemorySegment H5P_LST_VOL_INITIALIZE_ID_g$segment() + { return H5P_LST_VOL_INITIALIZE_ID_g$constants.SEGMENT; } @@ -1948,8 +2160,10 @@ private static class H5P_LST_VOL_INITIALIZE_ID_g$constants { * extern hid_t H5P_LST_VOL_INITIALIZE_ID_g * } */ - public static long H5P_LST_VOL_INITIALIZE_ID_g() { - return H5P_LST_VOL_INITIALIZE_ID_g$constants.SEGMENT.get(H5P_LST_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_VOL_INITIALIZE_ID_g() + { + return H5P_LST_VOL_INITIALIZE_ID_g$constants.SEGMENT.get(H5P_LST_VOL_INITIALIZE_ID_g$constants.LAYOUT, + 0L); } /** @@ -1958,13 +2172,16 @@ public static long H5P_LST_VOL_INITIALIZE_ID_g() { * extern hid_t H5P_LST_VOL_INITIALIZE_ID_g * } */ - public static void H5P_LST_VOL_INITIALIZE_ID_g(long varValue) { - H5P_LST_VOL_INITIALIZE_ID_g$constants.SEGMENT.set(H5P_LST_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_VOL_INITIALIZE_ID_g(long varValue) + { + H5P_LST_VOL_INITIALIZE_ID_g$constants.SEGMENT.set(H5P_LST_VOL_INITIALIZE_ID_g$constants.LAYOUT, 0L, + varValue); } private static class H5P_LST_REFERENCE_ACCESS_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5P_LST_REFERENCE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5P_LST_REFERENCE_ACCESS_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1973,7 +2190,8 @@ private static class H5P_LST_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_REFERENCE_ACCESS_ID_g * } */ - public static OfLong H5P_LST_REFERENCE_ACCESS_ID_g$layout() { + public static OfLong H5P_LST_REFERENCE_ACCESS_ID_g$layout() + { return H5P_LST_REFERENCE_ACCESS_ID_g$constants.LAYOUT; } @@ -1983,7 +2201,8 @@ private static class H5P_LST_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_REFERENCE_ACCESS_ID_g * } */ - public static MemorySegment H5P_LST_REFERENCE_ACCESS_ID_g$segment() { + public static MemorySegment H5P_LST_REFERENCE_ACCESS_ID_g$segment() + { return H5P_LST_REFERENCE_ACCESS_ID_g$constants.SEGMENT; } @@ -1993,8 +2212,10 @@ private static class H5P_LST_REFERENCE_ACCESS_ID_g$constants { * extern hid_t H5P_LST_REFERENCE_ACCESS_ID_g * } */ - public static long H5P_LST_REFERENCE_ACCESS_ID_g() { - return H5P_LST_REFERENCE_ACCESS_ID_g$constants.SEGMENT.get(H5P_LST_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L); + public static long H5P_LST_REFERENCE_ACCESS_ID_g() + { + return H5P_LST_REFERENCE_ACCESS_ID_g$constants.SEGMENT.get( + H5P_LST_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L); } /** @@ -2003,15 +2224,14 @@ public static long H5P_LST_REFERENCE_ACCESS_ID_g() { * extern hid_t H5P_LST_REFERENCE_ACCESS_ID_g * } */ - public static void H5P_LST_REFERENCE_ACCESS_ID_g(long varValue) { - H5P_LST_REFERENCE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_REFERENCE_ACCESS_ID_g$constants.LAYOUT, 0L, varValue); + public static void H5P_LST_REFERENCE_ACCESS_ID_g(long varValue) + { + H5P_LST_REFERENCE_ACCESS_ID_g$constants.SEGMENT.set(H5P_LST_REFERENCE_ACCESS_ID_g$constants.LAYOUT, + 0L, varValue); } private static class H5Pclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pclose"); @@ -2024,9 +2244,7 @@ private static class H5Pclose { * herr_t H5Pclose(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pclose$descriptor() { - return H5Pclose.DESC; - } + public static FunctionDescriptor H5Pclose$descriptor() { return H5Pclose.DESC; } /** * Downcall method handle for: @@ -2034,9 +2252,7 @@ private static class H5Pclose { * herr_t H5Pclose(hid_t plist_id) * } */ - public static MethodHandle H5Pclose$handle() { - return H5Pclose.HANDLE; - } + public static MethodHandle H5Pclose$handle() { return H5Pclose.HANDLE; } /** * Address for: @@ -2044,32 +2260,29 @@ private static class H5Pclose { * herr_t H5Pclose(hid_t plist_id) * } */ - public static MemorySegment H5Pclose$address() { - return H5Pclose.ADDR; - } + public static MemorySegment H5Pclose$address() { return H5Pclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Pclose(hid_t plist_id) * } */ - public static int H5Pclose(long plist_id) { + public static int H5Pclose(long plist_id) + { var mh$ = H5Pclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pclose", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pclose_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pclose_class"); @@ -2082,9 +2295,7 @@ private static class H5Pclose_class { * herr_t H5Pclose_class(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pclose_class$descriptor() { - return H5Pclose_class.DESC; - } + public static FunctionDescriptor H5Pclose_class$descriptor() { return H5Pclose_class.DESC; } /** * Downcall method handle for: @@ -2092,9 +2303,7 @@ private static class H5Pclose_class { * herr_t H5Pclose_class(hid_t plist_id) * } */ - public static MethodHandle H5Pclose_class$handle() { - return H5Pclose_class.HANDLE; - } + public static MethodHandle H5Pclose_class$handle() { return H5Pclose_class.HANDLE; } /** * Address for: @@ -2102,32 +2311,29 @@ private static class H5Pclose_class { * herr_t H5Pclose_class(hid_t plist_id) * } */ - public static MemorySegment H5Pclose_class$address() { - return H5Pclose_class.ADDR; - } + public static MemorySegment H5Pclose_class$address() { return H5Pclose_class.ADDR; } /** * {@snippet lang=c : * herr_t H5Pclose_class(hid_t plist_id) * } */ - public static int H5Pclose_class(long plist_id) { + public static int H5Pclose_class(long plist_id) + { var mh$ = H5Pclose_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pclose_class", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pcopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pcopy"); @@ -2140,9 +2346,7 @@ private static class H5Pcopy { * hid_t H5Pcopy(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pcopy$descriptor() { - return H5Pcopy.DESC; - } + public static FunctionDescriptor H5Pcopy$descriptor() { return H5Pcopy.DESC; } /** * Downcall method handle for: @@ -2150,9 +2354,7 @@ private static class H5Pcopy { * hid_t H5Pcopy(hid_t plist_id) * } */ - public static MethodHandle H5Pcopy$handle() { - return H5Pcopy.HANDLE; - } + public static MethodHandle H5Pcopy$handle() { return H5Pcopy.HANDLE; } /** * Address for: @@ -2160,34 +2362,30 @@ private static class H5Pcopy { * hid_t H5Pcopy(hid_t plist_id) * } */ - public static MemorySegment H5Pcopy$address() { - return H5Pcopy.ADDR; - } + public static MemorySegment H5Pcopy$address() { return H5Pcopy.ADDR; } /** * {@snippet lang=c : * hid_t H5Pcopy(hid_t plist_id) * } */ - public static long H5Pcopy(long plist_id) { + public static long H5Pcopy(long plist_id) + { var mh$ = H5Pcopy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pcopy", plist_id); } return (long)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pcopy_prop { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pcopy_prop"); @@ -2200,9 +2398,7 @@ private static class H5Pcopy_prop { * herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name) * } */ - public static FunctionDescriptor H5Pcopy_prop$descriptor() { - return H5Pcopy_prop.DESC; - } + public static FunctionDescriptor H5Pcopy_prop$descriptor() { return H5Pcopy_prop.DESC; } /** * Downcall method handle for: @@ -2210,9 +2406,7 @@ private static class H5Pcopy_prop { * herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name) * } */ - public static MethodHandle H5Pcopy_prop$handle() { - return H5Pcopy_prop.HANDLE; - } + public static MethodHandle H5Pcopy_prop$handle() { return H5Pcopy_prop.HANDLE; } /** * Address for: @@ -2220,32 +2414,29 @@ private static class H5Pcopy_prop { * herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name) * } */ - public static MemorySegment H5Pcopy_prop$address() { - return H5Pcopy_prop.ADDR; - } + public static MemorySegment H5Pcopy_prop$address() { return H5Pcopy_prop.ADDR; } /** * {@snippet lang=c : * herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name) * } */ - public static int H5Pcopy_prop(long dst_id, long src_id, MemorySegment name) { + public static int H5Pcopy_prop(long dst_id, long src_id, MemorySegment name) + { var mh$ = H5Pcopy_prop.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pcopy_prop", dst_id, src_id, name); } return (int)mh$.invokeExact(dst_id, src_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pcreate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pcreate"); @@ -2258,9 +2449,7 @@ private static class H5Pcreate { * hid_t H5Pcreate(hid_t cls_id) * } */ - public static FunctionDescriptor H5Pcreate$descriptor() { - return H5Pcreate.DESC; - } + public static FunctionDescriptor H5Pcreate$descriptor() { return H5Pcreate.DESC; } /** * Downcall method handle for: @@ -2268,9 +2457,7 @@ private static class H5Pcreate { * hid_t H5Pcreate(hid_t cls_id) * } */ - public static MethodHandle H5Pcreate$handle() { - return H5Pcreate.HANDLE; - } + public static MethodHandle H5Pcreate$handle() { return H5Pcreate.HANDLE; } /** * Address for: @@ -2278,39 +2465,31 @@ private static class H5Pcreate { * hid_t H5Pcreate(hid_t cls_id) * } */ - public static MemorySegment H5Pcreate$address() { - return H5Pcreate.ADDR; - } + public static MemorySegment H5Pcreate$address() { return H5Pcreate.ADDR; } /** * {@snippet lang=c : * hid_t H5Pcreate(hid_t cls_id) * } */ - public static long H5Pcreate(long cls_id) { + public static long H5Pcreate(long cls_id) + { var mh$ = H5Pcreate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pcreate", cls_id); } return (long)mh$.invokeExact(cls_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pcreate_class { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pcreate_class"); @@ -2320,55 +2499,56 @@ private static class H5Pcreate_class { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) + * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, + * H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) * } */ - public static FunctionDescriptor H5Pcreate_class$descriptor() { - return H5Pcreate_class.DESC; - } + public static FunctionDescriptor H5Pcreate_class$descriptor() { return H5Pcreate_class.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) + * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, + * H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) * } */ - public static MethodHandle H5Pcreate_class$handle() { - return H5Pcreate_class.HANDLE; - } + public static MethodHandle H5Pcreate_class$handle() { return H5Pcreate_class.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) + * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, + * H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) * } */ - public static MemorySegment H5Pcreate_class$address() { - return H5Pcreate_class.ADDR; - } + public static MemorySegment H5Pcreate_class$address() { return H5Pcreate_class.ADDR; } /** * {@snippet lang=c : - * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) + * hid_t H5Pcreate_class(hid_t parent, const char *name, H5P_cls_create_func_t create, void *create_data, + * H5P_cls_copy_func_t copy, void *copy_data, H5P_cls_close_func_t close, void *close_data) * } */ - public static long H5Pcreate_class(long parent, MemorySegment name, MemorySegment create, MemorySegment create_data, MemorySegment copy, MemorySegment copy_data, MemorySegment close, MemorySegment close_data) { + public static long H5Pcreate_class(long parent, MemorySegment name, MemorySegment create, + MemorySegment create_data, MemorySegment copy, MemorySegment copy_data, + MemorySegment close, MemorySegment close_data) + { var mh$ = H5Pcreate_class.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pcreate_class", parent, name, create, create_data, copy, copy_data, close, close_data); + traceDowncall("H5Pcreate_class", parent, name, create, create_data, copy, copy_data, close, + close_data); } - return (long)mh$.invokeExact(parent, name, create, create_data, copy, copy_data, close, close_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(parent, name, create, create_data, copy, copy_data, close, + close_data); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pdecode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pdecode"); @@ -2381,9 +2561,7 @@ private static class H5Pdecode { * hid_t H5Pdecode(const void *buf) * } */ - public static FunctionDescriptor H5Pdecode$descriptor() { - return H5Pdecode.DESC; - } + public static FunctionDescriptor H5Pdecode$descriptor() { return H5Pdecode.DESC; } /** * Downcall method handle for: @@ -2391,9 +2569,7 @@ private static class H5Pdecode { * hid_t H5Pdecode(const void *buf) * } */ - public static MethodHandle H5Pdecode$handle() { - return H5Pdecode.HANDLE; - } + public static MethodHandle H5Pdecode$handle() { return H5Pdecode.HANDLE; } /** * Address for: @@ -2401,35 +2577,30 @@ private static class H5Pdecode { * hid_t H5Pdecode(const void *buf) * } */ - public static MemorySegment H5Pdecode$address() { - return H5Pdecode.ADDR; - } + public static MemorySegment H5Pdecode$address() { return H5Pdecode.ADDR; } /** * {@snippet lang=c : * hid_t H5Pdecode(const void *buf) * } */ - public static long H5Pdecode(MemorySegment buf) { + public static long H5Pdecode(MemorySegment buf) + { var mh$ = H5Pdecode.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pdecode", buf); } return (long)mh$.invokeExact(buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pencode2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pencode2"); @@ -2442,9 +2613,7 @@ private static class H5Pencode2 { * herr_t H5Pencode2(hid_t plist_id, void *buf, size_t *nalloc, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Pencode2$descriptor() { - return H5Pencode2.DESC; - } + public static FunctionDescriptor H5Pencode2$descriptor() { return H5Pencode2.DESC; } /** * Downcall method handle for: @@ -2452,9 +2621,7 @@ private static class H5Pencode2 { * herr_t H5Pencode2(hid_t plist_id, void *buf, size_t *nalloc, hid_t fapl_id) * } */ - public static MethodHandle H5Pencode2$handle() { - return H5Pencode2.HANDLE; - } + public static MethodHandle H5Pencode2$handle() { return H5Pencode2.HANDLE; } /** * Address for: @@ -2462,33 +2629,30 @@ private static class H5Pencode2 { * herr_t H5Pencode2(hid_t plist_id, void *buf, size_t *nalloc, hid_t fapl_id) * } */ - public static MemorySegment H5Pencode2$address() { - return H5Pencode2.ADDR; - } + public static MemorySegment H5Pencode2$address() { return H5Pencode2.ADDR; } /** * {@snippet lang=c : * herr_t H5Pencode2(hid_t plist_id, void *buf, size_t *nalloc, hid_t fapl_id) * } */ - public static int H5Pencode2(long plist_id, MemorySegment buf, MemorySegment nalloc, long fapl_id) { + public static int H5Pencode2(long plist_id, MemorySegment buf, MemorySegment nalloc, long fapl_id) + { var mh$ = H5Pencode2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pencode2", plist_id, buf, nalloc, fapl_id); } return (int)mh$.invokeExact(plist_id, buf, nalloc, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pequal { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pequal"); @@ -2501,9 +2665,7 @@ private static class H5Pequal { * htri_t H5Pequal(hid_t id1, hid_t id2) * } */ - public static FunctionDescriptor H5Pequal$descriptor() { - return H5Pequal.DESC; - } + public static FunctionDescriptor H5Pequal$descriptor() { return H5Pequal.DESC; } /** * Downcall method handle for: @@ -2511,9 +2673,7 @@ private static class H5Pequal { * htri_t H5Pequal(hid_t id1, hid_t id2) * } */ - public static MethodHandle H5Pequal$handle() { - return H5Pequal.HANDLE; - } + public static MethodHandle H5Pequal$handle() { return H5Pequal.HANDLE; } /** * Address for: @@ -2521,33 +2681,30 @@ private static class H5Pequal { * htri_t H5Pequal(hid_t id1, hid_t id2) * } */ - public static MemorySegment H5Pequal$address() { - return H5Pequal.ADDR; - } + public static MemorySegment H5Pequal$address() { return H5Pequal.ADDR; } /** * {@snippet lang=c : * htri_t H5Pequal(hid_t id1, hid_t id2) * } */ - public static int H5Pequal(long id1, long id2) { + public static int H5Pequal(long id1, long id2) + { var mh$ = H5Pequal.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pequal", id1, id2); } return (int)mh$.invokeExact(id1, id2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pexist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pexist"); @@ -2560,9 +2717,7 @@ private static class H5Pexist { * htri_t H5Pexist(hid_t plist_id, const char *name) * } */ - public static FunctionDescriptor H5Pexist$descriptor() { - return H5Pexist.DESC; - } + public static FunctionDescriptor H5Pexist$descriptor() { return H5Pexist.DESC; } /** * Downcall method handle for: @@ -2570,9 +2725,7 @@ private static class H5Pexist { * htri_t H5Pexist(hid_t plist_id, const char *name) * } */ - public static MethodHandle H5Pexist$handle() { - return H5Pexist.HANDLE; - } + public static MethodHandle H5Pexist$handle() { return H5Pexist.HANDLE; } /** * Address for: @@ -2580,34 +2733,30 @@ private static class H5Pexist { * htri_t H5Pexist(hid_t plist_id, const char *name) * } */ - public static MemorySegment H5Pexist$address() { - return H5Pexist.ADDR; - } + public static MemorySegment H5Pexist$address() { return H5Pexist.ADDR; } /** * {@snippet lang=c : * htri_t H5Pexist(hid_t plist_id, const char *name) * } */ - public static int H5Pexist(long plist_id, MemorySegment name) { + public static int H5Pexist(long plist_id, MemorySegment name) + { var mh$ = H5Pexist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pexist", plist_id, name); } return (int)mh$.invokeExact(plist_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget"); @@ -2620,9 +2769,7 @@ private static class H5Pget { * herr_t H5Pget(hid_t plist_id, const char *name, void *value) * } */ - public static FunctionDescriptor H5Pget$descriptor() { - return H5Pget.DESC; - } + public static FunctionDescriptor H5Pget$descriptor() { return H5Pget.DESC; } /** * Downcall method handle for: @@ -2630,9 +2777,7 @@ private static class H5Pget { * herr_t H5Pget(hid_t plist_id, const char *name, void *value) * } */ - public static MethodHandle H5Pget$handle() { - return H5Pget.HANDLE; - } + public static MethodHandle H5Pget$handle() { return H5Pget.HANDLE; } /** * Address for: @@ -2640,32 +2785,29 @@ private static class H5Pget { * herr_t H5Pget(hid_t plist_id, const char *name, void *value) * } */ - public static MemorySegment H5Pget$address() { - return H5Pget.ADDR; - } + public static MemorySegment H5Pget$address() { return H5Pget.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget(hid_t plist_id, const char *name, void *value) * } */ - public static int H5Pget(long plist_id, MemorySegment name, MemorySegment value) { + public static int H5Pget(long plist_id, MemorySegment name, MemorySegment value) + { var mh$ = H5Pget.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget", plist_id, name, value); } return (int)mh$.invokeExact(plist_id, name, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_class"); @@ -2678,9 +2820,7 @@ private static class H5Pget_class { * hid_t H5Pget_class(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_class$descriptor() { - return H5Pget_class.DESC; - } + public static FunctionDescriptor H5Pget_class$descriptor() { return H5Pget_class.DESC; } /** * Downcall method handle for: @@ -2688,9 +2828,7 @@ private static class H5Pget_class { * hid_t H5Pget_class(hid_t plist_id) * } */ - public static MethodHandle H5Pget_class$handle() { - return H5Pget_class.HANDLE; - } + public static MethodHandle H5Pget_class$handle() { return H5Pget_class.HANDLE; } /** * Address for: @@ -2698,32 +2836,29 @@ private static class H5Pget_class { * hid_t H5Pget_class(hid_t plist_id) * } */ - public static MemorySegment H5Pget_class$address() { - return H5Pget_class.ADDR; - } + public static MemorySegment H5Pget_class$address() { return H5Pget_class.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_class(hid_t plist_id) * } */ - public static long H5Pget_class(long plist_id) { + public static long H5Pget_class(long plist_id) + { var mh$ = H5Pget_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_class", plist_id); } return (long)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_class_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_class_name"); @@ -2736,9 +2871,7 @@ private static class H5Pget_class_name { * char *H5Pget_class_name(hid_t pclass_id) * } */ - public static FunctionDescriptor H5Pget_class_name$descriptor() { - return H5Pget_class_name.DESC; - } + public static FunctionDescriptor H5Pget_class_name$descriptor() { return H5Pget_class_name.DESC; } /** * Downcall method handle for: @@ -2746,9 +2879,7 @@ private static class H5Pget_class_name { * char *H5Pget_class_name(hid_t pclass_id) * } */ - public static MethodHandle H5Pget_class_name$handle() { - return H5Pget_class_name.HANDLE; - } + public static MethodHandle H5Pget_class_name$handle() { return H5Pget_class_name.HANDLE; } /** * Address for: @@ -2756,32 +2887,29 @@ private static class H5Pget_class_name { * char *H5Pget_class_name(hid_t pclass_id) * } */ - public static MemorySegment H5Pget_class_name$address() { - return H5Pget_class_name.ADDR; - } + public static MemorySegment H5Pget_class_name$address() { return H5Pget_class_name.ADDR; } /** * {@snippet lang=c : * char *H5Pget_class_name(hid_t pclass_id) * } */ - public static MemorySegment H5Pget_class_name(long pclass_id) { + public static MemorySegment H5Pget_class_name(long pclass_id) + { var mh$ = H5Pget_class_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_class_name", pclass_id); } return (MemorySegment)mh$.invokeExact(pclass_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_class_parent { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_class_parent"); @@ -2794,9 +2922,7 @@ private static class H5Pget_class_parent { * hid_t H5Pget_class_parent(hid_t pclass_id) * } */ - public static FunctionDescriptor H5Pget_class_parent$descriptor() { - return H5Pget_class_parent.DESC; - } + public static FunctionDescriptor H5Pget_class_parent$descriptor() { return H5Pget_class_parent.DESC; } /** * Downcall method handle for: @@ -2804,9 +2930,7 @@ private static class H5Pget_class_parent { * hid_t H5Pget_class_parent(hid_t pclass_id) * } */ - public static MethodHandle H5Pget_class_parent$handle() { - return H5Pget_class_parent.HANDLE; - } + public static MethodHandle H5Pget_class_parent$handle() { return H5Pget_class_parent.HANDLE; } /** * Address for: @@ -2814,33 +2938,30 @@ private static class H5Pget_class_parent { * hid_t H5Pget_class_parent(hid_t pclass_id) * } */ - public static MemorySegment H5Pget_class_parent$address() { - return H5Pget_class_parent.ADDR; - } + public static MemorySegment H5Pget_class_parent$address() { return H5Pget_class_parent.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_class_parent(hid_t pclass_id) * } */ - public static long H5Pget_class_parent(long pclass_id) { + public static long H5Pget_class_parent(long pclass_id) + { var mh$ = H5Pget_class_parent.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_class_parent", pclass_id); } return (long)mh$.invokeExact(pclass_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_nprops { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_nprops"); @@ -2853,9 +2974,7 @@ private static class H5Pget_nprops { * herr_t H5Pget_nprops(hid_t id, size_t *nprops) * } */ - public static FunctionDescriptor H5Pget_nprops$descriptor() { - return H5Pget_nprops.DESC; - } + public static FunctionDescriptor H5Pget_nprops$descriptor() { return H5Pget_nprops.DESC; } /** * Downcall method handle for: @@ -2863,9 +2982,7 @@ private static class H5Pget_nprops { * herr_t H5Pget_nprops(hid_t id, size_t *nprops) * } */ - public static MethodHandle H5Pget_nprops$handle() { - return H5Pget_nprops.HANDLE; - } + public static MethodHandle H5Pget_nprops$handle() { return H5Pget_nprops.HANDLE; } /** * Address for: @@ -2873,34 +2990,30 @@ private static class H5Pget_nprops { * herr_t H5Pget_nprops(hid_t id, size_t *nprops) * } */ - public static MemorySegment H5Pget_nprops$address() { - return H5Pget_nprops.ADDR; - } + public static MemorySegment H5Pget_nprops$address() { return H5Pget_nprops.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_nprops(hid_t id, size_t *nprops) * } */ - public static int H5Pget_nprops(long id, MemorySegment nprops) { + public static int H5Pget_nprops(long id, MemorySegment nprops) + { var mh$ = H5Pget_nprops.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_nprops", id, nprops); } return (int)mh$.invokeExact(id, nprops); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_size"); @@ -2913,9 +3026,7 @@ private static class H5Pget_size { * herr_t H5Pget_size(hid_t id, const char *name, size_t *size) * } */ - public static FunctionDescriptor H5Pget_size$descriptor() { - return H5Pget_size.DESC; - } + public static FunctionDescriptor H5Pget_size$descriptor() { return H5Pget_size.DESC; } /** * Downcall method handle for: @@ -2923,9 +3034,7 @@ private static class H5Pget_size { * herr_t H5Pget_size(hid_t id, const char *name, size_t *size) * } */ - public static MethodHandle H5Pget_size$handle() { - return H5Pget_size.HANDLE; - } + public static MethodHandle H5Pget_size$handle() { return H5Pget_size.HANDLE; } /** * Address for: @@ -2933,41 +3042,31 @@ private static class H5Pget_size { * herr_t H5Pget_size(hid_t id, const char *name, size_t *size) * } */ - public static MemorySegment H5Pget_size$address() { - return H5Pget_size.ADDR; - } + public static MemorySegment H5Pget_size$address() { return H5Pget_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_size(hid_t id, const char *name, size_t *size) * } */ - public static int H5Pget_size(long id, MemorySegment name, MemorySegment size) { + public static int H5Pget_size(long id, MemorySegment name, MemorySegment size) + { var mh$ = H5Pget_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_size", id, name, size); } return (int)mh$.invokeExact(id, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pinsert2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pinsert2"); @@ -2977,56 +3076,60 @@ private static class H5Pinsert2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, + * H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t + * compare, H5P_prp_close_func_t close) * } */ - public static FunctionDescriptor H5Pinsert2$descriptor() { - return H5Pinsert2.DESC; - } + public static FunctionDescriptor H5Pinsert2$descriptor() { return H5Pinsert2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, + * H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t + * compare, H5P_prp_close_func_t close) * } */ - public static MethodHandle H5Pinsert2$handle() { - return H5Pinsert2.HANDLE; - } + public static MethodHandle H5Pinsert2$handle() { return H5Pinsert2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, + * H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t + * compare, H5P_prp_close_func_t close) * } */ - public static MemorySegment H5Pinsert2$address() { - return H5Pinsert2.ADDR; - } + public static MemorySegment H5Pinsert2$address() { return H5Pinsert2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pinsert2(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t set, + * H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t + * compare, H5P_prp_close_func_t close) * } */ - public static int H5Pinsert2(long plist_id, MemorySegment name, long size, MemorySegment value, MemorySegment set, MemorySegment get, MemorySegment prp_del, MemorySegment copy, MemorySegment compare, MemorySegment close) { + public static int H5Pinsert2(long plist_id, MemorySegment name, long size, MemorySegment value, + MemorySegment set, MemorySegment get, MemorySegment prp_del, + MemorySegment copy, MemorySegment compare, MemorySegment close) + { var mh$ = H5Pinsert2.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pinsert2", plist_id, name, size, value, set, get, prp_del, copy, compare, close); + traceDowncall("H5Pinsert2", plist_id, name, size, value, set, get, prp_del, copy, compare, + close); } return (int)mh$.invokeExact(plist_id, name, size, value, set, get, prp_del, copy, compare, close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pisa_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pisa_class"); @@ -3039,9 +3142,7 @@ private static class H5Pisa_class { * htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id) * } */ - public static FunctionDescriptor H5Pisa_class$descriptor() { - return H5Pisa_class.DESC; - } + public static FunctionDescriptor H5Pisa_class$descriptor() { return H5Pisa_class.DESC; } /** * Downcall method handle for: @@ -3049,9 +3150,7 @@ private static class H5Pisa_class { * htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id) * } */ - public static MethodHandle H5Pisa_class$handle() { - return H5Pisa_class.HANDLE; - } + public static MethodHandle H5Pisa_class$handle() { return H5Pisa_class.HANDLE; } /** * Address for: @@ -3059,35 +3158,30 @@ private static class H5Pisa_class { * htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id) * } */ - public static MemorySegment H5Pisa_class$address() { - return H5Pisa_class.ADDR; - } + public static MemorySegment H5Pisa_class$address() { return H5Pisa_class.ADDR; } /** * {@snippet lang=c : * htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id) * } */ - public static int H5Pisa_class(long plist_id, long pclass_id) { + public static int H5Pisa_class(long plist_id, long pclass_id) + { var mh$ = H5Pisa_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pisa_class", plist_id, pclass_id); } return (int)mh$.invokeExact(plist_id, pclass_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Piterate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Piterate"); @@ -3100,9 +3194,7 @@ private static class H5Piterate { * int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data) * } */ - public static FunctionDescriptor H5Piterate$descriptor() { - return H5Piterate.DESC; - } + public static FunctionDescriptor H5Piterate$descriptor() { return H5Piterate.DESC; } /** * Downcall method handle for: @@ -3110,9 +3202,7 @@ private static class H5Piterate { * int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data) * } */ - public static MethodHandle H5Piterate$handle() { - return H5Piterate.HANDLE; - } + public static MethodHandle H5Piterate$handle() { return H5Piterate.HANDLE; } /** * Address for: @@ -3120,42 +3210,32 @@ private static class H5Piterate { * int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data) * } */ - public static MemorySegment H5Piterate$address() { - return H5Piterate.ADDR; - } + public static MemorySegment H5Piterate$address() { return H5Piterate.ADDR; } /** * {@snippet lang=c : * int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data) * } */ - public static int H5Piterate(long id, MemorySegment idx, MemorySegment iter_func, MemorySegment iter_data) { + public static int H5Piterate(long id, MemorySegment idx, MemorySegment iter_func, MemorySegment iter_data) + { var mh$ = H5Piterate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Piterate", id, idx, iter_func, iter_data); } return (int)mh$.invokeExact(id, idx, iter_func, iter_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pregister2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pregister2"); @@ -3165,56 +3245,62 @@ private static class H5Pregister2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) * } */ - public static FunctionDescriptor H5Pregister2$descriptor() { - return H5Pregister2.DESC; - } + public static FunctionDescriptor H5Pregister2$descriptor() { return H5Pregister2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) * } */ - public static MethodHandle H5Pregister2$handle() { - return H5Pregister2.HANDLE; - } + public static MethodHandle H5Pregister2$handle() { return H5Pregister2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) * } */ - public static MemorySegment H5Pregister2$address() { - return H5Pregister2.ADDR; - } + public static MemorySegment H5Pregister2$address() { return H5Pregister2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) + * herr_t H5Pregister2(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * create, H5P_prp_set_func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) * } */ - public static int H5Pregister2(long cls_id, MemorySegment name, long size, MemorySegment def_value, MemorySegment create, MemorySegment set, MemorySegment get, MemorySegment prp_del, MemorySegment copy, MemorySegment compare, MemorySegment close) { + public static int H5Pregister2(long cls_id, MemorySegment name, long size, MemorySegment def_value, + MemorySegment create, MemorySegment set, MemorySegment get, + MemorySegment prp_del, MemorySegment copy, MemorySegment compare, + MemorySegment close) + { var mh$ = H5Pregister2.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pregister2", cls_id, name, size, def_value, create, set, get, prp_del, copy, compare, close); + traceDowncall("H5Pregister2", cls_id, name, size, def_value, create, set, get, prp_del, copy, + compare, close); } - return (int)mh$.invokeExact(cls_id, name, size, def_value, create, set, get, prp_del, copy, compare, close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(cls_id, name, size, def_value, create, set, get, prp_del, copy, + compare, close); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Premove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Premove"); @@ -3227,9 +3313,7 @@ private static class H5Premove { * herr_t H5Premove(hid_t plist_id, const char *name) * } */ - public static FunctionDescriptor H5Premove$descriptor() { - return H5Premove.DESC; - } + public static FunctionDescriptor H5Premove$descriptor() { return H5Premove.DESC; } /** * Downcall method handle for: @@ -3237,9 +3321,7 @@ private static class H5Premove { * herr_t H5Premove(hid_t plist_id, const char *name) * } */ - public static MethodHandle H5Premove$handle() { - return H5Premove.HANDLE; - } + public static MethodHandle H5Premove$handle() { return H5Premove.HANDLE; } /** * Address for: @@ -3247,34 +3329,30 @@ private static class H5Premove { * herr_t H5Premove(hid_t plist_id, const char *name) * } */ - public static MemorySegment H5Premove$address() { - return H5Premove.ADDR; - } + public static MemorySegment H5Premove$address() { return H5Premove.ADDR; } /** * {@snippet lang=c : * herr_t H5Premove(hid_t plist_id, const char *name) * } */ - public static int H5Premove(long plist_id, MemorySegment name) { + public static int H5Premove(long plist_id, MemorySegment name) + { var mh$ = H5Premove.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Premove", plist_id, name); } return (int)mh$.invokeExact(plist_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset"); @@ -3287,9 +3365,7 @@ private static class H5Pset { * herr_t H5Pset(hid_t plist_id, const char *name, const void *value) * } */ - public static FunctionDescriptor H5Pset$descriptor() { - return H5Pset.DESC; - } + public static FunctionDescriptor H5Pset$descriptor() { return H5Pset.DESC; } /** * Downcall method handle for: @@ -3297,9 +3373,7 @@ private static class H5Pset { * herr_t H5Pset(hid_t plist_id, const char *name, const void *value) * } */ - public static MethodHandle H5Pset$handle() { - return H5Pset.HANDLE; - } + public static MethodHandle H5Pset$handle() { return H5Pset.HANDLE; } /** * Address for: @@ -3307,33 +3381,30 @@ private static class H5Pset { * herr_t H5Pset(hid_t plist_id, const char *name, const void *value) * } */ - public static MemorySegment H5Pset$address() { - return H5Pset.ADDR; - } + public static MemorySegment H5Pset$address() { return H5Pset.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset(hid_t plist_id, const char *name, const void *value) * } */ - public static int H5Pset(long plist_id, MemorySegment name, MemorySegment value) { + public static int H5Pset(long plist_id, MemorySegment name, MemorySegment value) + { var mh$ = H5Pset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset", plist_id, name, value); } return (int)mh$.invokeExact(plist_id, name, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Punregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Punregister"); @@ -3346,9 +3417,7 @@ private static class H5Punregister { * herr_t H5Punregister(hid_t pclass_id, const char *name) * } */ - public static FunctionDescriptor H5Punregister$descriptor() { - return H5Punregister.DESC; - } + public static FunctionDescriptor H5Punregister$descriptor() { return H5Punregister.DESC; } /** * Downcall method handle for: @@ -3356,9 +3425,7 @@ private static class H5Punregister { * herr_t H5Punregister(hid_t pclass_id, const char *name) * } */ - public static MethodHandle H5Punregister$handle() { - return H5Punregister.HANDLE; - } + public static MethodHandle H5Punregister$handle() { return H5Punregister.HANDLE; } /** * Address for: @@ -3366,32 +3433,29 @@ private static class H5Punregister { * herr_t H5Punregister(hid_t pclass_id, const char *name) * } */ - public static MemorySegment H5Punregister$address() { - return H5Punregister.ADDR; - } + public static MemorySegment H5Punregister$address() { return H5Punregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Punregister(hid_t pclass_id, const char *name) * } */ - public static int H5Punregister(long pclass_id, MemorySegment name) { + public static int H5Punregister(long pclass_id, MemorySegment name) + { var mh$ = H5Punregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Punregister", pclass_id, name); } return (int)mh$.invokeExact(pclass_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pall_filters_avail { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pall_filters_avail"); @@ -3404,9 +3468,7 @@ private static class H5Pall_filters_avail { * htri_t H5Pall_filters_avail(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pall_filters_avail$descriptor() { - return H5Pall_filters_avail.DESC; - } + public static FunctionDescriptor H5Pall_filters_avail$descriptor() { return H5Pall_filters_avail.DESC; } /** * Downcall method handle for: @@ -3414,9 +3476,7 @@ private static class H5Pall_filters_avail { * htri_t H5Pall_filters_avail(hid_t plist_id) * } */ - public static MethodHandle H5Pall_filters_avail$handle() { - return H5Pall_filters_avail.HANDLE; - } + public static MethodHandle H5Pall_filters_avail$handle() { return H5Pall_filters_avail.HANDLE; } /** * Address for: @@ -3424,33 +3484,30 @@ private static class H5Pall_filters_avail { * htri_t H5Pall_filters_avail(hid_t plist_id) * } */ - public static MemorySegment H5Pall_filters_avail$address() { - return H5Pall_filters_avail.ADDR; - } + public static MemorySegment H5Pall_filters_avail$address() { return H5Pall_filters_avail.ADDR; } /** * {@snippet lang=c : * htri_t H5Pall_filters_avail(hid_t plist_id) * } */ - public static int H5Pall_filters_avail(long plist_id) { + public static int H5Pall_filters_avail(long plist_id) + { var mh$ = H5Pall_filters_avail.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pall_filters_avail", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_attr_creation_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_attr_creation_order"); @@ -3463,7 +3520,8 @@ private static class H5Pget_attr_creation_order { * herr_t H5Pget_attr_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static FunctionDescriptor H5Pget_attr_creation_order$descriptor() { + public static FunctionDescriptor H5Pget_attr_creation_order$descriptor() + { return H5Pget_attr_creation_order.DESC; } @@ -3473,7 +3531,8 @@ private static class H5Pget_attr_creation_order { * herr_t H5Pget_attr_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static MethodHandle H5Pget_attr_creation_order$handle() { + public static MethodHandle H5Pget_attr_creation_order$handle() + { return H5Pget_attr_creation_order.HANDLE; } @@ -3483,7 +3542,8 @@ private static class H5Pget_attr_creation_order { * herr_t H5Pget_attr_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static MemorySegment H5Pget_attr_creation_order$address() { + public static MemorySegment H5Pget_attr_creation_order$address() + { return H5Pget_attr_creation_order.ADDR; } @@ -3492,25 +3552,23 @@ private static class H5Pget_attr_creation_order { * herr_t H5Pget_attr_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static int H5Pget_attr_creation_order(long plist_id, MemorySegment crt_order_flags) { + public static int H5Pget_attr_creation_order(long plist_id, MemorySegment crt_order_flags) + { var mh$ = H5Pget_attr_creation_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_attr_creation_order", plist_id, crt_order_flags); } return (int)mh$.invokeExact(plist_id, crt_order_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_attr_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_attr_phase_change"); @@ -3523,7 +3581,8 @@ private static class H5Pget_attr_phase_change { * herr_t H5Pget_attr_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static FunctionDescriptor H5Pget_attr_phase_change$descriptor() { + public static FunctionDescriptor H5Pget_attr_phase_change$descriptor() + { return H5Pget_attr_phase_change.DESC; } @@ -3533,9 +3592,7 @@ private static class H5Pget_attr_phase_change { * herr_t H5Pget_attr_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static MethodHandle H5Pget_attr_phase_change$handle() { - return H5Pget_attr_phase_change.HANDLE; - } + public static MethodHandle H5Pget_attr_phase_change$handle() { return H5Pget_attr_phase_change.HANDLE; } /** * Address for: @@ -3543,39 +3600,32 @@ private static class H5Pget_attr_phase_change { * herr_t H5Pget_attr_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static MemorySegment H5Pget_attr_phase_change$address() { - return H5Pget_attr_phase_change.ADDR; - } + public static MemorySegment H5Pget_attr_phase_change$address() { return H5Pget_attr_phase_change.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_attr_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static int H5Pget_attr_phase_change(long plist_id, MemorySegment max_compact, MemorySegment min_dense) { + public static int H5Pget_attr_phase_change(long plist_id, MemorySegment max_compact, + MemorySegment min_dense) + { var mh$ = H5Pget_attr_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_attr_phase_change", plist_id, max_compact, min_dense); } return (int)mh$.invokeExact(plist_id, max_compact, min_dense); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_filter2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_filter2"); @@ -3585,62 +3635,58 @@ private static class H5Pget_filter2 { /** * Function descriptor for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static FunctionDescriptor H5Pget_filter2$descriptor() { - return H5Pget_filter2.DESC; - } + public static FunctionDescriptor H5Pget_filter2$descriptor() { return H5Pget_filter2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static MethodHandle H5Pget_filter2$handle() { - return H5Pget_filter2.HANDLE; - } + public static MethodHandle H5Pget_filter2$handle() { return H5Pget_filter2.HANDLE; } /** * Address for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static MemorySegment H5Pget_filter2$address() { - return H5Pget_filter2.ADDR; - } + public static MemorySegment H5Pget_filter2$address() { return H5Pget_filter2.ADDR; } /** * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * H5Z_filter_t H5Pget_filter2(hid_t plist_id, unsigned int idx, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static int H5Pget_filter2(long plist_id, int idx, MemorySegment flags, MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, MemorySegment name, MemorySegment filter_config) { + public static int H5Pget_filter2(long plist_id, int idx, MemorySegment flags, MemorySegment cd_nelmts, + MemorySegment cd_values, long namelen, MemorySegment name, + MemorySegment filter_config) + { var mh$ = H5Pget_filter2.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_filter2", plist_id, idx, flags, cd_nelmts, cd_values, namelen, name, filter_config); + traceDowncall("H5Pget_filter2", plist_id, idx, flags, cd_nelmts, cd_values, namelen, name, + filter_config); } - return (int)mh$.invokeExact(plist_id, idx, flags, cd_nelmts, cd_values, namelen, name, filter_config); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(plist_id, idx, flags, cd_nelmts, cd_values, namelen, name, + filter_config); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_filter_by_id2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_filter_by_id2"); @@ -3650,55 +3696,56 @@ private static class H5Pget_filter_by_id2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static FunctionDescriptor H5Pget_filter_by_id2$descriptor() { - return H5Pget_filter_by_id2.DESC; - } + public static FunctionDescriptor H5Pget_filter_by_id2$descriptor() { return H5Pget_filter_by_id2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static MethodHandle H5Pget_filter_by_id2$handle() { - return H5Pget_filter_by_id2.HANDLE; - } + public static MethodHandle H5Pget_filter_by_id2$handle() { return H5Pget_filter_by_id2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static MemorySegment H5Pget_filter_by_id2$address() { - return H5Pget_filter_by_id2.ADDR; - } + public static MemorySegment H5Pget_filter_by_id2$address() { return H5Pget_filter_by_id2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) + * herr_t H5Pget_filter_by_id2(hid_t plist_id, H5Z_filter_t filter_id, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[], unsigned int *filter_config) * } */ - public static int H5Pget_filter_by_id2(long plist_id, int filter_id, MemorySegment flags, MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, MemorySegment name, MemorySegment filter_config) { + public static int H5Pget_filter_by_id2(long plist_id, int filter_id, MemorySegment flags, + MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, + MemorySegment name, MemorySegment filter_config) + { var mh$ = H5Pget_filter_by_id2.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_filter_by_id2", plist_id, filter_id, flags, cd_nelmts, cd_values, namelen, name, filter_config); + traceDowncall("H5Pget_filter_by_id2", plist_id, filter_id, flags, cd_nelmts, cd_values, + namelen, name, filter_config); } - return (int)mh$.invokeExact(plist_id, filter_id, flags, cd_nelmts, cd_values, namelen, name, filter_config); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(plist_id, filter_id, flags, cd_nelmts, cd_values, namelen, name, + filter_config); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_nfilters { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_nfilters"); @@ -3711,9 +3758,7 @@ private static class H5Pget_nfilters { * int H5Pget_nfilters(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_nfilters$descriptor() { - return H5Pget_nfilters.DESC; - } + public static FunctionDescriptor H5Pget_nfilters$descriptor() { return H5Pget_nfilters.DESC; } /** * Downcall method handle for: @@ -3721,9 +3766,7 @@ private static class H5Pget_nfilters { * int H5Pget_nfilters(hid_t plist_id) * } */ - public static MethodHandle H5Pget_nfilters$handle() { - return H5Pget_nfilters.HANDLE; - } + public static MethodHandle H5Pget_nfilters$handle() { return H5Pget_nfilters.HANDLE; } /** * Address for: @@ -3731,33 +3774,30 @@ private static class H5Pget_nfilters { * int H5Pget_nfilters(hid_t plist_id) * } */ - public static MemorySegment H5Pget_nfilters$address() { - return H5Pget_nfilters.ADDR; - } + public static MemorySegment H5Pget_nfilters$address() { return H5Pget_nfilters.ADDR; } /** * {@snippet lang=c : * int H5Pget_nfilters(hid_t plist_id) * } */ - public static int H5Pget_nfilters(long plist_id) { + public static int H5Pget_nfilters(long plist_id) + { var mh$ = H5Pget_nfilters.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_nfilters", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_obj_track_times { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_obj_track_times"); @@ -3770,7 +3810,8 @@ private static class H5Pget_obj_track_times { * herr_t H5Pget_obj_track_times(hid_t plist_id, hbool_t *track_times) * } */ - public static FunctionDescriptor H5Pget_obj_track_times$descriptor() { + public static FunctionDescriptor H5Pget_obj_track_times$descriptor() + { return H5Pget_obj_track_times.DESC; } @@ -3780,9 +3821,7 @@ private static class H5Pget_obj_track_times { * herr_t H5Pget_obj_track_times(hid_t plist_id, hbool_t *track_times) * } */ - public static MethodHandle H5Pget_obj_track_times$handle() { - return H5Pget_obj_track_times.HANDLE; - } + public static MethodHandle H5Pget_obj_track_times$handle() { return H5Pget_obj_track_times.HANDLE; } /** * Address for: @@ -3790,36 +3829,30 @@ private static class H5Pget_obj_track_times { * herr_t H5Pget_obj_track_times(hid_t plist_id, hbool_t *track_times) * } */ - public static MemorySegment H5Pget_obj_track_times$address() { - return H5Pget_obj_track_times.ADDR; - } + public static MemorySegment H5Pget_obj_track_times$address() { return H5Pget_obj_track_times.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_obj_track_times(hid_t plist_id, hbool_t *track_times) * } */ - public static int H5Pget_obj_track_times(long plist_id, MemorySegment track_times) { + public static int H5Pget_obj_track_times(long plist_id, MemorySegment track_times) + { var mh$ = H5Pget_obj_track_times.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_obj_track_times", plist_id, track_times); } return (int)mh$.invokeExact(plist_id, track_times); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pmodify_filter { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pmodify_filter"); @@ -3829,56 +3862,54 @@ private static class H5Pmodify_filter { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, + * const unsigned int cd_values[]) * } */ - public static FunctionDescriptor H5Pmodify_filter$descriptor() { - return H5Pmodify_filter.DESC; - } + public static FunctionDescriptor H5Pmodify_filter$descriptor() { return H5Pmodify_filter.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, + * const unsigned int cd_values[]) * } */ - public static MethodHandle H5Pmodify_filter$handle() { - return H5Pmodify_filter.HANDLE; - } + public static MethodHandle H5Pmodify_filter$handle() { return H5Pmodify_filter.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, + * const unsigned int cd_values[]) * } */ - public static MemorySegment H5Pmodify_filter$address() { - return H5Pmodify_filter.ADDR; - } + public static MemorySegment H5Pmodify_filter$address() { return H5Pmodify_filter.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pmodify_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, + * const unsigned int cd_values[]) * } */ - public static int H5Pmodify_filter(long plist_id, int filter, int flags, long cd_nelmts, MemorySegment cd_values) { + public static int H5Pmodify_filter(long plist_id, int filter, int flags, long cd_nelmts, + MemorySegment cd_values) + { var mh$ = H5Pmodify_filter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pmodify_filter", plist_id, filter, flags, cd_nelmts, cd_values); } return (int)mh$.invokeExact(plist_id, filter, flags, cd_nelmts, cd_values); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Premove_filter { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Premove_filter"); @@ -3891,9 +3922,7 @@ private static class H5Premove_filter { * herr_t H5Premove_filter(hid_t plist_id, H5Z_filter_t filter) * } */ - public static FunctionDescriptor H5Premove_filter$descriptor() { - return H5Premove_filter.DESC; - } + public static FunctionDescriptor H5Premove_filter$descriptor() { return H5Premove_filter.DESC; } /** * Downcall method handle for: @@ -3901,9 +3930,7 @@ private static class H5Premove_filter { * herr_t H5Premove_filter(hid_t plist_id, H5Z_filter_t filter) * } */ - public static MethodHandle H5Premove_filter$handle() { - return H5Premove_filter.HANDLE; - } + public static MethodHandle H5Premove_filter$handle() { return H5Premove_filter.HANDLE; } /** * Address for: @@ -3911,33 +3938,30 @@ private static class H5Premove_filter { * herr_t H5Premove_filter(hid_t plist_id, H5Z_filter_t filter) * } */ - public static MemorySegment H5Premove_filter$address() { - return H5Premove_filter.ADDR; - } + public static MemorySegment H5Premove_filter$address() { return H5Premove_filter.ADDR; } /** * {@snippet lang=c : * herr_t H5Premove_filter(hid_t plist_id, H5Z_filter_t filter) * } */ - public static int H5Premove_filter(long plist_id, int filter) { + public static int H5Premove_filter(long plist_id, int filter) + { var mh$ = H5Premove_filter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Premove_filter", plist_id, filter); } return (int)mh$.invokeExact(plist_id, filter); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_attr_creation_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_attr_creation_order"); @@ -3950,7 +3974,8 @@ private static class H5Pset_attr_creation_order { * herr_t H5Pset_attr_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static FunctionDescriptor H5Pset_attr_creation_order$descriptor() { + public static FunctionDescriptor H5Pset_attr_creation_order$descriptor() + { return H5Pset_attr_creation_order.DESC; } @@ -3960,7 +3985,8 @@ private static class H5Pset_attr_creation_order { * herr_t H5Pset_attr_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static MethodHandle H5Pset_attr_creation_order$handle() { + public static MethodHandle H5Pset_attr_creation_order$handle() + { return H5Pset_attr_creation_order.HANDLE; } @@ -3970,7 +3996,8 @@ private static class H5Pset_attr_creation_order { * herr_t H5Pset_attr_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static MemorySegment H5Pset_attr_creation_order$address() { + public static MemorySegment H5Pset_attr_creation_order$address() + { return H5Pset_attr_creation_order.ADDR; } @@ -3979,25 +4006,23 @@ private static class H5Pset_attr_creation_order { * herr_t H5Pset_attr_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static int H5Pset_attr_creation_order(long plist_id, int crt_order_flags) { + public static int H5Pset_attr_creation_order(long plist_id, int crt_order_flags) + { var mh$ = H5Pset_attr_creation_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_attr_creation_order", plist_id, crt_order_flags); } return (int)mh$.invokeExact(plist_id, crt_order_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_attr_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_attr_phase_change"); @@ -4010,7 +4035,8 @@ private static class H5Pset_attr_phase_change { * herr_t H5Pset_attr_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static FunctionDescriptor H5Pset_attr_phase_change$descriptor() { + public static FunctionDescriptor H5Pset_attr_phase_change$descriptor() + { return H5Pset_attr_phase_change.DESC; } @@ -4020,9 +4046,7 @@ private static class H5Pset_attr_phase_change { * herr_t H5Pset_attr_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static MethodHandle H5Pset_attr_phase_change$handle() { - return H5Pset_attr_phase_change.HANDLE; - } + public static MethodHandle H5Pset_attr_phase_change$handle() { return H5Pset_attr_phase_change.HANDLE; } /** * Address for: @@ -4030,33 +4054,30 @@ private static class H5Pset_attr_phase_change { * herr_t H5Pset_attr_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static MemorySegment H5Pset_attr_phase_change$address() { - return H5Pset_attr_phase_change.ADDR; - } + public static MemorySegment H5Pset_attr_phase_change$address() { return H5Pset_attr_phase_change.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_attr_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static int H5Pset_attr_phase_change(long plist_id, int max_compact, int min_dense) { + public static int H5Pset_attr_phase_change(long plist_id, int max_compact, int min_dense) + { var mh$ = H5Pset_attr_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_attr_phase_change", plist_id, max_compact, min_dense); } return (int)mh$.invokeExact(plist_id, max_compact, min_dense); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_deflate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_deflate"); @@ -4069,9 +4090,7 @@ private static class H5Pset_deflate { * herr_t H5Pset_deflate(hid_t plist_id, unsigned int level) * } */ - public static FunctionDescriptor H5Pset_deflate$descriptor() { - return H5Pset_deflate.DESC; - } + public static FunctionDescriptor H5Pset_deflate$descriptor() { return H5Pset_deflate.DESC; } /** * Downcall method handle for: @@ -4079,9 +4098,7 @@ private static class H5Pset_deflate { * herr_t H5Pset_deflate(hid_t plist_id, unsigned int level) * } */ - public static MethodHandle H5Pset_deflate$handle() { - return H5Pset_deflate.HANDLE; - } + public static MethodHandle H5Pset_deflate$handle() { return H5Pset_deflate.HANDLE; } /** * Address for: @@ -4089,36 +4106,30 @@ private static class H5Pset_deflate { * herr_t H5Pset_deflate(hid_t plist_id, unsigned int level) * } */ - public static MemorySegment H5Pset_deflate$address() { - return H5Pset_deflate.ADDR; - } + public static MemorySegment H5Pset_deflate$address() { return H5Pset_deflate.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_deflate(hid_t plist_id, unsigned int level) * } */ - public static int H5Pset_deflate(long plist_id, int level) { + public static int H5Pset_deflate(long plist_id, int level) + { var mh$ = H5Pset_deflate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_deflate", plist_id, level); } return (int)mh$.invokeExact(plist_id, level); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_filter { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_filter"); @@ -4128,55 +4139,53 @@ private static class H5Pset_filter { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const + * unsigned int cd_values[]) * } */ - public static FunctionDescriptor H5Pset_filter$descriptor() { - return H5Pset_filter.DESC; - } + public static FunctionDescriptor H5Pset_filter$descriptor() { return H5Pset_filter.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const + * unsigned int cd_values[]) * } */ - public static MethodHandle H5Pset_filter$handle() { - return H5Pset_filter.HANDLE; - } + public static MethodHandle H5Pset_filter$handle() { return H5Pset_filter.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const + * unsigned int cd_values[]) * } */ - public static MemorySegment H5Pset_filter$address() { - return H5Pset_filter.ADDR; - } + public static MemorySegment H5Pset_filter$address() { return H5Pset_filter.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) + * herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const + * unsigned int cd_values[]) * } */ - public static int H5Pset_filter(long plist_id, int filter, int flags, long cd_nelmts, MemorySegment cd_values) { + public static int H5Pset_filter(long plist_id, int filter, int flags, long cd_nelmts, + MemorySegment cd_values) + { var mh$ = H5Pset_filter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_filter", plist_id, filter, flags, cd_nelmts, cd_values); } return (int)mh$.invokeExact(plist_id, filter, flags, cd_nelmts, cd_values); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fletcher32 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fletcher32"); @@ -4189,9 +4198,7 @@ private static class H5Pset_fletcher32 { * herr_t H5Pset_fletcher32(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pset_fletcher32$descriptor() { - return H5Pset_fletcher32.DESC; - } + public static FunctionDescriptor H5Pset_fletcher32$descriptor() { return H5Pset_fletcher32.DESC; } /** * Downcall method handle for: @@ -4199,9 +4206,7 @@ private static class H5Pset_fletcher32 { * herr_t H5Pset_fletcher32(hid_t plist_id) * } */ - public static MethodHandle H5Pset_fletcher32$handle() { - return H5Pset_fletcher32.HANDLE; - } + public static MethodHandle H5Pset_fletcher32$handle() { return H5Pset_fletcher32.HANDLE; } /** * Address for: @@ -4209,33 +4214,30 @@ private static class H5Pset_fletcher32 { * herr_t H5Pset_fletcher32(hid_t plist_id) * } */ - public static MemorySegment H5Pset_fletcher32$address() { - return H5Pset_fletcher32.ADDR; - } + public static MemorySegment H5Pset_fletcher32$address() { return H5Pset_fletcher32.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fletcher32(hid_t plist_id) * } */ - public static int H5Pset_fletcher32(long plist_id) { + public static int H5Pset_fletcher32(long plist_id) + { var mh$ = H5Pset_fletcher32.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fletcher32", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_obj_track_times { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_obj_track_times"); @@ -4248,7 +4250,8 @@ private static class H5Pset_obj_track_times { * herr_t H5Pset_obj_track_times(hid_t plist_id, hbool_t track_times) * } */ - public static FunctionDescriptor H5Pset_obj_track_times$descriptor() { + public static FunctionDescriptor H5Pset_obj_track_times$descriptor() + { return H5Pset_obj_track_times.DESC; } @@ -4258,9 +4261,7 @@ private static class H5Pset_obj_track_times { * herr_t H5Pset_obj_track_times(hid_t plist_id, hbool_t track_times) * } */ - public static MethodHandle H5Pset_obj_track_times$handle() { - return H5Pset_obj_track_times.HANDLE; - } + public static MethodHandle H5Pset_obj_track_times$handle() { return H5Pset_obj_track_times.HANDLE; } /** * Address for: @@ -4268,33 +4269,30 @@ private static class H5Pset_obj_track_times { * herr_t H5Pset_obj_track_times(hid_t plist_id, hbool_t track_times) * } */ - public static MemorySegment H5Pset_obj_track_times$address() { - return H5Pset_obj_track_times.ADDR; - } + public static MemorySegment H5Pset_obj_track_times$address() { return H5Pset_obj_track_times.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_obj_track_times(hid_t plist_id, hbool_t track_times) * } */ - public static int H5Pset_obj_track_times(long plist_id, boolean track_times) { + public static int H5Pset_obj_track_times(long plist_id, boolean track_times) + { var mh$ = H5Pset_obj_track_times.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_obj_track_times", plist_id, track_times); } return (int)mh$.invokeExact(plist_id, track_times); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_space_page_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_space_page_size"); @@ -4307,7 +4305,8 @@ private static class H5Pget_file_space_page_size { * herr_t H5Pget_file_space_page_size(hid_t plist_id, hsize_t *fsp_size) * } */ - public static FunctionDescriptor H5Pget_file_space_page_size$descriptor() { + public static FunctionDescriptor H5Pget_file_space_page_size$descriptor() + { return H5Pget_file_space_page_size.DESC; } @@ -4317,7 +4316,8 @@ private static class H5Pget_file_space_page_size { * herr_t H5Pget_file_space_page_size(hid_t plist_id, hsize_t *fsp_size) * } */ - public static MethodHandle H5Pget_file_space_page_size$handle() { + public static MethodHandle H5Pget_file_space_page_size$handle() + { return H5Pget_file_space_page_size.HANDLE; } @@ -4327,7 +4327,8 @@ private static class H5Pget_file_space_page_size { * herr_t H5Pget_file_space_page_size(hid_t plist_id, hsize_t *fsp_size) * } */ - public static MemorySegment H5Pget_file_space_page_size$address() { + public static MemorySegment H5Pget_file_space_page_size$address() + { return H5Pget_file_space_page_size.ADDR; } @@ -4336,26 +4337,23 @@ private static class H5Pget_file_space_page_size { * herr_t H5Pget_file_space_page_size(hid_t plist_id, hsize_t *fsp_size) * } */ - public static int H5Pget_file_space_page_size(long plist_id, MemorySegment fsp_size) { + public static int H5Pget_file_space_page_size(long plist_id, MemorySegment fsp_size) + { var mh$ = H5Pget_file_space_page_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_space_page_size", plist_id, fsp_size); } return (int)mh$.invokeExact(plist_id, fsp_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_space_strategy { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_space_strategy"); @@ -4365,56 +4363,63 @@ private static class H5Pget_file_space_strategy { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, hsize_t *threshold) + * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, + * hsize_t *threshold) * } */ - public static FunctionDescriptor H5Pget_file_space_strategy$descriptor() { + public static FunctionDescriptor H5Pget_file_space_strategy$descriptor() + { return H5Pget_file_space_strategy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, hsize_t *threshold) + * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, + * hsize_t *threshold) * } */ - public static MethodHandle H5Pget_file_space_strategy$handle() { + public static MethodHandle H5Pget_file_space_strategy$handle() + { return H5Pget_file_space_strategy.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, hsize_t *threshold) + * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, + * hsize_t *threshold) * } */ - public static MemorySegment H5Pget_file_space_strategy$address() { + public static MemorySegment H5Pget_file_space_strategy$address() + { return H5Pget_file_space_strategy.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, hsize_t *threshold) + * herr_t H5Pget_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t *strategy, hbool_t *persist, + * hsize_t *threshold) * } */ - public static int H5Pget_file_space_strategy(long plist_id, MemorySegment strategy, MemorySegment persist, MemorySegment threshold) { + public static int H5Pget_file_space_strategy(long plist_id, MemorySegment strategy, MemorySegment persist, + MemorySegment threshold) + { var mh$ = H5Pget_file_space_strategy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_space_strategy", plist_id, strategy, persist, threshold); } return (int)mh$.invokeExact(plist_id, strategy, persist, threshold); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_istore_k { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_istore_k"); @@ -4427,9 +4432,7 @@ private static class H5Pget_istore_k { * herr_t H5Pget_istore_k(hid_t plist_id, unsigned int *ik) * } */ - public static FunctionDescriptor H5Pget_istore_k$descriptor() { - return H5Pget_istore_k.DESC; - } + public static FunctionDescriptor H5Pget_istore_k$descriptor() { return H5Pget_istore_k.DESC; } /** * Downcall method handle for: @@ -4437,9 +4440,7 @@ private static class H5Pget_istore_k { * herr_t H5Pget_istore_k(hid_t plist_id, unsigned int *ik) * } */ - public static MethodHandle H5Pget_istore_k$handle() { - return H5Pget_istore_k.HANDLE; - } + public static MethodHandle H5Pget_istore_k$handle() { return H5Pget_istore_k.HANDLE; } /** * Address for: @@ -4447,35 +4448,30 @@ private static class H5Pget_istore_k { * herr_t H5Pget_istore_k(hid_t plist_id, unsigned int *ik) * } */ - public static MemorySegment H5Pget_istore_k$address() { - return H5Pget_istore_k.ADDR; - } + public static MemorySegment H5Pget_istore_k$address() { return H5Pget_istore_k.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_istore_k(hid_t plist_id, unsigned int *ik) * } */ - public static int H5Pget_istore_k(long plist_id, MemorySegment ik) { + public static int H5Pget_istore_k(long plist_id, MemorySegment ik) + { var mh$ = H5Pget_istore_k.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_istore_k", plist_id, ik); } return (int)mh$.invokeExact(plist_id, ik); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_shared_mesg_index { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_shared_mesg_index"); @@ -4485,56 +4481,58 @@ private static class H5Pget_shared_mesg_index { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, unsigned int *min_mesg_size) + * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, + * unsigned int *min_mesg_size) * } */ - public static FunctionDescriptor H5Pget_shared_mesg_index$descriptor() { + public static FunctionDescriptor H5Pget_shared_mesg_index$descriptor() + { return H5Pget_shared_mesg_index.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, unsigned int *min_mesg_size) + * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, + * unsigned int *min_mesg_size) * } */ - public static MethodHandle H5Pget_shared_mesg_index$handle() { - return H5Pget_shared_mesg_index.HANDLE; - } + public static MethodHandle H5Pget_shared_mesg_index$handle() { return H5Pget_shared_mesg_index.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, unsigned int *min_mesg_size) + * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, + * unsigned int *min_mesg_size) * } */ - public static MemorySegment H5Pget_shared_mesg_index$address() { - return H5Pget_shared_mesg_index.ADDR; - } + public static MemorySegment H5Pget_shared_mesg_index$address() { return H5Pget_shared_mesg_index.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, unsigned int *min_mesg_size) + * herr_t H5Pget_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int *mesg_type_flags, + * unsigned int *min_mesg_size) * } */ - public static int H5Pget_shared_mesg_index(long plist_id, int index_num, MemorySegment mesg_type_flags, MemorySegment min_mesg_size) { + public static int H5Pget_shared_mesg_index(long plist_id, int index_num, MemorySegment mesg_type_flags, + MemorySegment min_mesg_size) + { var mh$ = H5Pget_shared_mesg_index.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_shared_mesg_index", plist_id, index_num, mesg_type_flags, min_mesg_size); + traceDowncall("H5Pget_shared_mesg_index", plist_id, index_num, mesg_type_flags, + min_mesg_size); } return (int)mh$.invokeExact(plist_id, index_num, mesg_type_flags, min_mesg_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_shared_mesg_nindexes { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_shared_mesg_nindexes"); @@ -4547,7 +4545,8 @@ private static class H5Pget_shared_mesg_nindexes { * herr_t H5Pget_shared_mesg_nindexes(hid_t plist_id, unsigned int *nindexes) * } */ - public static FunctionDescriptor H5Pget_shared_mesg_nindexes$descriptor() { + public static FunctionDescriptor H5Pget_shared_mesg_nindexes$descriptor() + { return H5Pget_shared_mesg_nindexes.DESC; } @@ -4557,7 +4556,8 @@ private static class H5Pget_shared_mesg_nindexes { * herr_t H5Pget_shared_mesg_nindexes(hid_t plist_id, unsigned int *nindexes) * } */ - public static MethodHandle H5Pget_shared_mesg_nindexes$handle() { + public static MethodHandle H5Pget_shared_mesg_nindexes$handle() + { return H5Pget_shared_mesg_nindexes.HANDLE; } @@ -4567,7 +4567,8 @@ private static class H5Pget_shared_mesg_nindexes { * herr_t H5Pget_shared_mesg_nindexes(hid_t plist_id, unsigned int *nindexes) * } */ - public static MemorySegment H5Pget_shared_mesg_nindexes$address() { + public static MemorySegment H5Pget_shared_mesg_nindexes$address() + { return H5Pget_shared_mesg_nindexes.ADDR; } @@ -4576,25 +4577,23 @@ private static class H5Pget_shared_mesg_nindexes { * herr_t H5Pget_shared_mesg_nindexes(hid_t plist_id, unsigned int *nindexes) * } */ - public static int H5Pget_shared_mesg_nindexes(long plist_id, MemorySegment nindexes) { + public static int H5Pget_shared_mesg_nindexes(long plist_id, MemorySegment nindexes) + { var mh$ = H5Pget_shared_mesg_nindexes.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_shared_mesg_nindexes", plist_id, nindexes); } return (int)mh$.invokeExact(plist_id, nindexes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_shared_mesg_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_shared_mesg_phase_change"); @@ -4607,7 +4606,8 @@ private static class H5Pget_shared_mesg_phase_change { * herr_t H5Pget_shared_mesg_phase_change(hid_t plist_id, unsigned int *max_list, unsigned int *min_btree) * } */ - public static FunctionDescriptor H5Pget_shared_mesg_phase_change$descriptor() { + public static FunctionDescriptor H5Pget_shared_mesg_phase_change$descriptor() + { return H5Pget_shared_mesg_phase_change.DESC; } @@ -4617,7 +4617,8 @@ private static class H5Pget_shared_mesg_phase_change { * herr_t H5Pget_shared_mesg_phase_change(hid_t plist_id, unsigned int *max_list, unsigned int *min_btree) * } */ - public static MethodHandle H5Pget_shared_mesg_phase_change$handle() { + public static MethodHandle H5Pget_shared_mesg_phase_change$handle() + { return H5Pget_shared_mesg_phase_change.HANDLE; } @@ -4627,7 +4628,8 @@ private static class H5Pget_shared_mesg_phase_change { * herr_t H5Pget_shared_mesg_phase_change(hid_t plist_id, unsigned int *max_list, unsigned int *min_btree) * } */ - public static MemorySegment H5Pget_shared_mesg_phase_change$address() { + public static MemorySegment H5Pget_shared_mesg_phase_change$address() + { return H5Pget_shared_mesg_phase_change.ADDR; } @@ -4636,25 +4638,24 @@ private static class H5Pget_shared_mesg_phase_change { * herr_t H5Pget_shared_mesg_phase_change(hid_t plist_id, unsigned int *max_list, unsigned int *min_btree) * } */ - public static int H5Pget_shared_mesg_phase_change(long plist_id, MemorySegment max_list, MemorySegment min_btree) { + public static int H5Pget_shared_mesg_phase_change(long plist_id, MemorySegment max_list, + MemorySegment min_btree) + { var mh$ = H5Pget_shared_mesg_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_shared_mesg_phase_change", plist_id, max_list, min_btree); } return (int)mh$.invokeExact(plist_id, max_list, min_btree); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_sizes { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_sizes"); @@ -4667,9 +4668,7 @@ private static class H5Pget_sizes { * herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr, size_t *sizeof_size) * } */ - public static FunctionDescriptor H5Pget_sizes$descriptor() { - return H5Pget_sizes.DESC; - } + public static FunctionDescriptor H5Pget_sizes$descriptor() { return H5Pget_sizes.DESC; } /** * Downcall method handle for: @@ -4677,9 +4676,7 @@ private static class H5Pget_sizes { * herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr, size_t *sizeof_size) * } */ - public static MethodHandle H5Pget_sizes$handle() { - return H5Pget_sizes.HANDLE; - } + public static MethodHandle H5Pget_sizes$handle() { return H5Pget_sizes.HANDLE; } /** * Address for: @@ -4687,34 +4684,30 @@ private static class H5Pget_sizes { * herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr, size_t *sizeof_size) * } */ - public static MemorySegment H5Pget_sizes$address() { - return H5Pget_sizes.ADDR; - } + public static MemorySegment H5Pget_sizes$address() { return H5Pget_sizes.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr, size_t *sizeof_size) * } */ - public static int H5Pget_sizes(long plist_id, MemorySegment sizeof_addr, MemorySegment sizeof_size) { + public static int H5Pget_sizes(long plist_id, MemorySegment sizeof_addr, MemorySegment sizeof_size) + { var mh$ = H5Pget_sizes.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_sizes", plist_id, sizeof_addr, sizeof_size); } return (int)mh$.invokeExact(plist_id, sizeof_addr, sizeof_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_sym_k { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_sym_k"); @@ -4727,9 +4720,7 @@ private static class H5Pget_sym_k { * herr_t H5Pget_sym_k(hid_t plist_id, unsigned int *ik, unsigned int *lk) * } */ - public static FunctionDescriptor H5Pget_sym_k$descriptor() { - return H5Pget_sym_k.DESC; - } + public static FunctionDescriptor H5Pget_sym_k$descriptor() { return H5Pget_sym_k.DESC; } /** * Downcall method handle for: @@ -4737,9 +4728,7 @@ private static class H5Pget_sym_k { * herr_t H5Pget_sym_k(hid_t plist_id, unsigned int *ik, unsigned int *lk) * } */ - public static MethodHandle H5Pget_sym_k$handle() { - return H5Pget_sym_k.HANDLE; - } + public static MethodHandle H5Pget_sym_k$handle() { return H5Pget_sym_k.HANDLE; } /** * Address for: @@ -4747,33 +4736,30 @@ private static class H5Pget_sym_k { * herr_t H5Pget_sym_k(hid_t plist_id, unsigned int *ik, unsigned int *lk) * } */ - public static MemorySegment H5Pget_sym_k$address() { - return H5Pget_sym_k.ADDR; - } + public static MemorySegment H5Pget_sym_k$address() { return H5Pget_sym_k.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_sym_k(hid_t plist_id, unsigned int *ik, unsigned int *lk) * } */ - public static int H5Pget_sym_k(long plist_id, MemorySegment ik, MemorySegment lk) { + public static int H5Pget_sym_k(long plist_id, MemorySegment ik, MemorySegment lk) + { var mh$ = H5Pget_sym_k.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_sym_k", plist_id, ik, lk); } return (int)mh$.invokeExact(plist_id, ik, lk); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_userblock { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_userblock"); @@ -4786,9 +4772,7 @@ private static class H5Pget_userblock { * herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size) * } */ - public static FunctionDescriptor H5Pget_userblock$descriptor() { - return H5Pget_userblock.DESC; - } + public static FunctionDescriptor H5Pget_userblock$descriptor() { return H5Pget_userblock.DESC; } /** * Downcall method handle for: @@ -4796,9 +4780,7 @@ private static class H5Pget_userblock { * herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size) * } */ - public static MethodHandle H5Pget_userblock$handle() { - return H5Pget_userblock.HANDLE; - } + public static MethodHandle H5Pget_userblock$handle() { return H5Pget_userblock.HANDLE; } /** * Address for: @@ -4806,33 +4788,30 @@ private static class H5Pget_userblock { * herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size) * } */ - public static MemorySegment H5Pget_userblock$address() { - return H5Pget_userblock.ADDR; - } + public static MemorySegment H5Pget_userblock$address() { return H5Pget_userblock.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size) * } */ - public static int H5Pget_userblock(long plist_id, MemorySegment size) { + public static int H5Pget_userblock(long plist_id, MemorySegment size) + { var mh$ = H5Pget_userblock.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_userblock", plist_id, size); } return (int)mh$.invokeExact(plist_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_space_page_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_space_page_size"); @@ -4845,7 +4824,8 @@ private static class H5Pset_file_space_page_size { * herr_t H5Pset_file_space_page_size(hid_t plist_id, hsize_t fsp_size) * } */ - public static FunctionDescriptor H5Pset_file_space_page_size$descriptor() { + public static FunctionDescriptor H5Pset_file_space_page_size$descriptor() + { return H5Pset_file_space_page_size.DESC; } @@ -4855,7 +4835,8 @@ private static class H5Pset_file_space_page_size { * herr_t H5Pset_file_space_page_size(hid_t plist_id, hsize_t fsp_size) * } */ - public static MethodHandle H5Pset_file_space_page_size$handle() { + public static MethodHandle H5Pset_file_space_page_size$handle() + { return H5Pset_file_space_page_size.HANDLE; } @@ -4865,7 +4846,8 @@ private static class H5Pset_file_space_page_size { * herr_t H5Pset_file_space_page_size(hid_t plist_id, hsize_t fsp_size) * } */ - public static MemorySegment H5Pset_file_space_page_size$address() { + public static MemorySegment H5Pset_file_space_page_size$address() + { return H5Pset_file_space_page_size.ADDR; } @@ -4874,26 +4856,23 @@ private static class H5Pset_file_space_page_size { * herr_t H5Pset_file_space_page_size(hid_t plist_id, hsize_t fsp_size) * } */ - public static int H5Pset_file_space_page_size(long plist_id, long fsp_size) { + public static int H5Pset_file_space_page_size(long plist_id, long fsp_size) + { var mh$ = H5Pset_file_space_page_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_space_page_size", plist_id, fsp_size); } return (int)mh$.invokeExact(plist_id, fsp_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_space_strategy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_BOOL, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_BOOL, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_space_strategy"); @@ -4903,56 +4882,62 @@ private static class H5Pset_file_space_strategy { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) + * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, + * hsize_t threshold) * } */ - public static FunctionDescriptor H5Pset_file_space_strategy$descriptor() { + public static FunctionDescriptor H5Pset_file_space_strategy$descriptor() + { return H5Pset_file_space_strategy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) + * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, + * hsize_t threshold) * } */ - public static MethodHandle H5Pset_file_space_strategy$handle() { + public static MethodHandle H5Pset_file_space_strategy$handle() + { return H5Pset_file_space_strategy.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) + * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, + * hsize_t threshold) * } */ - public static MemorySegment H5Pset_file_space_strategy$address() { + public static MemorySegment H5Pset_file_space_strategy$address() + { return H5Pset_file_space_strategy.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) + * herr_t H5Pset_file_space_strategy(hid_t plist_id, H5F_fspace_strategy_t strategy, hbool_t persist, + * hsize_t threshold) * } */ - public static int H5Pset_file_space_strategy(long plist_id, int strategy, boolean persist, long threshold) { + public static int H5Pset_file_space_strategy(long plist_id, int strategy, boolean persist, long threshold) + { var mh$ = H5Pset_file_space_strategy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_space_strategy", plist_id, strategy, persist, threshold); } return (int)mh$.invokeExact(plist_id, strategy, persist, threshold); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_istore_k { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_istore_k"); @@ -4965,9 +4950,7 @@ private static class H5Pset_istore_k { * herr_t H5Pset_istore_k(hid_t plist_id, unsigned int ik) * } */ - public static FunctionDescriptor H5Pset_istore_k$descriptor() { - return H5Pset_istore_k.DESC; - } + public static FunctionDescriptor H5Pset_istore_k$descriptor() { return H5Pset_istore_k.DESC; } /** * Downcall method handle for: @@ -4975,9 +4958,7 @@ private static class H5Pset_istore_k { * herr_t H5Pset_istore_k(hid_t plist_id, unsigned int ik) * } */ - public static MethodHandle H5Pset_istore_k$handle() { - return H5Pset_istore_k.HANDLE; - } + public static MethodHandle H5Pset_istore_k$handle() { return H5Pset_istore_k.HANDLE; } /** * Address for: @@ -4985,35 +4966,30 @@ private static class H5Pset_istore_k { * herr_t H5Pset_istore_k(hid_t plist_id, unsigned int ik) * } */ - public static MemorySegment H5Pset_istore_k$address() { - return H5Pset_istore_k.ADDR; - } + public static MemorySegment H5Pset_istore_k$address() { return H5Pset_istore_k.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_istore_k(hid_t plist_id, unsigned int ik) * } */ - public static int H5Pset_istore_k(long plist_id, int ik) { + public static int H5Pset_istore_k(long plist_id, int ik) + { var mh$ = H5Pset_istore_k.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_istore_k", plist_id, ik); } return (int)mh$.invokeExact(plist_id, ik); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_shared_mesg_index { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_shared_mesg_index"); @@ -5023,56 +4999,58 @@ private static class H5Pset_shared_mesg_index { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, unsigned int min_mesg_size) + * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, + * unsigned int min_mesg_size) * } */ - public static FunctionDescriptor H5Pset_shared_mesg_index$descriptor() { + public static FunctionDescriptor H5Pset_shared_mesg_index$descriptor() + { return H5Pset_shared_mesg_index.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, unsigned int min_mesg_size) + * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, + * unsigned int min_mesg_size) * } */ - public static MethodHandle H5Pset_shared_mesg_index$handle() { - return H5Pset_shared_mesg_index.HANDLE; - } + public static MethodHandle H5Pset_shared_mesg_index$handle() { return H5Pset_shared_mesg_index.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, unsigned int min_mesg_size) + * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, + * unsigned int min_mesg_size) * } */ - public static MemorySegment H5Pset_shared_mesg_index$address() { - return H5Pset_shared_mesg_index.ADDR; - } + public static MemorySegment H5Pset_shared_mesg_index$address() { return H5Pset_shared_mesg_index.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, unsigned int min_mesg_size) + * herr_t H5Pset_shared_mesg_index(hid_t plist_id, unsigned int index_num, unsigned int mesg_type_flags, + * unsigned int min_mesg_size) * } */ - public static int H5Pset_shared_mesg_index(long plist_id, int index_num, int mesg_type_flags, int min_mesg_size) { + public static int H5Pset_shared_mesg_index(long plist_id, int index_num, int mesg_type_flags, + int min_mesg_size) + { var mh$ = H5Pset_shared_mesg_index.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pset_shared_mesg_index", plist_id, index_num, mesg_type_flags, min_mesg_size); + traceDowncall("H5Pset_shared_mesg_index", plist_id, index_num, mesg_type_flags, + min_mesg_size); } return (int)mh$.invokeExact(plist_id, index_num, mesg_type_flags, min_mesg_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_shared_mesg_nindexes { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_shared_mesg_nindexes"); @@ -5085,7 +5063,8 @@ private static class H5Pset_shared_mesg_nindexes { * herr_t H5Pset_shared_mesg_nindexes(hid_t plist_id, unsigned int nindexes) * } */ - public static FunctionDescriptor H5Pset_shared_mesg_nindexes$descriptor() { + public static FunctionDescriptor H5Pset_shared_mesg_nindexes$descriptor() + { return H5Pset_shared_mesg_nindexes.DESC; } @@ -5095,7 +5074,8 @@ private static class H5Pset_shared_mesg_nindexes { * herr_t H5Pset_shared_mesg_nindexes(hid_t plist_id, unsigned int nindexes) * } */ - public static MethodHandle H5Pset_shared_mesg_nindexes$handle() { + public static MethodHandle H5Pset_shared_mesg_nindexes$handle() + { return H5Pset_shared_mesg_nindexes.HANDLE; } @@ -5105,7 +5085,8 @@ private static class H5Pset_shared_mesg_nindexes { * herr_t H5Pset_shared_mesg_nindexes(hid_t plist_id, unsigned int nindexes) * } */ - public static MemorySegment H5Pset_shared_mesg_nindexes$address() { + public static MemorySegment H5Pset_shared_mesg_nindexes$address() + { return H5Pset_shared_mesg_nindexes.ADDR; } @@ -5114,25 +5095,23 @@ private static class H5Pset_shared_mesg_nindexes { * herr_t H5Pset_shared_mesg_nindexes(hid_t plist_id, unsigned int nindexes) * } */ - public static int H5Pset_shared_mesg_nindexes(long plist_id, int nindexes) { + public static int H5Pset_shared_mesg_nindexes(long plist_id, int nindexes) + { var mh$ = H5Pset_shared_mesg_nindexes.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_shared_mesg_nindexes", plist_id, nindexes); } return (int)mh$.invokeExact(plist_id, nindexes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_shared_mesg_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_shared_mesg_phase_change"); @@ -5145,7 +5124,8 @@ private static class H5Pset_shared_mesg_phase_change { * herr_t H5Pset_shared_mesg_phase_change(hid_t plist_id, unsigned int max_list, unsigned int min_btree) * } */ - public static FunctionDescriptor H5Pset_shared_mesg_phase_change$descriptor() { + public static FunctionDescriptor H5Pset_shared_mesg_phase_change$descriptor() + { return H5Pset_shared_mesg_phase_change.DESC; } @@ -5155,7 +5135,8 @@ private static class H5Pset_shared_mesg_phase_change { * herr_t H5Pset_shared_mesg_phase_change(hid_t plist_id, unsigned int max_list, unsigned int min_btree) * } */ - public static MethodHandle H5Pset_shared_mesg_phase_change$handle() { + public static MethodHandle H5Pset_shared_mesg_phase_change$handle() + { return H5Pset_shared_mesg_phase_change.HANDLE; } @@ -5165,7 +5146,8 @@ private static class H5Pset_shared_mesg_phase_change { * herr_t H5Pset_shared_mesg_phase_change(hid_t plist_id, unsigned int max_list, unsigned int min_btree) * } */ - public static MemorySegment H5Pset_shared_mesg_phase_change$address() { + public static MemorySegment H5Pset_shared_mesg_phase_change$address() + { return H5Pset_shared_mesg_phase_change.ADDR; } @@ -5174,25 +5156,23 @@ private static class H5Pset_shared_mesg_phase_change { * herr_t H5Pset_shared_mesg_phase_change(hid_t plist_id, unsigned int max_list, unsigned int min_btree) * } */ - public static int H5Pset_shared_mesg_phase_change(long plist_id, int max_list, int min_btree) { + public static int H5Pset_shared_mesg_phase_change(long plist_id, int max_list, int min_btree) + { var mh$ = H5Pset_shared_mesg_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_shared_mesg_phase_change", plist_id, max_list, min_btree); } return (int)mh$.invokeExact(plist_id, max_list, min_btree); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_sizes { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_sizes"); @@ -5205,9 +5185,7 @@ private static class H5Pset_sizes { * herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, size_t sizeof_size) * } */ - public static FunctionDescriptor H5Pset_sizes$descriptor() { - return H5Pset_sizes.DESC; - } + public static FunctionDescriptor H5Pset_sizes$descriptor() { return H5Pset_sizes.DESC; } /** * Downcall method handle for: @@ -5215,9 +5193,7 @@ private static class H5Pset_sizes { * herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, size_t sizeof_size) * } */ - public static MethodHandle H5Pset_sizes$handle() { - return H5Pset_sizes.HANDLE; - } + public static MethodHandle H5Pset_sizes$handle() { return H5Pset_sizes.HANDLE; } /** * Address for: @@ -5225,34 +5201,30 @@ private static class H5Pset_sizes { * herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, size_t sizeof_size) * } */ - public static MemorySegment H5Pset_sizes$address() { - return H5Pset_sizes.ADDR; - } + public static MemorySegment H5Pset_sizes$address() { return H5Pset_sizes.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, size_t sizeof_size) * } */ - public static int H5Pset_sizes(long plist_id, long sizeof_addr, long sizeof_size) { + public static int H5Pset_sizes(long plist_id, long sizeof_addr, long sizeof_size) + { var mh$ = H5Pset_sizes.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_sizes", plist_id, sizeof_addr, sizeof_size); } return (int)mh$.invokeExact(plist_id, sizeof_addr, sizeof_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_sym_k { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_sym_k"); @@ -5265,9 +5237,7 @@ private static class H5Pset_sym_k { * herr_t H5Pset_sym_k(hid_t plist_id, unsigned int ik, unsigned int lk) * } */ - public static FunctionDescriptor H5Pset_sym_k$descriptor() { - return H5Pset_sym_k.DESC; - } + public static FunctionDescriptor H5Pset_sym_k$descriptor() { return H5Pset_sym_k.DESC; } /** * Downcall method handle for: @@ -5275,9 +5245,7 @@ private static class H5Pset_sym_k { * herr_t H5Pset_sym_k(hid_t plist_id, unsigned int ik, unsigned int lk) * } */ - public static MethodHandle H5Pset_sym_k$handle() { - return H5Pset_sym_k.HANDLE; - } + public static MethodHandle H5Pset_sym_k$handle() { return H5Pset_sym_k.HANDLE; } /** * Address for: @@ -5285,33 +5253,30 @@ private static class H5Pset_sym_k { * herr_t H5Pset_sym_k(hid_t plist_id, unsigned int ik, unsigned int lk) * } */ - public static MemorySegment H5Pset_sym_k$address() { - return H5Pset_sym_k.ADDR; - } + public static MemorySegment H5Pset_sym_k$address() { return H5Pset_sym_k.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_sym_k(hid_t plist_id, unsigned int ik, unsigned int lk) * } */ - public static int H5Pset_sym_k(long plist_id, int ik, int lk) { + public static int H5Pset_sym_k(long plist_id, int ik, int lk) + { var mh$ = H5Pset_sym_k.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_sym_k", plist_id, ik, lk); } return (int)mh$.invokeExact(plist_id, ik, lk); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_userblock { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_userblock"); @@ -5324,9 +5289,7 @@ private static class H5Pset_userblock { * herr_t H5Pset_userblock(hid_t plist_id, hsize_t size) * } */ - public static FunctionDescriptor H5Pset_userblock$descriptor() { - return H5Pset_userblock.DESC; - } + public static FunctionDescriptor H5Pset_userblock$descriptor() { return H5Pset_userblock.DESC; } /** * Downcall method handle for: @@ -5334,9 +5297,7 @@ private static class H5Pset_userblock { * herr_t H5Pset_userblock(hid_t plist_id, hsize_t size) * } */ - public static MethodHandle H5Pset_userblock$handle() { - return H5Pset_userblock.HANDLE; - } + public static MethodHandle H5Pset_userblock$handle() { return H5Pset_userblock.HANDLE; } /** * Address for: @@ -5344,34 +5305,30 @@ private static class H5Pset_userblock { * herr_t H5Pset_userblock(hid_t plist_id, hsize_t size) * } */ - public static MemorySegment H5Pset_userblock$address() { - return H5Pset_userblock.ADDR; - } + public static MemorySegment H5Pset_userblock$address() { return H5Pset_userblock.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_userblock(hid_t plist_id, hsize_t size) * } */ - public static int H5Pset_userblock(long plist_id, long size) { + public static int H5Pset_userblock(long plist_id, long size) + { var mh$ = H5Pset_userblock.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_userblock", plist_id, size); } return (int)mh$.invokeExact(plist_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_alignment { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_alignment"); @@ -5384,9 +5341,7 @@ private static class H5Pget_alignment { * herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold, hsize_t *alignment) * } */ - public static FunctionDescriptor H5Pget_alignment$descriptor() { - return H5Pget_alignment.DESC; - } + public static FunctionDescriptor H5Pget_alignment$descriptor() { return H5Pget_alignment.DESC; } /** * Downcall method handle for: @@ -5394,9 +5349,7 @@ private static class H5Pget_alignment { * herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold, hsize_t *alignment) * } */ - public static MethodHandle H5Pget_alignment$handle() { - return H5Pget_alignment.HANDLE; - } + public static MethodHandle H5Pget_alignment$handle() { return H5Pget_alignment.HANDLE; } /** * Address for: @@ -5404,36 +5357,31 @@ private static class H5Pget_alignment { * herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold, hsize_t *alignment) * } */ - public static MemorySegment H5Pget_alignment$address() { - return H5Pget_alignment.ADDR; - } + public static MemorySegment H5Pget_alignment$address() { return H5Pget_alignment.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold, hsize_t *alignment) * } */ - public static int H5Pget_alignment(long fapl_id, MemorySegment threshold, MemorySegment alignment) { + public static int H5Pget_alignment(long fapl_id, MemorySegment threshold, MemorySegment alignment) + { var mh$ = H5Pget_alignment.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_alignment", fapl_id, threshold, alignment); } return (int)mh$.invokeExact(fapl_id, threshold, alignment); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_cache { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_cache"); @@ -5443,57 +5391,54 @@ private static class H5Pget_cache { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) + * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double + * *rdcc_w0) * } */ - public static FunctionDescriptor H5Pget_cache$descriptor() { - return H5Pget_cache.DESC; - } + public static FunctionDescriptor H5Pget_cache$descriptor() { return H5Pget_cache.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) + * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double + * *rdcc_w0) * } */ - public static MethodHandle H5Pget_cache$handle() { - return H5Pget_cache.HANDLE; - } + public static MethodHandle H5Pget_cache$handle() { return H5Pget_cache.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) + * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double + * *rdcc_w0) * } */ - public static MemorySegment H5Pget_cache$address() { - return H5Pget_cache.ADDR; - } + public static MemorySegment H5Pget_cache$address() { return H5Pget_cache.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) + * herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts, size_t *rdcc_nslots, size_t *rdcc_nbytes, double + * *rdcc_w0) * } */ - public static int H5Pget_cache(long plist_id, MemorySegment mdc_nelmts, MemorySegment rdcc_nslots, MemorySegment rdcc_nbytes, MemorySegment rdcc_w0) { + public static int H5Pget_cache(long plist_id, MemorySegment mdc_nelmts, MemorySegment rdcc_nslots, + MemorySegment rdcc_nbytes, MemorySegment rdcc_w0) + { var mh$ = H5Pget_cache.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_cache", plist_id, mdc_nelmts, rdcc_nslots, rdcc_nbytes, rdcc_w0); } return (int)mh$.invokeExact(plist_id, mdc_nelmts, rdcc_nslots, rdcc_nbytes, rdcc_w0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_core_write_tracking { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_core_write_tracking"); @@ -5506,7 +5451,8 @@ private static class H5Pget_core_write_tracking { * herr_t H5Pget_core_write_tracking(hid_t fapl_id, hbool_t *is_enabled, size_t *page_size) * } */ - public static FunctionDescriptor H5Pget_core_write_tracking$descriptor() { + public static FunctionDescriptor H5Pget_core_write_tracking$descriptor() + { return H5Pget_core_write_tracking.DESC; } @@ -5516,7 +5462,8 @@ private static class H5Pget_core_write_tracking { * herr_t H5Pget_core_write_tracking(hid_t fapl_id, hbool_t *is_enabled, size_t *page_size) * } */ - public static MethodHandle H5Pget_core_write_tracking$handle() { + public static MethodHandle H5Pget_core_write_tracking$handle() + { return H5Pget_core_write_tracking.HANDLE; } @@ -5526,7 +5473,8 @@ private static class H5Pget_core_write_tracking { * herr_t H5Pget_core_write_tracking(hid_t fapl_id, hbool_t *is_enabled, size_t *page_size) * } */ - public static MemorySegment H5Pget_core_write_tracking$address() { + public static MemorySegment H5Pget_core_write_tracking$address() + { return H5Pget_core_write_tracking.ADDR; } @@ -5535,23 +5483,23 @@ private static class H5Pget_core_write_tracking { * herr_t H5Pget_core_write_tracking(hid_t fapl_id, hbool_t *is_enabled, size_t *page_size) * } */ - public static int H5Pget_core_write_tracking(long fapl_id, MemorySegment is_enabled, MemorySegment page_size) { + public static int H5Pget_core_write_tracking(long fapl_id, MemorySegment is_enabled, + MemorySegment page_size) + { var mh$ = H5Pget_core_write_tracking.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_core_write_tracking", fapl_id, is_enabled, page_size); } return (int)mh$.invokeExact(fapl_id, is_enabled, page_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_driver { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_driver"); @@ -5564,9 +5512,7 @@ private static class H5Pget_driver { * hid_t H5Pget_driver(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_driver$descriptor() { - return H5Pget_driver.DESC; - } + public static FunctionDescriptor H5Pget_driver$descriptor() { return H5Pget_driver.DESC; } /** * Downcall method handle for: @@ -5574,9 +5520,7 @@ private static class H5Pget_driver { * hid_t H5Pget_driver(hid_t plist_id) * } */ - public static MethodHandle H5Pget_driver$handle() { - return H5Pget_driver.HANDLE; - } + public static MethodHandle H5Pget_driver$handle() { return H5Pget_driver.HANDLE; } /** * Address for: @@ -5584,32 +5528,29 @@ private static class H5Pget_driver { * hid_t H5Pget_driver(hid_t plist_id) * } */ - public static MemorySegment H5Pget_driver$address() { - return H5Pget_driver.ADDR; - } + public static MemorySegment H5Pget_driver$address() { return H5Pget_driver.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_driver(hid_t plist_id) * } */ - public static long H5Pget_driver(long plist_id) { + public static long H5Pget_driver(long plist_id) + { var mh$ = H5Pget_driver.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_driver", plist_id); } return (long)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_driver_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_driver_info"); @@ -5622,9 +5563,7 @@ private static class H5Pget_driver_info { * const void *H5Pget_driver_info(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_driver_info$descriptor() { - return H5Pget_driver_info.DESC; - } + public static FunctionDescriptor H5Pget_driver_info$descriptor() { return H5Pget_driver_info.DESC; } /** * Downcall method handle for: @@ -5632,9 +5571,7 @@ private static class H5Pget_driver_info { * const void *H5Pget_driver_info(hid_t plist_id) * } */ - public static MethodHandle H5Pget_driver_info$handle() { - return H5Pget_driver_info.HANDLE; - } + public static MethodHandle H5Pget_driver_info$handle() { return H5Pget_driver_info.HANDLE; } /** * Address for: @@ -5642,34 +5579,30 @@ private static class H5Pget_driver_info { * const void *H5Pget_driver_info(hid_t plist_id) * } */ - public static MemorySegment H5Pget_driver_info$address() { - return H5Pget_driver_info.ADDR; - } + public static MemorySegment H5Pget_driver_info$address() { return H5Pget_driver_info.ADDR; } /** * {@snippet lang=c : * const void *H5Pget_driver_info(hid_t plist_id) * } */ - public static MemorySegment H5Pget_driver_info(long plist_id) { + public static MemorySegment H5Pget_driver_info(long plist_id) + { var mh$ = H5Pget_driver_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_driver_info", plist_id); } return (MemorySegment)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_driver_config_str { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_driver_config_str"); @@ -5682,7 +5615,8 @@ private static class H5Pget_driver_config_str { * ssize_t H5Pget_driver_config_str(hid_t fapl_id, char *config_buf, size_t buf_size) * } */ - public static FunctionDescriptor H5Pget_driver_config_str$descriptor() { + public static FunctionDescriptor H5Pget_driver_config_str$descriptor() + { return H5Pget_driver_config_str.DESC; } @@ -5692,9 +5626,7 @@ private static class H5Pget_driver_config_str { * ssize_t H5Pget_driver_config_str(hid_t fapl_id, char *config_buf, size_t buf_size) * } */ - public static MethodHandle H5Pget_driver_config_str$handle() { - return H5Pget_driver_config_str.HANDLE; - } + public static MethodHandle H5Pget_driver_config_str$handle() { return H5Pget_driver_config_str.HANDLE; } /** * Address for: @@ -5702,33 +5634,30 @@ private static class H5Pget_driver_config_str { * ssize_t H5Pget_driver_config_str(hid_t fapl_id, char *config_buf, size_t buf_size) * } */ - public static MemorySegment H5Pget_driver_config_str$address() { - return H5Pget_driver_config_str.ADDR; - } + public static MemorySegment H5Pget_driver_config_str$address() { return H5Pget_driver_config_str.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_driver_config_str(hid_t fapl_id, char *config_buf, size_t buf_size) * } */ - public static long H5Pget_driver_config_str(long fapl_id, MemorySegment config_buf, long buf_size) { + public static long H5Pget_driver_config_str(long fapl_id, MemorySegment config_buf, long buf_size) + { var mh$ = H5Pget_driver_config_str.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_driver_config_str", fapl_id, config_buf, buf_size); } return (long)mh$.invokeExact(fapl_id, config_buf, buf_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_elink_file_cache_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_elink_file_cache_size"); @@ -5741,7 +5670,8 @@ private static class H5Pget_elink_file_cache_size { * herr_t H5Pget_elink_file_cache_size(hid_t plist_id, unsigned int *efc_size) * } */ - public static FunctionDescriptor H5Pget_elink_file_cache_size$descriptor() { + public static FunctionDescriptor H5Pget_elink_file_cache_size$descriptor() + { return H5Pget_elink_file_cache_size.DESC; } @@ -5751,7 +5681,8 @@ private static class H5Pget_elink_file_cache_size { * herr_t H5Pget_elink_file_cache_size(hid_t plist_id, unsigned int *efc_size) * } */ - public static MethodHandle H5Pget_elink_file_cache_size$handle() { + public static MethodHandle H5Pget_elink_file_cache_size$handle() + { return H5Pget_elink_file_cache_size.HANDLE; } @@ -5761,7 +5692,8 @@ private static class H5Pget_elink_file_cache_size { * herr_t H5Pget_elink_file_cache_size(hid_t plist_id, unsigned int *efc_size) * } */ - public static MemorySegment H5Pget_elink_file_cache_size$address() { + public static MemorySegment H5Pget_elink_file_cache_size$address() + { return H5Pget_elink_file_cache_size.ADDR; } @@ -5770,24 +5702,23 @@ private static class H5Pget_elink_file_cache_size { * herr_t H5Pget_elink_file_cache_size(hid_t plist_id, unsigned int *efc_size) * } */ - public static int H5Pget_elink_file_cache_size(long plist_id, MemorySegment efc_size) { + public static int H5Pget_elink_file_cache_size(long plist_id, MemorySegment efc_size) + { var mh$ = H5Pget_elink_file_cache_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_elink_file_cache_size", plist_id, efc_size); } return (int)mh$.invokeExact(plist_id, efc_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_evict_on_close { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_evict_on_close"); @@ -5800,9 +5731,7 @@ private static class H5Pget_evict_on_close { * herr_t H5Pget_evict_on_close(hid_t fapl_id, hbool_t *evict_on_close) * } */ - public static FunctionDescriptor H5Pget_evict_on_close$descriptor() { - return H5Pget_evict_on_close.DESC; - } + public static FunctionDescriptor H5Pget_evict_on_close$descriptor() { return H5Pget_evict_on_close.DESC; } /** * Downcall method handle for: @@ -5810,9 +5739,7 @@ private static class H5Pget_evict_on_close { * herr_t H5Pget_evict_on_close(hid_t fapl_id, hbool_t *evict_on_close) * } */ - public static MethodHandle H5Pget_evict_on_close$handle() { - return H5Pget_evict_on_close.HANDLE; - } + public static MethodHandle H5Pget_evict_on_close$handle() { return H5Pget_evict_on_close.HANDLE; } /** * Address for: @@ -5820,33 +5747,30 @@ private static class H5Pget_evict_on_close { * herr_t H5Pget_evict_on_close(hid_t fapl_id, hbool_t *evict_on_close) * } */ - public static MemorySegment H5Pget_evict_on_close$address() { - return H5Pget_evict_on_close.ADDR; - } + public static MemorySegment H5Pget_evict_on_close$address() { return H5Pget_evict_on_close.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_evict_on_close(hid_t fapl_id, hbool_t *evict_on_close) * } */ - public static int H5Pget_evict_on_close(long fapl_id, MemorySegment evict_on_close) { + public static int H5Pget_evict_on_close(long fapl_id, MemorySegment evict_on_close) + { var mh$ = H5Pget_evict_on_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_evict_on_close", fapl_id, evict_on_close); } return (int)mh$.invokeExact(fapl_id, evict_on_close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_family_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_family_offset"); @@ -5859,9 +5783,7 @@ private static class H5Pget_family_offset { * herr_t H5Pget_family_offset(hid_t fapl_id, hsize_t *offset) * } */ - public static FunctionDescriptor H5Pget_family_offset$descriptor() { - return H5Pget_family_offset.DESC; - } + public static FunctionDescriptor H5Pget_family_offset$descriptor() { return H5Pget_family_offset.DESC; } /** * Downcall method handle for: @@ -5869,9 +5791,7 @@ private static class H5Pget_family_offset { * herr_t H5Pget_family_offset(hid_t fapl_id, hsize_t *offset) * } */ - public static MethodHandle H5Pget_family_offset$handle() { - return H5Pget_family_offset.HANDLE; - } + public static MethodHandle H5Pget_family_offset$handle() { return H5Pget_family_offset.HANDLE; } /** * Address for: @@ -5879,33 +5799,30 @@ private static class H5Pget_family_offset { * herr_t H5Pget_family_offset(hid_t fapl_id, hsize_t *offset) * } */ - public static MemorySegment H5Pget_family_offset$address() { - return H5Pget_family_offset.ADDR; - } + public static MemorySegment H5Pget_family_offset$address() { return H5Pget_family_offset.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_family_offset(hid_t fapl_id, hsize_t *offset) * } */ - public static int H5Pget_family_offset(long fapl_id, MemorySegment offset) { + public static int H5Pget_family_offset(long fapl_id, MemorySegment offset) + { var mh$ = H5Pget_family_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_family_offset", fapl_id, offset); } return (int)mh$.invokeExact(fapl_id, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fclose_degree { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fclose_degree"); @@ -5918,9 +5835,7 @@ private static class H5Pget_fclose_degree { * herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree) * } */ - public static FunctionDescriptor H5Pget_fclose_degree$descriptor() { - return H5Pget_fclose_degree.DESC; - } + public static FunctionDescriptor H5Pget_fclose_degree$descriptor() { return H5Pget_fclose_degree.DESC; } /** * Downcall method handle for: @@ -5928,9 +5843,7 @@ private static class H5Pget_fclose_degree { * herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree) * } */ - public static MethodHandle H5Pget_fclose_degree$handle() { - return H5Pget_fclose_degree.HANDLE; - } + public static MethodHandle H5Pget_fclose_degree$handle() { return H5Pget_fclose_degree.HANDLE; } /** * Address for: @@ -5938,34 +5851,30 @@ private static class H5Pget_fclose_degree { * herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree) * } */ - public static MemorySegment H5Pget_fclose_degree$address() { - return H5Pget_fclose_degree.ADDR; - } + public static MemorySegment H5Pget_fclose_degree$address() { return H5Pget_fclose_degree.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree) * } */ - public static int H5Pget_fclose_degree(long fapl_id, MemorySegment degree) { + public static int H5Pget_fclose_degree(long fapl_id, MemorySegment degree) + { var mh$ = H5Pget_fclose_degree.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fclose_degree", fapl_id, degree); } return (int)mh$.invokeExact(fapl_id, degree); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_image { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_image"); @@ -5978,9 +5887,7 @@ private static class H5Pget_file_image { * herr_t H5Pget_file_image(hid_t fapl_id, void **buf_ptr_ptr, size_t *buf_len_ptr) * } */ - public static FunctionDescriptor H5Pget_file_image$descriptor() { - return H5Pget_file_image.DESC; - } + public static FunctionDescriptor H5Pget_file_image$descriptor() { return H5Pget_file_image.DESC; } /** * Downcall method handle for: @@ -5988,9 +5895,7 @@ private static class H5Pget_file_image { * herr_t H5Pget_file_image(hid_t fapl_id, void **buf_ptr_ptr, size_t *buf_len_ptr) * } */ - public static MethodHandle H5Pget_file_image$handle() { - return H5Pget_file_image.HANDLE; - } + public static MethodHandle H5Pget_file_image$handle() { return H5Pget_file_image.HANDLE; } /** * Address for: @@ -5998,33 +5903,30 @@ private static class H5Pget_file_image { * herr_t H5Pget_file_image(hid_t fapl_id, void **buf_ptr_ptr, size_t *buf_len_ptr) * } */ - public static MemorySegment H5Pget_file_image$address() { - return H5Pget_file_image.ADDR; - } + public static MemorySegment H5Pget_file_image$address() { return H5Pget_file_image.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_file_image(hid_t fapl_id, void **buf_ptr_ptr, size_t *buf_len_ptr) * } */ - public static int H5Pget_file_image(long fapl_id, MemorySegment buf_ptr_ptr, MemorySegment buf_len_ptr) { + public static int H5Pget_file_image(long fapl_id, MemorySegment buf_ptr_ptr, MemorySegment buf_len_ptr) + { var mh$ = H5Pget_file_image.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_image", fapl_id, buf_ptr_ptr, buf_len_ptr); } return (int)mh$.invokeExact(fapl_id, buf_ptr_ptr, buf_len_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_image_callbacks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_image_callbacks"); @@ -6037,7 +5939,8 @@ private static class H5Pget_file_image_callbacks { * herr_t H5Pget_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static FunctionDescriptor H5Pget_file_image_callbacks$descriptor() { + public static FunctionDescriptor H5Pget_file_image_callbacks$descriptor() + { return H5Pget_file_image_callbacks.DESC; } @@ -6047,7 +5950,8 @@ private static class H5Pget_file_image_callbacks { * herr_t H5Pget_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static MethodHandle H5Pget_file_image_callbacks$handle() { + public static MethodHandle H5Pget_file_image_callbacks$handle() + { return H5Pget_file_image_callbacks.HANDLE; } @@ -6057,7 +5961,8 @@ private static class H5Pget_file_image_callbacks { * herr_t H5Pget_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static MemorySegment H5Pget_file_image_callbacks$address() { + public static MemorySegment H5Pget_file_image_callbacks$address() + { return H5Pget_file_image_callbacks.ADDR; } @@ -6066,25 +5971,23 @@ private static class H5Pget_file_image_callbacks { * herr_t H5Pget_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static int H5Pget_file_image_callbacks(long fapl_id, MemorySegment callbacks_ptr) { + public static int H5Pget_file_image_callbacks(long fapl_id, MemorySegment callbacks_ptr) + { var mh$ = H5Pget_file_image_callbacks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_image_callbacks", fapl_id, callbacks_ptr); } return (int)mh$.invokeExact(fapl_id, callbacks_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_locking { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_locking"); @@ -6097,9 +6000,7 @@ private static class H5Pget_file_locking { * herr_t H5Pget_file_locking(hid_t fapl_id, hbool_t *use_file_locking, hbool_t *ignore_when_disabled) * } */ - public static FunctionDescriptor H5Pget_file_locking$descriptor() { - return H5Pget_file_locking.DESC; - } + public static FunctionDescriptor H5Pget_file_locking$descriptor() { return H5Pget_file_locking.DESC; } /** * Downcall method handle for: @@ -6107,9 +6008,7 @@ private static class H5Pget_file_locking { * herr_t H5Pget_file_locking(hid_t fapl_id, hbool_t *use_file_locking, hbool_t *ignore_when_disabled) * } */ - public static MethodHandle H5Pget_file_locking$handle() { - return H5Pget_file_locking.HANDLE; - } + public static MethodHandle H5Pget_file_locking$handle() { return H5Pget_file_locking.HANDLE; } /** * Address for: @@ -6117,33 +6016,31 @@ private static class H5Pget_file_locking { * herr_t H5Pget_file_locking(hid_t fapl_id, hbool_t *use_file_locking, hbool_t *ignore_when_disabled) * } */ - public static MemorySegment H5Pget_file_locking$address() { - return H5Pget_file_locking.ADDR; - } + public static MemorySegment H5Pget_file_locking$address() { return H5Pget_file_locking.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_file_locking(hid_t fapl_id, hbool_t *use_file_locking, hbool_t *ignore_when_disabled) * } */ - public static int H5Pget_file_locking(long fapl_id, MemorySegment use_file_locking, MemorySegment ignore_when_disabled) { + public static int H5Pget_file_locking(long fapl_id, MemorySegment use_file_locking, + MemorySegment ignore_when_disabled) + { var mh$ = H5Pget_file_locking.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_locking", fapl_id, use_file_locking, ignore_when_disabled); } return (int)mh$.invokeExact(fapl_id, use_file_locking, ignore_when_disabled); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_gc_references { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_gc_references"); @@ -6156,9 +6053,7 @@ private static class H5Pget_gc_references { * herr_t H5Pget_gc_references(hid_t fapl_id, unsigned int *gc_ref) * } */ - public static FunctionDescriptor H5Pget_gc_references$descriptor() { - return H5Pget_gc_references.DESC; - } + public static FunctionDescriptor H5Pget_gc_references$descriptor() { return H5Pget_gc_references.DESC; } /** * Downcall method handle for: @@ -6166,9 +6061,7 @@ private static class H5Pget_gc_references { * herr_t H5Pget_gc_references(hid_t fapl_id, unsigned int *gc_ref) * } */ - public static MethodHandle H5Pget_gc_references$handle() { - return H5Pget_gc_references.HANDLE; - } + public static MethodHandle H5Pget_gc_references$handle() { return H5Pget_gc_references.HANDLE; } /** * Address for: @@ -6176,34 +6069,30 @@ private static class H5Pget_gc_references { * herr_t H5Pget_gc_references(hid_t fapl_id, unsigned int *gc_ref) * } */ - public static MemorySegment H5Pget_gc_references$address() { - return H5Pget_gc_references.ADDR; - } + public static MemorySegment H5Pget_gc_references$address() { return H5Pget_gc_references.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_gc_references(hid_t fapl_id, unsigned int *gc_ref) * } */ - public static int H5Pget_gc_references(long fapl_id, MemorySegment gc_ref) { + public static int H5Pget_gc_references(long fapl_id, MemorySegment gc_ref) + { var mh$ = H5Pget_gc_references.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_gc_references", fapl_id, gc_ref); } return (int)mh$.invokeExact(fapl_id, gc_ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_libver_bounds { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_libver_bounds"); @@ -6216,9 +6105,7 @@ private static class H5Pget_libver_bounds { * herr_t H5Pget_libver_bounds(hid_t plist_id, H5F_libver_t *low, H5F_libver_t *high) * } */ - public static FunctionDescriptor H5Pget_libver_bounds$descriptor() { - return H5Pget_libver_bounds.DESC; - } + public static FunctionDescriptor H5Pget_libver_bounds$descriptor() { return H5Pget_libver_bounds.DESC; } /** * Downcall method handle for: @@ -6226,9 +6113,7 @@ private static class H5Pget_libver_bounds { * herr_t H5Pget_libver_bounds(hid_t plist_id, H5F_libver_t *low, H5F_libver_t *high) * } */ - public static MethodHandle H5Pget_libver_bounds$handle() { - return H5Pget_libver_bounds.HANDLE; - } + public static MethodHandle H5Pget_libver_bounds$handle() { return H5Pget_libver_bounds.HANDLE; } /** * Address for: @@ -6236,33 +6121,30 @@ private static class H5Pget_libver_bounds { * herr_t H5Pget_libver_bounds(hid_t plist_id, H5F_libver_t *low, H5F_libver_t *high) * } */ - public static MemorySegment H5Pget_libver_bounds$address() { - return H5Pget_libver_bounds.ADDR; - } + public static MemorySegment H5Pget_libver_bounds$address() { return H5Pget_libver_bounds.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_libver_bounds(hid_t plist_id, H5F_libver_t *low, H5F_libver_t *high) * } */ - public static int H5Pget_libver_bounds(long plist_id, MemorySegment low, MemorySegment high) { + public static int H5Pget_libver_bounds(long plist_id, MemorySegment low, MemorySegment high) + { var mh$ = H5Pget_libver_bounds.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_libver_bounds", plist_id, low, high); } return (int)mh$.invokeExact(plist_id, low, high); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_mdc_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_mdc_config"); @@ -6275,9 +6157,7 @@ private static class H5Pget_mdc_config { * herr_t H5Pget_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pget_mdc_config$descriptor() { - return H5Pget_mdc_config.DESC; - } + public static FunctionDescriptor H5Pget_mdc_config$descriptor() { return H5Pget_mdc_config.DESC; } /** * Downcall method handle for: @@ -6285,9 +6165,7 @@ private static class H5Pget_mdc_config { * herr_t H5Pget_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static MethodHandle H5Pget_mdc_config$handle() { - return H5Pget_mdc_config.HANDLE; - } + public static MethodHandle H5Pget_mdc_config$handle() { return H5Pget_mdc_config.HANDLE; } /** * Address for: @@ -6295,33 +6173,30 @@ private static class H5Pget_mdc_config { * herr_t H5Pget_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static MemorySegment H5Pget_mdc_config$address() { - return H5Pget_mdc_config.ADDR; - } + public static MemorySegment H5Pget_mdc_config$address() { return H5Pget_mdc_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static int H5Pget_mdc_config(long plist_id, MemorySegment config_ptr) { + public static int H5Pget_mdc_config(long plist_id, MemorySegment config_ptr) + { var mh$ = H5Pget_mdc_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_mdc_config", plist_id, config_ptr); } return (int)mh$.invokeExact(plist_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_mdc_image_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_mdc_image_config"); @@ -6334,7 +6209,8 @@ private static class H5Pget_mdc_image_config { * herr_t H5Pget_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pget_mdc_image_config$descriptor() { + public static FunctionDescriptor H5Pget_mdc_image_config$descriptor() + { return H5Pget_mdc_image_config.DESC; } @@ -6344,9 +6220,7 @@ private static class H5Pget_mdc_image_config { * herr_t H5Pget_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static MethodHandle H5Pget_mdc_image_config$handle() { - return H5Pget_mdc_image_config.HANDLE; - } + public static MethodHandle H5Pget_mdc_image_config$handle() { return H5Pget_mdc_image_config.HANDLE; } /** * Address for: @@ -6354,36 +6228,31 @@ private static class H5Pget_mdc_image_config { * herr_t H5Pget_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static MemorySegment H5Pget_mdc_image_config$address() { - return H5Pget_mdc_image_config.ADDR; - } + public static MemorySegment H5Pget_mdc_image_config$address() { return H5Pget_mdc_image_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static int H5Pget_mdc_image_config(long plist_id, MemorySegment config_ptr) { + public static int H5Pget_mdc_image_config(long plist_id, MemorySegment config_ptr) + { var mh$ = H5Pget_mdc_image_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_mdc_image_config", plist_id, config_ptr); } return (int)mh$.invokeExact(plist_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_mdc_log_options { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_mdc_log_options"); @@ -6393,56 +6262,58 @@ private static class H5Pget_mdc_log_options { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t *location_size, hbool_t *start_on_access) + * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t + * *location_size, hbool_t *start_on_access) * } */ - public static FunctionDescriptor H5Pget_mdc_log_options$descriptor() { + public static FunctionDescriptor H5Pget_mdc_log_options$descriptor() + { return H5Pget_mdc_log_options.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t *location_size, hbool_t *start_on_access) + * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t + * *location_size, hbool_t *start_on_access) * } */ - public static MethodHandle H5Pget_mdc_log_options$handle() { - return H5Pget_mdc_log_options.HANDLE; - } + public static MethodHandle H5Pget_mdc_log_options$handle() { return H5Pget_mdc_log_options.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t *location_size, hbool_t *start_on_access) + * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t + * *location_size, hbool_t *start_on_access) * } */ - public static MemorySegment H5Pget_mdc_log_options$address() { - return H5Pget_mdc_log_options.ADDR; - } + public static MemorySegment H5Pget_mdc_log_options$address() { return H5Pget_mdc_log_options.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t *location_size, hbool_t *start_on_access) + * herr_t H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled, char *location, size_t + * *location_size, hbool_t *start_on_access) * } */ - public static int H5Pget_mdc_log_options(long plist_id, MemorySegment is_enabled, MemorySegment location, MemorySegment location_size, MemorySegment start_on_access) { + public static int H5Pget_mdc_log_options(long plist_id, MemorySegment is_enabled, MemorySegment location, + MemorySegment location_size, MemorySegment start_on_access) + { var mh$ = H5Pget_mdc_log_options.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_mdc_log_options", plist_id, is_enabled, location, location_size, start_on_access); + traceDowncall("H5Pget_mdc_log_options", plist_id, is_enabled, location, location_size, + start_on_access); } return (int)mh$.invokeExact(plist_id, is_enabled, location, location_size, start_on_access); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_meta_block_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_meta_block_size"); @@ -6455,7 +6326,8 @@ private static class H5Pget_meta_block_size { * herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static FunctionDescriptor H5Pget_meta_block_size$descriptor() { + public static FunctionDescriptor H5Pget_meta_block_size$descriptor() + { return H5Pget_meta_block_size.DESC; } @@ -6465,9 +6337,7 @@ private static class H5Pget_meta_block_size { * herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static MethodHandle H5Pget_meta_block_size$handle() { - return H5Pget_meta_block_size.HANDLE; - } + public static MethodHandle H5Pget_meta_block_size$handle() { return H5Pget_meta_block_size.HANDLE; } /** * Address for: @@ -6475,33 +6345,30 @@ private static class H5Pget_meta_block_size { * herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static MemorySegment H5Pget_meta_block_size$address() { - return H5Pget_meta_block_size.ADDR; - } + public static MemorySegment H5Pget_meta_block_size$address() { return H5Pget_meta_block_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static int H5Pget_meta_block_size(long fapl_id, MemorySegment size) { + public static int H5Pget_meta_block_size(long fapl_id, MemorySegment size) + { var mh$ = H5Pget_meta_block_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_meta_block_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_metadata_read_attempts { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_metadata_read_attempts"); @@ -6514,7 +6381,8 @@ private static class H5Pget_metadata_read_attempts { * herr_t H5Pget_metadata_read_attempts(hid_t plist_id, unsigned int *attempts) * } */ - public static FunctionDescriptor H5Pget_metadata_read_attempts$descriptor() { + public static FunctionDescriptor H5Pget_metadata_read_attempts$descriptor() + { return H5Pget_metadata_read_attempts.DESC; } @@ -6524,7 +6392,8 @@ private static class H5Pget_metadata_read_attempts { * herr_t H5Pget_metadata_read_attempts(hid_t plist_id, unsigned int *attempts) * } */ - public static MethodHandle H5Pget_metadata_read_attempts$handle() { + public static MethodHandle H5Pget_metadata_read_attempts$handle() + { return H5Pget_metadata_read_attempts.HANDLE; } @@ -6534,7 +6403,8 @@ private static class H5Pget_metadata_read_attempts { * herr_t H5Pget_metadata_read_attempts(hid_t plist_id, unsigned int *attempts) * } */ - public static MemorySegment H5Pget_metadata_read_attempts$address() { + public static MemorySegment H5Pget_metadata_read_attempts$address() + { return H5Pget_metadata_read_attempts.ADDR; } @@ -6543,24 +6413,23 @@ private static class H5Pget_metadata_read_attempts { * herr_t H5Pget_metadata_read_attempts(hid_t plist_id, unsigned int *attempts) * } */ - public static int H5Pget_metadata_read_attempts(long plist_id, MemorySegment attempts) { + public static int H5Pget_metadata_read_attempts(long plist_id, MemorySegment attempts) + { var mh$ = H5Pget_metadata_read_attempts.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_metadata_read_attempts", plist_id, attempts); } return (int)mh$.invokeExact(plist_id, attempts); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_multi_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_multi_type"); @@ -6573,9 +6442,7 @@ private static class H5Pget_multi_type { * herr_t H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type) * } */ - public static FunctionDescriptor H5Pget_multi_type$descriptor() { - return H5Pget_multi_type.DESC; - } + public static FunctionDescriptor H5Pget_multi_type$descriptor() { return H5Pget_multi_type.DESC; } /** * Downcall method handle for: @@ -6583,9 +6450,7 @@ private static class H5Pget_multi_type { * herr_t H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type) * } */ - public static MethodHandle H5Pget_multi_type$handle() { - return H5Pget_multi_type.HANDLE; - } + public static MethodHandle H5Pget_multi_type$handle() { return H5Pget_multi_type.HANDLE; } /** * Address for: @@ -6593,34 +6458,30 @@ private static class H5Pget_multi_type { * herr_t H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type) * } */ - public static MemorySegment H5Pget_multi_type$address() { - return H5Pget_multi_type.ADDR; - } + public static MemorySegment H5Pget_multi_type$address() { return H5Pget_multi_type.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type) * } */ - public static int H5Pget_multi_type(long fapl_id, MemorySegment type) { + public static int H5Pget_multi_type(long fapl_id, MemorySegment type) + { var mh$ = H5Pget_multi_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_multi_type", fapl_id, type); } return (int)mh$.invokeExact(fapl_id, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_object_flush_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_object_flush_cb"); @@ -6633,7 +6494,8 @@ private static class H5Pget_object_flush_cb { * herr_t H5Pget_object_flush_cb(hid_t plist_id, H5F_flush_cb_t *func, void **udata) * } */ - public static FunctionDescriptor H5Pget_object_flush_cb$descriptor() { + public static FunctionDescriptor H5Pget_object_flush_cb$descriptor() + { return H5Pget_object_flush_cb.DESC; } @@ -6643,9 +6505,7 @@ private static class H5Pget_object_flush_cb { * herr_t H5Pget_object_flush_cb(hid_t plist_id, H5F_flush_cb_t *func, void **udata) * } */ - public static MethodHandle H5Pget_object_flush_cb$handle() { - return H5Pget_object_flush_cb.HANDLE; - } + public static MethodHandle H5Pget_object_flush_cb$handle() { return H5Pget_object_flush_cb.HANDLE; } /** * Address for: @@ -6653,35 +6513,30 @@ private static class H5Pget_object_flush_cb { * herr_t H5Pget_object_flush_cb(hid_t plist_id, H5F_flush_cb_t *func, void **udata) * } */ - public static MemorySegment H5Pget_object_flush_cb$address() { - return H5Pget_object_flush_cb.ADDR; - } + public static MemorySegment H5Pget_object_flush_cb$address() { return H5Pget_object_flush_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_object_flush_cb(hid_t plist_id, H5F_flush_cb_t *func, void **udata) * } */ - public static int H5Pget_object_flush_cb(long plist_id, MemorySegment func, MemorySegment udata) { + public static int H5Pget_object_flush_cb(long plist_id, MemorySegment func, MemorySegment udata) + { var mh$ = H5Pget_object_flush_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_object_flush_cb", plist_id, func, udata); } return (int)mh$.invokeExact(plist_id, func, udata); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_page_buffer_size { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_page_buffer_size"); @@ -6691,56 +6546,57 @@ private static class H5Pget_page_buffer_size { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned int *min_raw_perc) + * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned + * int *min_raw_perc) * } */ - public static FunctionDescriptor H5Pget_page_buffer_size$descriptor() { + public static FunctionDescriptor H5Pget_page_buffer_size$descriptor() + { return H5Pget_page_buffer_size.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned int *min_raw_perc) + * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned + * int *min_raw_perc) * } */ - public static MethodHandle H5Pget_page_buffer_size$handle() { - return H5Pget_page_buffer_size.HANDLE; - } + public static MethodHandle H5Pget_page_buffer_size$handle() { return H5Pget_page_buffer_size.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned int *min_raw_perc) + * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned + * int *min_raw_perc) * } */ - public static MemorySegment H5Pget_page_buffer_size$address() { - return H5Pget_page_buffer_size.ADDR; - } + public static MemorySegment H5Pget_page_buffer_size$address() { return H5Pget_page_buffer_size.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned int *min_raw_perc) + * herr_t H5Pget_page_buffer_size(hid_t plist_id, size_t *buf_size, unsigned int *min_meta_perc, unsigned + * int *min_raw_perc) * } */ - public static int H5Pget_page_buffer_size(long plist_id, MemorySegment buf_size, MemorySegment min_meta_perc, MemorySegment min_raw_perc) { + public static int H5Pget_page_buffer_size(long plist_id, MemorySegment buf_size, + MemorySegment min_meta_perc, MemorySegment min_raw_perc) + { var mh$ = H5Pget_page_buffer_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_page_buffer_size", plist_id, buf_size, min_meta_perc, min_raw_perc); } return (int)mh$.invokeExact(plist_id, buf_size, min_meta_perc, min_raw_perc); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_sieve_buf_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_sieve_buf_size"); @@ -6753,9 +6609,7 @@ private static class H5Pget_sieve_buf_size { * herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size) * } */ - public static FunctionDescriptor H5Pget_sieve_buf_size$descriptor() { - return H5Pget_sieve_buf_size.DESC; - } + public static FunctionDescriptor H5Pget_sieve_buf_size$descriptor() { return H5Pget_sieve_buf_size.DESC; } /** * Downcall method handle for: @@ -6763,9 +6617,7 @@ private static class H5Pget_sieve_buf_size { * herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size) * } */ - public static MethodHandle H5Pget_sieve_buf_size$handle() { - return H5Pget_sieve_buf_size.HANDLE; - } + public static MethodHandle H5Pget_sieve_buf_size$handle() { return H5Pget_sieve_buf_size.HANDLE; } /** * Address for: @@ -6773,33 +6625,30 @@ private static class H5Pget_sieve_buf_size { * herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size) * } */ - public static MemorySegment H5Pget_sieve_buf_size$address() { - return H5Pget_sieve_buf_size.ADDR; - } + public static MemorySegment H5Pget_sieve_buf_size$address() { return H5Pget_sieve_buf_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size) * } */ - public static int H5Pget_sieve_buf_size(long fapl_id, MemorySegment size) { + public static int H5Pget_sieve_buf_size(long fapl_id, MemorySegment size) + { var mh$ = H5Pget_sieve_buf_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_sieve_buf_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_small_data_block_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_small_data_block_size"); @@ -6812,7 +6661,8 @@ private static class H5Pget_small_data_block_size { * herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static FunctionDescriptor H5Pget_small_data_block_size$descriptor() { + public static FunctionDescriptor H5Pget_small_data_block_size$descriptor() + { return H5Pget_small_data_block_size.DESC; } @@ -6822,7 +6672,8 @@ private static class H5Pget_small_data_block_size { * herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static MethodHandle H5Pget_small_data_block_size$handle() { + public static MethodHandle H5Pget_small_data_block_size$handle() + { return H5Pget_small_data_block_size.HANDLE; } @@ -6832,7 +6683,8 @@ private static class H5Pget_small_data_block_size { * herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static MemorySegment H5Pget_small_data_block_size$address() { + public static MemorySegment H5Pget_small_data_block_size$address() + { return H5Pget_small_data_block_size.ADDR; } @@ -6841,24 +6693,23 @@ private static class H5Pget_small_data_block_size { * herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size) * } */ - public static int H5Pget_small_data_block_size(long fapl_id, MemorySegment size) { + public static int H5Pget_small_data_block_size(long fapl_id, MemorySegment size) + { var mh$ = H5Pget_small_data_block_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_small_data_block_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_vol_id { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_vol_id"); @@ -6871,9 +6722,7 @@ private static class H5Pget_vol_id { * herr_t H5Pget_vol_id(hid_t plist_id, hid_t *vol_id) * } */ - public static FunctionDescriptor H5Pget_vol_id$descriptor() { - return H5Pget_vol_id.DESC; - } + public static FunctionDescriptor H5Pget_vol_id$descriptor() { return H5Pget_vol_id.DESC; } /** * Downcall method handle for: @@ -6881,9 +6730,7 @@ private static class H5Pget_vol_id { * herr_t H5Pget_vol_id(hid_t plist_id, hid_t *vol_id) * } */ - public static MethodHandle H5Pget_vol_id$handle() { - return H5Pget_vol_id.HANDLE; - } + public static MethodHandle H5Pget_vol_id$handle() { return H5Pget_vol_id.HANDLE; } /** * Address for: @@ -6891,33 +6738,30 @@ private static class H5Pget_vol_id { * herr_t H5Pget_vol_id(hid_t plist_id, hid_t *vol_id) * } */ - public static MemorySegment H5Pget_vol_id$address() { - return H5Pget_vol_id.ADDR; - } + public static MemorySegment H5Pget_vol_id$address() { return H5Pget_vol_id.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_vol_id(hid_t plist_id, hid_t *vol_id) * } */ - public static int H5Pget_vol_id(long plist_id, MemorySegment vol_id) { + public static int H5Pget_vol_id(long plist_id, MemorySegment vol_id) + { var mh$ = H5Pget_vol_id.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_vol_id", plist_id, vol_id); } return (int)mh$.invokeExact(plist_id, vol_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_vol_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_vol_info"); @@ -6930,9 +6774,7 @@ private static class H5Pget_vol_info { * herr_t H5Pget_vol_info(hid_t plist_id, void **vol_info) * } */ - public static FunctionDescriptor H5Pget_vol_info$descriptor() { - return H5Pget_vol_info.DESC; - } + public static FunctionDescriptor H5Pget_vol_info$descriptor() { return H5Pget_vol_info.DESC; } /** * Downcall method handle for: @@ -6940,9 +6782,7 @@ private static class H5Pget_vol_info { * herr_t H5Pget_vol_info(hid_t plist_id, void **vol_info) * } */ - public static MethodHandle H5Pget_vol_info$handle() { - return H5Pget_vol_info.HANDLE; - } + public static MethodHandle H5Pget_vol_info$handle() { return H5Pget_vol_info.HANDLE; } /** * Address for: @@ -6950,34 +6790,30 @@ private static class H5Pget_vol_info { * herr_t H5Pget_vol_info(hid_t plist_id, void **vol_info) * } */ - public static MemorySegment H5Pget_vol_info$address() { - return H5Pget_vol_info.ADDR; - } + public static MemorySegment H5Pget_vol_info$address() { return H5Pget_vol_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_vol_info(hid_t plist_id, void **vol_info) * } */ - public static int H5Pget_vol_info(long plist_id, MemorySegment vol_info) { + public static int H5Pget_vol_info(long plist_id, MemorySegment vol_info) + { var mh$ = H5Pget_vol_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_vol_info", plist_id, vol_info); } return (int)mh$.invokeExact(plist_id, vol_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_alignment { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_alignment"); @@ -6990,9 +6826,7 @@ private static class H5Pset_alignment { * herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment) * } */ - public static FunctionDescriptor H5Pset_alignment$descriptor() { - return H5Pset_alignment.DESC; - } + public static FunctionDescriptor H5Pset_alignment$descriptor() { return H5Pset_alignment.DESC; } /** * Downcall method handle for: @@ -7000,9 +6834,7 @@ private static class H5Pset_alignment { * herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment) * } */ - public static MethodHandle H5Pset_alignment$handle() { - return H5Pset_alignment.HANDLE; - } + public static MethodHandle H5Pset_alignment$handle() { return H5Pset_alignment.HANDLE; } /** * Address for: @@ -7010,36 +6842,30 @@ private static class H5Pset_alignment { * herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment) * } */ - public static MemorySegment H5Pset_alignment$address() { - return H5Pset_alignment.ADDR; - } + public static MemorySegment H5Pset_alignment$address() { return H5Pset_alignment.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment) * } */ - public static int H5Pset_alignment(long fapl_id, long threshold, long alignment) { + public static int H5Pset_alignment(long fapl_id, long threshold, long alignment) + { var mh$ = H5Pset_alignment.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_alignment", fapl_id, threshold, alignment); } return (int)mh$.invokeExact(fapl_id, threshold, alignment); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_cache { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_DOUBLE - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_DOUBLE); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_cache"); @@ -7049,57 +6875,54 @@ private static class H5Pset_cache { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) + * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double + * rdcc_w0) * } */ - public static FunctionDescriptor H5Pset_cache$descriptor() { - return H5Pset_cache.DESC; - } + public static FunctionDescriptor H5Pset_cache$descriptor() { return H5Pset_cache.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) + * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double + * rdcc_w0) * } */ - public static MethodHandle H5Pset_cache$handle() { - return H5Pset_cache.HANDLE; - } + public static MethodHandle H5Pset_cache$handle() { return H5Pset_cache.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) + * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double + * rdcc_w0) * } */ - public static MemorySegment H5Pset_cache$address() { - return H5Pset_cache.ADDR; - } + public static MemorySegment H5Pset_cache$address() { return H5Pset_cache.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) + * herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nslots, size_t rdcc_nbytes, double + * rdcc_w0) * } */ - public static int H5Pset_cache(long plist_id, int mdc_nelmts, long rdcc_nslots, long rdcc_nbytes, double rdcc_w0) { + public static int H5Pset_cache(long plist_id, int mdc_nelmts, long rdcc_nslots, long rdcc_nbytes, + double rdcc_w0) + { var mh$ = H5Pset_cache.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_cache", plist_id, mdc_nelmts, rdcc_nslots, rdcc_nbytes, rdcc_w0); } return (int)mh$.invokeExact(plist_id, mdc_nelmts, rdcc_nslots, rdcc_nbytes, rdcc_w0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_core_write_tracking { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_core_write_tracking"); @@ -7112,7 +6935,8 @@ private static class H5Pset_core_write_tracking { * herr_t H5Pset_core_write_tracking(hid_t fapl_id, hbool_t is_enabled, size_t page_size) * } */ - public static FunctionDescriptor H5Pset_core_write_tracking$descriptor() { + public static FunctionDescriptor H5Pset_core_write_tracking$descriptor() + { return H5Pset_core_write_tracking.DESC; } @@ -7122,7 +6946,8 @@ private static class H5Pset_core_write_tracking { * herr_t H5Pset_core_write_tracking(hid_t fapl_id, hbool_t is_enabled, size_t page_size) * } */ - public static MethodHandle H5Pset_core_write_tracking$handle() { + public static MethodHandle H5Pset_core_write_tracking$handle() + { return H5Pset_core_write_tracking.HANDLE; } @@ -7132,7 +6957,8 @@ private static class H5Pset_core_write_tracking { * herr_t H5Pset_core_write_tracking(hid_t fapl_id, hbool_t is_enabled, size_t page_size) * } */ - public static MemorySegment H5Pset_core_write_tracking$address() { + public static MemorySegment H5Pset_core_write_tracking$address() + { return H5Pset_core_write_tracking.ADDR; } @@ -7141,25 +6967,23 @@ private static class H5Pset_core_write_tracking { * herr_t H5Pset_core_write_tracking(hid_t fapl_id, hbool_t is_enabled, size_t page_size) * } */ - public static int H5Pset_core_write_tracking(long fapl_id, boolean is_enabled, long page_size) { + public static int H5Pset_core_write_tracking(long fapl_id, boolean is_enabled, long page_size) + { var mh$ = H5Pset_core_write_tracking.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_core_write_tracking", fapl_id, is_enabled, page_size); } return (int)mh$.invokeExact(fapl_id, is_enabled, page_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_driver { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_driver"); @@ -7172,9 +6996,7 @@ private static class H5Pset_driver { * herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info) * } */ - public static FunctionDescriptor H5Pset_driver$descriptor() { - return H5Pset_driver.DESC; - } + public static FunctionDescriptor H5Pset_driver$descriptor() { return H5Pset_driver.DESC; } /** * Downcall method handle for: @@ -7182,9 +7004,7 @@ private static class H5Pset_driver { * herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info) * } */ - public static MethodHandle H5Pset_driver$handle() { - return H5Pset_driver.HANDLE; - } + public static MethodHandle H5Pset_driver$handle() { return H5Pset_driver.HANDLE; } /** * Address for: @@ -7192,34 +7012,30 @@ private static class H5Pset_driver { * herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info) * } */ - public static MemorySegment H5Pset_driver$address() { - return H5Pset_driver.ADDR; - } + public static MemorySegment H5Pset_driver$address() { return H5Pset_driver.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info) * } */ - public static int H5Pset_driver(long plist_id, long driver_id, MemorySegment driver_info) { + public static int H5Pset_driver(long plist_id, long driver_id, MemorySegment driver_info) + { var mh$ = H5Pset_driver.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_driver", plist_id, driver_id, driver_info); } return (int)mh$.invokeExact(plist_id, driver_id, driver_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_driver_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_driver_by_name"); @@ -7232,9 +7048,7 @@ private static class H5Pset_driver_by_name { * herr_t H5Pset_driver_by_name(hid_t plist_id, const char *driver_name, const char *driver_config) * } */ - public static FunctionDescriptor H5Pset_driver_by_name$descriptor() { - return H5Pset_driver_by_name.DESC; - } + public static FunctionDescriptor H5Pset_driver_by_name$descriptor() { return H5Pset_driver_by_name.DESC; } /** * Downcall method handle for: @@ -7242,9 +7056,7 @@ private static class H5Pset_driver_by_name { * herr_t H5Pset_driver_by_name(hid_t plist_id, const char *driver_name, const char *driver_config) * } */ - public static MethodHandle H5Pset_driver_by_name$handle() { - return H5Pset_driver_by_name.HANDLE; - } + public static MethodHandle H5Pset_driver_by_name$handle() { return H5Pset_driver_by_name.HANDLE; } /** * Address for: @@ -7252,34 +7064,31 @@ private static class H5Pset_driver_by_name { * herr_t H5Pset_driver_by_name(hid_t plist_id, const char *driver_name, const char *driver_config) * } */ - public static MemorySegment H5Pset_driver_by_name$address() { - return H5Pset_driver_by_name.ADDR; - } + public static MemorySegment H5Pset_driver_by_name$address() { return H5Pset_driver_by_name.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_driver_by_name(hid_t plist_id, const char *driver_name, const char *driver_config) * } */ - public static int H5Pset_driver_by_name(long plist_id, MemorySegment driver_name, MemorySegment driver_config) { + public static int H5Pset_driver_by_name(long plist_id, MemorySegment driver_name, + MemorySegment driver_config) + { var mh$ = H5Pset_driver_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_driver_by_name", plist_id, driver_name, driver_config); } return (int)mh$.invokeExact(plist_id, driver_name, driver_config); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_driver_by_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_driver_by_value"); @@ -7289,56 +7098,56 @@ private static class H5Pset_driver_by_value { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char *driver_config) + * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char + * *driver_config) * } */ - public static FunctionDescriptor H5Pset_driver_by_value$descriptor() { + public static FunctionDescriptor H5Pset_driver_by_value$descriptor() + { return H5Pset_driver_by_value.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char *driver_config) + * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char + * *driver_config) * } */ - public static MethodHandle H5Pset_driver_by_value$handle() { - return H5Pset_driver_by_value.HANDLE; - } + public static MethodHandle H5Pset_driver_by_value$handle() { return H5Pset_driver_by_value.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char *driver_config) + * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char + * *driver_config) * } */ - public static MemorySegment H5Pset_driver_by_value$address() { - return H5Pset_driver_by_value.ADDR; - } + public static MemorySegment H5Pset_driver_by_value$address() { return H5Pset_driver_by_value.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char *driver_config) + * herr_t H5Pset_driver_by_value(hid_t plist_id, H5FD_class_value_t driver_value, const char + * *driver_config) * } */ - public static int H5Pset_driver_by_value(long plist_id, int driver_value, MemorySegment driver_config) { + public static int H5Pset_driver_by_value(long plist_id, int driver_value, MemorySegment driver_config) + { var mh$ = H5Pset_driver_by_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_driver_by_value", plist_id, driver_value, driver_config); } return (int)mh$.invokeExact(plist_id, driver_value, driver_config); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_elink_file_cache_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_elink_file_cache_size"); @@ -7351,7 +7160,8 @@ private static class H5Pset_elink_file_cache_size { * herr_t H5Pset_elink_file_cache_size(hid_t plist_id, unsigned int efc_size) * } */ - public static FunctionDescriptor H5Pset_elink_file_cache_size$descriptor() { + public static FunctionDescriptor H5Pset_elink_file_cache_size$descriptor() + { return H5Pset_elink_file_cache_size.DESC; } @@ -7361,7 +7171,8 @@ private static class H5Pset_elink_file_cache_size { * herr_t H5Pset_elink_file_cache_size(hid_t plist_id, unsigned int efc_size) * } */ - public static MethodHandle H5Pset_elink_file_cache_size$handle() { + public static MethodHandle H5Pset_elink_file_cache_size$handle() + { return H5Pset_elink_file_cache_size.HANDLE; } @@ -7371,7 +7182,8 @@ private static class H5Pset_elink_file_cache_size { * herr_t H5Pset_elink_file_cache_size(hid_t plist_id, unsigned int efc_size) * } */ - public static MemorySegment H5Pset_elink_file_cache_size$address() { + public static MemorySegment H5Pset_elink_file_cache_size$address() + { return H5Pset_elink_file_cache_size.ADDR; } @@ -7380,24 +7192,23 @@ private static class H5Pset_elink_file_cache_size { * herr_t H5Pset_elink_file_cache_size(hid_t plist_id, unsigned int efc_size) * } */ - public static int H5Pset_elink_file_cache_size(long plist_id, int efc_size) { + public static int H5Pset_elink_file_cache_size(long plist_id, int efc_size) + { var mh$ = H5Pset_elink_file_cache_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_elink_file_cache_size", plist_id, efc_size); } return (int)mh$.invokeExact(plist_id, efc_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_evict_on_close { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_evict_on_close"); @@ -7410,9 +7221,7 @@ private static class H5Pset_evict_on_close { * herr_t H5Pset_evict_on_close(hid_t fapl_id, hbool_t evict_on_close) * } */ - public static FunctionDescriptor H5Pset_evict_on_close$descriptor() { - return H5Pset_evict_on_close.DESC; - } + public static FunctionDescriptor H5Pset_evict_on_close$descriptor() { return H5Pset_evict_on_close.DESC; } /** * Downcall method handle for: @@ -7420,9 +7229,7 @@ private static class H5Pset_evict_on_close { * herr_t H5Pset_evict_on_close(hid_t fapl_id, hbool_t evict_on_close) * } */ - public static MethodHandle H5Pset_evict_on_close$handle() { - return H5Pset_evict_on_close.HANDLE; - } + public static MethodHandle H5Pset_evict_on_close$handle() { return H5Pset_evict_on_close.HANDLE; } /** * Address for: @@ -7430,33 +7237,30 @@ private static class H5Pset_evict_on_close { * herr_t H5Pset_evict_on_close(hid_t fapl_id, hbool_t evict_on_close) * } */ - public static MemorySegment H5Pset_evict_on_close$address() { - return H5Pset_evict_on_close.ADDR; - } + public static MemorySegment H5Pset_evict_on_close$address() { return H5Pset_evict_on_close.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_evict_on_close(hid_t fapl_id, hbool_t evict_on_close) * } */ - public static int H5Pset_evict_on_close(long fapl_id, boolean evict_on_close) { + public static int H5Pset_evict_on_close(long fapl_id, boolean evict_on_close) + { var mh$ = H5Pset_evict_on_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_evict_on_close", fapl_id, evict_on_close); } return (int)mh$.invokeExact(fapl_id, evict_on_close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_family_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_family_offset"); @@ -7469,9 +7273,7 @@ private static class H5Pset_family_offset { * herr_t H5Pset_family_offset(hid_t fapl_id, hsize_t offset) * } */ - public static FunctionDescriptor H5Pset_family_offset$descriptor() { - return H5Pset_family_offset.DESC; - } + public static FunctionDescriptor H5Pset_family_offset$descriptor() { return H5Pset_family_offset.DESC; } /** * Downcall method handle for: @@ -7479,9 +7281,7 @@ private static class H5Pset_family_offset { * herr_t H5Pset_family_offset(hid_t fapl_id, hsize_t offset) * } */ - public static MethodHandle H5Pset_family_offset$handle() { - return H5Pset_family_offset.HANDLE; - } + public static MethodHandle H5Pset_family_offset$handle() { return H5Pset_family_offset.HANDLE; } /** * Address for: @@ -7489,33 +7289,30 @@ private static class H5Pset_family_offset { * herr_t H5Pset_family_offset(hid_t fapl_id, hsize_t offset) * } */ - public static MemorySegment H5Pset_family_offset$address() { - return H5Pset_family_offset.ADDR; - } + public static MemorySegment H5Pset_family_offset$address() { return H5Pset_family_offset.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_family_offset(hid_t fapl_id, hsize_t offset) * } */ - public static int H5Pset_family_offset(long fapl_id, long offset) { + public static int H5Pset_family_offset(long fapl_id, long offset) + { var mh$ = H5Pset_family_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_family_offset", fapl_id, offset); } return (int)mh$.invokeExact(fapl_id, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fclose_degree { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fclose_degree"); @@ -7528,9 +7325,7 @@ private static class H5Pset_fclose_degree { * herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree) * } */ - public static FunctionDescriptor H5Pset_fclose_degree$descriptor() { - return H5Pset_fclose_degree.DESC; - } + public static FunctionDescriptor H5Pset_fclose_degree$descriptor() { return H5Pset_fclose_degree.DESC; } /** * Downcall method handle for: @@ -7538,9 +7333,7 @@ private static class H5Pset_fclose_degree { * herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree) * } */ - public static MethodHandle H5Pset_fclose_degree$handle() { - return H5Pset_fclose_degree.HANDLE; - } + public static MethodHandle H5Pset_fclose_degree$handle() { return H5Pset_fclose_degree.HANDLE; } /** * Address for: @@ -7548,34 +7341,30 @@ private static class H5Pset_fclose_degree { * herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree) * } */ - public static MemorySegment H5Pset_fclose_degree$address() { - return H5Pset_fclose_degree.ADDR; - } + public static MemorySegment H5Pset_fclose_degree$address() { return H5Pset_fclose_degree.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree) * } */ - public static int H5Pset_fclose_degree(long fapl_id, int degree) { + public static int H5Pset_fclose_degree(long fapl_id, int degree) + { var mh$ = H5Pset_fclose_degree.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fclose_degree", fapl_id, degree); } return (int)mh$.invokeExact(fapl_id, degree); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_image { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_image"); @@ -7588,9 +7377,7 @@ private static class H5Pset_file_image { * herr_t H5Pset_file_image(hid_t fapl_id, void *buf_ptr, size_t buf_len) * } */ - public static FunctionDescriptor H5Pset_file_image$descriptor() { - return H5Pset_file_image.DESC; - } + public static FunctionDescriptor H5Pset_file_image$descriptor() { return H5Pset_file_image.DESC; } /** * Downcall method handle for: @@ -7598,9 +7385,7 @@ private static class H5Pset_file_image { * herr_t H5Pset_file_image(hid_t fapl_id, void *buf_ptr, size_t buf_len) * } */ - public static MethodHandle H5Pset_file_image$handle() { - return H5Pset_file_image.HANDLE; - } + public static MethodHandle H5Pset_file_image$handle() { return H5Pset_file_image.HANDLE; } /** * Address for: @@ -7608,33 +7393,30 @@ private static class H5Pset_file_image { * herr_t H5Pset_file_image(hid_t fapl_id, void *buf_ptr, size_t buf_len) * } */ - public static MemorySegment H5Pset_file_image$address() { - return H5Pset_file_image.ADDR; - } + public static MemorySegment H5Pset_file_image$address() { return H5Pset_file_image.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_file_image(hid_t fapl_id, void *buf_ptr, size_t buf_len) * } */ - public static int H5Pset_file_image(long fapl_id, MemorySegment buf_ptr, long buf_len) { + public static int H5Pset_file_image(long fapl_id, MemorySegment buf_ptr, long buf_len) + { var mh$ = H5Pset_file_image.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_image", fapl_id, buf_ptr, buf_len); } return (int)mh$.invokeExact(fapl_id, buf_ptr, buf_len); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_image_callbacks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_image_callbacks"); @@ -7647,7 +7429,8 @@ private static class H5Pset_file_image_callbacks { * herr_t H5Pset_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static FunctionDescriptor H5Pset_file_image_callbacks$descriptor() { + public static FunctionDescriptor H5Pset_file_image_callbacks$descriptor() + { return H5Pset_file_image_callbacks.DESC; } @@ -7657,7 +7440,8 @@ private static class H5Pset_file_image_callbacks { * herr_t H5Pset_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static MethodHandle H5Pset_file_image_callbacks$handle() { + public static MethodHandle H5Pset_file_image_callbacks$handle() + { return H5Pset_file_image_callbacks.HANDLE; } @@ -7667,7 +7451,8 @@ private static class H5Pset_file_image_callbacks { * herr_t H5Pset_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static MemorySegment H5Pset_file_image_callbacks$address() { + public static MemorySegment H5Pset_file_image_callbacks$address() + { return H5Pset_file_image_callbacks.ADDR; } @@ -7676,25 +7461,23 @@ private static class H5Pset_file_image_callbacks { * herr_t H5Pset_file_image_callbacks(hid_t fapl_id, H5FD_file_image_callbacks_t *callbacks_ptr) * } */ - public static int H5Pset_file_image_callbacks(long fapl_id, MemorySegment callbacks_ptr) { + public static int H5Pset_file_image_callbacks(long fapl_id, MemorySegment callbacks_ptr) + { var mh$ = H5Pset_file_image_callbacks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_image_callbacks", fapl_id, callbacks_ptr); } return (int)mh$.invokeExact(fapl_id, callbacks_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_locking { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_locking"); @@ -7707,9 +7490,7 @@ private static class H5Pset_file_locking { * herr_t H5Pset_file_locking(hid_t fapl_id, hbool_t use_file_locking, hbool_t ignore_when_disabled) * } */ - public static FunctionDescriptor H5Pset_file_locking$descriptor() { - return H5Pset_file_locking.DESC; - } + public static FunctionDescriptor H5Pset_file_locking$descriptor() { return H5Pset_file_locking.DESC; } /** * Downcall method handle for: @@ -7717,9 +7498,7 @@ private static class H5Pset_file_locking { * herr_t H5Pset_file_locking(hid_t fapl_id, hbool_t use_file_locking, hbool_t ignore_when_disabled) * } */ - public static MethodHandle H5Pset_file_locking$handle() { - return H5Pset_file_locking.HANDLE; - } + public static MethodHandle H5Pset_file_locking$handle() { return H5Pset_file_locking.HANDLE; } /** * Address for: @@ -7727,33 +7506,31 @@ private static class H5Pset_file_locking { * herr_t H5Pset_file_locking(hid_t fapl_id, hbool_t use_file_locking, hbool_t ignore_when_disabled) * } */ - public static MemorySegment H5Pset_file_locking$address() { - return H5Pset_file_locking.ADDR; - } + public static MemorySegment H5Pset_file_locking$address() { return H5Pset_file_locking.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_file_locking(hid_t fapl_id, hbool_t use_file_locking, hbool_t ignore_when_disabled) * } */ - public static int H5Pset_file_locking(long fapl_id, boolean use_file_locking, boolean ignore_when_disabled) { + public static int H5Pset_file_locking(long fapl_id, boolean use_file_locking, + boolean ignore_when_disabled) + { var mh$ = H5Pset_file_locking.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_locking", fapl_id, use_file_locking, ignore_when_disabled); } return (int)mh$.invokeExact(fapl_id, use_file_locking, ignore_when_disabled); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_gc_references { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_gc_references"); @@ -7766,9 +7543,7 @@ private static class H5Pset_gc_references { * herr_t H5Pset_gc_references(hid_t fapl_id, unsigned int gc_ref) * } */ - public static FunctionDescriptor H5Pset_gc_references$descriptor() { - return H5Pset_gc_references.DESC; - } + public static FunctionDescriptor H5Pset_gc_references$descriptor() { return H5Pset_gc_references.DESC; } /** * Downcall method handle for: @@ -7776,9 +7551,7 @@ private static class H5Pset_gc_references { * herr_t H5Pset_gc_references(hid_t fapl_id, unsigned int gc_ref) * } */ - public static MethodHandle H5Pset_gc_references$handle() { - return H5Pset_gc_references.HANDLE; - } + public static MethodHandle H5Pset_gc_references$handle() { return H5Pset_gc_references.HANDLE; } /** * Address for: @@ -7786,34 +7559,30 @@ private static class H5Pset_gc_references { * herr_t H5Pset_gc_references(hid_t fapl_id, unsigned int gc_ref) * } */ - public static MemorySegment H5Pset_gc_references$address() { - return H5Pset_gc_references.ADDR; - } + public static MemorySegment H5Pset_gc_references$address() { return H5Pset_gc_references.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_gc_references(hid_t fapl_id, unsigned int gc_ref) * } */ - public static int H5Pset_gc_references(long fapl_id, int gc_ref) { + public static int H5Pset_gc_references(long fapl_id, int gc_ref) + { var mh$ = H5Pset_gc_references.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_gc_references", fapl_id, gc_ref); } return (int)mh$.invokeExact(fapl_id, gc_ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_libver_bounds { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_libver_bounds"); @@ -7826,9 +7595,7 @@ private static class H5Pset_libver_bounds { * herr_t H5Pset_libver_bounds(hid_t plist_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static FunctionDescriptor H5Pset_libver_bounds$descriptor() { - return H5Pset_libver_bounds.DESC; - } + public static FunctionDescriptor H5Pset_libver_bounds$descriptor() { return H5Pset_libver_bounds.DESC; } /** * Downcall method handle for: @@ -7836,9 +7603,7 @@ private static class H5Pset_libver_bounds { * herr_t H5Pset_libver_bounds(hid_t plist_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static MethodHandle H5Pset_libver_bounds$handle() { - return H5Pset_libver_bounds.HANDLE; - } + public static MethodHandle H5Pset_libver_bounds$handle() { return H5Pset_libver_bounds.HANDLE; } /** * Address for: @@ -7846,33 +7611,30 @@ private static class H5Pset_libver_bounds { * herr_t H5Pset_libver_bounds(hid_t plist_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static MemorySegment H5Pset_libver_bounds$address() { - return H5Pset_libver_bounds.ADDR; - } + public static MemorySegment H5Pset_libver_bounds$address() { return H5Pset_libver_bounds.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_libver_bounds(hid_t plist_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static int H5Pset_libver_bounds(long plist_id, int low, int high) { + public static int H5Pset_libver_bounds(long plist_id, int low, int high) + { var mh$ = H5Pset_libver_bounds.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_libver_bounds", plist_id, low, high); } return (int)mh$.invokeExact(plist_id, low, high); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_mdc_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_mdc_config"); @@ -7885,9 +7647,7 @@ private static class H5Pset_mdc_config { * herr_t H5Pset_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pset_mdc_config$descriptor() { - return H5Pset_mdc_config.DESC; - } + public static FunctionDescriptor H5Pset_mdc_config$descriptor() { return H5Pset_mdc_config.DESC; } /** * Downcall method handle for: @@ -7895,9 +7655,7 @@ private static class H5Pset_mdc_config { * herr_t H5Pset_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static MethodHandle H5Pset_mdc_config$handle() { - return H5Pset_mdc_config.HANDLE; - } + public static MethodHandle H5Pset_mdc_config$handle() { return H5Pset_mdc_config.HANDLE; } /** * Address for: @@ -7905,35 +7663,30 @@ private static class H5Pset_mdc_config { * herr_t H5Pset_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static MemorySegment H5Pset_mdc_config$address() { - return H5Pset_mdc_config.ADDR; - } + public static MemorySegment H5Pset_mdc_config$address() { return H5Pset_mdc_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_mdc_config(hid_t plist_id, H5AC_cache_config_t *config_ptr) * } */ - public static int H5Pset_mdc_config(long plist_id, MemorySegment config_ptr) { + public static int H5Pset_mdc_config(long plist_id, MemorySegment config_ptr) + { var mh$ = H5Pset_mdc_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_mdc_config", plist_id, config_ptr); } return (int)mh$.invokeExact(plist_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_mdc_log_options { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL, - hdf5_h.C_POINTER, - hdf5_h.C_BOOL - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL, hdf5_h.C_POINTER, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_mdc_log_options"); @@ -7943,56 +7696,57 @@ private static class H5Pset_mdc_log_options { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t start_on_access) + * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t + * start_on_access) * } */ - public static FunctionDescriptor H5Pset_mdc_log_options$descriptor() { + public static FunctionDescriptor H5Pset_mdc_log_options$descriptor() + { return H5Pset_mdc_log_options.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t start_on_access) + * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t + * start_on_access) * } */ - public static MethodHandle H5Pset_mdc_log_options$handle() { - return H5Pset_mdc_log_options.HANDLE; - } + public static MethodHandle H5Pset_mdc_log_options$handle() { return H5Pset_mdc_log_options.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t start_on_access) + * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t + * start_on_access) * } */ - public static MemorySegment H5Pset_mdc_log_options$address() { - return H5Pset_mdc_log_options.ADDR; - } + public static MemorySegment H5Pset_mdc_log_options$address() { return H5Pset_mdc_log_options.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t start_on_access) + * herr_t H5Pset_mdc_log_options(hid_t plist_id, hbool_t is_enabled, const char *location, hbool_t + * start_on_access) * } */ - public static int H5Pset_mdc_log_options(long plist_id, boolean is_enabled, MemorySegment location, boolean start_on_access) { + public static int H5Pset_mdc_log_options(long plist_id, boolean is_enabled, MemorySegment location, + boolean start_on_access) + { var mh$ = H5Pset_mdc_log_options.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_mdc_log_options", plist_id, is_enabled, location, start_on_access); } return (int)mh$.invokeExact(plist_id, is_enabled, location, start_on_access); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_meta_block_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_meta_block_size"); @@ -8005,7 +7759,8 @@ private static class H5Pset_meta_block_size { * herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size) * } */ - public static FunctionDescriptor H5Pset_meta_block_size$descriptor() { + public static FunctionDescriptor H5Pset_meta_block_size$descriptor() + { return H5Pset_meta_block_size.DESC; } @@ -8015,9 +7770,7 @@ private static class H5Pset_meta_block_size { * herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size) * } */ - public static MethodHandle H5Pset_meta_block_size$handle() { - return H5Pset_meta_block_size.HANDLE; - } + public static MethodHandle H5Pset_meta_block_size$handle() { return H5Pset_meta_block_size.HANDLE; } /** * Address for: @@ -8025,33 +7778,30 @@ private static class H5Pset_meta_block_size { * herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size) * } */ - public static MemorySegment H5Pset_meta_block_size$address() { - return H5Pset_meta_block_size.ADDR; - } + public static MemorySegment H5Pset_meta_block_size$address() { return H5Pset_meta_block_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size) * } */ - public static int H5Pset_meta_block_size(long fapl_id, long size) { + public static int H5Pset_meta_block_size(long fapl_id, long size) + { var mh$ = H5Pset_meta_block_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_meta_block_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_metadata_read_attempts { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_metadata_read_attempts"); @@ -8064,7 +7814,8 @@ private static class H5Pset_metadata_read_attempts { * herr_t H5Pset_metadata_read_attempts(hid_t plist_id, unsigned int attempts) * } */ - public static FunctionDescriptor H5Pset_metadata_read_attempts$descriptor() { + public static FunctionDescriptor H5Pset_metadata_read_attempts$descriptor() + { return H5Pset_metadata_read_attempts.DESC; } @@ -8074,7 +7825,8 @@ private static class H5Pset_metadata_read_attempts { * herr_t H5Pset_metadata_read_attempts(hid_t plist_id, unsigned int attempts) * } */ - public static MethodHandle H5Pset_metadata_read_attempts$handle() { + public static MethodHandle H5Pset_metadata_read_attempts$handle() + { return H5Pset_metadata_read_attempts.HANDLE; } @@ -8084,7 +7836,8 @@ private static class H5Pset_metadata_read_attempts { * herr_t H5Pset_metadata_read_attempts(hid_t plist_id, unsigned int attempts) * } */ - public static MemorySegment H5Pset_metadata_read_attempts$address() { + public static MemorySegment H5Pset_metadata_read_attempts$address() + { return H5Pset_metadata_read_attempts.ADDR; } @@ -8093,24 +7846,23 @@ private static class H5Pset_metadata_read_attempts { * herr_t H5Pset_metadata_read_attempts(hid_t plist_id, unsigned int attempts) * } */ - public static int H5Pset_metadata_read_attempts(long plist_id, int attempts) { + public static int H5Pset_metadata_read_attempts(long plist_id, int attempts) + { var mh$ = H5Pset_metadata_read_attempts.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_metadata_read_attempts", plist_id, attempts); } return (int)mh$.invokeExact(plist_id, attempts); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_multi_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_multi_type"); @@ -8123,9 +7875,7 @@ private static class H5Pset_multi_type { * herr_t H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type) * } */ - public static FunctionDescriptor H5Pset_multi_type$descriptor() { - return H5Pset_multi_type.DESC; - } + public static FunctionDescriptor H5Pset_multi_type$descriptor() { return H5Pset_multi_type.DESC; } /** * Downcall method handle for: @@ -8133,9 +7883,7 @@ private static class H5Pset_multi_type { * herr_t H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type) * } */ - public static MethodHandle H5Pset_multi_type$handle() { - return H5Pset_multi_type.HANDLE; - } + public static MethodHandle H5Pset_multi_type$handle() { return H5Pset_multi_type.HANDLE; } /** * Address for: @@ -8143,34 +7891,30 @@ private static class H5Pset_multi_type { * herr_t H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type) * } */ - public static MemorySegment H5Pset_multi_type$address() { - return H5Pset_multi_type.ADDR; - } + public static MemorySegment H5Pset_multi_type$address() { return H5Pset_multi_type.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type) * } */ - public static int H5Pset_multi_type(long fapl_id, int type) { + public static int H5Pset_multi_type(long fapl_id, int type) + { var mh$ = H5Pset_multi_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_multi_type", fapl_id, type); } return (int)mh$.invokeExact(fapl_id, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_object_flush_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_object_flush_cb"); @@ -8183,7 +7927,8 @@ private static class H5Pset_object_flush_cb { * herr_t H5Pset_object_flush_cb(hid_t plist_id, H5F_flush_cb_t func, void *udata) * } */ - public static FunctionDescriptor H5Pset_object_flush_cb$descriptor() { + public static FunctionDescriptor H5Pset_object_flush_cb$descriptor() + { return H5Pset_object_flush_cb.DESC; } @@ -8193,9 +7938,7 @@ private static class H5Pset_object_flush_cb { * herr_t H5Pset_object_flush_cb(hid_t plist_id, H5F_flush_cb_t func, void *udata) * } */ - public static MethodHandle H5Pset_object_flush_cb$handle() { - return H5Pset_object_flush_cb.HANDLE; - } + public static MethodHandle H5Pset_object_flush_cb$handle() { return H5Pset_object_flush_cb.HANDLE; } /** * Address for: @@ -8203,33 +7946,30 @@ private static class H5Pset_object_flush_cb { * herr_t H5Pset_object_flush_cb(hid_t plist_id, H5F_flush_cb_t func, void *udata) * } */ - public static MemorySegment H5Pset_object_flush_cb$address() { - return H5Pset_object_flush_cb.ADDR; - } + public static MemorySegment H5Pset_object_flush_cb$address() { return H5Pset_object_flush_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_object_flush_cb(hid_t plist_id, H5F_flush_cb_t func, void *udata) * } */ - public static int H5Pset_object_flush_cb(long plist_id, MemorySegment func, MemorySegment udata) { + public static int H5Pset_object_flush_cb(long plist_id, MemorySegment func, MemorySegment udata) + { var mh$ = H5Pset_object_flush_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_object_flush_cb", plist_id, func, udata); } return (int)mh$.invokeExact(plist_id, func, udata); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_sieve_buf_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_sieve_buf_size"); @@ -8242,9 +7982,7 @@ private static class H5Pset_sieve_buf_size { * herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size) * } */ - public static FunctionDescriptor H5Pset_sieve_buf_size$descriptor() { - return H5Pset_sieve_buf_size.DESC; - } + public static FunctionDescriptor H5Pset_sieve_buf_size$descriptor() { return H5Pset_sieve_buf_size.DESC; } /** * Downcall method handle for: @@ -8252,9 +7990,7 @@ private static class H5Pset_sieve_buf_size { * herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size) * } */ - public static MethodHandle H5Pset_sieve_buf_size$handle() { - return H5Pset_sieve_buf_size.HANDLE; - } + public static MethodHandle H5Pset_sieve_buf_size$handle() { return H5Pset_sieve_buf_size.HANDLE; } /** * Address for: @@ -8262,33 +7998,30 @@ private static class H5Pset_sieve_buf_size { * herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size) * } */ - public static MemorySegment H5Pset_sieve_buf_size$address() { - return H5Pset_sieve_buf_size.ADDR; - } + public static MemorySegment H5Pset_sieve_buf_size$address() { return H5Pset_sieve_buf_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size) * } */ - public static int H5Pset_sieve_buf_size(long fapl_id, long size) { + public static int H5Pset_sieve_buf_size(long fapl_id, long size) + { var mh$ = H5Pset_sieve_buf_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_sieve_buf_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_small_data_block_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_small_data_block_size"); @@ -8301,7 +8034,8 @@ private static class H5Pset_small_data_block_size { * herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size) * } */ - public static FunctionDescriptor H5Pset_small_data_block_size$descriptor() { + public static FunctionDescriptor H5Pset_small_data_block_size$descriptor() + { return H5Pset_small_data_block_size.DESC; } @@ -8311,7 +8045,8 @@ private static class H5Pset_small_data_block_size { * herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size) * } */ - public static MethodHandle H5Pset_small_data_block_size$handle() { + public static MethodHandle H5Pset_small_data_block_size$handle() + { return H5Pset_small_data_block_size.HANDLE; } @@ -8321,7 +8056,8 @@ private static class H5Pset_small_data_block_size { * herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size) * } */ - public static MemorySegment H5Pset_small_data_block_size$address() { + public static MemorySegment H5Pset_small_data_block_size$address() + { return H5Pset_small_data_block_size.ADDR; } @@ -8330,25 +8066,23 @@ private static class H5Pset_small_data_block_size { * herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size) * } */ - public static int H5Pset_small_data_block_size(long fapl_id, long size) { + public static int H5Pset_small_data_block_size(long fapl_id, long size) + { var mh$ = H5Pset_small_data_block_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_small_data_block_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_vol { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_vol"); @@ -8361,9 +8095,7 @@ private static class H5Pset_vol { * herr_t H5Pset_vol(hid_t plist_id, hid_t new_vol_id, const void *new_vol_info) * } */ - public static FunctionDescriptor H5Pset_vol$descriptor() { - return H5Pset_vol.DESC; - } + public static FunctionDescriptor H5Pset_vol$descriptor() { return H5Pset_vol.DESC; } /** * Downcall method handle for: @@ -8371,9 +8103,7 @@ private static class H5Pset_vol { * herr_t H5Pset_vol(hid_t plist_id, hid_t new_vol_id, const void *new_vol_info) * } */ - public static MethodHandle H5Pset_vol$handle() { - return H5Pset_vol.HANDLE; - } + public static MethodHandle H5Pset_vol$handle() { return H5Pset_vol.HANDLE; } /** * Address for: @@ -8381,33 +8111,30 @@ private static class H5Pset_vol { * herr_t H5Pset_vol(hid_t plist_id, hid_t new_vol_id, const void *new_vol_info) * } */ - public static MemorySegment H5Pset_vol$address() { - return H5Pset_vol.ADDR; - } + public static MemorySegment H5Pset_vol$address() { return H5Pset_vol.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_vol(hid_t plist_id, hid_t new_vol_id, const void *new_vol_info) * } */ - public static int H5Pset_vol(long plist_id, long new_vol_id, MemorySegment new_vol_info) { + public static int H5Pset_vol(long plist_id, long new_vol_id, MemorySegment new_vol_info) + { var mh$ = H5Pset_vol.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_vol", plist_id, new_vol_id, new_vol_info); } return (int)mh$.invokeExact(plist_id, new_vol_id, new_vol_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_vol_cap_flags { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_vol_cap_flags"); @@ -8420,9 +8147,7 @@ private static class H5Pget_vol_cap_flags { * herr_t H5Pget_vol_cap_flags(hid_t plist_id, uint64_t *cap_flags) * } */ - public static FunctionDescriptor H5Pget_vol_cap_flags$descriptor() { - return H5Pget_vol_cap_flags.DESC; - } + public static FunctionDescriptor H5Pget_vol_cap_flags$descriptor() { return H5Pget_vol_cap_flags.DESC; } /** * Downcall method handle for: @@ -8430,9 +8155,7 @@ private static class H5Pget_vol_cap_flags { * herr_t H5Pget_vol_cap_flags(hid_t plist_id, uint64_t *cap_flags) * } */ - public static MethodHandle H5Pget_vol_cap_flags$handle() { - return H5Pget_vol_cap_flags.HANDLE; - } + public static MethodHandle H5Pget_vol_cap_flags$handle() { return H5Pget_vol_cap_flags.HANDLE; } /** * Address for: @@ -8440,33 +8163,30 @@ private static class H5Pget_vol_cap_flags { * herr_t H5Pget_vol_cap_flags(hid_t plist_id, uint64_t *cap_flags) * } */ - public static MemorySegment H5Pget_vol_cap_flags$address() { - return H5Pget_vol_cap_flags.ADDR; - } + public static MemorySegment H5Pget_vol_cap_flags$address() { return H5Pget_vol_cap_flags.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_vol_cap_flags(hid_t plist_id, uint64_t *cap_flags) * } */ - public static int H5Pget_vol_cap_flags(long plist_id, MemorySegment cap_flags) { + public static int H5Pget_vol_cap_flags(long plist_id, MemorySegment cap_flags) + { var mh$ = H5Pget_vol_cap_flags.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_vol_cap_flags", plist_id, cap_flags); } return (int)mh$.invokeExact(plist_id, cap_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_mdc_image_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_mdc_image_config"); @@ -8479,7 +8199,8 @@ private static class H5Pset_mdc_image_config { * herr_t H5Pset_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pset_mdc_image_config$descriptor() { + public static FunctionDescriptor H5Pset_mdc_image_config$descriptor() + { return H5Pset_mdc_image_config.DESC; } @@ -8489,9 +8210,7 @@ private static class H5Pset_mdc_image_config { * herr_t H5Pset_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static MethodHandle H5Pset_mdc_image_config$handle() { - return H5Pset_mdc_image_config.HANDLE; - } + public static MethodHandle H5Pset_mdc_image_config$handle() { return H5Pset_mdc_image_config.HANDLE; } /** * Address for: @@ -8499,35 +8218,30 @@ private static class H5Pset_mdc_image_config { * herr_t H5Pset_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static MemorySegment H5Pset_mdc_image_config$address() { - return H5Pset_mdc_image_config.ADDR; - } + public static MemorySegment H5Pset_mdc_image_config$address() { return H5Pset_mdc_image_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_mdc_image_config(hid_t plist_id, H5AC_cache_image_config_t *config_ptr) * } */ - public static int H5Pset_mdc_image_config(long plist_id, MemorySegment config_ptr) { + public static int H5Pset_mdc_image_config(long plist_id, MemorySegment config_ptr) + { var mh$ = H5Pset_mdc_image_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_mdc_image_config", plist_id, config_ptr); } return (int)mh$.invokeExact(plist_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_page_buffer_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_page_buffer_size"); @@ -8537,56 +8251,56 @@ private static class H5Pset_page_buffer_size { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int min_raw_per) + * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int + * min_raw_per) * } */ - public static FunctionDescriptor H5Pset_page_buffer_size$descriptor() { + public static FunctionDescriptor H5Pset_page_buffer_size$descriptor() + { return H5Pset_page_buffer_size.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int min_raw_per) + * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int + * min_raw_per) * } */ - public static MethodHandle H5Pset_page_buffer_size$handle() { - return H5Pset_page_buffer_size.HANDLE; - } + public static MethodHandle H5Pset_page_buffer_size$handle() { return H5Pset_page_buffer_size.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int min_raw_per) + * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int + * min_raw_per) * } */ - public static MemorySegment H5Pset_page_buffer_size$address() { - return H5Pset_page_buffer_size.ADDR; - } + public static MemorySegment H5Pset_page_buffer_size$address() { return H5Pset_page_buffer_size.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int min_raw_per) + * herr_t H5Pset_page_buffer_size(hid_t plist_id, size_t buf_size, unsigned int min_meta_per, unsigned int + * min_raw_per) * } */ - public static int H5Pset_page_buffer_size(long plist_id, long buf_size, int min_meta_per, int min_raw_per) { + public static int H5Pset_page_buffer_size(long plist_id, long buf_size, int min_meta_per, int min_raw_per) + { var mh$ = H5Pset_page_buffer_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_page_buffer_size", plist_id, buf_size, min_meta_per, min_raw_per); } return (int)mh$.invokeExact(plist_id, buf_size, min_meta_per, min_raw_per); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_relax_file_integrity_checks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_relax_file_integrity_checks"); @@ -8599,7 +8313,8 @@ private static class H5Pset_relax_file_integrity_checks { * herr_t H5Pset_relax_file_integrity_checks(hid_t plist_id, uint64_t flags) * } */ - public static FunctionDescriptor H5Pset_relax_file_integrity_checks$descriptor() { + public static FunctionDescriptor H5Pset_relax_file_integrity_checks$descriptor() + { return H5Pset_relax_file_integrity_checks.DESC; } @@ -8609,7 +8324,8 @@ private static class H5Pset_relax_file_integrity_checks { * herr_t H5Pset_relax_file_integrity_checks(hid_t plist_id, uint64_t flags) * } */ - public static MethodHandle H5Pset_relax_file_integrity_checks$handle() { + public static MethodHandle H5Pset_relax_file_integrity_checks$handle() + { return H5Pset_relax_file_integrity_checks.HANDLE; } @@ -8619,7 +8335,8 @@ private static class H5Pset_relax_file_integrity_checks { * herr_t H5Pset_relax_file_integrity_checks(hid_t plist_id, uint64_t flags) * } */ - public static MemorySegment H5Pset_relax_file_integrity_checks$address() { + public static MemorySegment H5Pset_relax_file_integrity_checks$address() + { return H5Pset_relax_file_integrity_checks.ADDR; } @@ -8628,24 +8345,23 @@ private static class H5Pset_relax_file_integrity_checks { * herr_t H5Pset_relax_file_integrity_checks(hid_t plist_id, uint64_t flags) * } */ - public static int H5Pset_relax_file_integrity_checks(long plist_id, long flags) { + public static int H5Pset_relax_file_integrity_checks(long plist_id, long flags) + { var mh$ = H5Pset_relax_file_integrity_checks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_relax_file_integrity_checks", plist_id, flags); } return (int)mh$.invokeExact(plist_id, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_relax_file_integrity_checks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_relax_file_integrity_checks"); @@ -8658,7 +8374,8 @@ private static class H5Pget_relax_file_integrity_checks { * herr_t H5Pget_relax_file_integrity_checks(hid_t plist_id, uint64_t *flags) * } */ - public static FunctionDescriptor H5Pget_relax_file_integrity_checks$descriptor() { + public static FunctionDescriptor H5Pget_relax_file_integrity_checks$descriptor() + { return H5Pget_relax_file_integrity_checks.DESC; } @@ -8668,7 +8385,8 @@ private static class H5Pget_relax_file_integrity_checks { * herr_t H5Pget_relax_file_integrity_checks(hid_t plist_id, uint64_t *flags) * } */ - public static MethodHandle H5Pget_relax_file_integrity_checks$handle() { + public static MethodHandle H5Pget_relax_file_integrity_checks$handle() + { return H5Pget_relax_file_integrity_checks.HANDLE; } @@ -8678,7 +8396,8 @@ private static class H5Pget_relax_file_integrity_checks { * herr_t H5Pget_relax_file_integrity_checks(hid_t plist_id, uint64_t *flags) * } */ - public static MemorySegment H5Pget_relax_file_integrity_checks$address() { + public static MemorySegment H5Pget_relax_file_integrity_checks$address() + { return H5Pget_relax_file_integrity_checks.ADDR; } @@ -8687,24 +8406,23 @@ private static class H5Pget_relax_file_integrity_checks { * herr_t H5Pget_relax_file_integrity_checks(hid_t plist_id, uint64_t *flags) * } */ - public static int H5Pget_relax_file_integrity_checks(long plist_id, MemorySegment flags) { + public static int H5Pget_relax_file_integrity_checks(long plist_id, MemorySegment flags) + { var mh$ = H5Pget_relax_file_integrity_checks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_relax_file_integrity_checks", plist_id, flags); } return (int)mh$.invokeExact(plist_id, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pfill_value_defined { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pfill_value_defined"); @@ -8717,9 +8435,7 @@ private static class H5Pfill_value_defined { * herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status) * } */ - public static FunctionDescriptor H5Pfill_value_defined$descriptor() { - return H5Pfill_value_defined.DESC; - } + public static FunctionDescriptor H5Pfill_value_defined$descriptor() { return H5Pfill_value_defined.DESC; } /** * Downcall method handle for: @@ -8727,9 +8443,7 @@ private static class H5Pfill_value_defined { * herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status) * } */ - public static MethodHandle H5Pfill_value_defined$handle() { - return H5Pfill_value_defined.HANDLE; - } + public static MethodHandle H5Pfill_value_defined$handle() { return H5Pfill_value_defined.HANDLE; } /** * Address for: @@ -8737,33 +8451,30 @@ private static class H5Pfill_value_defined { * herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status) * } */ - public static MemorySegment H5Pfill_value_defined$address() { - return H5Pfill_value_defined.ADDR; - } + public static MemorySegment H5Pfill_value_defined$address() { return H5Pfill_value_defined.ADDR; } /** * {@snippet lang=c : * herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status) * } */ - public static int H5Pfill_value_defined(long plist, MemorySegment status) { + public static int H5Pfill_value_defined(long plist, MemorySegment status) + { var mh$ = H5Pfill_value_defined.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pfill_value_defined", plist, status); } return (int)mh$.invokeExact(plist, status); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_alloc_time { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_alloc_time"); @@ -8776,9 +8487,7 @@ private static class H5Pget_alloc_time { * herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t *alloc_time) * } */ - public static FunctionDescriptor H5Pget_alloc_time$descriptor() { - return H5Pget_alloc_time.DESC; - } + public static FunctionDescriptor H5Pget_alloc_time$descriptor() { return H5Pget_alloc_time.DESC; } /** * Downcall method handle for: @@ -8786,9 +8495,7 @@ private static class H5Pget_alloc_time { * herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t *alloc_time) * } */ - public static MethodHandle H5Pget_alloc_time$handle() { - return H5Pget_alloc_time.HANDLE; - } + public static MethodHandle H5Pget_alloc_time$handle() { return H5Pget_alloc_time.HANDLE; } /** * Address for: @@ -8796,34 +8503,30 @@ private static class H5Pget_alloc_time { * herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t *alloc_time) * } */ - public static MemorySegment H5Pget_alloc_time$address() { - return H5Pget_alloc_time.ADDR; - } + public static MemorySegment H5Pget_alloc_time$address() { return H5Pget_alloc_time.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t *alloc_time) * } */ - public static int H5Pget_alloc_time(long plist_id, MemorySegment alloc_time) { + public static int H5Pget_alloc_time(long plist_id, MemorySegment alloc_time) + { var mh$ = H5Pget_alloc_time.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_alloc_time", plist_id, alloc_time); } return (int)mh$.invokeExact(plist_id, alloc_time); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_chunk { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_chunk"); @@ -8836,9 +8539,7 @@ private static class H5Pget_chunk { * int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]) * } */ - public static FunctionDescriptor H5Pget_chunk$descriptor() { - return H5Pget_chunk.DESC; - } + public static FunctionDescriptor H5Pget_chunk$descriptor() { return H5Pget_chunk.DESC; } /** * Downcall method handle for: @@ -8846,9 +8547,7 @@ private static class H5Pget_chunk { * int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]) * } */ - public static MethodHandle H5Pget_chunk$handle() { - return H5Pget_chunk.HANDLE; - } + public static MethodHandle H5Pget_chunk$handle() { return H5Pget_chunk.HANDLE; } /** * Address for: @@ -8856,33 +8555,30 @@ private static class H5Pget_chunk { * int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]) * } */ - public static MemorySegment H5Pget_chunk$address() { - return H5Pget_chunk.ADDR; - } + public static MemorySegment H5Pget_chunk$address() { return H5Pget_chunk.ADDR; } /** * {@snippet lang=c : * int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]) * } */ - public static int H5Pget_chunk(long plist_id, int max_ndims, MemorySegment dim) { + public static int H5Pget_chunk(long plist_id, int max_ndims, MemorySegment dim) + { var mh$ = H5Pget_chunk.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_chunk", plist_id, max_ndims, dim); } return (int)mh$.invokeExact(plist_id, max_ndims, dim); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_chunk_opts { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_chunk_opts"); @@ -8895,9 +8591,7 @@ private static class H5Pget_chunk_opts { * herr_t H5Pget_chunk_opts(hid_t plist_id, unsigned int *opts) * } */ - public static FunctionDescriptor H5Pget_chunk_opts$descriptor() { - return H5Pget_chunk_opts.DESC; - } + public static FunctionDescriptor H5Pget_chunk_opts$descriptor() { return H5Pget_chunk_opts.DESC; } /** * Downcall method handle for: @@ -8905,9 +8599,7 @@ private static class H5Pget_chunk_opts { * herr_t H5Pget_chunk_opts(hid_t plist_id, unsigned int *opts) * } */ - public static MethodHandle H5Pget_chunk_opts$handle() { - return H5Pget_chunk_opts.HANDLE; - } + public static MethodHandle H5Pget_chunk_opts$handle() { return H5Pget_chunk_opts.HANDLE; } /** * Address for: @@ -8915,33 +8607,30 @@ private static class H5Pget_chunk_opts { * herr_t H5Pget_chunk_opts(hid_t plist_id, unsigned int *opts) * } */ - public static MemorySegment H5Pget_chunk_opts$address() { - return H5Pget_chunk_opts.ADDR; - } + public static MemorySegment H5Pget_chunk_opts$address() { return H5Pget_chunk_opts.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_chunk_opts(hid_t plist_id, unsigned int *opts) * } */ - public static int H5Pget_chunk_opts(long plist_id, MemorySegment opts) { + public static int H5Pget_chunk_opts(long plist_id, MemorySegment opts) + { var mh$ = H5Pget_chunk_opts.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_chunk_opts", plist_id, opts); } return (int)mh$.invokeExact(plist_id, opts); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_dset_no_attrs_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_dset_no_attrs_hint"); @@ -8954,7 +8643,8 @@ private static class H5Pget_dset_no_attrs_hint { * herr_t H5Pget_dset_no_attrs_hint(hid_t dcpl_id, hbool_t *minimize) * } */ - public static FunctionDescriptor H5Pget_dset_no_attrs_hint$descriptor() { + public static FunctionDescriptor H5Pget_dset_no_attrs_hint$descriptor() + { return H5Pget_dset_no_attrs_hint.DESC; } @@ -8964,9 +8654,7 @@ private static class H5Pget_dset_no_attrs_hint { * herr_t H5Pget_dset_no_attrs_hint(hid_t dcpl_id, hbool_t *minimize) * } */ - public static MethodHandle H5Pget_dset_no_attrs_hint$handle() { - return H5Pget_dset_no_attrs_hint.HANDLE; - } + public static MethodHandle H5Pget_dset_no_attrs_hint$handle() { return H5Pget_dset_no_attrs_hint.HANDLE; } /** * Address for: @@ -8974,37 +8662,31 @@ private static class H5Pget_dset_no_attrs_hint { * herr_t H5Pget_dset_no_attrs_hint(hid_t dcpl_id, hbool_t *minimize) * } */ - public static MemorySegment H5Pget_dset_no_attrs_hint$address() { - return H5Pget_dset_no_attrs_hint.ADDR; - } + public static MemorySegment H5Pget_dset_no_attrs_hint$address() { return H5Pget_dset_no_attrs_hint.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_dset_no_attrs_hint(hid_t dcpl_id, hbool_t *minimize) * } */ - public static int H5Pget_dset_no_attrs_hint(long dcpl_id, MemorySegment minimize) { + public static int H5Pget_dset_no_attrs_hint(long dcpl_id, MemorySegment minimize) + { var mh$ = H5Pget_dset_no_attrs_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_dset_no_attrs_hint", dcpl_id, minimize); } return (int)mh$.invokeExact(dcpl_id, minimize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_external { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_external"); @@ -9014,55 +8696,53 @@ private static class H5Pget_external { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, hsize_t *size) + * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, + * hsize_t *size) * } */ - public static FunctionDescriptor H5Pget_external$descriptor() { - return H5Pget_external.DESC; - } + public static FunctionDescriptor H5Pget_external$descriptor() { return H5Pget_external.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, hsize_t *size) + * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, + * hsize_t *size) * } */ - public static MethodHandle H5Pget_external$handle() { - return H5Pget_external.HANDLE; - } + public static MethodHandle H5Pget_external$handle() { return H5Pget_external.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, hsize_t *size) + * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, + * hsize_t *size) * } */ - public static MemorySegment H5Pget_external$address() { - return H5Pget_external.ADDR; - } + public static MemorySegment H5Pget_external$address() { return H5Pget_external.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, hsize_t *size) + * herr_t H5Pget_external(hid_t plist_id, unsigned int idx, size_t name_size, char *name, HDoff_t *offset, + * hsize_t *size) * } */ - public static int H5Pget_external(long plist_id, int idx, long name_size, MemorySegment name, MemorySegment offset, MemorySegment size) { + public static int H5Pget_external(long plist_id, int idx, long name_size, MemorySegment name, + MemorySegment offset, MemorySegment size) + { var mh$ = H5Pget_external.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_external", plist_id, idx, name_size, name, offset, size); } return (int)mh$.invokeExact(plist_id, idx, name_size, name, offset, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_external_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_external_count"); @@ -9075,9 +8755,7 @@ private static class H5Pget_external_count { * int H5Pget_external_count(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_external_count$descriptor() { - return H5Pget_external_count.DESC; - } + public static FunctionDescriptor H5Pget_external_count$descriptor() { return H5Pget_external_count.DESC; } /** * Downcall method handle for: @@ -9085,9 +8763,7 @@ private static class H5Pget_external_count { * int H5Pget_external_count(hid_t plist_id) * } */ - public static MethodHandle H5Pget_external_count$handle() { - return H5Pget_external_count.HANDLE; - } + public static MethodHandle H5Pget_external_count$handle() { return H5Pget_external_count.HANDLE; } /** * Address for: @@ -9095,33 +8771,30 @@ private static class H5Pget_external_count { * int H5Pget_external_count(hid_t plist_id) * } */ - public static MemorySegment H5Pget_external_count$address() { - return H5Pget_external_count.ADDR; - } + public static MemorySegment H5Pget_external_count$address() { return H5Pget_external_count.ADDR; } /** * {@snippet lang=c : * int H5Pget_external_count(hid_t plist_id) * } */ - public static int H5Pget_external_count(long plist_id) { + public static int H5Pget_external_count(long plist_id) + { var mh$ = H5Pget_external_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_external_count", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fill_time { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fill_time"); @@ -9134,9 +8807,7 @@ private static class H5Pget_fill_time { * herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t *fill_time) * } */ - public static FunctionDescriptor H5Pget_fill_time$descriptor() { - return H5Pget_fill_time.DESC; - } + public static FunctionDescriptor H5Pget_fill_time$descriptor() { return H5Pget_fill_time.DESC; } /** * Downcall method handle for: @@ -9144,9 +8815,7 @@ private static class H5Pget_fill_time { * herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t *fill_time) * } */ - public static MethodHandle H5Pget_fill_time$handle() { - return H5Pget_fill_time.HANDLE; - } + public static MethodHandle H5Pget_fill_time$handle() { return H5Pget_fill_time.HANDLE; } /** * Address for: @@ -9154,34 +8823,30 @@ private static class H5Pget_fill_time { * herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t *fill_time) * } */ - public static MemorySegment H5Pget_fill_time$address() { - return H5Pget_fill_time.ADDR; - } + public static MemorySegment H5Pget_fill_time$address() { return H5Pget_fill_time.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t *fill_time) * } */ - public static int H5Pget_fill_time(long plist_id, MemorySegment fill_time) { + public static int H5Pget_fill_time(long plist_id, MemorySegment fill_time) + { var mh$ = H5Pget_fill_time.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fill_time", plist_id, fill_time); } return (int)mh$.invokeExact(plist_id, fill_time); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fill_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fill_value"); @@ -9194,9 +8859,7 @@ private static class H5Pget_fill_value { * herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value) * } */ - public static FunctionDescriptor H5Pget_fill_value$descriptor() { - return H5Pget_fill_value.DESC; - } + public static FunctionDescriptor H5Pget_fill_value$descriptor() { return H5Pget_fill_value.DESC; } /** * Downcall method handle for: @@ -9204,9 +8867,7 @@ private static class H5Pget_fill_value { * herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value) * } */ - public static MethodHandle H5Pget_fill_value$handle() { - return H5Pget_fill_value.HANDLE; - } + public static MethodHandle H5Pget_fill_value$handle() { return H5Pget_fill_value.HANDLE; } /** * Address for: @@ -9214,32 +8875,29 @@ private static class H5Pget_fill_value { * herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value) * } */ - public static MemorySegment H5Pget_fill_value$address() { - return H5Pget_fill_value.ADDR; - } + public static MemorySegment H5Pget_fill_value$address() { return H5Pget_fill_value.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value) * } */ - public static int H5Pget_fill_value(long plist_id, long type_id, MemorySegment value) { + public static int H5Pget_fill_value(long plist_id, long type_id, MemorySegment value) + { var mh$ = H5Pget_fill_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fill_value", plist_id, type_id, value); } return (int)mh$.invokeExact(plist_id, type_id, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_layout { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_layout"); @@ -9252,9 +8910,7 @@ private static class H5Pget_layout { * H5D_layout_t H5Pget_layout(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_layout$descriptor() { - return H5Pget_layout.DESC; - } + public static FunctionDescriptor H5Pget_layout$descriptor() { return H5Pget_layout.DESC; } /** * Downcall method handle for: @@ -9262,9 +8918,7 @@ private static class H5Pget_layout { * H5D_layout_t H5Pget_layout(hid_t plist_id) * } */ - public static MethodHandle H5Pget_layout$handle() { - return H5Pget_layout.HANDLE; - } + public static MethodHandle H5Pget_layout$handle() { return H5Pget_layout.HANDLE; } /** * Address for: @@ -9272,33 +8926,30 @@ private static class H5Pget_layout { * H5D_layout_t H5Pget_layout(hid_t plist_id) * } */ - public static MemorySegment H5Pget_layout$address() { - return H5Pget_layout.ADDR; - } + public static MemorySegment H5Pget_layout$address() { return H5Pget_layout.ADDR; } /** * {@snippet lang=c : * H5D_layout_t H5Pget_layout(hid_t plist_id) * } */ - public static int H5Pget_layout(long plist_id) { + public static int H5Pget_layout(long plist_id) + { var mh$ = H5Pget_layout.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_layout", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_count"); @@ -9311,9 +8962,7 @@ private static class H5Pget_virtual_count { * herr_t H5Pget_virtual_count(hid_t dcpl_id, size_t *count) * } */ - public static FunctionDescriptor H5Pget_virtual_count$descriptor() { - return H5Pget_virtual_count.DESC; - } + public static FunctionDescriptor H5Pget_virtual_count$descriptor() { return H5Pget_virtual_count.DESC; } /** * Downcall method handle for: @@ -9321,9 +8970,7 @@ private static class H5Pget_virtual_count { * herr_t H5Pget_virtual_count(hid_t dcpl_id, size_t *count) * } */ - public static MethodHandle H5Pget_virtual_count$handle() { - return H5Pget_virtual_count.HANDLE; - } + public static MethodHandle H5Pget_virtual_count$handle() { return H5Pget_virtual_count.HANDLE; } /** * Address for: @@ -9331,35 +8978,30 @@ private static class H5Pget_virtual_count { * herr_t H5Pget_virtual_count(hid_t dcpl_id, size_t *count) * } */ - public static MemorySegment H5Pget_virtual_count$address() { - return H5Pget_virtual_count.ADDR; - } + public static MemorySegment H5Pget_virtual_count$address() { return H5Pget_virtual_count.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_virtual_count(hid_t dcpl_id, size_t *count) * } */ - public static int H5Pget_virtual_count(long dcpl_id, MemorySegment count) { + public static int H5Pget_virtual_count(long dcpl_id, MemorySegment count) + { var mh$ = H5Pget_virtual_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_count", dcpl_id, count); } return (int)mh$.invokeExact(dcpl_id, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_dsetname { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_dsetname"); @@ -9372,7 +9014,8 @@ private static class H5Pget_virtual_dsetname { * ssize_t H5Pget_virtual_dsetname(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static FunctionDescriptor H5Pget_virtual_dsetname$descriptor() { + public static FunctionDescriptor H5Pget_virtual_dsetname$descriptor() + { return H5Pget_virtual_dsetname.DESC; } @@ -9382,9 +9025,7 @@ private static class H5Pget_virtual_dsetname { * ssize_t H5Pget_virtual_dsetname(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static MethodHandle H5Pget_virtual_dsetname$handle() { - return H5Pget_virtual_dsetname.HANDLE; - } + public static MethodHandle H5Pget_virtual_dsetname$handle() { return H5Pget_virtual_dsetname.HANDLE; } /** * Address for: @@ -9392,35 +9033,30 @@ private static class H5Pget_virtual_dsetname { * ssize_t H5Pget_virtual_dsetname(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static MemorySegment H5Pget_virtual_dsetname$address() { - return H5Pget_virtual_dsetname.ADDR; - } + public static MemorySegment H5Pget_virtual_dsetname$address() { return H5Pget_virtual_dsetname.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_virtual_dsetname(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static long H5Pget_virtual_dsetname(long dcpl_id, long index, MemorySegment name, long size) { + public static long H5Pget_virtual_dsetname(long dcpl_id, long index, MemorySegment name, long size) + { var mh$ = H5Pget_virtual_dsetname.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_dsetname", dcpl_id, index, name, size); } return (long)mh$.invokeExact(dcpl_id, index, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_filename { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_filename"); @@ -9433,7 +9069,8 @@ private static class H5Pget_virtual_filename { * ssize_t H5Pget_virtual_filename(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static FunctionDescriptor H5Pget_virtual_filename$descriptor() { + public static FunctionDescriptor H5Pget_virtual_filename$descriptor() + { return H5Pget_virtual_filename.DESC; } @@ -9443,9 +9080,7 @@ private static class H5Pget_virtual_filename { * ssize_t H5Pget_virtual_filename(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static MethodHandle H5Pget_virtual_filename$handle() { - return H5Pget_virtual_filename.HANDLE; - } + public static MethodHandle H5Pget_virtual_filename$handle() { return H5Pget_virtual_filename.HANDLE; } /** * Address for: @@ -9453,33 +9088,30 @@ private static class H5Pget_virtual_filename { * ssize_t H5Pget_virtual_filename(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static MemorySegment H5Pget_virtual_filename$address() { - return H5Pget_virtual_filename.ADDR; - } + public static MemorySegment H5Pget_virtual_filename$address() { return H5Pget_virtual_filename.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_virtual_filename(hid_t dcpl_id, size_t index, char *name, size_t size) * } */ - public static long H5Pget_virtual_filename(long dcpl_id, long index, MemorySegment name, long size) { + public static long H5Pget_virtual_filename(long dcpl_id, long index, MemorySegment name, long size) + { var mh$ = H5Pget_virtual_filename.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_filename", dcpl_id, index, name, size); } return (long)mh$.invokeExact(dcpl_id, index, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_srcspace { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_srcspace"); @@ -9492,7 +9124,8 @@ private static class H5Pget_virtual_srcspace { * hid_t H5Pget_virtual_srcspace(hid_t dcpl_id, size_t index) * } */ - public static FunctionDescriptor H5Pget_virtual_srcspace$descriptor() { + public static FunctionDescriptor H5Pget_virtual_srcspace$descriptor() + { return H5Pget_virtual_srcspace.DESC; } @@ -9502,9 +9135,7 @@ private static class H5Pget_virtual_srcspace { * hid_t H5Pget_virtual_srcspace(hid_t dcpl_id, size_t index) * } */ - public static MethodHandle H5Pget_virtual_srcspace$handle() { - return H5Pget_virtual_srcspace.HANDLE; - } + public static MethodHandle H5Pget_virtual_srcspace$handle() { return H5Pget_virtual_srcspace.HANDLE; } /** * Address for: @@ -9512,33 +9143,30 @@ private static class H5Pget_virtual_srcspace { * hid_t H5Pget_virtual_srcspace(hid_t dcpl_id, size_t index) * } */ - public static MemorySegment H5Pget_virtual_srcspace$address() { - return H5Pget_virtual_srcspace.ADDR; - } + public static MemorySegment H5Pget_virtual_srcspace$address() { return H5Pget_virtual_srcspace.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_virtual_srcspace(hid_t dcpl_id, size_t index) * } */ - public static long H5Pget_virtual_srcspace(long dcpl_id, long index) { + public static long H5Pget_virtual_srcspace(long dcpl_id, long index) + { var mh$ = H5Pget_virtual_srcspace.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_srcspace", dcpl_id, index); } return (long)mh$.invokeExact(dcpl_id, index); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_vspace { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_vspace"); @@ -9551,9 +9179,7 @@ private static class H5Pget_virtual_vspace { * hid_t H5Pget_virtual_vspace(hid_t dcpl_id, size_t index) * } */ - public static FunctionDescriptor H5Pget_virtual_vspace$descriptor() { - return H5Pget_virtual_vspace.DESC; - } + public static FunctionDescriptor H5Pget_virtual_vspace$descriptor() { return H5Pget_virtual_vspace.DESC; } /** * Downcall method handle for: @@ -9561,9 +9187,7 @@ private static class H5Pget_virtual_vspace { * hid_t H5Pget_virtual_vspace(hid_t dcpl_id, size_t index) * } */ - public static MethodHandle H5Pget_virtual_vspace$handle() { - return H5Pget_virtual_vspace.HANDLE; - } + public static MethodHandle H5Pget_virtual_vspace$handle() { return H5Pget_virtual_vspace.HANDLE; } /** * Address for: @@ -9571,33 +9195,30 @@ private static class H5Pget_virtual_vspace { * hid_t H5Pget_virtual_vspace(hid_t dcpl_id, size_t index) * } */ - public static MemorySegment H5Pget_virtual_vspace$address() { - return H5Pget_virtual_vspace.ADDR; - } + public static MemorySegment H5Pget_virtual_vspace$address() { return H5Pget_virtual_vspace.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_virtual_vspace(hid_t dcpl_id, size_t index) * } */ - public static long H5Pget_virtual_vspace(long dcpl_id, long index) { + public static long H5Pget_virtual_vspace(long dcpl_id, long index) + { var mh$ = H5Pget_virtual_vspace.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_vspace", dcpl_id, index); } return (long)mh$.invokeExact(dcpl_id, index); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_alloc_time { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_alloc_time"); @@ -9610,9 +9231,7 @@ private static class H5Pset_alloc_time { * herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time) * } */ - public static FunctionDescriptor H5Pset_alloc_time$descriptor() { - return H5Pset_alloc_time.DESC; - } + public static FunctionDescriptor H5Pset_alloc_time$descriptor() { return H5Pset_alloc_time.DESC; } /** * Downcall method handle for: @@ -9620,9 +9239,7 @@ private static class H5Pset_alloc_time { * herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time) * } */ - public static MethodHandle H5Pset_alloc_time$handle() { - return H5Pset_alloc_time.HANDLE; - } + public static MethodHandle H5Pset_alloc_time$handle() { return H5Pset_alloc_time.HANDLE; } /** * Address for: @@ -9630,34 +9247,30 @@ private static class H5Pset_alloc_time { * herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time) * } */ - public static MemorySegment H5Pset_alloc_time$address() { - return H5Pset_alloc_time.ADDR; - } + public static MemorySegment H5Pset_alloc_time$address() { return H5Pset_alloc_time.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time) * } */ - public static int H5Pset_alloc_time(long plist_id, int alloc_time) { + public static int H5Pset_alloc_time(long plist_id, int alloc_time) + { var mh$ = H5Pset_alloc_time.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_alloc_time", plist_id, alloc_time); } return (int)mh$.invokeExact(plist_id, alloc_time); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_chunk { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_chunk"); @@ -9670,9 +9283,7 @@ private static class H5Pset_chunk { * herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]) * } */ - public static FunctionDescriptor H5Pset_chunk$descriptor() { - return H5Pset_chunk.DESC; - } + public static FunctionDescriptor H5Pset_chunk$descriptor() { return H5Pset_chunk.DESC; } /** * Downcall method handle for: @@ -9680,9 +9291,7 @@ private static class H5Pset_chunk { * herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]) * } */ - public static MethodHandle H5Pset_chunk$handle() { - return H5Pset_chunk.HANDLE; - } + public static MethodHandle H5Pset_chunk$handle() { return H5Pset_chunk.HANDLE; } /** * Address for: @@ -9690,33 +9299,30 @@ private static class H5Pset_chunk { * herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]) * } */ - public static MemorySegment H5Pset_chunk$address() { - return H5Pset_chunk.ADDR; - } + public static MemorySegment H5Pset_chunk$address() { return H5Pset_chunk.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]) * } */ - public static int H5Pset_chunk(long plist_id, int ndims, MemorySegment dim) { + public static int H5Pset_chunk(long plist_id, int ndims, MemorySegment dim) + { var mh$ = H5Pset_chunk.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_chunk", plist_id, ndims, dim); } return (int)mh$.invokeExact(plist_id, ndims, dim); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_chunk_opts { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_chunk_opts"); @@ -9729,9 +9335,7 @@ private static class H5Pset_chunk_opts { * herr_t H5Pset_chunk_opts(hid_t plist_id, unsigned int opts) * } */ - public static FunctionDescriptor H5Pset_chunk_opts$descriptor() { - return H5Pset_chunk_opts.DESC; - } + public static FunctionDescriptor H5Pset_chunk_opts$descriptor() { return H5Pset_chunk_opts.DESC; } /** * Downcall method handle for: @@ -9739,9 +9343,7 @@ private static class H5Pset_chunk_opts { * herr_t H5Pset_chunk_opts(hid_t plist_id, unsigned int opts) * } */ - public static MethodHandle H5Pset_chunk_opts$handle() { - return H5Pset_chunk_opts.HANDLE; - } + public static MethodHandle H5Pset_chunk_opts$handle() { return H5Pset_chunk_opts.HANDLE; } /** * Address for: @@ -9749,33 +9351,30 @@ private static class H5Pset_chunk_opts { * herr_t H5Pset_chunk_opts(hid_t plist_id, unsigned int opts) * } */ - public static MemorySegment H5Pset_chunk_opts$address() { - return H5Pset_chunk_opts.ADDR; - } + public static MemorySegment H5Pset_chunk_opts$address() { return H5Pset_chunk_opts.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_chunk_opts(hid_t plist_id, unsigned int opts) * } */ - public static int H5Pset_chunk_opts(long plist_id, int opts) { + public static int H5Pset_chunk_opts(long plist_id, int opts) + { var mh$ = H5Pset_chunk_opts.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_chunk_opts", plist_id, opts); } return (int)mh$.invokeExact(plist_id, opts); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_dset_no_attrs_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_dset_no_attrs_hint"); @@ -9788,7 +9387,8 @@ private static class H5Pset_dset_no_attrs_hint { * herr_t H5Pset_dset_no_attrs_hint(hid_t dcpl_id, hbool_t minimize) * } */ - public static FunctionDescriptor H5Pset_dset_no_attrs_hint$descriptor() { + public static FunctionDescriptor H5Pset_dset_no_attrs_hint$descriptor() + { return H5Pset_dset_no_attrs_hint.DESC; } @@ -9798,9 +9398,7 @@ private static class H5Pset_dset_no_attrs_hint { * herr_t H5Pset_dset_no_attrs_hint(hid_t dcpl_id, hbool_t minimize) * } */ - public static MethodHandle H5Pset_dset_no_attrs_hint$handle() { - return H5Pset_dset_no_attrs_hint.HANDLE; - } + public static MethodHandle H5Pset_dset_no_attrs_hint$handle() { return H5Pset_dset_no_attrs_hint.HANDLE; } /** * Address for: @@ -9808,35 +9406,30 @@ private static class H5Pset_dset_no_attrs_hint { * herr_t H5Pset_dset_no_attrs_hint(hid_t dcpl_id, hbool_t minimize) * } */ - public static MemorySegment H5Pset_dset_no_attrs_hint$address() { - return H5Pset_dset_no_attrs_hint.ADDR; - } + public static MemorySegment H5Pset_dset_no_attrs_hint$address() { return H5Pset_dset_no_attrs_hint.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_dset_no_attrs_hint(hid_t dcpl_id, hbool_t minimize) * } */ - public static int H5Pset_dset_no_attrs_hint(long dcpl_id, boolean minimize) { + public static int H5Pset_dset_no_attrs_hint(long dcpl_id, boolean minimize) + { var mh$ = H5Pset_dset_no_attrs_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_dset_no_attrs_hint", dcpl_id, minimize); } return (int)mh$.invokeExact(dcpl_id, minimize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_external { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_external"); @@ -9849,9 +9442,7 @@ private static class H5Pset_external { * herr_t H5Pset_external(hid_t plist_id, const char *name, HDoff_t offset, hsize_t size) * } */ - public static FunctionDescriptor H5Pset_external$descriptor() { - return H5Pset_external.DESC; - } + public static FunctionDescriptor H5Pset_external$descriptor() { return H5Pset_external.DESC; } /** * Downcall method handle for: @@ -9859,9 +9450,7 @@ private static class H5Pset_external { * herr_t H5Pset_external(hid_t plist_id, const char *name, HDoff_t offset, hsize_t size) * } */ - public static MethodHandle H5Pset_external$handle() { - return H5Pset_external.HANDLE; - } + public static MethodHandle H5Pset_external$handle() { return H5Pset_external.HANDLE; } /** * Address for: @@ -9869,33 +9458,30 @@ private static class H5Pset_external { * herr_t H5Pset_external(hid_t plist_id, const char *name, HDoff_t offset, hsize_t size) * } */ - public static MemorySegment H5Pset_external$address() { - return H5Pset_external.ADDR; - } + public static MemorySegment H5Pset_external$address() { return H5Pset_external.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_external(hid_t plist_id, const char *name, HDoff_t offset, hsize_t size) * } */ - public static int H5Pset_external(long plist_id, MemorySegment name, long offset, long size) { + public static int H5Pset_external(long plist_id, MemorySegment name, long offset, long size) + { var mh$ = H5Pset_external.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_external", plist_id, name, offset, size); } return (int)mh$.invokeExact(plist_id, name, offset, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fill_time { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fill_time"); @@ -9908,9 +9494,7 @@ private static class H5Pset_fill_time { * herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time) * } */ - public static FunctionDescriptor H5Pset_fill_time$descriptor() { - return H5Pset_fill_time.DESC; - } + public static FunctionDescriptor H5Pset_fill_time$descriptor() { return H5Pset_fill_time.DESC; } /** * Downcall method handle for: @@ -9918,9 +9502,7 @@ private static class H5Pset_fill_time { * herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time) * } */ - public static MethodHandle H5Pset_fill_time$handle() { - return H5Pset_fill_time.HANDLE; - } + public static MethodHandle H5Pset_fill_time$handle() { return H5Pset_fill_time.HANDLE; } /** * Address for: @@ -9928,34 +9510,30 @@ private static class H5Pset_fill_time { * herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time) * } */ - public static MemorySegment H5Pset_fill_time$address() { - return H5Pset_fill_time.ADDR; - } + public static MemorySegment H5Pset_fill_time$address() { return H5Pset_fill_time.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time) * } */ - public static int H5Pset_fill_time(long plist_id, int fill_time) { + public static int H5Pset_fill_time(long plist_id, int fill_time) + { var mh$ = H5Pset_fill_time.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fill_time", plist_id, fill_time); } return (int)mh$.invokeExact(plist_id, fill_time); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fill_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fill_value"); @@ -9968,9 +9546,7 @@ private static class H5Pset_fill_value { * herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value) * } */ - public static FunctionDescriptor H5Pset_fill_value$descriptor() { - return H5Pset_fill_value.DESC; - } + public static FunctionDescriptor H5Pset_fill_value$descriptor() { return H5Pset_fill_value.DESC; } /** * Downcall method handle for: @@ -9978,9 +9554,7 @@ private static class H5Pset_fill_value { * herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value) * } */ - public static MethodHandle H5Pset_fill_value$handle() { - return H5Pset_fill_value.HANDLE; - } + public static MethodHandle H5Pset_fill_value$handle() { return H5Pset_fill_value.HANDLE; } /** * Address for: @@ -9988,32 +9562,29 @@ private static class H5Pset_fill_value { * herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value) * } */ - public static MemorySegment H5Pset_fill_value$address() { - return H5Pset_fill_value.ADDR; - } + public static MemorySegment H5Pset_fill_value$address() { return H5Pset_fill_value.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value) * } */ - public static int H5Pset_fill_value(long plist_id, long type_id, MemorySegment value) { + public static int H5Pset_fill_value(long plist_id, long type_id, MemorySegment value) + { var mh$ = H5Pset_fill_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fill_value", plist_id, type_id, value); } return (int)mh$.invokeExact(plist_id, type_id, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_shuffle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_shuffle"); @@ -10026,9 +9597,7 @@ private static class H5Pset_shuffle { * herr_t H5Pset_shuffle(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pset_shuffle$descriptor() { - return H5Pset_shuffle.DESC; - } + public static FunctionDescriptor H5Pset_shuffle$descriptor() { return H5Pset_shuffle.DESC; } /** * Downcall method handle for: @@ -10036,9 +9605,7 @@ private static class H5Pset_shuffle { * herr_t H5Pset_shuffle(hid_t plist_id) * } */ - public static MethodHandle H5Pset_shuffle$handle() { - return H5Pset_shuffle.HANDLE; - } + public static MethodHandle H5Pset_shuffle$handle() { return H5Pset_shuffle.HANDLE; } /** * Address for: @@ -10046,33 +9613,30 @@ private static class H5Pset_shuffle { * herr_t H5Pset_shuffle(hid_t plist_id) * } */ - public static MemorySegment H5Pset_shuffle$address() { - return H5Pset_shuffle.ADDR; - } + public static MemorySegment H5Pset_shuffle$address() { return H5Pset_shuffle.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_shuffle(hid_t plist_id) * } */ - public static int H5Pset_shuffle(long plist_id) { + public static int H5Pset_shuffle(long plist_id) + { var mh$ = H5Pset_shuffle.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_shuffle", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_layout { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_layout"); @@ -10085,9 +9649,7 @@ private static class H5Pset_layout { * herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout) * } */ - public static FunctionDescriptor H5Pset_layout$descriptor() { - return H5Pset_layout.DESC; - } + public static FunctionDescriptor H5Pset_layout$descriptor() { return H5Pset_layout.DESC; } /** * Downcall method handle for: @@ -10095,9 +9657,7 @@ private static class H5Pset_layout { * herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout) * } */ - public static MethodHandle H5Pset_layout$handle() { - return H5Pset_layout.HANDLE; - } + public static MethodHandle H5Pset_layout$handle() { return H5Pset_layout.HANDLE; } /** * Address for: @@ -10105,32 +9665,29 @@ private static class H5Pset_layout { * herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout) * } */ - public static MemorySegment H5Pset_layout$address() { - return H5Pset_layout.ADDR; - } + public static MemorySegment H5Pset_layout$address() { return H5Pset_layout.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout) * } */ - public static int H5Pset_layout(long plist_id, int layout) { + public static int H5Pset_layout(long plist_id, int layout) + { var mh$ = H5Pset_layout.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_layout", plist_id, layout); } return (int)mh$.invokeExact(plist_id, layout); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_nbit { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_nbit"); @@ -10143,9 +9700,7 @@ private static class H5Pset_nbit { * herr_t H5Pset_nbit(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pset_nbit$descriptor() { - return H5Pset_nbit.DESC; - } + public static FunctionDescriptor H5Pset_nbit$descriptor() { return H5Pset_nbit.DESC; } /** * Downcall method handle for: @@ -10153,9 +9708,7 @@ private static class H5Pset_nbit { * herr_t H5Pset_nbit(hid_t plist_id) * } */ - public static MethodHandle H5Pset_nbit$handle() { - return H5Pset_nbit.HANDLE; - } + public static MethodHandle H5Pset_nbit$handle() { return H5Pset_nbit.HANDLE; } /** * Address for: @@ -10163,34 +9716,30 @@ private static class H5Pset_nbit { * herr_t H5Pset_nbit(hid_t plist_id) * } */ - public static MemorySegment H5Pset_nbit$address() { - return H5Pset_nbit.ADDR; - } + public static MemorySegment H5Pset_nbit$address() { return H5Pset_nbit.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_nbit(hid_t plist_id) * } */ - public static int H5Pset_nbit(long plist_id) { + public static int H5Pset_nbit(long plist_id) + { var mh$ = H5Pset_nbit.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_nbit", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_scaleoffset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_scaleoffset"); @@ -10203,9 +9752,7 @@ private static class H5Pset_scaleoffset { * herr_t H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_factor) * } */ - public static FunctionDescriptor H5Pset_scaleoffset$descriptor() { - return H5Pset_scaleoffset.DESC; - } + public static FunctionDescriptor H5Pset_scaleoffset$descriptor() { return H5Pset_scaleoffset.DESC; } /** * Downcall method handle for: @@ -10213,9 +9760,7 @@ private static class H5Pset_scaleoffset { * herr_t H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_factor) * } */ - public static MethodHandle H5Pset_scaleoffset$handle() { - return H5Pset_scaleoffset.HANDLE; - } + public static MethodHandle H5Pset_scaleoffset$handle() { return H5Pset_scaleoffset.HANDLE; } /** * Address for: @@ -10223,34 +9768,30 @@ private static class H5Pset_scaleoffset { * herr_t H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_factor) * } */ - public static MemorySegment H5Pset_scaleoffset$address() { - return H5Pset_scaleoffset.ADDR; - } + public static MemorySegment H5Pset_scaleoffset$address() { return H5Pset_scaleoffset.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_scaleoffset(hid_t plist_id, H5Z_SO_scale_type_t scale_type, int scale_factor) * } */ - public static int H5Pset_scaleoffset(long plist_id, int scale_type, int scale_factor) { + public static int H5Pset_scaleoffset(long plist_id, int scale_type, int scale_factor) + { var mh$ = H5Pset_scaleoffset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_scaleoffset", plist_id, scale_type, scale_factor); } return (int)mh$.invokeExact(plist_id, scale_type, scale_factor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_szip { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_szip"); @@ -10263,9 +9804,7 @@ private static class H5Pset_szip { * herr_t H5Pset_szip(hid_t plist_id, unsigned int options_mask, unsigned int pixels_per_block) * } */ - public static FunctionDescriptor H5Pset_szip$descriptor() { - return H5Pset_szip.DESC; - } + public static FunctionDescriptor H5Pset_szip$descriptor() { return H5Pset_szip.DESC; } /** * Downcall method handle for: @@ -10273,9 +9812,7 @@ private static class H5Pset_szip { * herr_t H5Pset_szip(hid_t plist_id, unsigned int options_mask, unsigned int pixels_per_block) * } */ - public static MethodHandle H5Pset_szip$handle() { - return H5Pset_szip.HANDLE; - } + public static MethodHandle H5Pset_szip$handle() { return H5Pset_szip.HANDLE; } /** * Address for: @@ -10283,36 +9820,30 @@ private static class H5Pset_szip { * herr_t H5Pset_szip(hid_t plist_id, unsigned int options_mask, unsigned int pixels_per_block) * } */ - public static MemorySegment H5Pset_szip$address() { - return H5Pset_szip.ADDR; - } + public static MemorySegment H5Pset_szip$address() { return H5Pset_szip.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_szip(hid_t plist_id, unsigned int options_mask, unsigned int pixels_per_block) * } */ - public static int H5Pset_szip(long plist_id, int options_mask, int pixels_per_block) { + public static int H5Pset_szip(long plist_id, int options_mask, int pixels_per_block) + { var mh$ = H5Pset_szip.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_szip", plist_id, options_mask, pixels_per_block); } return (int)mh$.invokeExact(plist_id, options_mask, pixels_per_block); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_virtual { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_virtual"); @@ -10322,59 +9853,55 @@ private static class H5Pset_virtual { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char *src_dset_name, hid_t src_space_id) + * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char + * *src_dset_name, hid_t src_space_id) * } */ - public static FunctionDescriptor H5Pset_virtual$descriptor() { - return H5Pset_virtual.DESC; - } + public static FunctionDescriptor H5Pset_virtual$descriptor() { return H5Pset_virtual.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char *src_dset_name, hid_t src_space_id) + * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char + * *src_dset_name, hid_t src_space_id) * } */ - public static MethodHandle H5Pset_virtual$handle() { - return H5Pset_virtual.HANDLE; - } + public static MethodHandle H5Pset_virtual$handle() { return H5Pset_virtual.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char *src_dset_name, hid_t src_space_id) + * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char + * *src_dset_name, hid_t src_space_id) * } */ - public static MemorySegment H5Pset_virtual$address() { - return H5Pset_virtual.ADDR; - } + public static MemorySegment H5Pset_virtual$address() { return H5Pset_virtual.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char *src_dset_name, hid_t src_space_id) + * herr_t H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name, const char + * *src_dset_name, hid_t src_space_id) * } */ - public static int H5Pset_virtual(long dcpl_id, long vspace_id, MemorySegment src_file_name, MemorySegment src_dset_name, long src_space_id) { + public static int H5Pset_virtual(long dcpl_id, long vspace_id, MemorySegment src_file_name, + MemorySegment src_dset_name, long src_space_id) + { var mh$ = H5Pset_virtual.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pset_virtual", dcpl_id, vspace_id, src_file_name, src_dset_name, src_space_id); + traceDowncall("H5Pset_virtual", dcpl_id, vspace_id, src_file_name, src_dset_name, + src_space_id); } return (int)mh$.invokeExact(dcpl_id, vspace_id, src_file_name, src_dset_name, src_space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_append_flush { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_append_flush"); @@ -10384,58 +9911,54 @@ private static class H5Pget_append_flush { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, void **udata) + * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, + * void **udata) * } */ - public static FunctionDescriptor H5Pget_append_flush$descriptor() { - return H5Pget_append_flush.DESC; - } + public static FunctionDescriptor H5Pget_append_flush$descriptor() { return H5Pget_append_flush.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, void **udata) + * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, + * void **udata) * } */ - public static MethodHandle H5Pget_append_flush$handle() { - return H5Pget_append_flush.HANDLE; - } + public static MethodHandle H5Pget_append_flush$handle() { return H5Pget_append_flush.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, void **udata) + * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, + * void **udata) * } */ - public static MemorySegment H5Pget_append_flush$address() { - return H5Pget_append_flush.ADDR; - } + public static MemorySegment H5Pget_append_flush$address() { return H5Pget_append_flush.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, void **udata) + * herr_t H5Pget_append_flush(hid_t dapl_id, unsigned int dims, hsize_t boundary[], H5D_append_cb_t *func, + * void **udata) * } */ - public static int H5Pget_append_flush(long dapl_id, int dims, MemorySegment boundary, MemorySegment func, MemorySegment udata) { + public static int H5Pget_append_flush(long dapl_id, int dims, MemorySegment boundary, MemorySegment func, + MemorySegment udata) + { var mh$ = H5Pget_append_flush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_append_flush", dapl_id, dims, boundary, func, udata); } return (int)mh$.invokeExact(dapl_id, dims, boundary, func, udata); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_chunk_cache { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_chunk_cache"); @@ -10448,9 +9971,7 @@ private static class H5Pget_chunk_cache { * herr_t H5Pget_chunk_cache(hid_t dapl_id, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) * } */ - public static FunctionDescriptor H5Pget_chunk_cache$descriptor() { - return H5Pget_chunk_cache.DESC; - } + public static FunctionDescriptor H5Pget_chunk_cache$descriptor() { return H5Pget_chunk_cache.DESC; } /** * Downcall method handle for: @@ -10458,9 +9979,7 @@ private static class H5Pget_chunk_cache { * herr_t H5Pget_chunk_cache(hid_t dapl_id, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) * } */ - public static MethodHandle H5Pget_chunk_cache$handle() { - return H5Pget_chunk_cache.HANDLE; - } + public static MethodHandle H5Pget_chunk_cache$handle() { return H5Pget_chunk_cache.HANDLE; } /** * Address for: @@ -10468,34 +9987,31 @@ private static class H5Pget_chunk_cache { * herr_t H5Pget_chunk_cache(hid_t dapl_id, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) * } */ - public static MemorySegment H5Pget_chunk_cache$address() { - return H5Pget_chunk_cache.ADDR; - } + public static MemorySegment H5Pget_chunk_cache$address() { return H5Pget_chunk_cache.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_chunk_cache(hid_t dapl_id, size_t *rdcc_nslots, size_t *rdcc_nbytes, double *rdcc_w0) * } */ - public static int H5Pget_chunk_cache(long dapl_id, MemorySegment rdcc_nslots, MemorySegment rdcc_nbytes, MemorySegment rdcc_w0) { + public static int H5Pget_chunk_cache(long dapl_id, MemorySegment rdcc_nslots, MemorySegment rdcc_nbytes, + MemorySegment rdcc_w0) + { var mh$ = H5Pget_chunk_cache.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_chunk_cache", dapl_id, rdcc_nslots, rdcc_nbytes, rdcc_w0); } return (int)mh$.invokeExact(dapl_id, rdcc_nslots, rdcc_nbytes, rdcc_w0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_efile_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_efile_prefix"); @@ -10508,9 +10024,7 @@ private static class H5Pget_efile_prefix { * ssize_t H5Pget_efile_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static FunctionDescriptor H5Pget_efile_prefix$descriptor() { - return H5Pget_efile_prefix.DESC; - } + public static FunctionDescriptor H5Pget_efile_prefix$descriptor() { return H5Pget_efile_prefix.DESC; } /** * Downcall method handle for: @@ -10518,9 +10032,7 @@ private static class H5Pget_efile_prefix { * ssize_t H5Pget_efile_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static MethodHandle H5Pget_efile_prefix$handle() { - return H5Pget_efile_prefix.HANDLE; - } + public static MethodHandle H5Pget_efile_prefix$handle() { return H5Pget_efile_prefix.HANDLE; } /** * Address for: @@ -10528,34 +10040,30 @@ private static class H5Pget_efile_prefix { * ssize_t H5Pget_efile_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static MemorySegment H5Pget_efile_prefix$address() { - return H5Pget_efile_prefix.ADDR; - } + public static MemorySegment H5Pget_efile_prefix$address() { return H5Pget_efile_prefix.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_efile_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static long H5Pget_efile_prefix(long dapl_id, MemorySegment prefix, long size) { + public static long H5Pget_efile_prefix(long dapl_id, MemorySegment prefix, long size) + { var mh$ = H5Pget_efile_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_efile_prefix", dapl_id, prefix, size); } return (long)mh$.invokeExact(dapl_id, prefix, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_prefix"); @@ -10568,9 +10076,7 @@ private static class H5Pget_virtual_prefix { * ssize_t H5Pget_virtual_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static FunctionDescriptor H5Pget_virtual_prefix$descriptor() { - return H5Pget_virtual_prefix.DESC; - } + public static FunctionDescriptor H5Pget_virtual_prefix$descriptor() { return H5Pget_virtual_prefix.DESC; } /** * Downcall method handle for: @@ -10578,9 +10084,7 @@ private static class H5Pget_virtual_prefix { * ssize_t H5Pget_virtual_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static MethodHandle H5Pget_virtual_prefix$handle() { - return H5Pget_virtual_prefix.HANDLE; - } + public static MethodHandle H5Pget_virtual_prefix$handle() { return H5Pget_virtual_prefix.HANDLE; } /** * Address for: @@ -10588,33 +10092,30 @@ private static class H5Pget_virtual_prefix { * ssize_t H5Pget_virtual_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static MemorySegment H5Pget_virtual_prefix$address() { - return H5Pget_virtual_prefix.ADDR; - } + public static MemorySegment H5Pget_virtual_prefix$address() { return H5Pget_virtual_prefix.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_virtual_prefix(hid_t dapl_id, char *prefix, size_t size) * } */ - public static long H5Pget_virtual_prefix(long dapl_id, MemorySegment prefix, long size) { + public static long H5Pget_virtual_prefix(long dapl_id, MemorySegment prefix, long size) + { var mh$ = H5Pget_virtual_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_prefix", dapl_id, prefix, size); } return (long)mh$.invokeExact(dapl_id, prefix, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_printf_gap { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_printf_gap"); @@ -10627,7 +10128,8 @@ private static class H5Pget_virtual_printf_gap { * herr_t H5Pget_virtual_printf_gap(hid_t dapl_id, hsize_t *gap_size) * } */ - public static FunctionDescriptor H5Pget_virtual_printf_gap$descriptor() { + public static FunctionDescriptor H5Pget_virtual_printf_gap$descriptor() + { return H5Pget_virtual_printf_gap.DESC; } @@ -10637,9 +10139,7 @@ private static class H5Pget_virtual_printf_gap { * herr_t H5Pget_virtual_printf_gap(hid_t dapl_id, hsize_t *gap_size) * } */ - public static MethodHandle H5Pget_virtual_printf_gap$handle() { - return H5Pget_virtual_printf_gap.HANDLE; - } + public static MethodHandle H5Pget_virtual_printf_gap$handle() { return H5Pget_virtual_printf_gap.HANDLE; } /** * Address for: @@ -10647,33 +10147,30 @@ private static class H5Pget_virtual_printf_gap { * herr_t H5Pget_virtual_printf_gap(hid_t dapl_id, hsize_t *gap_size) * } */ - public static MemorySegment H5Pget_virtual_printf_gap$address() { - return H5Pget_virtual_printf_gap.ADDR; - } + public static MemorySegment H5Pget_virtual_printf_gap$address() { return H5Pget_virtual_printf_gap.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_virtual_printf_gap(hid_t dapl_id, hsize_t *gap_size) * } */ - public static int H5Pget_virtual_printf_gap(long dapl_id, MemorySegment gap_size) { + public static int H5Pget_virtual_printf_gap(long dapl_id, MemorySegment gap_size) + { var mh$ = H5Pget_virtual_printf_gap.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_printf_gap", dapl_id, gap_size); } return (int)mh$.invokeExact(dapl_id, gap_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_virtual_view { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_virtual_view"); @@ -10686,9 +10183,7 @@ private static class H5Pget_virtual_view { * herr_t H5Pget_virtual_view(hid_t dapl_id, H5D_vds_view_t *view) * } */ - public static FunctionDescriptor H5Pget_virtual_view$descriptor() { - return H5Pget_virtual_view.DESC; - } + public static FunctionDescriptor H5Pget_virtual_view$descriptor() { return H5Pget_virtual_view.DESC; } /** * Downcall method handle for: @@ -10696,9 +10191,7 @@ private static class H5Pget_virtual_view { * herr_t H5Pget_virtual_view(hid_t dapl_id, H5D_vds_view_t *view) * } */ - public static MethodHandle H5Pget_virtual_view$handle() { - return H5Pget_virtual_view.HANDLE; - } + public static MethodHandle H5Pget_virtual_view$handle() { return H5Pget_virtual_view.HANDLE; } /** * Address for: @@ -10706,36 +10199,30 @@ private static class H5Pget_virtual_view { * herr_t H5Pget_virtual_view(hid_t dapl_id, H5D_vds_view_t *view) * } */ - public static MemorySegment H5Pget_virtual_view$address() { - return H5Pget_virtual_view.ADDR; - } + public static MemorySegment H5Pget_virtual_view$address() { return H5Pget_virtual_view.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_virtual_view(hid_t dapl_id, H5D_vds_view_t *view) * } */ - public static int H5Pget_virtual_view(long dapl_id, MemorySegment view) { + public static int H5Pget_virtual_view(long dapl_id, MemorySegment view) + { var mh$ = H5Pget_virtual_view.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_virtual_view", dapl_id, view); } return (int)mh$.invokeExact(dapl_id, view); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_append_flush { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_append_flush"); @@ -10745,58 +10232,54 @@ private static class H5Pset_append_flush { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t func, void *udata) + * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t + * func, void *udata) * } */ - public static FunctionDescriptor H5Pset_append_flush$descriptor() { - return H5Pset_append_flush.DESC; - } + public static FunctionDescriptor H5Pset_append_flush$descriptor() { return H5Pset_append_flush.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t func, void *udata) + * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t + * func, void *udata) * } */ - public static MethodHandle H5Pset_append_flush$handle() { - return H5Pset_append_flush.HANDLE; - } + public static MethodHandle H5Pset_append_flush$handle() { return H5Pset_append_flush.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t func, void *udata) + * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t + * func, void *udata) * } */ - public static MemorySegment H5Pset_append_flush$address() { - return H5Pset_append_flush.ADDR; - } + public static MemorySegment H5Pset_append_flush$address() { return H5Pset_append_flush.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t func, void *udata) + * herr_t H5Pset_append_flush(hid_t dapl_id, unsigned int ndims, const hsize_t boundary[], H5D_append_cb_t + * func, void *udata) * } */ - public static int H5Pset_append_flush(long dapl_id, int ndims, MemorySegment boundary, MemorySegment func, MemorySegment udata) { + public static int H5Pset_append_flush(long dapl_id, int ndims, MemorySegment boundary, MemorySegment func, + MemorySegment udata) + { var mh$ = H5Pset_append_flush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_append_flush", dapl_id, ndims, boundary, func, udata); } return (int)mh$.invokeExact(dapl_id, ndims, boundary, func, udata); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_chunk_cache { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_DOUBLE - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_DOUBLE); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_chunk_cache"); @@ -10809,9 +10292,7 @@ private static class H5Pset_chunk_cache { * herr_t H5Pset_chunk_cache(hid_t dapl_id, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) * } */ - public static FunctionDescriptor H5Pset_chunk_cache$descriptor() { - return H5Pset_chunk_cache.DESC; - } + public static FunctionDescriptor H5Pset_chunk_cache$descriptor() { return H5Pset_chunk_cache.DESC; } /** * Downcall method handle for: @@ -10819,9 +10300,7 @@ private static class H5Pset_chunk_cache { * herr_t H5Pset_chunk_cache(hid_t dapl_id, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) * } */ - public static MethodHandle H5Pset_chunk_cache$handle() { - return H5Pset_chunk_cache.HANDLE; - } + public static MethodHandle H5Pset_chunk_cache$handle() { return H5Pset_chunk_cache.HANDLE; } /** * Address for: @@ -10829,33 +10308,30 @@ private static class H5Pset_chunk_cache { * herr_t H5Pset_chunk_cache(hid_t dapl_id, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) * } */ - public static MemorySegment H5Pset_chunk_cache$address() { - return H5Pset_chunk_cache.ADDR; - } + public static MemorySegment H5Pset_chunk_cache$address() { return H5Pset_chunk_cache.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_chunk_cache(hid_t dapl_id, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) * } */ - public static int H5Pset_chunk_cache(long dapl_id, long rdcc_nslots, long rdcc_nbytes, double rdcc_w0) { + public static int H5Pset_chunk_cache(long dapl_id, long rdcc_nslots, long rdcc_nbytes, double rdcc_w0) + { var mh$ = H5Pset_chunk_cache.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_chunk_cache", dapl_id, rdcc_nslots, rdcc_nbytes, rdcc_w0); } return (int)mh$.invokeExact(dapl_id, rdcc_nslots, rdcc_nbytes, rdcc_w0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_efile_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_efile_prefix"); @@ -10868,9 +10344,7 @@ private static class H5Pset_efile_prefix { * herr_t H5Pset_efile_prefix(hid_t dapl_id, const char *prefix) * } */ - public static FunctionDescriptor H5Pset_efile_prefix$descriptor() { - return H5Pset_efile_prefix.DESC; - } + public static FunctionDescriptor H5Pset_efile_prefix$descriptor() { return H5Pset_efile_prefix.DESC; } /** * Downcall method handle for: @@ -10878,9 +10352,7 @@ private static class H5Pset_efile_prefix { * herr_t H5Pset_efile_prefix(hid_t dapl_id, const char *prefix) * } */ - public static MethodHandle H5Pset_efile_prefix$handle() { - return H5Pset_efile_prefix.HANDLE; - } + public static MethodHandle H5Pset_efile_prefix$handle() { return H5Pset_efile_prefix.HANDLE; } /** * Address for: @@ -10888,33 +10360,30 @@ private static class H5Pset_efile_prefix { * herr_t H5Pset_efile_prefix(hid_t dapl_id, const char *prefix) * } */ - public static MemorySegment H5Pset_efile_prefix$address() { - return H5Pset_efile_prefix.ADDR; - } + public static MemorySegment H5Pset_efile_prefix$address() { return H5Pset_efile_prefix.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_efile_prefix(hid_t dapl_id, const char *prefix) * } */ - public static int H5Pset_efile_prefix(long dapl_id, MemorySegment prefix) { + public static int H5Pset_efile_prefix(long dapl_id, MemorySegment prefix) + { var mh$ = H5Pset_efile_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_efile_prefix", dapl_id, prefix); } return (int)mh$.invokeExact(dapl_id, prefix); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_virtual_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_virtual_prefix"); @@ -10927,9 +10396,7 @@ private static class H5Pset_virtual_prefix { * herr_t H5Pset_virtual_prefix(hid_t dapl_id, const char *prefix) * } */ - public static FunctionDescriptor H5Pset_virtual_prefix$descriptor() { - return H5Pset_virtual_prefix.DESC; - } + public static FunctionDescriptor H5Pset_virtual_prefix$descriptor() { return H5Pset_virtual_prefix.DESC; } /** * Downcall method handle for: @@ -10937,9 +10404,7 @@ private static class H5Pset_virtual_prefix { * herr_t H5Pset_virtual_prefix(hid_t dapl_id, const char *prefix) * } */ - public static MethodHandle H5Pset_virtual_prefix$handle() { - return H5Pset_virtual_prefix.HANDLE; - } + public static MethodHandle H5Pset_virtual_prefix$handle() { return H5Pset_virtual_prefix.HANDLE; } /** * Address for: @@ -10947,33 +10412,30 @@ private static class H5Pset_virtual_prefix { * herr_t H5Pset_virtual_prefix(hid_t dapl_id, const char *prefix) * } */ - public static MemorySegment H5Pset_virtual_prefix$address() { - return H5Pset_virtual_prefix.ADDR; - } + public static MemorySegment H5Pset_virtual_prefix$address() { return H5Pset_virtual_prefix.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_virtual_prefix(hid_t dapl_id, const char *prefix) * } */ - public static int H5Pset_virtual_prefix(long dapl_id, MemorySegment prefix) { + public static int H5Pset_virtual_prefix(long dapl_id, MemorySegment prefix) + { var mh$ = H5Pset_virtual_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_virtual_prefix", dapl_id, prefix); } return (int)mh$.invokeExact(dapl_id, prefix); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_virtual_printf_gap { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_virtual_printf_gap"); @@ -10986,7 +10448,8 @@ private static class H5Pset_virtual_printf_gap { * herr_t H5Pset_virtual_printf_gap(hid_t dapl_id, hsize_t gap_size) * } */ - public static FunctionDescriptor H5Pset_virtual_printf_gap$descriptor() { + public static FunctionDescriptor H5Pset_virtual_printf_gap$descriptor() + { return H5Pset_virtual_printf_gap.DESC; } @@ -10996,9 +10459,7 @@ private static class H5Pset_virtual_printf_gap { * herr_t H5Pset_virtual_printf_gap(hid_t dapl_id, hsize_t gap_size) * } */ - public static MethodHandle H5Pset_virtual_printf_gap$handle() { - return H5Pset_virtual_printf_gap.HANDLE; - } + public static MethodHandle H5Pset_virtual_printf_gap$handle() { return H5Pset_virtual_printf_gap.HANDLE; } /** * Address for: @@ -11006,33 +10467,30 @@ private static class H5Pset_virtual_printf_gap { * herr_t H5Pset_virtual_printf_gap(hid_t dapl_id, hsize_t gap_size) * } */ - public static MemorySegment H5Pset_virtual_printf_gap$address() { - return H5Pset_virtual_printf_gap.ADDR; - } + public static MemorySegment H5Pset_virtual_printf_gap$address() { return H5Pset_virtual_printf_gap.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_virtual_printf_gap(hid_t dapl_id, hsize_t gap_size) * } */ - public static int H5Pset_virtual_printf_gap(long dapl_id, long gap_size) { + public static int H5Pset_virtual_printf_gap(long dapl_id, long gap_size) + { var mh$ = H5Pset_virtual_printf_gap.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_virtual_printf_gap", dapl_id, gap_size); } return (int)mh$.invokeExact(dapl_id, gap_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_virtual_view { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_virtual_view"); @@ -11045,9 +10503,7 @@ private static class H5Pset_virtual_view { * herr_t H5Pset_virtual_view(hid_t dapl_id, H5D_vds_view_t view) * } */ - public static FunctionDescriptor H5Pset_virtual_view$descriptor() { - return H5Pset_virtual_view.DESC; - } + public static FunctionDescriptor H5Pset_virtual_view$descriptor() { return H5Pset_virtual_view.DESC; } /** * Downcall method handle for: @@ -11055,9 +10511,7 @@ private static class H5Pset_virtual_view { * herr_t H5Pset_virtual_view(hid_t dapl_id, H5D_vds_view_t view) * } */ - public static MethodHandle H5Pset_virtual_view$handle() { - return H5Pset_virtual_view.HANDLE; - } + public static MethodHandle H5Pset_virtual_view$handle() { return H5Pset_virtual_view.HANDLE; } /** * Address for: @@ -11065,35 +10519,30 @@ private static class H5Pset_virtual_view { * herr_t H5Pset_virtual_view(hid_t dapl_id, H5D_vds_view_t view) * } */ - public static MemorySegment H5Pset_virtual_view$address() { - return H5Pset_virtual_view.ADDR; - } + public static MemorySegment H5Pset_virtual_view$address() { return H5Pset_virtual_view.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_virtual_view(hid_t dapl_id, H5D_vds_view_t view) * } */ - public static int H5Pset_virtual_view(long dapl_id, int view) { + public static int H5Pset_virtual_view(long dapl_id, int view) + { var mh$ = H5Pset_virtual_view.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_virtual_view", dapl_id, view); } return (int)mh$.invokeExact(dapl_id, view); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_btree_ratios { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_btree_ratios"); @@ -11106,9 +10555,7 @@ private static class H5Pget_btree_ratios { * herr_t H5Pget_btree_ratios(hid_t plist_id, double *left, double *middle, double *right) * } */ - public static FunctionDescriptor H5Pget_btree_ratios$descriptor() { - return H5Pget_btree_ratios.DESC; - } + public static FunctionDescriptor H5Pget_btree_ratios$descriptor() { return H5Pget_btree_ratios.DESC; } /** * Downcall method handle for: @@ -11116,9 +10563,7 @@ private static class H5Pget_btree_ratios { * herr_t H5Pget_btree_ratios(hid_t plist_id, double *left, double *middle, double *right) * } */ - public static MethodHandle H5Pget_btree_ratios$handle() { - return H5Pget_btree_ratios.HANDLE; - } + public static MethodHandle H5Pget_btree_ratios$handle() { return H5Pget_btree_ratios.HANDLE; } /** * Address for: @@ -11126,34 +10571,31 @@ private static class H5Pget_btree_ratios { * herr_t H5Pget_btree_ratios(hid_t plist_id, double *left, double *middle, double *right) * } */ - public static MemorySegment H5Pget_btree_ratios$address() { - return H5Pget_btree_ratios.ADDR; - } + public static MemorySegment H5Pget_btree_ratios$address() { return H5Pget_btree_ratios.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_btree_ratios(hid_t plist_id, double *left, double *middle, double *right) * } */ - public static int H5Pget_btree_ratios(long plist_id, MemorySegment left, MemorySegment middle, MemorySegment right) { + public static int H5Pget_btree_ratios(long plist_id, MemorySegment left, MemorySegment middle, + MemorySegment right) + { var mh$ = H5Pget_btree_ratios.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_btree_ratios", plist_id, left, middle, right); } return (int)mh$.invokeExact(plist_id, left, middle, right); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_buffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_buffer"); @@ -11166,9 +10608,7 @@ private static class H5Pget_buffer { * size_t H5Pget_buffer(hid_t plist_id, void **tconv, void **bkg) * } */ - public static FunctionDescriptor H5Pget_buffer$descriptor() { - return H5Pget_buffer.DESC; - } + public static FunctionDescriptor H5Pget_buffer$descriptor() { return H5Pget_buffer.DESC; } /** * Downcall method handle for: @@ -11176,9 +10616,7 @@ private static class H5Pget_buffer { * size_t H5Pget_buffer(hid_t plist_id, void **tconv, void **bkg) * } */ - public static MethodHandle H5Pget_buffer$handle() { - return H5Pget_buffer.HANDLE; - } + public static MethodHandle H5Pget_buffer$handle() { return H5Pget_buffer.HANDLE; } /** * Address for: @@ -11186,34 +10624,30 @@ private static class H5Pget_buffer { * size_t H5Pget_buffer(hid_t plist_id, void **tconv, void **bkg) * } */ - public static MemorySegment H5Pget_buffer$address() { - return H5Pget_buffer.ADDR; - } + public static MemorySegment H5Pget_buffer$address() { return H5Pget_buffer.ADDR; } /** * {@snippet lang=c : * size_t H5Pget_buffer(hid_t plist_id, void **tconv, void **bkg) * } */ - public static long H5Pget_buffer(long plist_id, MemorySegment tconv, MemorySegment bkg) { + public static long H5Pget_buffer(long plist_id, MemorySegment tconv, MemorySegment bkg) + { var mh$ = H5Pget_buffer.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_buffer", plist_id, tconv, bkg); } return (long)mh$.invokeExact(plist_id, tconv, bkg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_data_transform { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_data_transform"); @@ -11226,9 +10660,7 @@ private static class H5Pget_data_transform { * ssize_t H5Pget_data_transform(hid_t plist_id, char *expression, size_t size) * } */ - public static FunctionDescriptor H5Pget_data_transform$descriptor() { - return H5Pget_data_transform.DESC; - } + public static FunctionDescriptor H5Pget_data_transform$descriptor() { return H5Pget_data_transform.DESC; } /** * Downcall method handle for: @@ -11236,9 +10668,7 @@ private static class H5Pget_data_transform { * ssize_t H5Pget_data_transform(hid_t plist_id, char *expression, size_t size) * } */ - public static MethodHandle H5Pget_data_transform$handle() { - return H5Pget_data_transform.HANDLE; - } + public static MethodHandle H5Pget_data_transform$handle() { return H5Pget_data_transform.HANDLE; } /** * Address for: @@ -11246,32 +10676,29 @@ private static class H5Pget_data_transform { * ssize_t H5Pget_data_transform(hid_t plist_id, char *expression, size_t size) * } */ - public static MemorySegment H5Pget_data_transform$address() { - return H5Pget_data_transform.ADDR; - } + public static MemorySegment H5Pget_data_transform$address() { return H5Pget_data_transform.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_data_transform(hid_t plist_id, char *expression, size_t size) * } */ - public static long H5Pget_data_transform(long plist_id, MemorySegment expression, long size) { + public static long H5Pget_data_transform(long plist_id, MemorySegment expression, long size) + { var mh$ = H5Pget_data_transform.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_data_transform", plist_id, expression, size); } return (long)mh$.invokeExact(plist_id, expression, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_edc_check { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_edc_check"); @@ -11284,9 +10711,7 @@ private static class H5Pget_edc_check { * H5Z_EDC_t H5Pget_edc_check(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_edc_check$descriptor() { - return H5Pget_edc_check.DESC; - } + public static FunctionDescriptor H5Pget_edc_check$descriptor() { return H5Pget_edc_check.DESC; } /** * Downcall method handle for: @@ -11294,9 +10719,7 @@ private static class H5Pget_edc_check { * H5Z_EDC_t H5Pget_edc_check(hid_t plist_id) * } */ - public static MethodHandle H5Pget_edc_check$handle() { - return H5Pget_edc_check.HANDLE; - } + public static MethodHandle H5Pget_edc_check$handle() { return H5Pget_edc_check.HANDLE; } /** * Address for: @@ -11304,33 +10727,30 @@ private static class H5Pget_edc_check { * H5Z_EDC_t H5Pget_edc_check(hid_t plist_id) * } */ - public static MemorySegment H5Pget_edc_check$address() { - return H5Pget_edc_check.ADDR; - } + public static MemorySegment H5Pget_edc_check$address() { return H5Pget_edc_check.ADDR; } /** * {@snippet lang=c : * H5Z_EDC_t H5Pget_edc_check(hid_t plist_id) * } */ - public static int H5Pget_edc_check(long plist_id) { + public static int H5Pget_edc_check(long plist_id) + { var mh$ = H5Pget_edc_check.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_edc_check", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_hyper_vector_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_hyper_vector_size"); @@ -11343,7 +10763,8 @@ private static class H5Pget_hyper_vector_size { * herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size) * } */ - public static FunctionDescriptor H5Pget_hyper_vector_size$descriptor() { + public static FunctionDescriptor H5Pget_hyper_vector_size$descriptor() + { return H5Pget_hyper_vector_size.DESC; } @@ -11353,9 +10774,7 @@ private static class H5Pget_hyper_vector_size { * herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size) * } */ - public static MethodHandle H5Pget_hyper_vector_size$handle() { - return H5Pget_hyper_vector_size.HANDLE; - } + public static MethodHandle H5Pget_hyper_vector_size$handle() { return H5Pget_hyper_vector_size.HANDLE; } /** * Address for: @@ -11363,32 +10782,29 @@ private static class H5Pget_hyper_vector_size { * herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size) * } */ - public static MemorySegment H5Pget_hyper_vector_size$address() { - return H5Pget_hyper_vector_size.ADDR; - } + public static MemorySegment H5Pget_hyper_vector_size$address() { return H5Pget_hyper_vector_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size) * } */ - public static int H5Pget_hyper_vector_size(long fapl_id, MemorySegment size) { + public static int H5Pget_hyper_vector_size(long fapl_id, MemorySegment size) + { var mh$ = H5Pget_hyper_vector_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_hyper_vector_size", fapl_id, size); } return (int)mh$.invokeExact(fapl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_preserve { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_preserve"); @@ -11401,9 +10817,7 @@ private static class H5Pget_preserve { * int H5Pget_preserve(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pget_preserve$descriptor() { - return H5Pget_preserve.DESC; - } + public static FunctionDescriptor H5Pget_preserve$descriptor() { return H5Pget_preserve.DESC; } /** * Downcall method handle for: @@ -11411,9 +10825,7 @@ private static class H5Pget_preserve { * int H5Pget_preserve(hid_t plist_id) * } */ - public static MethodHandle H5Pget_preserve$handle() { - return H5Pget_preserve.HANDLE; - } + public static MethodHandle H5Pget_preserve$handle() { return H5Pget_preserve.HANDLE; } /** * Address for: @@ -11421,34 +10833,30 @@ private static class H5Pget_preserve { * int H5Pget_preserve(hid_t plist_id) * } */ - public static MemorySegment H5Pget_preserve$address() { - return H5Pget_preserve.ADDR; - } + public static MemorySegment H5Pget_preserve$address() { return H5Pget_preserve.ADDR; } /** * {@snippet lang=c : * int H5Pget_preserve(hid_t plist_id) * } */ - public static int H5Pget_preserve(long plist_id) { + public static int H5Pget_preserve(long plist_id) + { var mh$ = H5Pget_preserve.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_preserve", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_type_conv_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_type_conv_cb"); @@ -11461,9 +10869,7 @@ private static class H5Pget_type_conv_cb { * herr_t H5Pget_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t *op, void **operate_data) * } */ - public static FunctionDescriptor H5Pget_type_conv_cb$descriptor() { - return H5Pget_type_conv_cb.DESC; - } + public static FunctionDescriptor H5Pget_type_conv_cb$descriptor() { return H5Pget_type_conv_cb.DESC; } /** * Downcall method handle for: @@ -11471,9 +10877,7 @@ private static class H5Pget_type_conv_cb { * herr_t H5Pget_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t *op, void **operate_data) * } */ - public static MethodHandle H5Pget_type_conv_cb$handle() { - return H5Pget_type_conv_cb.HANDLE; - } + public static MethodHandle H5Pget_type_conv_cb$handle() { return H5Pget_type_conv_cb.HANDLE; } /** * Address for: @@ -11481,36 +10885,31 @@ private static class H5Pget_type_conv_cb { * herr_t H5Pget_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t *op, void **operate_data) * } */ - public static MemorySegment H5Pget_type_conv_cb$address() { - return H5Pget_type_conv_cb.ADDR; - } + public static MemorySegment H5Pget_type_conv_cb$address() { return H5Pget_type_conv_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t *op, void **operate_data) * } */ - public static int H5Pget_type_conv_cb(long dxpl_id, MemorySegment op, MemorySegment operate_data) { + public static int H5Pget_type_conv_cb(long dxpl_id, MemorySegment op, MemorySegment operate_data) + { var mh$ = H5Pget_type_conv_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_type_conv_cb", dxpl_id, op, operate_data); } return (int)mh$.invokeExact(dxpl_id, op, operate_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_vlen_mem_manager { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_vlen_mem_manager"); @@ -11520,58 +10919,59 @@ private static class H5Pget_vlen_mem_manager { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, H5MM_free_t *free_func, void **free_info) + * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, + * H5MM_free_t *free_func, void **free_info) * } */ - public static FunctionDescriptor H5Pget_vlen_mem_manager$descriptor() { + public static FunctionDescriptor H5Pget_vlen_mem_manager$descriptor() + { return H5Pget_vlen_mem_manager.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, H5MM_free_t *free_func, void **free_info) + * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, + * H5MM_free_t *free_func, void **free_info) * } */ - public static MethodHandle H5Pget_vlen_mem_manager$handle() { - return H5Pget_vlen_mem_manager.HANDLE; - } + public static MethodHandle H5Pget_vlen_mem_manager$handle() { return H5Pget_vlen_mem_manager.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, H5MM_free_t *free_func, void **free_info) + * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, + * H5MM_free_t *free_func, void **free_info) * } */ - public static MemorySegment H5Pget_vlen_mem_manager$address() { - return H5Pget_vlen_mem_manager.ADDR; - } + public static MemorySegment H5Pget_vlen_mem_manager$address() { return H5Pget_vlen_mem_manager.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, H5MM_free_t *free_func, void **free_info) + * herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, + * H5MM_free_t *free_func, void **free_info) * } */ - public static int H5Pget_vlen_mem_manager(long plist_id, MemorySegment alloc_func, MemorySegment alloc_info, MemorySegment free_func, MemorySegment free_info) { + public static int H5Pget_vlen_mem_manager(long plist_id, MemorySegment alloc_func, + MemorySegment alloc_info, MemorySegment free_func, + MemorySegment free_info) + { var mh$ = H5Pget_vlen_mem_manager.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_vlen_mem_manager", plist_id, alloc_func, alloc_info, free_func, free_info); + traceDowncall("H5Pget_vlen_mem_manager", plist_id, alloc_func, alloc_info, free_func, + free_info); } return (int)mh$.invokeExact(plist_id, alloc_func, alloc_info, free_func, free_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_btree_ratios { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_DOUBLE, - hdf5_h.C_DOUBLE, - hdf5_h.C_DOUBLE - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_DOUBLE, hdf5_h.C_DOUBLE, hdf5_h.C_DOUBLE); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_btree_ratios"); @@ -11584,9 +10984,7 @@ private static class H5Pset_btree_ratios { * herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, double right) * } */ - public static FunctionDescriptor H5Pset_btree_ratios$descriptor() { - return H5Pset_btree_ratios.DESC; - } + public static FunctionDescriptor H5Pset_btree_ratios$descriptor() { return H5Pset_btree_ratios.DESC; } /** * Downcall method handle for: @@ -11594,9 +10992,7 @@ private static class H5Pset_btree_ratios { * herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, double right) * } */ - public static MethodHandle H5Pset_btree_ratios$handle() { - return H5Pset_btree_ratios.HANDLE; - } + public static MethodHandle H5Pset_btree_ratios$handle() { return H5Pset_btree_ratios.HANDLE; } /** * Address for: @@ -11604,35 +11000,30 @@ private static class H5Pset_btree_ratios { * herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, double right) * } */ - public static MemorySegment H5Pset_btree_ratios$address() { - return H5Pset_btree_ratios.ADDR; - } + public static MemorySegment H5Pset_btree_ratios$address() { return H5Pset_btree_ratios.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, double right) * } */ - public static int H5Pset_btree_ratios(long plist_id, double left, double middle, double right) { + public static int H5Pset_btree_ratios(long plist_id, double left, double middle, double right) + { var mh$ = H5Pset_btree_ratios.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_btree_ratios", plist_id, left, middle, right); } return (int)mh$.invokeExact(plist_id, left, middle, right); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_buffer { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_buffer"); @@ -11645,9 +11036,7 @@ private static class H5Pset_buffer { * herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, void *bkg) * } */ - public static FunctionDescriptor H5Pset_buffer$descriptor() { - return H5Pset_buffer.DESC; - } + public static FunctionDescriptor H5Pset_buffer$descriptor() { return H5Pset_buffer.DESC; } /** * Downcall method handle for: @@ -11655,9 +11044,7 @@ private static class H5Pset_buffer { * herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, void *bkg) * } */ - public static MethodHandle H5Pset_buffer$handle() { - return H5Pset_buffer.HANDLE; - } + public static MethodHandle H5Pset_buffer$handle() { return H5Pset_buffer.HANDLE; } /** * Address for: @@ -11665,33 +11052,30 @@ private static class H5Pset_buffer { * herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, void *bkg) * } */ - public static MemorySegment H5Pset_buffer$address() { - return H5Pset_buffer.ADDR; - } + public static MemorySegment H5Pset_buffer$address() { return H5Pset_buffer.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, void *bkg) * } */ - public static int H5Pset_buffer(long plist_id, long size, MemorySegment tconv, MemorySegment bkg) { + public static int H5Pset_buffer(long plist_id, long size, MemorySegment tconv, MemorySegment bkg) + { var mh$ = H5Pset_buffer.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_buffer", plist_id, size, tconv, bkg); } return (int)mh$.invokeExact(plist_id, size, tconv, bkg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_data_transform { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_data_transform"); @@ -11704,9 +11088,7 @@ private static class H5Pset_data_transform { * herr_t H5Pset_data_transform(hid_t plist_id, const char *expression) * } */ - public static FunctionDescriptor H5Pset_data_transform$descriptor() { - return H5Pset_data_transform.DESC; - } + public static FunctionDescriptor H5Pset_data_transform$descriptor() { return H5Pset_data_transform.DESC; } /** * Downcall method handle for: @@ -11714,9 +11096,7 @@ private static class H5Pset_data_transform { * herr_t H5Pset_data_transform(hid_t plist_id, const char *expression) * } */ - public static MethodHandle H5Pset_data_transform$handle() { - return H5Pset_data_transform.HANDLE; - } + public static MethodHandle H5Pset_data_transform$handle() { return H5Pset_data_transform.HANDLE; } /** * Address for: @@ -11724,33 +11104,30 @@ private static class H5Pset_data_transform { * herr_t H5Pset_data_transform(hid_t plist_id, const char *expression) * } */ - public static MemorySegment H5Pset_data_transform$address() { - return H5Pset_data_transform.ADDR; - } + public static MemorySegment H5Pset_data_transform$address() { return H5Pset_data_transform.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_data_transform(hid_t plist_id, const char *expression) * } */ - public static int H5Pset_data_transform(long plist_id, MemorySegment expression) { + public static int H5Pset_data_transform(long plist_id, MemorySegment expression) + { var mh$ = H5Pset_data_transform.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_data_transform", plist_id, expression); } return (int)mh$.invokeExact(plist_id, expression); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_edc_check { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_edc_check"); @@ -11763,9 +11140,7 @@ private static class H5Pset_edc_check { * herr_t H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check) * } */ - public static FunctionDescriptor H5Pset_edc_check$descriptor() { - return H5Pset_edc_check.DESC; - } + public static FunctionDescriptor H5Pset_edc_check$descriptor() { return H5Pset_edc_check.DESC; } /** * Downcall method handle for: @@ -11773,9 +11148,7 @@ private static class H5Pset_edc_check { * herr_t H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check) * } */ - public static MethodHandle H5Pset_edc_check$handle() { - return H5Pset_edc_check.HANDLE; - } + public static MethodHandle H5Pset_edc_check$handle() { return H5Pset_edc_check.HANDLE; } /** * Address for: @@ -11783,34 +11156,30 @@ private static class H5Pset_edc_check { * herr_t H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check) * } */ - public static MemorySegment H5Pset_edc_check$address() { - return H5Pset_edc_check.ADDR; - } + public static MemorySegment H5Pset_edc_check$address() { return H5Pset_edc_check.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check) * } */ - public static int H5Pset_edc_check(long plist_id, int check) { + public static int H5Pset_edc_check(long plist_id, int check) + { var mh$ = H5Pset_edc_check.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_edc_check", plist_id, check); } return (int)mh$.invokeExact(plist_id, check); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_filter_callback { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_filter_callback"); @@ -11823,7 +11192,8 @@ private static class H5Pset_filter_callback { * herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data) * } */ - public static FunctionDescriptor H5Pset_filter_callback$descriptor() { + public static FunctionDescriptor H5Pset_filter_callback$descriptor() + { return H5Pset_filter_callback.DESC; } @@ -11833,9 +11203,7 @@ private static class H5Pset_filter_callback { * herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data) * } */ - public static MethodHandle H5Pset_filter_callback$handle() { - return H5Pset_filter_callback.HANDLE; - } + public static MethodHandle H5Pset_filter_callback$handle() { return H5Pset_filter_callback.HANDLE; } /** * Address for: @@ -11843,33 +11211,30 @@ private static class H5Pset_filter_callback { * herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data) * } */ - public static MemorySegment H5Pset_filter_callback$address() { - return H5Pset_filter_callback.ADDR; - } + public static MemorySegment H5Pset_filter_callback$address() { return H5Pset_filter_callback.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data) * } */ - public static int H5Pset_filter_callback(long plist_id, MemorySegment func, MemorySegment op_data) { + public static int H5Pset_filter_callback(long plist_id, MemorySegment func, MemorySegment op_data) + { var mh$ = H5Pset_filter_callback.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_filter_callback", plist_id, func, op_data); } return (int)mh$.invokeExact(plist_id, func, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_hyper_vector_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_hyper_vector_size"); @@ -11882,7 +11247,8 @@ private static class H5Pset_hyper_vector_size { * herr_t H5Pset_hyper_vector_size(hid_t plist_id, size_t size) * } */ - public static FunctionDescriptor H5Pset_hyper_vector_size$descriptor() { + public static FunctionDescriptor H5Pset_hyper_vector_size$descriptor() + { return H5Pset_hyper_vector_size.DESC; } @@ -11892,9 +11258,7 @@ private static class H5Pset_hyper_vector_size { * herr_t H5Pset_hyper_vector_size(hid_t plist_id, size_t size) * } */ - public static MethodHandle H5Pset_hyper_vector_size$handle() { - return H5Pset_hyper_vector_size.HANDLE; - } + public static MethodHandle H5Pset_hyper_vector_size$handle() { return H5Pset_hyper_vector_size.HANDLE; } /** * Address for: @@ -11902,33 +11266,30 @@ private static class H5Pset_hyper_vector_size { * herr_t H5Pset_hyper_vector_size(hid_t plist_id, size_t size) * } */ - public static MemorySegment H5Pset_hyper_vector_size$address() { - return H5Pset_hyper_vector_size.ADDR; - } + public static MemorySegment H5Pset_hyper_vector_size$address() { return H5Pset_hyper_vector_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_hyper_vector_size(hid_t plist_id, size_t size) * } */ - public static int H5Pset_hyper_vector_size(long plist_id, long size) { + public static int H5Pset_hyper_vector_size(long plist_id, long size) + { var mh$ = H5Pset_hyper_vector_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_hyper_vector_size", plist_id, size); } return (int)mh$.invokeExact(plist_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_preserve { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_preserve"); @@ -11941,9 +11302,7 @@ private static class H5Pset_preserve { * herr_t H5Pset_preserve(hid_t plist_id, hbool_t status) * } */ - public static FunctionDescriptor H5Pset_preserve$descriptor() { - return H5Pset_preserve.DESC; - } + public static FunctionDescriptor H5Pset_preserve$descriptor() { return H5Pset_preserve.DESC; } /** * Downcall method handle for: @@ -11951,9 +11310,7 @@ private static class H5Pset_preserve { * herr_t H5Pset_preserve(hid_t plist_id, hbool_t status) * } */ - public static MethodHandle H5Pset_preserve$handle() { - return H5Pset_preserve.HANDLE; - } + public static MethodHandle H5Pset_preserve$handle() { return H5Pset_preserve.HANDLE; } /** * Address for: @@ -11961,34 +11318,30 @@ private static class H5Pset_preserve { * herr_t H5Pset_preserve(hid_t plist_id, hbool_t status) * } */ - public static MemorySegment H5Pset_preserve$address() { - return H5Pset_preserve.ADDR; - } + public static MemorySegment H5Pset_preserve$address() { return H5Pset_preserve.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_preserve(hid_t plist_id, hbool_t status) * } */ - public static int H5Pset_preserve(long plist_id, boolean status) { + public static int H5Pset_preserve(long plist_id, boolean status) + { var mh$ = H5Pset_preserve.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_preserve", plist_id, status); } return (int)mh$.invokeExact(plist_id, status); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_type_conv_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_type_conv_cb"); @@ -12001,9 +11354,7 @@ private static class H5Pset_type_conv_cb { * herr_t H5Pset_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t op, void *operate_data) * } */ - public static FunctionDescriptor H5Pset_type_conv_cb$descriptor() { - return H5Pset_type_conv_cb.DESC; - } + public static FunctionDescriptor H5Pset_type_conv_cb$descriptor() { return H5Pset_type_conv_cb.DESC; } /** * Downcall method handle for: @@ -12011,9 +11362,7 @@ private static class H5Pset_type_conv_cb { * herr_t H5Pset_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t op, void *operate_data) * } */ - public static MethodHandle H5Pset_type_conv_cb$handle() { - return H5Pset_type_conv_cb.HANDLE; - } + public static MethodHandle H5Pset_type_conv_cb$handle() { return H5Pset_type_conv_cb.HANDLE; } /** * Address for: @@ -12021,36 +11370,31 @@ private static class H5Pset_type_conv_cb { * herr_t H5Pset_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t op, void *operate_data) * } */ - public static MemorySegment H5Pset_type_conv_cb$address() { - return H5Pset_type_conv_cb.ADDR; - } + public static MemorySegment H5Pset_type_conv_cb$address() { return H5Pset_type_conv_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t op, void *operate_data) * } */ - public static int H5Pset_type_conv_cb(long dxpl_id, MemorySegment op, MemorySegment operate_data) { + public static int H5Pset_type_conv_cb(long dxpl_id, MemorySegment op, MemorySegment operate_data) + { var mh$ = H5Pset_type_conv_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_type_conv_cb", dxpl_id, op, operate_data); } return (int)mh$.invokeExact(dxpl_id, op, operate_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_vlen_mem_manager { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_vlen_mem_manager"); @@ -12060,61 +11404,60 @@ private static class H5Pset_vlen_mem_manager { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info) + * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, + * H5MM_free_t free_func, void *free_info) * } */ - public static FunctionDescriptor H5Pset_vlen_mem_manager$descriptor() { + public static FunctionDescriptor H5Pset_vlen_mem_manager$descriptor() + { return H5Pset_vlen_mem_manager.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info) + * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, + * H5MM_free_t free_func, void *free_info) * } */ - public static MethodHandle H5Pset_vlen_mem_manager$handle() { - return H5Pset_vlen_mem_manager.HANDLE; - } + public static MethodHandle H5Pset_vlen_mem_manager$handle() { return H5Pset_vlen_mem_manager.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info) + * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, + * H5MM_free_t free_func, void *free_info) * } */ - public static MemorySegment H5Pset_vlen_mem_manager$address() { - return H5Pset_vlen_mem_manager.ADDR; - } + public static MemorySegment H5Pset_vlen_mem_manager$address() { return H5Pset_vlen_mem_manager.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info) + * herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, + * H5MM_free_t free_func, void *free_info) * } */ - public static int H5Pset_vlen_mem_manager(long plist_id, MemorySegment alloc_func, MemorySegment alloc_info, MemorySegment free_func, MemorySegment free_info) { + public static int H5Pset_vlen_mem_manager(long plist_id, MemorySegment alloc_func, + MemorySegment alloc_info, MemorySegment free_func, + MemorySegment free_info) + { var mh$ = H5Pset_vlen_mem_manager.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pset_vlen_mem_manager", plist_id, alloc_func, alloc_info, free_func, free_info); + traceDowncall("H5Pset_vlen_mem_manager", plist_id, alloc_func, alloc_info, free_func, + free_info); } return (int)mh$.invokeExact(plist_id, alloc_func, alloc_info, free_func, free_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_dataset_io_hyperslab_selection { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_dataset_io_hyperslab_selection"); @@ -12124,56 +11467,65 @@ private static class H5Pset_dataset_io_hyperslab_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const + * hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static FunctionDescriptor H5Pset_dataset_io_hyperslab_selection$descriptor() { + public static FunctionDescriptor H5Pset_dataset_io_hyperslab_selection$descriptor() + { return H5Pset_dataset_io_hyperslab_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const + * hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MethodHandle H5Pset_dataset_io_hyperslab_selection$handle() { + public static MethodHandle H5Pset_dataset_io_hyperslab_selection$handle() + { return H5Pset_dataset_io_hyperslab_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const + * hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MemorySegment H5Pset_dataset_io_hyperslab_selection$address() { + public static MemorySegment H5Pset_dataset_io_hyperslab_selection$address() + { return H5Pset_dataset_io_hyperslab_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Pset_dataset_io_hyperslab_selection(hid_t plist_id, unsigned int rank, H5S_seloper_t op, const + * hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static int H5Pset_dataset_io_hyperslab_selection(long plist_id, int rank, int op, MemorySegment start, MemorySegment stride, MemorySegment count, MemorySegment block) { + public static int H5Pset_dataset_io_hyperslab_selection(long plist_id, int rank, int op, + MemorySegment start, MemorySegment stride, + MemorySegment count, MemorySegment block) + { var mh$ = H5Pset_dataset_io_hyperslab_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pset_dataset_io_hyperslab_selection", plist_id, rank, op, start, stride, count, block); + traceDowncall("H5Pset_dataset_io_hyperslab_selection", plist_id, rank, op, start, stride, + count, block); } return (int)mh$.invokeExact(plist_id, rank, op, start, stride, count, block); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_selection_io { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_selection_io"); @@ -12186,9 +11538,7 @@ private static class H5Pset_selection_io { * herr_t H5Pset_selection_io(hid_t plist_id, H5D_selection_io_mode_t selection_io_mode) * } */ - public static FunctionDescriptor H5Pset_selection_io$descriptor() { - return H5Pset_selection_io.DESC; - } + public static FunctionDescriptor H5Pset_selection_io$descriptor() { return H5Pset_selection_io.DESC; } /** * Downcall method handle for: @@ -12196,9 +11546,7 @@ private static class H5Pset_selection_io { * herr_t H5Pset_selection_io(hid_t plist_id, H5D_selection_io_mode_t selection_io_mode) * } */ - public static MethodHandle H5Pset_selection_io$handle() { - return H5Pset_selection_io.HANDLE; - } + public static MethodHandle H5Pset_selection_io$handle() { return H5Pset_selection_io.HANDLE; } /** * Address for: @@ -12206,33 +11554,30 @@ private static class H5Pset_selection_io { * herr_t H5Pset_selection_io(hid_t plist_id, H5D_selection_io_mode_t selection_io_mode) * } */ - public static MemorySegment H5Pset_selection_io$address() { - return H5Pset_selection_io.ADDR; - } + public static MemorySegment H5Pset_selection_io$address() { return H5Pset_selection_io.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_selection_io(hid_t plist_id, H5D_selection_io_mode_t selection_io_mode) * } */ - public static int H5Pset_selection_io(long plist_id, int selection_io_mode) { + public static int H5Pset_selection_io(long plist_id, int selection_io_mode) + { var mh$ = H5Pset_selection_io.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_selection_io", plist_id, selection_io_mode); } return (int)mh$.invokeExact(plist_id, selection_io_mode); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_selection_io { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_selection_io"); @@ -12245,9 +11590,7 @@ private static class H5Pget_selection_io { * herr_t H5Pget_selection_io(hid_t plist_id, H5D_selection_io_mode_t *selection_io_mode) * } */ - public static FunctionDescriptor H5Pget_selection_io$descriptor() { - return H5Pget_selection_io.DESC; - } + public static FunctionDescriptor H5Pget_selection_io$descriptor() { return H5Pget_selection_io.DESC; } /** * Downcall method handle for: @@ -12255,9 +11598,7 @@ private static class H5Pget_selection_io { * herr_t H5Pget_selection_io(hid_t plist_id, H5D_selection_io_mode_t *selection_io_mode) * } */ - public static MethodHandle H5Pget_selection_io$handle() { - return H5Pget_selection_io.HANDLE; - } + public static MethodHandle H5Pget_selection_io$handle() { return H5Pget_selection_io.HANDLE; } /** * Address for: @@ -12265,33 +11606,30 @@ private static class H5Pget_selection_io { * herr_t H5Pget_selection_io(hid_t plist_id, H5D_selection_io_mode_t *selection_io_mode) * } */ - public static MemorySegment H5Pget_selection_io$address() { - return H5Pget_selection_io.ADDR; - } + public static MemorySegment H5Pget_selection_io$address() { return H5Pget_selection_io.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_selection_io(hid_t plist_id, H5D_selection_io_mode_t *selection_io_mode) * } */ - public static int H5Pget_selection_io(long plist_id, MemorySegment selection_io_mode) { + public static int H5Pget_selection_io(long plist_id, MemorySegment selection_io_mode) + { var mh$ = H5Pget_selection_io.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_selection_io", plist_id, selection_io_mode); } return (int)mh$.invokeExact(plist_id, selection_io_mode); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_no_selection_io_cause { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_no_selection_io_cause"); @@ -12304,7 +11642,8 @@ private static class H5Pget_no_selection_io_cause { * herr_t H5Pget_no_selection_io_cause(hid_t plist_id, uint32_t *no_selection_io_cause) * } */ - public static FunctionDescriptor H5Pget_no_selection_io_cause$descriptor() { + public static FunctionDescriptor H5Pget_no_selection_io_cause$descriptor() + { return H5Pget_no_selection_io_cause.DESC; } @@ -12314,7 +11653,8 @@ private static class H5Pget_no_selection_io_cause { * herr_t H5Pget_no_selection_io_cause(hid_t plist_id, uint32_t *no_selection_io_cause) * } */ - public static MethodHandle H5Pget_no_selection_io_cause$handle() { + public static MethodHandle H5Pget_no_selection_io_cause$handle() + { return H5Pget_no_selection_io_cause.HANDLE; } @@ -12324,7 +11664,8 @@ private static class H5Pget_no_selection_io_cause { * herr_t H5Pget_no_selection_io_cause(hid_t plist_id, uint32_t *no_selection_io_cause) * } */ - public static MemorySegment H5Pget_no_selection_io_cause$address() { + public static MemorySegment H5Pget_no_selection_io_cause$address() + { return H5Pget_no_selection_io_cause.ADDR; } @@ -12333,24 +11674,23 @@ private static class H5Pget_no_selection_io_cause { * herr_t H5Pget_no_selection_io_cause(hid_t plist_id, uint32_t *no_selection_io_cause) * } */ - public static int H5Pget_no_selection_io_cause(long plist_id, MemorySegment no_selection_io_cause) { + public static int H5Pget_no_selection_io_cause(long plist_id, MemorySegment no_selection_io_cause) + { var mh$ = H5Pget_no_selection_io_cause.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_no_selection_io_cause", plist_id, no_selection_io_cause); } return (int)mh$.invokeExact(plist_id, no_selection_io_cause); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_actual_selection_io_mode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_actual_selection_io_mode"); @@ -12363,7 +11703,8 @@ private static class H5Pget_actual_selection_io_mode { * herr_t H5Pget_actual_selection_io_mode(hid_t plist_id, uint32_t *actual_selection_io_mode) * } */ - public static FunctionDescriptor H5Pget_actual_selection_io_mode$descriptor() { + public static FunctionDescriptor H5Pget_actual_selection_io_mode$descriptor() + { return H5Pget_actual_selection_io_mode.DESC; } @@ -12373,7 +11714,8 @@ private static class H5Pget_actual_selection_io_mode { * herr_t H5Pget_actual_selection_io_mode(hid_t plist_id, uint32_t *actual_selection_io_mode) * } */ - public static MethodHandle H5Pget_actual_selection_io_mode$handle() { + public static MethodHandle H5Pget_actual_selection_io_mode$handle() + { return H5Pget_actual_selection_io_mode.HANDLE; } @@ -12383,7 +11725,8 @@ private static class H5Pget_actual_selection_io_mode { * herr_t H5Pget_actual_selection_io_mode(hid_t plist_id, uint32_t *actual_selection_io_mode) * } */ - public static MemorySegment H5Pget_actual_selection_io_mode$address() { + public static MemorySegment H5Pget_actual_selection_io_mode$address() + { return H5Pget_actual_selection_io_mode.ADDR; } @@ -12392,24 +11735,23 @@ private static class H5Pget_actual_selection_io_mode { * herr_t H5Pget_actual_selection_io_mode(hid_t plist_id, uint32_t *actual_selection_io_mode) * } */ - public static int H5Pget_actual_selection_io_mode(long plist_id, MemorySegment actual_selection_io_mode) { + public static int H5Pget_actual_selection_io_mode(long plist_id, MemorySegment actual_selection_io_mode) + { var mh$ = H5Pget_actual_selection_io_mode.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_actual_selection_io_mode", plist_id, actual_selection_io_mode); } return (int)mh$.invokeExact(plist_id, actual_selection_io_mode); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_modify_write_buf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_modify_write_buf"); @@ -12422,7 +11764,8 @@ private static class H5Pset_modify_write_buf { * herr_t H5Pset_modify_write_buf(hid_t plist_id, hbool_t modify_write_buf) * } */ - public static FunctionDescriptor H5Pset_modify_write_buf$descriptor() { + public static FunctionDescriptor H5Pset_modify_write_buf$descriptor() + { return H5Pset_modify_write_buf.DESC; } @@ -12432,9 +11775,7 @@ private static class H5Pset_modify_write_buf { * herr_t H5Pset_modify_write_buf(hid_t plist_id, hbool_t modify_write_buf) * } */ - public static MethodHandle H5Pset_modify_write_buf$handle() { - return H5Pset_modify_write_buf.HANDLE; - } + public static MethodHandle H5Pset_modify_write_buf$handle() { return H5Pset_modify_write_buf.HANDLE; } /** * Address for: @@ -12442,33 +11783,30 @@ private static class H5Pset_modify_write_buf { * herr_t H5Pset_modify_write_buf(hid_t plist_id, hbool_t modify_write_buf) * } */ - public static MemorySegment H5Pset_modify_write_buf$address() { - return H5Pset_modify_write_buf.ADDR; - } + public static MemorySegment H5Pset_modify_write_buf$address() { return H5Pset_modify_write_buf.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_modify_write_buf(hid_t plist_id, hbool_t modify_write_buf) * } */ - public static int H5Pset_modify_write_buf(long plist_id, boolean modify_write_buf) { + public static int H5Pset_modify_write_buf(long plist_id, boolean modify_write_buf) + { var mh$ = H5Pset_modify_write_buf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_modify_write_buf", plist_id, modify_write_buf); } return (int)mh$.invokeExact(plist_id, modify_write_buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_modify_write_buf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_modify_write_buf"); @@ -12481,7 +11819,8 @@ private static class H5Pget_modify_write_buf { * herr_t H5Pget_modify_write_buf(hid_t plist_id, hbool_t *modify_write_buf) * } */ - public static FunctionDescriptor H5Pget_modify_write_buf$descriptor() { + public static FunctionDescriptor H5Pget_modify_write_buf$descriptor() + { return H5Pget_modify_write_buf.DESC; } @@ -12491,9 +11830,7 @@ private static class H5Pget_modify_write_buf { * herr_t H5Pget_modify_write_buf(hid_t plist_id, hbool_t *modify_write_buf) * } */ - public static MethodHandle H5Pget_modify_write_buf$handle() { - return H5Pget_modify_write_buf.HANDLE; - } + public static MethodHandle H5Pget_modify_write_buf$handle() { return H5Pget_modify_write_buf.HANDLE; } /** * Address for: @@ -12501,33 +11838,30 @@ private static class H5Pget_modify_write_buf { * herr_t H5Pget_modify_write_buf(hid_t plist_id, hbool_t *modify_write_buf) * } */ - public static MemorySegment H5Pget_modify_write_buf$address() { - return H5Pget_modify_write_buf.ADDR; - } + public static MemorySegment H5Pget_modify_write_buf$address() { return H5Pget_modify_write_buf.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_modify_write_buf(hid_t plist_id, hbool_t *modify_write_buf) * } */ - public static int H5Pget_modify_write_buf(long plist_id, MemorySegment modify_write_buf) { + public static int H5Pget_modify_write_buf(long plist_id, MemorySegment modify_write_buf) + { var mh$ = H5Pget_modify_write_buf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_modify_write_buf", plist_id, modify_write_buf); } return (int)mh$.invokeExact(plist_id, modify_write_buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_create_intermediate_group { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_create_intermediate_group"); @@ -12540,7 +11874,8 @@ private static class H5Pget_create_intermediate_group { * herr_t H5Pget_create_intermediate_group(hid_t plist_id, unsigned int *crt_intmd) * } */ - public static FunctionDescriptor H5Pget_create_intermediate_group$descriptor() { + public static FunctionDescriptor H5Pget_create_intermediate_group$descriptor() + { return H5Pget_create_intermediate_group.DESC; } @@ -12550,7 +11885,8 @@ private static class H5Pget_create_intermediate_group { * herr_t H5Pget_create_intermediate_group(hid_t plist_id, unsigned int *crt_intmd) * } */ - public static MethodHandle H5Pget_create_intermediate_group$handle() { + public static MethodHandle H5Pget_create_intermediate_group$handle() + { return H5Pget_create_intermediate_group.HANDLE; } @@ -12560,7 +11896,8 @@ private static class H5Pget_create_intermediate_group { * herr_t H5Pget_create_intermediate_group(hid_t plist_id, unsigned int *crt_intmd) * } */ - public static MemorySegment H5Pget_create_intermediate_group$address() { + public static MemorySegment H5Pget_create_intermediate_group$address() + { return H5Pget_create_intermediate_group.ADDR; } @@ -12569,24 +11906,23 @@ private static class H5Pget_create_intermediate_group { * herr_t H5Pget_create_intermediate_group(hid_t plist_id, unsigned int *crt_intmd) * } */ - public static int H5Pget_create_intermediate_group(long plist_id, MemorySegment crt_intmd) { + public static int H5Pget_create_intermediate_group(long plist_id, MemorySegment crt_intmd) + { var mh$ = H5Pget_create_intermediate_group.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_create_intermediate_group", plist_id, crt_intmd); } return (int)mh$.invokeExact(plist_id, crt_intmd); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_create_intermediate_group { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_create_intermediate_group"); @@ -12599,7 +11935,8 @@ private static class H5Pset_create_intermediate_group { * herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned int crt_intmd) * } */ - public static FunctionDescriptor H5Pset_create_intermediate_group$descriptor() { + public static FunctionDescriptor H5Pset_create_intermediate_group$descriptor() + { return H5Pset_create_intermediate_group.DESC; } @@ -12609,7 +11946,8 @@ private static class H5Pset_create_intermediate_group { * herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned int crt_intmd) * } */ - public static MethodHandle H5Pset_create_intermediate_group$handle() { + public static MethodHandle H5Pset_create_intermediate_group$handle() + { return H5Pset_create_intermediate_group.HANDLE; } @@ -12619,7 +11957,8 @@ private static class H5Pset_create_intermediate_group { * herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned int crt_intmd) * } */ - public static MemorySegment H5Pset_create_intermediate_group$address() { + public static MemorySegment H5Pset_create_intermediate_group$address() + { return H5Pset_create_intermediate_group.ADDR; } @@ -12628,25 +11967,23 @@ private static class H5Pset_create_intermediate_group { * herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned int crt_intmd) * } */ - public static int H5Pset_create_intermediate_group(long plist_id, int crt_intmd) { + public static int H5Pset_create_intermediate_group(long plist_id, int crt_intmd) + { var mh$ = H5Pset_create_intermediate_group.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_create_intermediate_group", plist_id, crt_intmd); } return (int)mh$.invokeExact(plist_id, crt_intmd); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_est_link_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_est_link_info"); @@ -12659,9 +11996,7 @@ private static class H5Pget_est_link_info { * herr_t H5Pget_est_link_info(hid_t plist_id, unsigned int *est_num_entries, unsigned int *est_name_len) * } */ - public static FunctionDescriptor H5Pget_est_link_info$descriptor() { - return H5Pget_est_link_info.DESC; - } + public static FunctionDescriptor H5Pget_est_link_info$descriptor() { return H5Pget_est_link_info.DESC; } /** * Downcall method handle for: @@ -12669,9 +12004,7 @@ private static class H5Pget_est_link_info { * herr_t H5Pget_est_link_info(hid_t plist_id, unsigned int *est_num_entries, unsigned int *est_name_len) * } */ - public static MethodHandle H5Pget_est_link_info$handle() { - return H5Pget_est_link_info.HANDLE; - } + public static MethodHandle H5Pget_est_link_info$handle() { return H5Pget_est_link_info.HANDLE; } /** * Address for: @@ -12679,33 +12012,31 @@ private static class H5Pget_est_link_info { * herr_t H5Pget_est_link_info(hid_t plist_id, unsigned int *est_num_entries, unsigned int *est_name_len) * } */ - public static MemorySegment H5Pget_est_link_info$address() { - return H5Pget_est_link_info.ADDR; - } + public static MemorySegment H5Pget_est_link_info$address() { return H5Pget_est_link_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_est_link_info(hid_t plist_id, unsigned int *est_num_entries, unsigned int *est_name_len) * } */ - public static int H5Pget_est_link_info(long plist_id, MemorySegment est_num_entries, MemorySegment est_name_len) { + public static int H5Pget_est_link_info(long plist_id, MemorySegment est_num_entries, + MemorySegment est_name_len) + { var mh$ = H5Pget_est_link_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_est_link_info", plist_id, est_num_entries, est_name_len); } return (int)mh$.invokeExact(plist_id, est_num_entries, est_name_len); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_link_creation_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_link_creation_order"); @@ -12718,7 +12049,8 @@ private static class H5Pget_link_creation_order { * herr_t H5Pget_link_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static FunctionDescriptor H5Pget_link_creation_order$descriptor() { + public static FunctionDescriptor H5Pget_link_creation_order$descriptor() + { return H5Pget_link_creation_order.DESC; } @@ -12728,7 +12060,8 @@ private static class H5Pget_link_creation_order { * herr_t H5Pget_link_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static MethodHandle H5Pget_link_creation_order$handle() { + public static MethodHandle H5Pget_link_creation_order$handle() + { return H5Pget_link_creation_order.HANDLE; } @@ -12738,7 +12071,8 @@ private static class H5Pget_link_creation_order { * herr_t H5Pget_link_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static MemorySegment H5Pget_link_creation_order$address() { + public static MemorySegment H5Pget_link_creation_order$address() + { return H5Pget_link_creation_order.ADDR; } @@ -12747,25 +12081,23 @@ private static class H5Pget_link_creation_order { * herr_t H5Pget_link_creation_order(hid_t plist_id, unsigned int *crt_order_flags) * } */ - public static int H5Pget_link_creation_order(long plist_id, MemorySegment crt_order_flags) { + public static int H5Pget_link_creation_order(long plist_id, MemorySegment crt_order_flags) + { var mh$ = H5Pget_link_creation_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_link_creation_order", plist_id, crt_order_flags); } return (int)mh$.invokeExact(plist_id, crt_order_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_link_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_link_phase_change"); @@ -12778,7 +12110,8 @@ private static class H5Pget_link_phase_change { * herr_t H5Pget_link_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static FunctionDescriptor H5Pget_link_phase_change$descriptor() { + public static FunctionDescriptor H5Pget_link_phase_change$descriptor() + { return H5Pget_link_phase_change.DESC; } @@ -12788,9 +12121,7 @@ private static class H5Pget_link_phase_change { * herr_t H5Pget_link_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static MethodHandle H5Pget_link_phase_change$handle() { - return H5Pget_link_phase_change.HANDLE; - } + public static MethodHandle H5Pget_link_phase_change$handle() { return H5Pget_link_phase_change.HANDLE; } /** * Address for: @@ -12798,33 +12129,31 @@ private static class H5Pget_link_phase_change { * herr_t H5Pget_link_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static MemorySegment H5Pget_link_phase_change$address() { - return H5Pget_link_phase_change.ADDR; - } + public static MemorySegment H5Pget_link_phase_change$address() { return H5Pget_link_phase_change.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_link_phase_change(hid_t plist_id, unsigned int *max_compact, unsigned int *min_dense) * } */ - public static int H5Pget_link_phase_change(long plist_id, MemorySegment max_compact, MemorySegment min_dense) { + public static int H5Pget_link_phase_change(long plist_id, MemorySegment max_compact, + MemorySegment min_dense) + { var mh$ = H5Pget_link_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_link_phase_change", plist_id, max_compact, min_dense); } return (int)mh$.invokeExact(plist_id, max_compact, min_dense); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_local_heap_size_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_local_heap_size_hint"); @@ -12837,7 +12166,8 @@ private static class H5Pget_local_heap_size_hint { * herr_t H5Pget_local_heap_size_hint(hid_t plist_id, size_t *size_hint) * } */ - public static FunctionDescriptor H5Pget_local_heap_size_hint$descriptor() { + public static FunctionDescriptor H5Pget_local_heap_size_hint$descriptor() + { return H5Pget_local_heap_size_hint.DESC; } @@ -12847,7 +12177,8 @@ private static class H5Pget_local_heap_size_hint { * herr_t H5Pget_local_heap_size_hint(hid_t plist_id, size_t *size_hint) * } */ - public static MethodHandle H5Pget_local_heap_size_hint$handle() { + public static MethodHandle H5Pget_local_heap_size_hint$handle() + { return H5Pget_local_heap_size_hint.HANDLE; } @@ -12857,7 +12188,8 @@ private static class H5Pget_local_heap_size_hint { * herr_t H5Pget_local_heap_size_hint(hid_t plist_id, size_t *size_hint) * } */ - public static MemorySegment H5Pget_local_heap_size_hint$address() { + public static MemorySegment H5Pget_local_heap_size_hint$address() + { return H5Pget_local_heap_size_hint.ADDR; } @@ -12866,25 +12198,23 @@ private static class H5Pget_local_heap_size_hint { * herr_t H5Pget_local_heap_size_hint(hid_t plist_id, size_t *size_hint) * } */ - public static int H5Pget_local_heap_size_hint(long plist_id, MemorySegment size_hint) { + public static int H5Pget_local_heap_size_hint(long plist_id, MemorySegment size_hint) + { var mh$ = H5Pget_local_heap_size_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_local_heap_size_hint", plist_id, size_hint); } return (int)mh$.invokeExact(plist_id, size_hint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_est_link_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_est_link_info"); @@ -12897,9 +12227,7 @@ private static class H5Pset_est_link_info { * herr_t H5Pset_est_link_info(hid_t plist_id, unsigned int est_num_entries, unsigned int est_name_len) * } */ - public static FunctionDescriptor H5Pset_est_link_info$descriptor() { - return H5Pset_est_link_info.DESC; - } + public static FunctionDescriptor H5Pset_est_link_info$descriptor() { return H5Pset_est_link_info.DESC; } /** * Downcall method handle for: @@ -12907,9 +12235,7 @@ private static class H5Pset_est_link_info { * herr_t H5Pset_est_link_info(hid_t plist_id, unsigned int est_num_entries, unsigned int est_name_len) * } */ - public static MethodHandle H5Pset_est_link_info$handle() { - return H5Pset_est_link_info.HANDLE; - } + public static MethodHandle H5Pset_est_link_info$handle() { return H5Pset_est_link_info.HANDLE; } /** * Address for: @@ -12917,33 +12243,30 @@ private static class H5Pset_est_link_info { * herr_t H5Pset_est_link_info(hid_t plist_id, unsigned int est_num_entries, unsigned int est_name_len) * } */ - public static MemorySegment H5Pset_est_link_info$address() { - return H5Pset_est_link_info.ADDR; - } + public static MemorySegment H5Pset_est_link_info$address() { return H5Pset_est_link_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_est_link_info(hid_t plist_id, unsigned int est_num_entries, unsigned int est_name_len) * } */ - public static int H5Pset_est_link_info(long plist_id, int est_num_entries, int est_name_len) { + public static int H5Pset_est_link_info(long plist_id, int est_num_entries, int est_name_len) + { var mh$ = H5Pset_est_link_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_est_link_info", plist_id, est_num_entries, est_name_len); } return (int)mh$.invokeExact(plist_id, est_num_entries, est_name_len); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_link_creation_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_link_creation_order"); @@ -12956,7 +12279,8 @@ private static class H5Pset_link_creation_order { * herr_t H5Pset_link_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static FunctionDescriptor H5Pset_link_creation_order$descriptor() { + public static FunctionDescriptor H5Pset_link_creation_order$descriptor() + { return H5Pset_link_creation_order.DESC; } @@ -12966,7 +12290,8 @@ private static class H5Pset_link_creation_order { * herr_t H5Pset_link_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static MethodHandle H5Pset_link_creation_order$handle() { + public static MethodHandle H5Pset_link_creation_order$handle() + { return H5Pset_link_creation_order.HANDLE; } @@ -12976,7 +12301,8 @@ private static class H5Pset_link_creation_order { * herr_t H5Pset_link_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static MemorySegment H5Pset_link_creation_order$address() { + public static MemorySegment H5Pset_link_creation_order$address() + { return H5Pset_link_creation_order.ADDR; } @@ -12985,25 +12311,23 @@ private static class H5Pset_link_creation_order { * herr_t H5Pset_link_creation_order(hid_t plist_id, unsigned int crt_order_flags) * } */ - public static int H5Pset_link_creation_order(long plist_id, int crt_order_flags) { + public static int H5Pset_link_creation_order(long plist_id, int crt_order_flags) + { var mh$ = H5Pset_link_creation_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_link_creation_order", plist_id, crt_order_flags); } return (int)mh$.invokeExact(plist_id, crt_order_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_link_phase_change { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_link_phase_change"); @@ -13016,7 +12340,8 @@ private static class H5Pset_link_phase_change { * herr_t H5Pset_link_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static FunctionDescriptor H5Pset_link_phase_change$descriptor() { + public static FunctionDescriptor H5Pset_link_phase_change$descriptor() + { return H5Pset_link_phase_change.DESC; } @@ -13026,9 +12351,7 @@ private static class H5Pset_link_phase_change { * herr_t H5Pset_link_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static MethodHandle H5Pset_link_phase_change$handle() { - return H5Pset_link_phase_change.HANDLE; - } + public static MethodHandle H5Pset_link_phase_change$handle() { return H5Pset_link_phase_change.HANDLE; } /** * Address for: @@ -13036,33 +12359,30 @@ private static class H5Pset_link_phase_change { * herr_t H5Pset_link_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static MemorySegment H5Pset_link_phase_change$address() { - return H5Pset_link_phase_change.ADDR; - } + public static MemorySegment H5Pset_link_phase_change$address() { return H5Pset_link_phase_change.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_link_phase_change(hid_t plist_id, unsigned int max_compact, unsigned int min_dense) * } */ - public static int H5Pset_link_phase_change(long plist_id, int max_compact, int min_dense) { + public static int H5Pset_link_phase_change(long plist_id, int max_compact, int min_dense) + { var mh$ = H5Pset_link_phase_change.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_link_phase_change", plist_id, max_compact, min_dense); } return (int)mh$.invokeExact(plist_id, max_compact, min_dense); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_local_heap_size_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_local_heap_size_hint"); @@ -13075,7 +12395,8 @@ private static class H5Pset_local_heap_size_hint { * herr_t H5Pset_local_heap_size_hint(hid_t plist_id, size_t size_hint) * } */ - public static FunctionDescriptor H5Pset_local_heap_size_hint$descriptor() { + public static FunctionDescriptor H5Pset_local_heap_size_hint$descriptor() + { return H5Pset_local_heap_size_hint.DESC; } @@ -13085,7 +12406,8 @@ private static class H5Pset_local_heap_size_hint { * herr_t H5Pset_local_heap_size_hint(hid_t plist_id, size_t size_hint) * } */ - public static MethodHandle H5Pset_local_heap_size_hint$handle() { + public static MethodHandle H5Pset_local_heap_size_hint$handle() + { return H5Pset_local_heap_size_hint.HANDLE; } @@ -13095,7 +12417,8 @@ private static class H5Pset_local_heap_size_hint { * herr_t H5Pset_local_heap_size_hint(hid_t plist_id, size_t size_hint) * } */ - public static MemorySegment H5Pset_local_heap_size_hint$address() { + public static MemorySegment H5Pset_local_heap_size_hint$address() + { return H5Pset_local_heap_size_hint.ADDR; } @@ -13104,24 +12427,23 @@ private static class H5Pset_local_heap_size_hint { * herr_t H5Pset_local_heap_size_hint(hid_t plist_id, size_t size_hint) * } */ - public static int H5Pset_local_heap_size_hint(long plist_id, long size_hint) { + public static int H5Pset_local_heap_size_hint(long plist_id, long size_hint) + { var mh$ = H5Pset_local_heap_size_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_local_heap_size_hint", plist_id, size_hint); } return (int)mh$.invokeExact(plist_id, size_hint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_char_encoding { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_char_encoding"); @@ -13134,9 +12456,7 @@ private static class H5Pget_char_encoding { * herr_t H5Pget_char_encoding(hid_t plist_id, H5T_cset_t *encoding) * } */ - public static FunctionDescriptor H5Pget_char_encoding$descriptor() { - return H5Pget_char_encoding.DESC; - } + public static FunctionDescriptor H5Pget_char_encoding$descriptor() { return H5Pget_char_encoding.DESC; } /** * Downcall method handle for: @@ -13144,9 +12464,7 @@ private static class H5Pget_char_encoding { * herr_t H5Pget_char_encoding(hid_t plist_id, H5T_cset_t *encoding) * } */ - public static MethodHandle H5Pget_char_encoding$handle() { - return H5Pget_char_encoding.HANDLE; - } + public static MethodHandle H5Pget_char_encoding$handle() { return H5Pget_char_encoding.HANDLE; } /** * Address for: @@ -13154,33 +12472,30 @@ private static class H5Pget_char_encoding { * herr_t H5Pget_char_encoding(hid_t plist_id, H5T_cset_t *encoding) * } */ - public static MemorySegment H5Pget_char_encoding$address() { - return H5Pget_char_encoding.ADDR; - } + public static MemorySegment H5Pget_char_encoding$address() { return H5Pget_char_encoding.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_char_encoding(hid_t plist_id, H5T_cset_t *encoding) * } */ - public static int H5Pget_char_encoding(long plist_id, MemorySegment encoding) { + public static int H5Pget_char_encoding(long plist_id, MemorySegment encoding) + { var mh$ = H5Pget_char_encoding.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_char_encoding", plist_id, encoding); } return (int)mh$.invokeExact(plist_id, encoding); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_char_encoding { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_char_encoding"); @@ -13193,9 +12508,7 @@ private static class H5Pset_char_encoding { * herr_t H5Pset_char_encoding(hid_t plist_id, H5T_cset_t encoding) * } */ - public static FunctionDescriptor H5Pset_char_encoding$descriptor() { - return H5Pset_char_encoding.DESC; - } + public static FunctionDescriptor H5Pset_char_encoding$descriptor() { return H5Pset_char_encoding.DESC; } /** * Downcall method handle for: @@ -13203,9 +12516,7 @@ private static class H5Pset_char_encoding { * herr_t H5Pset_char_encoding(hid_t plist_id, H5T_cset_t encoding) * } */ - public static MethodHandle H5Pset_char_encoding$handle() { - return H5Pset_char_encoding.HANDLE; - } + public static MethodHandle H5Pset_char_encoding$handle() { return H5Pset_char_encoding.HANDLE; } /** * Address for: @@ -13213,33 +12524,30 @@ private static class H5Pset_char_encoding { * herr_t H5Pset_char_encoding(hid_t plist_id, H5T_cset_t encoding) * } */ - public static MemorySegment H5Pset_char_encoding$address() { - return H5Pset_char_encoding.ADDR; - } + public static MemorySegment H5Pset_char_encoding$address() { return H5Pset_char_encoding.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_char_encoding(hid_t plist_id, H5T_cset_t encoding) * } */ - public static int H5Pset_char_encoding(long plist_id, int encoding) { + public static int H5Pset_char_encoding(long plist_id, int encoding) + { var mh$ = H5Pset_char_encoding.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_char_encoding", plist_id, encoding); } return (int)mh$.invokeExact(plist_id, encoding); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_elink_acc_flags { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_elink_acc_flags"); @@ -13252,7 +12560,8 @@ private static class H5Pget_elink_acc_flags { * herr_t H5Pget_elink_acc_flags(hid_t lapl_id, unsigned int *flags) * } */ - public static FunctionDescriptor H5Pget_elink_acc_flags$descriptor() { + public static FunctionDescriptor H5Pget_elink_acc_flags$descriptor() + { return H5Pget_elink_acc_flags.DESC; } @@ -13262,9 +12571,7 @@ private static class H5Pget_elink_acc_flags { * herr_t H5Pget_elink_acc_flags(hid_t lapl_id, unsigned int *flags) * } */ - public static MethodHandle H5Pget_elink_acc_flags$handle() { - return H5Pget_elink_acc_flags.HANDLE; - } + public static MethodHandle H5Pget_elink_acc_flags$handle() { return H5Pget_elink_acc_flags.HANDLE; } /** * Address for: @@ -13272,34 +12579,30 @@ private static class H5Pget_elink_acc_flags { * herr_t H5Pget_elink_acc_flags(hid_t lapl_id, unsigned int *flags) * } */ - public static MemorySegment H5Pget_elink_acc_flags$address() { - return H5Pget_elink_acc_flags.ADDR; - } + public static MemorySegment H5Pget_elink_acc_flags$address() { return H5Pget_elink_acc_flags.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_elink_acc_flags(hid_t lapl_id, unsigned int *flags) * } */ - public static int H5Pget_elink_acc_flags(long lapl_id, MemorySegment flags) { + public static int H5Pget_elink_acc_flags(long lapl_id, MemorySegment flags) + { var mh$ = H5Pget_elink_acc_flags.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_elink_acc_flags", lapl_id, flags); } return (int)mh$.invokeExact(lapl_id, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_elink_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_elink_cb"); @@ -13312,9 +12615,7 @@ private static class H5Pget_elink_cb { * herr_t H5Pget_elink_cb(hid_t lapl_id, H5L_elink_traverse_t *func, void **op_data) * } */ - public static FunctionDescriptor H5Pget_elink_cb$descriptor() { - return H5Pget_elink_cb.DESC; - } + public static FunctionDescriptor H5Pget_elink_cb$descriptor() { return H5Pget_elink_cb.DESC; } /** * Downcall method handle for: @@ -13322,9 +12623,7 @@ private static class H5Pget_elink_cb { * herr_t H5Pget_elink_cb(hid_t lapl_id, H5L_elink_traverse_t *func, void **op_data) * } */ - public static MethodHandle H5Pget_elink_cb$handle() { - return H5Pget_elink_cb.HANDLE; - } + public static MethodHandle H5Pget_elink_cb$handle() { return H5Pget_elink_cb.HANDLE; } /** * Address for: @@ -13332,32 +12631,29 @@ private static class H5Pget_elink_cb { * herr_t H5Pget_elink_cb(hid_t lapl_id, H5L_elink_traverse_t *func, void **op_data) * } */ - public static MemorySegment H5Pget_elink_cb$address() { - return H5Pget_elink_cb.ADDR; - } + public static MemorySegment H5Pget_elink_cb$address() { return H5Pget_elink_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_elink_cb(hid_t lapl_id, H5L_elink_traverse_t *func, void **op_data) * } */ - public static int H5Pget_elink_cb(long lapl_id, MemorySegment func, MemorySegment op_data) { + public static int H5Pget_elink_cb(long lapl_id, MemorySegment func, MemorySegment op_data) + { var mh$ = H5Pget_elink_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_elink_cb", lapl_id, func, op_data); } return (int)mh$.invokeExact(lapl_id, func, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_elink_fapl { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_elink_fapl"); @@ -13370,9 +12666,7 @@ private static class H5Pget_elink_fapl { * hid_t H5Pget_elink_fapl(hid_t lapl_id) * } */ - public static FunctionDescriptor H5Pget_elink_fapl$descriptor() { - return H5Pget_elink_fapl.DESC; - } + public static FunctionDescriptor H5Pget_elink_fapl$descriptor() { return H5Pget_elink_fapl.DESC; } /** * Downcall method handle for: @@ -13380,9 +12674,7 @@ private static class H5Pget_elink_fapl { * hid_t H5Pget_elink_fapl(hid_t lapl_id) * } */ - public static MethodHandle H5Pget_elink_fapl$handle() { - return H5Pget_elink_fapl.HANDLE; - } + public static MethodHandle H5Pget_elink_fapl$handle() { return H5Pget_elink_fapl.HANDLE; } /** * Address for: @@ -13390,34 +12682,30 @@ private static class H5Pget_elink_fapl { * hid_t H5Pget_elink_fapl(hid_t lapl_id) * } */ - public static MemorySegment H5Pget_elink_fapl$address() { - return H5Pget_elink_fapl.ADDR; - } + public static MemorySegment H5Pget_elink_fapl$address() { return H5Pget_elink_fapl.ADDR; } /** * {@snippet lang=c : * hid_t H5Pget_elink_fapl(hid_t lapl_id) * } */ - public static long H5Pget_elink_fapl(long lapl_id) { + public static long H5Pget_elink_fapl(long lapl_id) + { var mh$ = H5Pget_elink_fapl.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_elink_fapl", lapl_id); } return (long)mh$.invokeExact(lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_elink_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_elink_prefix"); @@ -13430,9 +12718,7 @@ private static class H5Pget_elink_prefix { * ssize_t H5Pget_elink_prefix(hid_t plist_id, char *prefix, size_t size) * } */ - public static FunctionDescriptor H5Pget_elink_prefix$descriptor() { - return H5Pget_elink_prefix.DESC; - } + public static FunctionDescriptor H5Pget_elink_prefix$descriptor() { return H5Pget_elink_prefix.DESC; } /** * Downcall method handle for: @@ -13440,9 +12726,7 @@ private static class H5Pget_elink_prefix { * ssize_t H5Pget_elink_prefix(hid_t plist_id, char *prefix, size_t size) * } */ - public static MethodHandle H5Pget_elink_prefix$handle() { - return H5Pget_elink_prefix.HANDLE; - } + public static MethodHandle H5Pget_elink_prefix$handle() { return H5Pget_elink_prefix.HANDLE; } /** * Address for: @@ -13450,33 +12734,30 @@ private static class H5Pget_elink_prefix { * ssize_t H5Pget_elink_prefix(hid_t plist_id, char *prefix, size_t size) * } */ - public static MemorySegment H5Pget_elink_prefix$address() { - return H5Pget_elink_prefix.ADDR; - } + public static MemorySegment H5Pget_elink_prefix$address() { return H5Pget_elink_prefix.ADDR; } /** * {@snippet lang=c : * ssize_t H5Pget_elink_prefix(hid_t plist_id, char *prefix, size_t size) * } */ - public static long H5Pget_elink_prefix(long plist_id, MemorySegment prefix, long size) { + public static long H5Pget_elink_prefix(long plist_id, MemorySegment prefix, long size) + { var mh$ = H5Pget_elink_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_elink_prefix", plist_id, prefix, size); } return (long)mh$.invokeExact(plist_id, prefix, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_nlinks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_nlinks"); @@ -13489,9 +12770,7 @@ private static class H5Pget_nlinks { * herr_t H5Pget_nlinks(hid_t plist_id, size_t *nlinks) * } */ - public static FunctionDescriptor H5Pget_nlinks$descriptor() { - return H5Pget_nlinks.DESC; - } + public static FunctionDescriptor H5Pget_nlinks$descriptor() { return H5Pget_nlinks.DESC; } /** * Downcall method handle for: @@ -13499,9 +12778,7 @@ private static class H5Pget_nlinks { * herr_t H5Pget_nlinks(hid_t plist_id, size_t *nlinks) * } */ - public static MethodHandle H5Pget_nlinks$handle() { - return H5Pget_nlinks.HANDLE; - } + public static MethodHandle H5Pget_nlinks$handle() { return H5Pget_nlinks.HANDLE; } /** * Address for: @@ -13509,33 +12786,30 @@ private static class H5Pget_nlinks { * herr_t H5Pget_nlinks(hid_t plist_id, size_t *nlinks) * } */ - public static MemorySegment H5Pget_nlinks$address() { - return H5Pget_nlinks.ADDR; - } + public static MemorySegment H5Pget_nlinks$address() { return H5Pget_nlinks.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_nlinks(hid_t plist_id, size_t *nlinks) * } */ - public static int H5Pget_nlinks(long plist_id, MemorySegment nlinks) { + public static int H5Pget_nlinks(long plist_id, MemorySegment nlinks) + { var mh$ = H5Pget_nlinks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_nlinks", plist_id, nlinks); } return (int)mh$.invokeExact(plist_id, nlinks); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_elink_acc_flags { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_elink_acc_flags"); @@ -13548,7 +12822,8 @@ private static class H5Pset_elink_acc_flags { * herr_t H5Pset_elink_acc_flags(hid_t lapl_id, unsigned int flags) * } */ - public static FunctionDescriptor H5Pset_elink_acc_flags$descriptor() { + public static FunctionDescriptor H5Pset_elink_acc_flags$descriptor() + { return H5Pset_elink_acc_flags.DESC; } @@ -13558,9 +12833,7 @@ private static class H5Pset_elink_acc_flags { * herr_t H5Pset_elink_acc_flags(hid_t lapl_id, unsigned int flags) * } */ - public static MethodHandle H5Pset_elink_acc_flags$handle() { - return H5Pset_elink_acc_flags.HANDLE; - } + public static MethodHandle H5Pset_elink_acc_flags$handle() { return H5Pset_elink_acc_flags.HANDLE; } /** * Address for: @@ -13568,34 +12841,30 @@ private static class H5Pset_elink_acc_flags { * herr_t H5Pset_elink_acc_flags(hid_t lapl_id, unsigned int flags) * } */ - public static MemorySegment H5Pset_elink_acc_flags$address() { - return H5Pset_elink_acc_flags.ADDR; - } + public static MemorySegment H5Pset_elink_acc_flags$address() { return H5Pset_elink_acc_flags.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_elink_acc_flags(hid_t lapl_id, unsigned int flags) * } */ - public static int H5Pset_elink_acc_flags(long lapl_id, int flags) { + public static int H5Pset_elink_acc_flags(long lapl_id, int flags) + { var mh$ = H5Pset_elink_acc_flags.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_elink_acc_flags", lapl_id, flags); } return (int)mh$.invokeExact(lapl_id, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_elink_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_elink_cb"); @@ -13608,9 +12877,7 @@ private static class H5Pset_elink_cb { * herr_t H5Pset_elink_cb(hid_t lapl_id, H5L_elink_traverse_t func, void *op_data) * } */ - public static FunctionDescriptor H5Pset_elink_cb$descriptor() { - return H5Pset_elink_cb.DESC; - } + public static FunctionDescriptor H5Pset_elink_cb$descriptor() { return H5Pset_elink_cb.DESC; } /** * Downcall method handle for: @@ -13618,9 +12885,7 @@ private static class H5Pset_elink_cb { * herr_t H5Pset_elink_cb(hid_t lapl_id, H5L_elink_traverse_t func, void *op_data) * } */ - public static MethodHandle H5Pset_elink_cb$handle() { - return H5Pset_elink_cb.HANDLE; - } + public static MethodHandle H5Pset_elink_cb$handle() { return H5Pset_elink_cb.HANDLE; } /** * Address for: @@ -13628,33 +12893,30 @@ private static class H5Pset_elink_cb { * herr_t H5Pset_elink_cb(hid_t lapl_id, H5L_elink_traverse_t func, void *op_data) * } */ - public static MemorySegment H5Pset_elink_cb$address() { - return H5Pset_elink_cb.ADDR; - } + public static MemorySegment H5Pset_elink_cb$address() { return H5Pset_elink_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_elink_cb(hid_t lapl_id, H5L_elink_traverse_t func, void *op_data) * } */ - public static int H5Pset_elink_cb(long lapl_id, MemorySegment func, MemorySegment op_data) { + public static int H5Pset_elink_cb(long lapl_id, MemorySegment func, MemorySegment op_data) + { var mh$ = H5Pset_elink_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_elink_cb", lapl_id, func, op_data); } return (int)mh$.invokeExact(lapl_id, func, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_elink_fapl { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_elink_fapl"); @@ -13667,9 +12929,7 @@ private static class H5Pset_elink_fapl { * herr_t H5Pset_elink_fapl(hid_t lapl_id, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Pset_elink_fapl$descriptor() { - return H5Pset_elink_fapl.DESC; - } + public static FunctionDescriptor H5Pset_elink_fapl$descriptor() { return H5Pset_elink_fapl.DESC; } /** * Downcall method handle for: @@ -13677,9 +12937,7 @@ private static class H5Pset_elink_fapl { * herr_t H5Pset_elink_fapl(hid_t lapl_id, hid_t fapl_id) * } */ - public static MethodHandle H5Pset_elink_fapl$handle() { - return H5Pset_elink_fapl.HANDLE; - } + public static MethodHandle H5Pset_elink_fapl$handle() { return H5Pset_elink_fapl.HANDLE; } /** * Address for: @@ -13687,33 +12945,30 @@ private static class H5Pset_elink_fapl { * herr_t H5Pset_elink_fapl(hid_t lapl_id, hid_t fapl_id) * } */ - public static MemorySegment H5Pset_elink_fapl$address() { - return H5Pset_elink_fapl.ADDR; - } + public static MemorySegment H5Pset_elink_fapl$address() { return H5Pset_elink_fapl.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_elink_fapl(hid_t lapl_id, hid_t fapl_id) * } */ - public static int H5Pset_elink_fapl(long lapl_id, long fapl_id) { + public static int H5Pset_elink_fapl(long lapl_id, long fapl_id) + { var mh$ = H5Pset_elink_fapl.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_elink_fapl", lapl_id, fapl_id); } return (int)mh$.invokeExact(lapl_id, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_elink_prefix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_elink_prefix"); @@ -13726,9 +12981,7 @@ private static class H5Pset_elink_prefix { * herr_t H5Pset_elink_prefix(hid_t plist_id, const char *prefix) * } */ - public static FunctionDescriptor H5Pset_elink_prefix$descriptor() { - return H5Pset_elink_prefix.DESC; - } + public static FunctionDescriptor H5Pset_elink_prefix$descriptor() { return H5Pset_elink_prefix.DESC; } /** * Downcall method handle for: @@ -13736,9 +12989,7 @@ private static class H5Pset_elink_prefix { * herr_t H5Pset_elink_prefix(hid_t plist_id, const char *prefix) * } */ - public static MethodHandle H5Pset_elink_prefix$handle() { - return H5Pset_elink_prefix.HANDLE; - } + public static MethodHandle H5Pset_elink_prefix$handle() { return H5Pset_elink_prefix.HANDLE; } /** * Address for: @@ -13746,33 +12997,30 @@ private static class H5Pset_elink_prefix { * herr_t H5Pset_elink_prefix(hid_t plist_id, const char *prefix) * } */ - public static MemorySegment H5Pset_elink_prefix$address() { - return H5Pset_elink_prefix.ADDR; - } + public static MemorySegment H5Pset_elink_prefix$address() { return H5Pset_elink_prefix.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_elink_prefix(hid_t plist_id, const char *prefix) * } */ - public static int H5Pset_elink_prefix(long plist_id, MemorySegment prefix) { + public static int H5Pset_elink_prefix(long plist_id, MemorySegment prefix) + { var mh$ = H5Pset_elink_prefix.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_elink_prefix", plist_id, prefix); } return (int)mh$.invokeExact(plist_id, prefix); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_nlinks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_nlinks"); @@ -13785,9 +13033,7 @@ private static class H5Pset_nlinks { * herr_t H5Pset_nlinks(hid_t plist_id, size_t nlinks) * } */ - public static FunctionDescriptor H5Pset_nlinks$descriptor() { - return H5Pset_nlinks.DESC; - } + public static FunctionDescriptor H5Pset_nlinks$descriptor() { return H5Pset_nlinks.DESC; } /** * Downcall method handle for: @@ -13795,9 +13041,7 @@ private static class H5Pset_nlinks { * herr_t H5Pset_nlinks(hid_t plist_id, size_t nlinks) * } */ - public static MethodHandle H5Pset_nlinks$handle() { - return H5Pset_nlinks.HANDLE; - } + public static MethodHandle H5Pset_nlinks$handle() { return H5Pset_nlinks.HANDLE; } /** * Address for: @@ -13805,33 +13049,30 @@ private static class H5Pset_nlinks { * herr_t H5Pset_nlinks(hid_t plist_id, size_t nlinks) * } */ - public static MemorySegment H5Pset_nlinks$address() { - return H5Pset_nlinks.ADDR; - } + public static MemorySegment H5Pset_nlinks$address() { return H5Pset_nlinks.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_nlinks(hid_t plist_id, size_t nlinks) * } */ - public static int H5Pset_nlinks(long plist_id, long nlinks) { + public static int H5Pset_nlinks(long plist_id, long nlinks) + { var mh$ = H5Pset_nlinks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_nlinks", plist_id, nlinks); } return (int)mh$.invokeExact(plist_id, nlinks); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Padd_merge_committed_dtype_path { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Padd_merge_committed_dtype_path"); @@ -13844,7 +13085,8 @@ private static class H5Padd_merge_committed_dtype_path { * herr_t H5Padd_merge_committed_dtype_path(hid_t plist_id, const char *path) * } */ - public static FunctionDescriptor H5Padd_merge_committed_dtype_path$descriptor() { + public static FunctionDescriptor H5Padd_merge_committed_dtype_path$descriptor() + { return H5Padd_merge_committed_dtype_path.DESC; } @@ -13854,7 +13096,8 @@ private static class H5Padd_merge_committed_dtype_path { * herr_t H5Padd_merge_committed_dtype_path(hid_t plist_id, const char *path) * } */ - public static MethodHandle H5Padd_merge_committed_dtype_path$handle() { + public static MethodHandle H5Padd_merge_committed_dtype_path$handle() + { return H5Padd_merge_committed_dtype_path.HANDLE; } @@ -13864,7 +13107,8 @@ private static class H5Padd_merge_committed_dtype_path { * herr_t H5Padd_merge_committed_dtype_path(hid_t plist_id, const char *path) * } */ - public static MemorySegment H5Padd_merge_committed_dtype_path$address() { + public static MemorySegment H5Padd_merge_committed_dtype_path$address() + { return H5Padd_merge_committed_dtype_path.ADDR; } @@ -13873,23 +13117,22 @@ private static class H5Padd_merge_committed_dtype_path { * herr_t H5Padd_merge_committed_dtype_path(hid_t plist_id, const char *path) * } */ - public static int H5Padd_merge_committed_dtype_path(long plist_id, MemorySegment path) { + public static int H5Padd_merge_committed_dtype_path(long plist_id, MemorySegment path) + { var mh$ = H5Padd_merge_committed_dtype_path.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Padd_merge_committed_dtype_path", plist_id, path); } return (int)mh$.invokeExact(plist_id, path); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pfree_merge_committed_dtype_paths { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pfree_merge_committed_dtype_paths"); @@ -13902,7 +13145,8 @@ private static class H5Pfree_merge_committed_dtype_paths { * herr_t H5Pfree_merge_committed_dtype_paths(hid_t plist_id) * } */ - public static FunctionDescriptor H5Pfree_merge_committed_dtype_paths$descriptor() { + public static FunctionDescriptor H5Pfree_merge_committed_dtype_paths$descriptor() + { return H5Pfree_merge_committed_dtype_paths.DESC; } @@ -13912,7 +13156,8 @@ private static class H5Pfree_merge_committed_dtype_paths { * herr_t H5Pfree_merge_committed_dtype_paths(hid_t plist_id) * } */ - public static MethodHandle H5Pfree_merge_committed_dtype_paths$handle() { + public static MethodHandle H5Pfree_merge_committed_dtype_paths$handle() + { return H5Pfree_merge_committed_dtype_paths.HANDLE; } @@ -13922,7 +13167,8 @@ private static class H5Pfree_merge_committed_dtype_paths { * herr_t H5Pfree_merge_committed_dtype_paths(hid_t plist_id) * } */ - public static MemorySegment H5Pfree_merge_committed_dtype_paths$address() { + public static MemorySegment H5Pfree_merge_committed_dtype_paths$address() + { return H5Pfree_merge_committed_dtype_paths.ADDR; } @@ -13931,24 +13177,23 @@ private static class H5Pfree_merge_committed_dtype_paths { * herr_t H5Pfree_merge_committed_dtype_paths(hid_t plist_id) * } */ - public static int H5Pfree_merge_committed_dtype_paths(long plist_id) { + public static int H5Pfree_merge_committed_dtype_paths(long plist_id) + { var mh$ = H5Pfree_merge_committed_dtype_paths.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pfree_merge_committed_dtype_paths", plist_id); } return (int)mh$.invokeExact(plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_copy_object { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_copy_object"); @@ -13961,9 +13206,7 @@ private static class H5Pget_copy_object { * herr_t H5Pget_copy_object(hid_t plist_id, unsigned int *copy_options) * } */ - public static FunctionDescriptor H5Pget_copy_object$descriptor() { - return H5Pget_copy_object.DESC; - } + public static FunctionDescriptor H5Pget_copy_object$descriptor() { return H5Pget_copy_object.DESC; } /** * Downcall method handle for: @@ -13971,9 +13214,7 @@ private static class H5Pget_copy_object { * herr_t H5Pget_copy_object(hid_t plist_id, unsigned int *copy_options) * } */ - public static MethodHandle H5Pget_copy_object$handle() { - return H5Pget_copy_object.HANDLE; - } + public static MethodHandle H5Pget_copy_object$handle() { return H5Pget_copy_object.HANDLE; } /** * Address for: @@ -13981,34 +13222,30 @@ private static class H5Pget_copy_object { * herr_t H5Pget_copy_object(hid_t plist_id, unsigned int *copy_options) * } */ - public static MemorySegment H5Pget_copy_object$address() { - return H5Pget_copy_object.ADDR; - } + public static MemorySegment H5Pget_copy_object$address() { return H5Pget_copy_object.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_copy_object(hid_t plist_id, unsigned int *copy_options) * } */ - public static int H5Pget_copy_object(long plist_id, MemorySegment copy_options) { + public static int H5Pget_copy_object(long plist_id, MemorySegment copy_options) + { var mh$ = H5Pget_copy_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_copy_object", plist_id, copy_options); } return (int)mh$.invokeExact(plist_id, copy_options); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_mcdt_search_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_mcdt_search_cb"); @@ -14021,9 +13258,7 @@ private static class H5Pget_mcdt_search_cb { * herr_t H5Pget_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t *func, void **op_data) * } */ - public static FunctionDescriptor H5Pget_mcdt_search_cb$descriptor() { - return H5Pget_mcdt_search_cb.DESC; - } + public static FunctionDescriptor H5Pget_mcdt_search_cb$descriptor() { return H5Pget_mcdt_search_cb.DESC; } /** * Downcall method handle for: @@ -14031,9 +13266,7 @@ private static class H5Pget_mcdt_search_cb { * herr_t H5Pget_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t *func, void **op_data) * } */ - public static MethodHandle H5Pget_mcdt_search_cb$handle() { - return H5Pget_mcdt_search_cb.HANDLE; - } + public static MethodHandle H5Pget_mcdt_search_cb$handle() { return H5Pget_mcdt_search_cb.HANDLE; } /** * Address for: @@ -14041,33 +13274,30 @@ private static class H5Pget_mcdt_search_cb { * herr_t H5Pget_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t *func, void **op_data) * } */ - public static MemorySegment H5Pget_mcdt_search_cb$address() { - return H5Pget_mcdt_search_cb.ADDR; - } + public static MemorySegment H5Pget_mcdt_search_cb$address() { return H5Pget_mcdt_search_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t *func, void **op_data) * } */ - public static int H5Pget_mcdt_search_cb(long plist_id, MemorySegment func, MemorySegment op_data) { + public static int H5Pget_mcdt_search_cb(long plist_id, MemorySegment func, MemorySegment op_data) + { var mh$ = H5Pget_mcdt_search_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_mcdt_search_cb", plist_id, func, op_data); } return (int)mh$.invokeExact(plist_id, func, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_copy_object { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_copy_object"); @@ -14080,9 +13310,7 @@ private static class H5Pset_copy_object { * herr_t H5Pset_copy_object(hid_t plist_id, unsigned int copy_options) * } */ - public static FunctionDescriptor H5Pset_copy_object$descriptor() { - return H5Pset_copy_object.DESC; - } + public static FunctionDescriptor H5Pset_copy_object$descriptor() { return H5Pset_copy_object.DESC; } /** * Downcall method handle for: @@ -14090,9 +13318,7 @@ private static class H5Pset_copy_object { * herr_t H5Pset_copy_object(hid_t plist_id, unsigned int copy_options) * } */ - public static MethodHandle H5Pset_copy_object$handle() { - return H5Pset_copy_object.HANDLE; - } + public static MethodHandle H5Pset_copy_object$handle() { return H5Pset_copy_object.HANDLE; } /** * Address for: @@ -14100,34 +13326,30 @@ private static class H5Pset_copy_object { * herr_t H5Pset_copy_object(hid_t plist_id, unsigned int copy_options) * } */ - public static MemorySegment H5Pset_copy_object$address() { - return H5Pset_copy_object.ADDR; - } + public static MemorySegment H5Pset_copy_object$address() { return H5Pset_copy_object.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_copy_object(hid_t plist_id, unsigned int copy_options) * } */ - public static int H5Pset_copy_object(long plist_id, int copy_options) { + public static int H5Pset_copy_object(long plist_id, int copy_options) + { var mh$ = H5Pset_copy_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_copy_object", plist_id, copy_options); } return (int)mh$.invokeExact(plist_id, copy_options); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_mcdt_search_cb { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_mcdt_search_cb"); @@ -14140,9 +13362,7 @@ private static class H5Pset_mcdt_search_cb { * herr_t H5Pset_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t func, void *op_data) * } */ - public static FunctionDescriptor H5Pset_mcdt_search_cb$descriptor() { - return H5Pset_mcdt_search_cb.DESC; - } + public static FunctionDescriptor H5Pset_mcdt_search_cb$descriptor() { return H5Pset_mcdt_search_cb.DESC; } /** * Downcall method handle for: @@ -14150,9 +13370,7 @@ private static class H5Pset_mcdt_search_cb { * herr_t H5Pset_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t func, void *op_data) * } */ - public static MethodHandle H5Pset_mcdt_search_cb$handle() { - return H5Pset_mcdt_search_cb.HANDLE; - } + public static MethodHandle H5Pset_mcdt_search_cb$handle() { return H5Pset_mcdt_search_cb.HANDLE; } /** * Address for: @@ -14160,41 +13378,31 @@ private static class H5Pset_mcdt_search_cb { * herr_t H5Pset_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t func, void *op_data) * } */ - public static MemorySegment H5Pset_mcdt_search_cb$address() { - return H5Pset_mcdt_search_cb.ADDR; - } + public static MemorySegment H5Pset_mcdt_search_cb$address() { return H5Pset_mcdt_search_cb.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t func, void *op_data) * } */ - public static int H5Pset_mcdt_search_cb(long plist_id, MemorySegment func, MemorySegment op_data) { + public static int H5Pset_mcdt_search_cb(long plist_id, MemorySegment func, MemorySegment op_data) + { var mh$ = H5Pset_mcdt_search_cb.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_mcdt_search_cb", plist_id, func, op_data); } return (int)mh$.invokeExact(plist_id, func, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pregister1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pregister1"); @@ -14204,63 +13412,62 @@ private static class H5Pregister1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) * } */ - public static FunctionDescriptor H5Pregister1$descriptor() { - return H5Pregister1.DESC; - } + public static FunctionDescriptor H5Pregister1$descriptor() { return H5Pregister1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) * } */ - public static MethodHandle H5Pregister1$handle() { - return H5Pregister1.HANDLE; - } + public static MethodHandle H5Pregister1$handle() { return H5Pregister1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) * } */ - public static MemorySegment H5Pregister1$address() { - return H5Pregister1.ADDR; - } + public static MemorySegment H5Pregister1$address() { return H5Pregister1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t + * prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, + * H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) * } */ - public static int H5Pregister1(long cls_id, MemorySegment name, long size, MemorySegment def_value, MemorySegment prp_create, MemorySegment prp_set, MemorySegment prp_get, MemorySegment prp_del, MemorySegment prp_copy, MemorySegment prp_close) { + public static int H5Pregister1(long cls_id, MemorySegment name, long size, MemorySegment def_value, + MemorySegment prp_create, MemorySegment prp_set, MemorySegment prp_get, + MemorySegment prp_del, MemorySegment prp_copy, MemorySegment prp_close) + { var mh$ = H5Pregister1.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pregister1", cls_id, name, size, def_value, prp_create, prp_set, prp_get, prp_del, prp_copy, prp_close); + traceDowncall("H5Pregister1", cls_id, name, size, def_value, prp_create, prp_set, prp_get, + prp_del, prp_copy, prp_close); } - return (int)mh$.invokeExact(cls_id, name, size, def_value, prp_create, prp_set, prp_get, prp_del, prp_copy, prp_close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(cls_id, name, size, def_value, prp_create, prp_set, prp_get, prp_del, + prp_copy, prp_close); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pinsert1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pinsert1"); @@ -14270,57 +13477,61 @@ private static class H5Pinsert1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t + * prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, + * H5P_prp_close_func_t prp_close) * } */ - public static FunctionDescriptor H5Pinsert1$descriptor() { - return H5Pinsert1.DESC; - } + public static FunctionDescriptor H5Pinsert1$descriptor() { return H5Pinsert1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t + * prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, + * H5P_prp_close_func_t prp_close) * } */ - public static MethodHandle H5Pinsert1$handle() { - return H5Pinsert1.HANDLE; - } + public static MethodHandle H5Pinsert1$handle() { return H5Pinsert1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t + * prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, + * H5P_prp_close_func_t prp_close) * } */ - public static MemorySegment H5Pinsert1$address() { - return H5Pinsert1.ADDR; - } + public static MemorySegment H5Pinsert1$address() { return H5Pinsert1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close) + * herr_t H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t + * prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, + * H5P_prp_close_func_t prp_close) * } */ - public static int H5Pinsert1(long plist_id, MemorySegment name, long size, MemorySegment value, MemorySegment prp_set, MemorySegment prp_get, MemorySegment prp_delete, MemorySegment prp_copy, MemorySegment prp_close) { + public static int H5Pinsert1(long plist_id, MemorySegment name, long size, MemorySegment value, + MemorySegment prp_set, MemorySegment prp_get, MemorySegment prp_delete, + MemorySegment prp_copy, MemorySegment prp_close) + { var mh$ = H5Pinsert1.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pinsert1", plist_id, name, size, value, prp_set, prp_get, prp_delete, prp_copy, prp_close); + traceDowncall("H5Pinsert1", plist_id, name, size, value, prp_set, prp_get, prp_delete, + prp_copy, prp_close); } - return (int)mh$.invokeExact(plist_id, name, size, value, prp_set, prp_get, prp_delete, prp_copy, prp_close); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(plist_id, name, size, value, prp_set, prp_get, prp_delete, prp_copy, + prp_close); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pencode1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pencode1"); @@ -14333,9 +13544,7 @@ private static class H5Pencode1 { * herr_t H5Pencode1(hid_t plist_id, void *buf, size_t *nalloc) * } */ - public static FunctionDescriptor H5Pencode1$descriptor() { - return H5Pencode1.DESC; - } + public static FunctionDescriptor H5Pencode1$descriptor() { return H5Pencode1.DESC; } /** * Downcall method handle for: @@ -14343,9 +13552,7 @@ private static class H5Pencode1 { * herr_t H5Pencode1(hid_t plist_id, void *buf, size_t *nalloc) * } */ - public static MethodHandle H5Pencode1$handle() { - return H5Pencode1.HANDLE; - } + public static MethodHandle H5Pencode1$handle() { return H5Pencode1.HANDLE; } /** * Address for: @@ -14353,38 +13560,31 @@ private static class H5Pencode1 { * herr_t H5Pencode1(hid_t plist_id, void *buf, size_t *nalloc) * } */ - public static MemorySegment H5Pencode1$address() { - return H5Pencode1.ADDR; - } + public static MemorySegment H5Pencode1$address() { return H5Pencode1.ADDR; } /** * {@snippet lang=c : * herr_t H5Pencode1(hid_t plist_id, void *buf, size_t *nalloc) * } */ - public static int H5Pencode1(long plist_id, MemorySegment buf, MemorySegment nalloc) { + public static int H5Pencode1(long plist_id, MemorySegment buf, MemorySegment nalloc) + { var mh$ = H5Pencode1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pencode1", plist_id, buf, nalloc); } return (int)mh$.invokeExact(plist_id, buf, nalloc); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_filter1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_filter1"); @@ -14394,61 +13594,55 @@ private static class H5Pget_filter1 { /** * Function descriptor for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static FunctionDescriptor H5Pget_filter1$descriptor() { - return H5Pget_filter1.DESC; - } + public static FunctionDescriptor H5Pget_filter1$descriptor() { return H5Pget_filter1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static MethodHandle H5Pget_filter1$handle() { - return H5Pget_filter1.HANDLE; - } + public static MethodHandle H5Pget_filter1$handle() { return H5Pget_filter1.HANDLE; } /** * Address for: * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static MemorySegment H5Pget_filter1$address() { - return H5Pget_filter1.ADDR; - } + public static MemorySegment H5Pget_filter1$address() { return H5Pget_filter1.ADDR; } /** * {@snippet lang=c : - * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * H5Z_filter_t H5Pget_filter1(hid_t plist_id, unsigned int filter, unsigned int *flags, size_t + * *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static int H5Pget_filter1(long plist_id, int filter, MemorySegment flags, MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, MemorySegment name) { + public static int H5Pget_filter1(long plist_id, int filter, MemorySegment flags, MemorySegment cd_nelmts, + MemorySegment cd_values, long namelen, MemorySegment name) + { var mh$ = H5Pget_filter1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_filter1", plist_id, filter, flags, cd_nelmts, cd_values, namelen, name); } return (int)mh$.invokeExact(plist_id, filter, flags, cd_nelmts, cd_values, namelen, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_filter_by_id1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_filter_by_id1"); @@ -14458,59 +13652,57 @@ private static class H5Pget_filter_by_id1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static FunctionDescriptor H5Pget_filter_by_id1$descriptor() { - return H5Pget_filter_by_id1.DESC; - } + public static FunctionDescriptor H5Pget_filter_by_id1$descriptor() { return H5Pget_filter_by_id1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static MethodHandle H5Pget_filter_by_id1$handle() { - return H5Pget_filter_by_id1.HANDLE; - } + public static MethodHandle H5Pget_filter_by_id1$handle() { return H5Pget_filter_by_id1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static MemorySegment H5Pget_filter_by_id1$address() { - return H5Pget_filter_by_id1.ADDR; - } + public static MemorySegment H5Pget_filter_by_id1$address() { return H5Pget_filter_by_id1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, unsigned int cd_values[], size_t namelen, char name[]) + * herr_t H5Pget_filter_by_id1(hid_t plist_id, H5Z_filter_t id, unsigned int *flags, size_t *cd_nelmts, + * unsigned int cd_values[], size_t namelen, char name[]) * } */ - public static int H5Pget_filter_by_id1(long plist_id, int id, MemorySegment flags, MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, MemorySegment name) { + public static int H5Pget_filter_by_id1(long plist_id, int id, MemorySegment flags, + MemorySegment cd_nelmts, MemorySegment cd_values, long namelen, + MemorySegment name) + { var mh$ = H5Pget_filter_by_id1.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Pget_filter_by_id1", plist_id, id, flags, cd_nelmts, cd_values, namelen, name); + traceDowncall("H5Pget_filter_by_id1", plist_id, id, flags, cd_nelmts, cd_values, namelen, + name); } return (int)mh$.invokeExact(plist_id, id, flags, cd_nelmts, cd_values, namelen, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_version { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_version"); @@ -14520,57 +13712,54 @@ private static class H5Pget_version { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, unsigned int *shhdr) + * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, + * unsigned int *shhdr) * } */ - public static FunctionDescriptor H5Pget_version$descriptor() { - return H5Pget_version.DESC; - } + public static FunctionDescriptor H5Pget_version$descriptor() { return H5Pget_version.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, unsigned int *shhdr) + * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, + * unsigned int *shhdr) * } */ - public static MethodHandle H5Pget_version$handle() { - return H5Pget_version.HANDLE; - } + public static MethodHandle H5Pget_version$handle() { return H5Pget_version.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, unsigned int *shhdr) + * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, + * unsigned int *shhdr) * } */ - public static MemorySegment H5Pget_version$address() { - return H5Pget_version.ADDR; - } + public static MemorySegment H5Pget_version$address() { return H5Pget_version.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, unsigned int *shhdr) + * herr_t H5Pget_version(hid_t plist_id, unsigned int *boot, unsigned int *freelist, unsigned int *stab, + * unsigned int *shhdr) * } */ - public static int H5Pget_version(long plist_id, MemorySegment boot, MemorySegment freelist, MemorySegment stab, MemorySegment shhdr) { + public static int H5Pget_version(long plist_id, MemorySegment boot, MemorySegment freelist, + MemorySegment stab, MemorySegment shhdr) + { var mh$ = H5Pget_version.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_version", plist_id, boot, freelist, stab, shhdr); } return (int)mh$.invokeExact(plist_id, boot, freelist, stab, shhdr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_file_space { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_file_space"); @@ -14583,9 +13772,7 @@ private static class H5Pset_file_space { * herr_t H5Pset_file_space(hid_t plist_id, H5F_file_space_type_t strategy, hsize_t threshold) * } */ - public static FunctionDescriptor H5Pset_file_space$descriptor() { - return H5Pset_file_space.DESC; - } + public static FunctionDescriptor H5Pset_file_space$descriptor() { return H5Pset_file_space.DESC; } /** * Downcall method handle for: @@ -14593,9 +13780,7 @@ private static class H5Pset_file_space { * herr_t H5Pset_file_space(hid_t plist_id, H5F_file_space_type_t strategy, hsize_t threshold) * } */ - public static MethodHandle H5Pset_file_space$handle() { - return H5Pset_file_space.HANDLE; - } + public static MethodHandle H5Pset_file_space$handle() { return H5Pset_file_space.HANDLE; } /** * Address for: @@ -14603,34 +13788,30 @@ private static class H5Pset_file_space { * herr_t H5Pset_file_space(hid_t plist_id, H5F_file_space_type_t strategy, hsize_t threshold) * } */ - public static MemorySegment H5Pset_file_space$address() { - return H5Pset_file_space.ADDR; - } + public static MemorySegment H5Pset_file_space$address() { return H5Pset_file_space.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_file_space(hid_t plist_id, H5F_file_space_type_t strategy, hsize_t threshold) * } */ - public static int H5Pset_file_space(long plist_id, int strategy, long threshold) { + public static int H5Pset_file_space(long plist_id, int strategy, long threshold) + { var mh$ = H5Pset_file_space.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_file_space", plist_id, strategy, threshold); } return (int)mh$.invokeExact(plist_id, strategy, threshold); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_file_space { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_file_space"); @@ -14643,9 +13824,7 @@ private static class H5Pget_file_space { * herr_t H5Pget_file_space(hid_t plist_id, H5F_file_space_type_t *strategy, hsize_t *threshold) * } */ - public static FunctionDescriptor H5Pget_file_space$descriptor() { - return H5Pget_file_space.DESC; - } + public static FunctionDescriptor H5Pget_file_space$descriptor() { return H5Pget_file_space.DESC; } /** * Downcall method handle for: @@ -14653,9 +13832,7 @@ private static class H5Pget_file_space { * herr_t H5Pget_file_space(hid_t plist_id, H5F_file_space_type_t *strategy, hsize_t *threshold) * } */ - public static MethodHandle H5Pget_file_space$handle() { - return H5Pget_file_space.HANDLE; - } + public static MethodHandle H5Pget_file_space$handle() { return H5Pget_file_space.HANDLE; } /** * Address for: @@ -14663,24 +13840,24 @@ private static class H5Pget_file_space { * herr_t H5Pget_file_space(hid_t plist_id, H5F_file_space_type_t *strategy, hsize_t *threshold) * } */ - public static MemorySegment H5Pget_file_space$address() { - return H5Pget_file_space.ADDR; - } + public static MemorySegment H5Pget_file_space$address() { return H5Pget_file_space.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_file_space(hid_t plist_id, H5F_file_space_type_t *strategy, hsize_t *threshold) * } */ - public static int H5Pget_file_space(long plist_id, MemorySegment strategy, MemorySegment threshold) { + public static int H5Pget_file_space(long plist_id, MemorySegment strategy, MemorySegment threshold) + { var mh$ = H5Pget_file_space.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_file_space", plist_id, strategy, threshold); } return (int)mh$.invokeExact(plist_id, strategy, threshold); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5PL_TYPE_ERROR = (int)-1L; @@ -14689,51 +13866,38 @@ public static int H5Pget_file_space(long plist_id, MemorySegment strategy, Memor * enum H5PL_type_t.H5PL_TYPE_ERROR = -1 * } */ - public static int H5PL_TYPE_ERROR() { - return H5PL_TYPE_ERROR; - } + public static int H5PL_TYPE_ERROR() { return H5PL_TYPE_ERROR; } private static final int H5PL_TYPE_FILTER = (int)0L; /** * {@snippet lang=c : * enum H5PL_type_t.H5PL_TYPE_FILTER = 0 * } */ - public static int H5PL_TYPE_FILTER() { - return H5PL_TYPE_FILTER; - } + public static int H5PL_TYPE_FILTER() { return H5PL_TYPE_FILTER; } private static final int H5PL_TYPE_VOL = (int)1L; /** * {@snippet lang=c : * enum H5PL_type_t.H5PL_TYPE_VOL = 1 * } */ - public static int H5PL_TYPE_VOL() { - return H5PL_TYPE_VOL; - } + public static int H5PL_TYPE_VOL() { return H5PL_TYPE_VOL; } private static final int H5PL_TYPE_VFD = (int)2L; /** * {@snippet lang=c : * enum H5PL_type_t.H5PL_TYPE_VFD = 2 * } */ - public static int H5PL_TYPE_VFD() { - return H5PL_TYPE_VFD; - } + public static int H5PL_TYPE_VFD() { return H5PL_TYPE_VFD; } private static final int H5PL_TYPE_NONE = (int)3L; /** * {@snippet lang=c : * enum H5PL_type_t.H5PL_TYPE_NONE = 3 * } */ - public static int H5PL_TYPE_NONE() { - return H5PL_TYPE_NONE; - } + public static int H5PL_TYPE_NONE() { return H5PL_TYPE_NONE; } private static class H5PLset_loading_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLset_loading_state"); @@ -14746,9 +13910,7 @@ private static class H5PLset_loading_state { * herr_t H5PLset_loading_state(unsigned int plugin_control_mask) * } */ - public static FunctionDescriptor H5PLset_loading_state$descriptor() { - return H5PLset_loading_state.DESC; - } + public static FunctionDescriptor H5PLset_loading_state$descriptor() { return H5PLset_loading_state.DESC; } /** * Downcall method handle for: @@ -14756,9 +13918,7 @@ private static class H5PLset_loading_state { * herr_t H5PLset_loading_state(unsigned int plugin_control_mask) * } */ - public static MethodHandle H5PLset_loading_state$handle() { - return H5PLset_loading_state.HANDLE; - } + public static MethodHandle H5PLset_loading_state$handle() { return H5PLset_loading_state.HANDLE; } /** * Address for: @@ -14766,32 +13926,29 @@ private static class H5PLset_loading_state { * herr_t H5PLset_loading_state(unsigned int plugin_control_mask) * } */ - public static MemorySegment H5PLset_loading_state$address() { - return H5PLset_loading_state.ADDR; - } + public static MemorySegment H5PLset_loading_state$address() { return H5PLset_loading_state.ADDR; } /** * {@snippet lang=c : * herr_t H5PLset_loading_state(unsigned int plugin_control_mask) * } */ - public static int H5PLset_loading_state(int plugin_control_mask) { + public static int H5PLset_loading_state(int plugin_control_mask) + { var mh$ = H5PLset_loading_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLset_loading_state", plugin_control_mask); } return (int)mh$.invokeExact(plugin_control_mask); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLget_loading_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLget_loading_state"); @@ -14804,9 +13961,7 @@ private static class H5PLget_loading_state { * herr_t H5PLget_loading_state(unsigned int *plugin_control_mask) * } */ - public static FunctionDescriptor H5PLget_loading_state$descriptor() { - return H5PLget_loading_state.DESC; - } + public static FunctionDescriptor H5PLget_loading_state$descriptor() { return H5PLget_loading_state.DESC; } /** * Downcall method handle for: @@ -14814,9 +13969,7 @@ private static class H5PLget_loading_state { * herr_t H5PLget_loading_state(unsigned int *plugin_control_mask) * } */ - public static MethodHandle H5PLget_loading_state$handle() { - return H5PLget_loading_state.HANDLE; - } + public static MethodHandle H5PLget_loading_state$handle() { return H5PLget_loading_state.HANDLE; } /** * Address for: @@ -14824,32 +13977,29 @@ private static class H5PLget_loading_state { * herr_t H5PLget_loading_state(unsigned int *plugin_control_mask) * } */ - public static MemorySegment H5PLget_loading_state$address() { - return H5PLget_loading_state.ADDR; - } + public static MemorySegment H5PLget_loading_state$address() { return H5PLget_loading_state.ADDR; } /** * {@snippet lang=c : * herr_t H5PLget_loading_state(unsigned int *plugin_control_mask) * } */ - public static int H5PLget_loading_state(MemorySegment plugin_control_mask) { + public static int H5PLget_loading_state(MemorySegment plugin_control_mask) + { var mh$ = H5PLget_loading_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLget_loading_state", plugin_control_mask); } return (int)mh$.invokeExact(plugin_control_mask); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLappend { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLappend"); @@ -14862,9 +14012,7 @@ private static class H5PLappend { * herr_t H5PLappend(const char *search_path) * } */ - public static FunctionDescriptor H5PLappend$descriptor() { - return H5PLappend.DESC; - } + public static FunctionDescriptor H5PLappend$descriptor() { return H5PLappend.DESC; } /** * Downcall method handle for: @@ -14872,9 +14020,7 @@ private static class H5PLappend { * herr_t H5PLappend(const char *search_path) * } */ - public static MethodHandle H5PLappend$handle() { - return H5PLappend.HANDLE; - } + public static MethodHandle H5PLappend$handle() { return H5PLappend.HANDLE; } /** * Address for: @@ -14882,32 +14028,29 @@ private static class H5PLappend { * herr_t H5PLappend(const char *search_path) * } */ - public static MemorySegment H5PLappend$address() { - return H5PLappend.ADDR; - } + public static MemorySegment H5PLappend$address() { return H5PLappend.ADDR; } /** * {@snippet lang=c : * herr_t H5PLappend(const char *search_path) * } */ - public static int H5PLappend(MemorySegment search_path) { + public static int H5PLappend(MemorySegment search_path) + { var mh$ = H5PLappend.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLappend", search_path); } return (int)mh$.invokeExact(search_path); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLprepend { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLprepend"); @@ -14920,9 +14063,7 @@ private static class H5PLprepend { * herr_t H5PLprepend(const char *search_path) * } */ - public static FunctionDescriptor H5PLprepend$descriptor() { - return H5PLprepend.DESC; - } + public static FunctionDescriptor H5PLprepend$descriptor() { return H5PLprepend.DESC; } /** * Downcall method handle for: @@ -14930,9 +14071,7 @@ private static class H5PLprepend { * herr_t H5PLprepend(const char *search_path) * } */ - public static MethodHandle H5PLprepend$handle() { - return H5PLprepend.HANDLE; - } + public static MethodHandle H5PLprepend$handle() { return H5PLprepend.HANDLE; } /** * Address for: @@ -14940,33 +14079,30 @@ private static class H5PLprepend { * herr_t H5PLprepend(const char *search_path) * } */ - public static MemorySegment H5PLprepend$address() { - return H5PLprepend.ADDR; - } + public static MemorySegment H5PLprepend$address() { return H5PLprepend.ADDR; } /** * {@snippet lang=c : * herr_t H5PLprepend(const char *search_path) * } */ - public static int H5PLprepend(MemorySegment search_path) { + public static int H5PLprepend(MemorySegment search_path) + { var mh$ = H5PLprepend.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLprepend", search_path); } return (int)mh$.invokeExact(search_path); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLreplace { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLreplace"); @@ -14979,9 +14115,7 @@ private static class H5PLreplace { * herr_t H5PLreplace(const char *search_path, unsigned int index) * } */ - public static FunctionDescriptor H5PLreplace$descriptor() { - return H5PLreplace.DESC; - } + public static FunctionDescriptor H5PLreplace$descriptor() { return H5PLreplace.DESC; } /** * Downcall method handle for: @@ -14989,9 +14123,7 @@ private static class H5PLreplace { * herr_t H5PLreplace(const char *search_path, unsigned int index) * } */ - public static MethodHandle H5PLreplace$handle() { - return H5PLreplace.HANDLE; - } + public static MethodHandle H5PLreplace$handle() { return H5PLreplace.HANDLE; } /** * Address for: @@ -14999,33 +14131,30 @@ private static class H5PLreplace { * herr_t H5PLreplace(const char *search_path, unsigned int index) * } */ - public static MemorySegment H5PLreplace$address() { - return H5PLreplace.ADDR; - } + public static MemorySegment H5PLreplace$address() { return H5PLreplace.ADDR; } /** * {@snippet lang=c : * herr_t H5PLreplace(const char *search_path, unsigned int index) * } */ - public static int H5PLreplace(MemorySegment search_path, int index) { + public static int H5PLreplace(MemorySegment search_path, int index) + { var mh$ = H5PLreplace.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLreplace", search_path, index); } return (int)mh$.invokeExact(search_path, index); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLinsert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLinsert"); @@ -15038,9 +14167,7 @@ private static class H5PLinsert { * herr_t H5PLinsert(const char *search_path, unsigned int index) * } */ - public static FunctionDescriptor H5PLinsert$descriptor() { - return H5PLinsert.DESC; - } + public static FunctionDescriptor H5PLinsert$descriptor() { return H5PLinsert.DESC; } /** * Downcall method handle for: @@ -15048,9 +14175,7 @@ private static class H5PLinsert { * herr_t H5PLinsert(const char *search_path, unsigned int index) * } */ - public static MethodHandle H5PLinsert$handle() { - return H5PLinsert.HANDLE; - } + public static MethodHandle H5PLinsert$handle() { return H5PLinsert.HANDLE; } /** * Address for: @@ -15058,32 +14183,29 @@ private static class H5PLinsert { * herr_t H5PLinsert(const char *search_path, unsigned int index) * } */ - public static MemorySegment H5PLinsert$address() { - return H5PLinsert.ADDR; - } + public static MemorySegment H5PLinsert$address() { return H5PLinsert.ADDR; } /** * {@snippet lang=c : * herr_t H5PLinsert(const char *search_path, unsigned int index) * } */ - public static int H5PLinsert(MemorySegment search_path, int index) { + public static int H5PLinsert(MemorySegment search_path, int index) + { var mh$ = H5PLinsert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLinsert", search_path, index); } return (int)mh$.invokeExact(search_path, index); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLremove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLremove"); @@ -15096,9 +14218,7 @@ private static class H5PLremove { * herr_t H5PLremove(unsigned int index) * } */ - public static FunctionDescriptor H5PLremove$descriptor() { - return H5PLremove.DESC; - } + public static FunctionDescriptor H5PLremove$descriptor() { return H5PLremove.DESC; } /** * Downcall method handle for: @@ -15106,9 +14226,7 @@ private static class H5PLremove { * herr_t H5PLremove(unsigned int index) * } */ - public static MethodHandle H5PLremove$handle() { - return H5PLremove.HANDLE; - } + public static MethodHandle H5PLremove$handle() { return H5PLremove.HANDLE; } /** * Address for: @@ -15116,34 +14234,30 @@ private static class H5PLremove { * herr_t H5PLremove(unsigned int index) * } */ - public static MemorySegment H5PLremove$address() { - return H5PLremove.ADDR; - } + public static MemorySegment H5PLremove$address() { return H5PLremove.ADDR; } /** * {@snippet lang=c : * herr_t H5PLremove(unsigned int index) * } */ - public static int H5PLremove(int index) { + public static int H5PLremove(int index) + { var mh$ = H5PLremove.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLremove", index); } return (int)mh$.invokeExact(index); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLget { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLget"); @@ -15156,9 +14270,7 @@ private static class H5PLget { * ssize_t H5PLget(unsigned int index, char *path_buf, size_t buf_size) * } */ - public static FunctionDescriptor H5PLget$descriptor() { - return H5PLget.DESC; - } + public static FunctionDescriptor H5PLget$descriptor() { return H5PLget.DESC; } /** * Downcall method handle for: @@ -15166,9 +14278,7 @@ private static class H5PLget { * ssize_t H5PLget(unsigned int index, char *path_buf, size_t buf_size) * } */ - public static MethodHandle H5PLget$handle() { - return H5PLget.HANDLE; - } + public static MethodHandle H5PLget$handle() { return H5PLget.HANDLE; } /** * Address for: @@ -15176,32 +14286,29 @@ private static class H5PLget { * ssize_t H5PLget(unsigned int index, char *path_buf, size_t buf_size) * } */ - public static MemorySegment H5PLget$address() { - return H5PLget.ADDR; - } + public static MemorySegment H5PLget$address() { return H5PLget.ADDR; } /** * {@snippet lang=c : * ssize_t H5PLget(unsigned int index, char *path_buf, size_t buf_size) * } */ - public static long H5PLget(int index, MemorySegment path_buf, long buf_size) { + public static long H5PLget(int index, MemorySegment path_buf, long buf_size) + { var mh$ = H5PLget.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLget", index, path_buf, buf_size); } return (long)mh$.invokeExact(index, path_buf, buf_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5PLsize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5PLsize"); @@ -15214,9 +14321,7 @@ private static class H5PLsize { * herr_t H5PLsize(unsigned int *num_paths) * } */ - public static FunctionDescriptor H5PLsize$descriptor() { - return H5PLsize.DESC; - } + public static FunctionDescriptor H5PLsize$descriptor() { return H5PLsize.DESC; } /** * Downcall method handle for: @@ -15224,9 +14329,7 @@ private static class H5PLsize { * herr_t H5PLsize(unsigned int *num_paths) * } */ - public static MethodHandle H5PLsize$handle() { - return H5PLsize.HANDLE; - } + public static MethodHandle H5PLsize$handle() { return H5PLsize.HANDLE; } /** * Address for: @@ -15234,34 +14337,30 @@ private static class H5PLsize { * herr_t H5PLsize(unsigned int *num_paths) * } */ - public static MemorySegment H5PLsize$address() { - return H5PLsize.ADDR; - } + public static MemorySegment H5PLsize$address() { return H5PLsize.ADDR; } /** * {@snippet lang=c : * herr_t H5PLsize(unsigned int *num_paths) * } */ - public static int H5PLsize(MemorySegment num_paths) { + public static int H5PLsize(MemorySegment num_paths) + { var mh$ = H5PLsize.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5PLsize", num_paths); } return (int)mh$.invokeExact(num_paths); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESinsert_request { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESinsert_request"); @@ -15274,9 +14373,7 @@ private static class H5ESinsert_request { * herr_t H5ESinsert_request(hid_t es_id, hid_t connector_id, void *request) * } */ - public static FunctionDescriptor H5ESinsert_request$descriptor() { - return H5ESinsert_request.DESC; - } + public static FunctionDescriptor H5ESinsert_request$descriptor() { return H5ESinsert_request.DESC; } /** * Downcall method handle for: @@ -15284,9 +14381,7 @@ private static class H5ESinsert_request { * herr_t H5ESinsert_request(hid_t es_id, hid_t connector_id, void *request) * } */ - public static MethodHandle H5ESinsert_request$handle() { - return H5ESinsert_request.HANDLE; - } + public static MethodHandle H5ESinsert_request$handle() { return H5ESinsert_request.HANDLE; } /** * Address for: @@ -15294,37 +14389,31 @@ private static class H5ESinsert_request { * herr_t H5ESinsert_request(hid_t es_id, hid_t connector_id, void *request) * } */ - public static MemorySegment H5ESinsert_request$address() { - return H5ESinsert_request.ADDR; - } + public static MemorySegment H5ESinsert_request$address() { return H5ESinsert_request.ADDR; } /** * {@snippet lang=c : * herr_t H5ESinsert_request(hid_t es_id, hid_t connector_id, void *request) * } */ - public static int H5ESinsert_request(long es_id, long connector_id, MemorySegment request) { + public static int H5ESinsert_request(long es_id, long connector_id, MemorySegment request) + { var mh$ = H5ESinsert_request.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESinsert_request", es_id, connector_id, request); } return (int)mh$.invokeExact(es_id, connector_id, request); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_requests { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_requests"); @@ -15334,55 +14423,53 @@ private static class H5ESget_requests { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, size_t array_len, size_t *count) + * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, + * size_t array_len, size_t *count) * } */ - public static FunctionDescriptor H5ESget_requests$descriptor() { - return H5ESget_requests.DESC; - } + public static FunctionDescriptor H5ESget_requests$descriptor() { return H5ESget_requests.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, size_t array_len, size_t *count) + * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, + * size_t array_len, size_t *count) * } */ - public static MethodHandle H5ESget_requests$handle() { - return H5ESget_requests.HANDLE; - } + public static MethodHandle H5ESget_requests$handle() { return H5ESget_requests.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, size_t array_len, size_t *count) + * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, + * size_t array_len, size_t *count) * } */ - public static MemorySegment H5ESget_requests$address() { - return H5ESget_requests.ADDR; - } + public static MemorySegment H5ESget_requests$address() { return H5ESget_requests.ADDR; } /** * {@snippet lang=c : - * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, size_t array_len, size_t *count) + * herr_t H5ESget_requests(hid_t es_id, H5_iter_order_t order, hid_t *connector_ids, void **requests, + * size_t array_len, size_t *count) * } */ - public static int H5ESget_requests(long es_id, int order, MemorySegment connector_ids, MemorySegment requests, long array_len, MemorySegment count) { + public static int H5ESget_requests(long es_id, int order, MemorySegment connector_ids, + MemorySegment requests, long array_len, MemorySegment count) + { var mh$ = H5ESget_requests.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_requests", es_id, order, connector_ids, requests, array_len, count); } return (int)mh$.invokeExact(es_id, order, connector_ids, requests, array_len, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDperform_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDperform_init"); @@ -15395,9 +14482,7 @@ private static class H5FDperform_init { * hid_t H5FDperform_init(H5FD_init_t op) * } */ - public static FunctionDescriptor H5FDperform_init$descriptor() { - return H5FDperform_init.DESC; - } + public static FunctionDescriptor H5FDperform_init$descriptor() { return H5FDperform_init.DESC; } /** * Downcall method handle for: @@ -15405,9 +14490,7 @@ private static class H5FDperform_init { * hid_t H5FDperform_init(H5FD_init_t op) * } */ - public static MethodHandle H5FDperform_init$handle() { - return H5FDperform_init.HANDLE; - } + public static MethodHandle H5FDperform_init$handle() { return H5FDperform_init.HANDLE; } /** * Address for: @@ -15415,32 +14498,29 @@ private static class H5FDperform_init { * hid_t H5FDperform_init(H5FD_init_t op) * } */ - public static MemorySegment H5FDperform_init$address() { - return H5FDperform_init.ADDR; - } + public static MemorySegment H5FDperform_init$address() { return H5FDperform_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FDperform_init(H5FD_init_t op) * } */ - public static long H5FDperform_init(MemorySegment op) { + public static long H5FDperform_init(MemorySegment op) + { var mh$ = H5FDperform_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDperform_init", op); } return (long)mh$.invokeExact(op); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDregister"); @@ -15453,9 +14533,7 @@ private static class H5FDregister { * hid_t H5FDregister(const H5FD_class_t *cls) * } */ - public static FunctionDescriptor H5FDregister$descriptor() { - return H5FDregister.DESC; - } + public static FunctionDescriptor H5FDregister$descriptor() { return H5FDregister.DESC; } /** * Downcall method handle for: @@ -15463,9 +14541,7 @@ private static class H5FDregister { * hid_t H5FDregister(const H5FD_class_t *cls) * } */ - public static MethodHandle H5FDregister$handle() { - return H5FDregister.HANDLE; - } + public static MethodHandle H5FDregister$handle() { return H5FDregister.HANDLE; } /** * Address for: @@ -15473,32 +14549,29 @@ private static class H5FDregister { * hid_t H5FDregister(const H5FD_class_t *cls) * } */ - public static MemorySegment H5FDregister$address() { - return H5FDregister.ADDR; - } + public static MemorySegment H5FDregister$address() { return H5FDregister.ADDR; } /** * {@snippet lang=c : * hid_t H5FDregister(const H5FD_class_t *cls) * } */ - public static long H5FDregister(MemorySegment cls) { + public static long H5FDregister(MemorySegment cls) + { var mh$ = H5FDregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDregister", cls); } return (long)mh$.invokeExact(cls); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDis_driver_registered_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDis_driver_registered_by_name"); @@ -15511,7 +14584,8 @@ private static class H5FDis_driver_registered_by_name { * htri_t H5FDis_driver_registered_by_name(const char *driver_name) * } */ - public static FunctionDescriptor H5FDis_driver_registered_by_name$descriptor() { + public static FunctionDescriptor H5FDis_driver_registered_by_name$descriptor() + { return H5FDis_driver_registered_by_name.DESC; } @@ -15521,7 +14595,8 @@ private static class H5FDis_driver_registered_by_name { * htri_t H5FDis_driver_registered_by_name(const char *driver_name) * } */ - public static MethodHandle H5FDis_driver_registered_by_name$handle() { + public static MethodHandle H5FDis_driver_registered_by_name$handle() + { return H5FDis_driver_registered_by_name.HANDLE; } @@ -15531,7 +14606,8 @@ private static class H5FDis_driver_registered_by_name { * htri_t H5FDis_driver_registered_by_name(const char *driver_name) * } */ - public static MemorySegment H5FDis_driver_registered_by_name$address() { + public static MemorySegment H5FDis_driver_registered_by_name$address() + { return H5FDis_driver_registered_by_name.ADDR; } @@ -15540,23 +14616,22 @@ private static class H5FDis_driver_registered_by_name { * htri_t H5FDis_driver_registered_by_name(const char *driver_name) * } */ - public static int H5FDis_driver_registered_by_name(MemorySegment driver_name) { + public static int H5FDis_driver_registered_by_name(MemorySegment driver_name) + { var mh$ = H5FDis_driver_registered_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDis_driver_registered_by_name", driver_name); } return (int)mh$.invokeExact(driver_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDis_driver_registered_by_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDis_driver_registered_by_value"); @@ -15569,7 +14644,8 @@ private static class H5FDis_driver_registered_by_value { * htri_t H5FDis_driver_registered_by_value(H5FD_class_value_t driver_value) * } */ - public static FunctionDescriptor H5FDis_driver_registered_by_value$descriptor() { + public static FunctionDescriptor H5FDis_driver_registered_by_value$descriptor() + { return H5FDis_driver_registered_by_value.DESC; } @@ -15579,7 +14655,8 @@ private static class H5FDis_driver_registered_by_value { * htri_t H5FDis_driver_registered_by_value(H5FD_class_value_t driver_value) * } */ - public static MethodHandle H5FDis_driver_registered_by_value$handle() { + public static MethodHandle H5FDis_driver_registered_by_value$handle() + { return H5FDis_driver_registered_by_value.HANDLE; } @@ -15589,7 +14666,8 @@ private static class H5FDis_driver_registered_by_value { * htri_t H5FDis_driver_registered_by_value(H5FD_class_value_t driver_value) * } */ - public static MemorySegment H5FDis_driver_registered_by_value$address() { + public static MemorySegment H5FDis_driver_registered_by_value$address() + { return H5FDis_driver_registered_by_value.ADDR; } @@ -15598,23 +14676,22 @@ private static class H5FDis_driver_registered_by_value { * htri_t H5FDis_driver_registered_by_value(H5FD_class_value_t driver_value) * } */ - public static int H5FDis_driver_registered_by_value(int driver_value) { + public static int H5FDis_driver_registered_by_value(int driver_value) + { var mh$ = H5FDis_driver_registered_by_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDis_driver_registered_by_value", driver_value); } return (int)mh$.invokeExact(driver_value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDunregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDunregister"); @@ -15627,9 +14704,7 @@ private static class H5FDunregister { * herr_t H5FDunregister(hid_t driver_id) * } */ - public static FunctionDescriptor H5FDunregister$descriptor() { - return H5FDunregister.DESC; - } + public static FunctionDescriptor H5FDunregister$descriptor() { return H5FDunregister.DESC; } /** * Downcall method handle for: @@ -15637,9 +14712,7 @@ private static class H5FDunregister { * herr_t H5FDunregister(hid_t driver_id) * } */ - public static MethodHandle H5FDunregister$handle() { - return H5FDunregister.HANDLE; - } + public static MethodHandle H5FDunregister$handle() { return H5FDunregister.HANDLE; } /** * Address for: @@ -15647,35 +14720,30 @@ private static class H5FDunregister { * herr_t H5FDunregister(hid_t driver_id) * } */ - public static MemorySegment H5FDunregister$address() { - return H5FDunregister.ADDR; - } + public static MemorySegment H5FDunregister$address() { return H5FDunregister.ADDR; } /** * {@snippet lang=c : * herr_t H5FDunregister(hid_t driver_id) * } */ - public static int H5FDunregister(long driver_id) { + public static int H5FDunregister(long driver_id) + { var mh$ = H5FDunregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDunregister", driver_id); } return (int)mh$.invokeExact(driver_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDopen { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDopen"); @@ -15688,9 +14756,7 @@ private static class H5FDopen { * H5FD_t *H5FDopen(const char *name, unsigned int flags, hid_t fapl_id, haddr_t maxaddr) * } */ - public static FunctionDescriptor H5FDopen$descriptor() { - return H5FDopen.DESC; - } + public static FunctionDescriptor H5FDopen$descriptor() { return H5FDopen.DESC; } /** * Downcall method handle for: @@ -15698,9 +14764,7 @@ private static class H5FDopen { * H5FD_t *H5FDopen(const char *name, unsigned int flags, hid_t fapl_id, haddr_t maxaddr) * } */ - public static MethodHandle H5FDopen$handle() { - return H5FDopen.HANDLE; - } + public static MethodHandle H5FDopen$handle() { return H5FDopen.HANDLE; } /** * Address for: @@ -15708,32 +14772,29 @@ private static class H5FDopen { * H5FD_t *H5FDopen(const char *name, unsigned int flags, hid_t fapl_id, haddr_t maxaddr) * } */ - public static MemorySegment H5FDopen$address() { - return H5FDopen.ADDR; - } + public static MemorySegment H5FDopen$address() { return H5FDopen.ADDR; } /** * {@snippet lang=c : * H5FD_t *H5FDopen(const char *name, unsigned int flags, hid_t fapl_id, haddr_t maxaddr) * } */ - public static MemorySegment H5FDopen(MemorySegment name, int flags, long fapl_id, long maxaddr) { + public static MemorySegment H5FDopen(MemorySegment name, int flags, long fapl_id, long maxaddr) + { var mh$ = H5FDopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDopen", name, flags, fapl_id, maxaddr); } return (MemorySegment)mh$.invokeExact(name, flags, fapl_id, maxaddr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDclose"); @@ -15746,9 +14807,7 @@ private static class H5FDclose { * herr_t H5FDclose(H5FD_t *file) * } */ - public static FunctionDescriptor H5FDclose$descriptor() { - return H5FDclose.DESC; - } + public static FunctionDescriptor H5FDclose$descriptor() { return H5FDclose.DESC; } /** * Downcall method handle for: @@ -15756,9 +14815,7 @@ private static class H5FDclose { * herr_t H5FDclose(H5FD_t *file) * } */ - public static MethodHandle H5FDclose$handle() { - return H5FDclose.HANDLE; - } + public static MethodHandle H5FDclose$handle() { return H5FDclose.HANDLE; } /** * Address for: @@ -15766,33 +14823,30 @@ private static class H5FDclose { * herr_t H5FDclose(H5FD_t *file) * } */ - public static MemorySegment H5FDclose$address() { - return H5FDclose.ADDR; - } + public static MemorySegment H5FDclose$address() { return H5FDclose.ADDR; } /** * {@snippet lang=c : * herr_t H5FDclose(H5FD_t *file) * } */ - public static int H5FDclose(MemorySegment file) { + public static int H5FDclose(MemorySegment file) + { var mh$ = H5FDclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDclose", file); } return (int)mh$.invokeExact(file); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDcmp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDcmp"); @@ -15805,9 +14859,7 @@ private static class H5FDcmp { * int H5FDcmp(const H5FD_t *f1, const H5FD_t *f2) * } */ - public static FunctionDescriptor H5FDcmp$descriptor() { - return H5FDcmp.DESC; - } + public static FunctionDescriptor H5FDcmp$descriptor() { return H5FDcmp.DESC; } /** * Downcall method handle for: @@ -15815,9 +14867,7 @@ private static class H5FDcmp { * int H5FDcmp(const H5FD_t *f1, const H5FD_t *f2) * } */ - public static MethodHandle H5FDcmp$handle() { - return H5FDcmp.HANDLE; - } + public static MethodHandle H5FDcmp$handle() { return H5FDcmp.HANDLE; } /** * Address for: @@ -15825,33 +14875,30 @@ private static class H5FDcmp { * int H5FDcmp(const H5FD_t *f1, const H5FD_t *f2) * } */ - public static MemorySegment H5FDcmp$address() { - return H5FDcmp.ADDR; - } + public static MemorySegment H5FDcmp$address() { return H5FDcmp.ADDR; } /** * {@snippet lang=c : * int H5FDcmp(const H5FD_t *f1, const H5FD_t *f2) * } */ - public static int H5FDcmp(MemorySegment f1, MemorySegment f2) { + public static int H5FDcmp(MemorySegment f1, MemorySegment f2) + { var mh$ = H5FDcmp.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDcmp", f1, f2); } return (int)mh$.invokeExact(f1, f2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDquery { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDquery"); @@ -15864,9 +14911,7 @@ private static class H5FDquery { * herr_t H5FDquery(const H5FD_t *f, unsigned long *flags) * } */ - public static FunctionDescriptor H5FDquery$descriptor() { - return H5FDquery.DESC; - } + public static FunctionDescriptor H5FDquery$descriptor() { return H5FDquery.DESC; } /** * Downcall method handle for: @@ -15874,9 +14919,7 @@ private static class H5FDquery { * herr_t H5FDquery(const H5FD_t *f, unsigned long *flags) * } */ - public static MethodHandle H5FDquery$handle() { - return H5FDquery.HANDLE; - } + public static MethodHandle H5FDquery$handle() { return H5FDquery.HANDLE; } /** * Address for: @@ -15884,35 +14927,30 @@ private static class H5FDquery { * herr_t H5FDquery(const H5FD_t *f, unsigned long *flags) * } */ - public static MemorySegment H5FDquery$address() { - return H5FDquery.ADDR; - } + public static MemorySegment H5FDquery$address() { return H5FDquery.ADDR; } /** * {@snippet lang=c : * herr_t H5FDquery(const H5FD_t *f, unsigned long *flags) * } */ - public static int H5FDquery(MemorySegment f, MemorySegment flags) { + public static int H5FDquery(MemorySegment f, MemorySegment flags) + { var mh$ = H5FDquery.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDquery", f, flags); } return (int)mh$.invokeExact(f, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDalloc { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDalloc"); @@ -15925,9 +14963,7 @@ private static class H5FDalloc { * haddr_t H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size) * } */ - public static FunctionDescriptor H5FDalloc$descriptor() { - return H5FDalloc.DESC; - } + public static FunctionDescriptor H5FDalloc$descriptor() { return H5FDalloc.DESC; } /** * Downcall method handle for: @@ -15935,9 +14971,7 @@ private static class H5FDalloc { * haddr_t H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size) * } */ - public static MethodHandle H5FDalloc$handle() { - return H5FDalloc.HANDLE; - } + public static MethodHandle H5FDalloc$handle() { return H5FDalloc.HANDLE; } /** * Address for: @@ -15945,36 +14979,30 @@ private static class H5FDalloc { * haddr_t H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size) * } */ - public static MemorySegment H5FDalloc$address() { - return H5FDalloc.ADDR; - } + public static MemorySegment H5FDalloc$address() { return H5FDalloc.ADDR; } /** * {@snippet lang=c : * haddr_t H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size) * } */ - public static long H5FDalloc(MemorySegment file, int type, long dxpl_id, long size) { + public static long H5FDalloc(MemorySegment file, int type, long dxpl_id, long size) + { var mh$ = H5FDalloc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDalloc", file, type, dxpl_id, size); } return (long)mh$.invokeExact(file, type, dxpl_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDfree { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDfree"); @@ -15987,9 +15015,7 @@ private static class H5FDfree { * herr_t H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t size) * } */ - public static FunctionDescriptor H5FDfree$descriptor() { - return H5FDfree.DESC; - } + public static FunctionDescriptor H5FDfree$descriptor() { return H5FDfree.DESC; } /** * Downcall method handle for: @@ -15997,9 +15023,7 @@ private static class H5FDfree { * herr_t H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t size) * } */ - public static MethodHandle H5FDfree$handle() { - return H5FDfree.HANDLE; - } + public static MethodHandle H5FDfree$handle() { return H5FDfree.HANDLE; } /** * Address for: @@ -16007,33 +15031,30 @@ private static class H5FDfree { * herr_t H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t size) * } */ - public static MemorySegment H5FDfree$address() { - return H5FDfree.ADDR; - } + public static MemorySegment H5FDfree$address() { return H5FDfree.ADDR; } /** * {@snippet lang=c : * herr_t H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t size) * } */ - public static int H5FDfree(MemorySegment file, int type, long dxpl_id, long addr, long size) { + public static int H5FDfree(MemorySegment file, int type, long dxpl_id, long addr, long size) + { var mh$ = H5FDfree.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDfree", file, type, dxpl_id, addr, size); } return (int)mh$.invokeExact(file, type, dxpl_id, addr, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDget_eoa { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDget_eoa"); @@ -16046,9 +15067,7 @@ private static class H5FDget_eoa { * haddr_t H5FDget_eoa(H5FD_t *file, H5FD_mem_t type) * } */ - public static FunctionDescriptor H5FDget_eoa$descriptor() { - return H5FDget_eoa.DESC; - } + public static FunctionDescriptor H5FDget_eoa$descriptor() { return H5FDget_eoa.DESC; } /** * Downcall method handle for: @@ -16056,9 +15075,7 @@ private static class H5FDget_eoa { * haddr_t H5FDget_eoa(H5FD_t *file, H5FD_mem_t type) * } */ - public static MethodHandle H5FDget_eoa$handle() { - return H5FDget_eoa.HANDLE; - } + public static MethodHandle H5FDget_eoa$handle() { return H5FDget_eoa.HANDLE; } /** * Address for: @@ -16066,34 +15083,30 @@ private static class H5FDget_eoa { * haddr_t H5FDget_eoa(H5FD_t *file, H5FD_mem_t type) * } */ - public static MemorySegment H5FDget_eoa$address() { - return H5FDget_eoa.ADDR; - } + public static MemorySegment H5FDget_eoa$address() { return H5FDget_eoa.ADDR; } /** * {@snippet lang=c : * haddr_t H5FDget_eoa(H5FD_t *file, H5FD_mem_t type) * } */ - public static long H5FDget_eoa(MemorySegment file, int type) { + public static long H5FDget_eoa(MemorySegment file, int type) + { var mh$ = H5FDget_eoa.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDget_eoa", file, type); } return (long)mh$.invokeExact(file, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDset_eoa { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDset_eoa"); @@ -16106,9 +15119,7 @@ private static class H5FDset_eoa { * herr_t H5FDset_eoa(H5FD_t *file, H5FD_mem_t type, haddr_t eoa) * } */ - public static FunctionDescriptor H5FDset_eoa$descriptor() { - return H5FDset_eoa.DESC; - } + public static FunctionDescriptor H5FDset_eoa$descriptor() { return H5FDset_eoa.DESC; } /** * Downcall method handle for: @@ -16116,9 +15127,7 @@ private static class H5FDset_eoa { * herr_t H5FDset_eoa(H5FD_t *file, H5FD_mem_t type, haddr_t eoa) * } */ - public static MethodHandle H5FDset_eoa$handle() { - return H5FDset_eoa.HANDLE; - } + public static MethodHandle H5FDset_eoa$handle() { return H5FDset_eoa.HANDLE; } /** * Address for: @@ -16126,33 +15135,30 @@ private static class H5FDset_eoa { * herr_t H5FDset_eoa(H5FD_t *file, H5FD_mem_t type, haddr_t eoa) * } */ - public static MemorySegment H5FDset_eoa$address() { - return H5FDset_eoa.ADDR; - } + public static MemorySegment H5FDset_eoa$address() { return H5FDset_eoa.ADDR; } /** * {@snippet lang=c : * herr_t H5FDset_eoa(H5FD_t *file, H5FD_mem_t type, haddr_t eoa) * } */ - public static int H5FDset_eoa(MemorySegment file, int type, long eoa) { + public static int H5FDset_eoa(MemorySegment file, int type, long eoa) + { var mh$ = H5FDset_eoa.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDset_eoa", file, type, eoa); } return (int)mh$.invokeExact(file, type, eoa); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDget_eof { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDget_eof"); @@ -16165,9 +15171,7 @@ private static class H5FDget_eof { * haddr_t H5FDget_eof(H5FD_t *file, H5FD_mem_t type) * } */ - public static FunctionDescriptor H5FDget_eof$descriptor() { - return H5FDget_eof.DESC; - } + public static FunctionDescriptor H5FDget_eof$descriptor() { return H5FDget_eof.DESC; } /** * Downcall method handle for: @@ -16175,9 +15179,7 @@ private static class H5FDget_eof { * haddr_t H5FDget_eof(H5FD_t *file, H5FD_mem_t type) * } */ - public static MethodHandle H5FDget_eof$handle() { - return H5FDget_eof.HANDLE; - } + public static MethodHandle H5FDget_eof$handle() { return H5FDget_eof.HANDLE; } /** * Address for: @@ -16185,34 +15187,30 @@ private static class H5FDget_eof { * haddr_t H5FDget_eof(H5FD_t *file, H5FD_mem_t type) * } */ - public static MemorySegment H5FDget_eof$address() { - return H5FDget_eof.ADDR; - } + public static MemorySegment H5FDget_eof$address() { return H5FDget_eof.ADDR; } /** * {@snippet lang=c : * haddr_t H5FDget_eof(H5FD_t *file, H5FD_mem_t type) * } */ - public static long H5FDget_eof(MemorySegment file, int type) { + public static long H5FDget_eof(MemorySegment file, int type) + { var mh$ = H5FDget_eof.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDget_eof", file, type); } return (long)mh$.invokeExact(file, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDget_vfd_handle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDget_vfd_handle"); @@ -16225,9 +15223,7 @@ private static class H5FDget_vfd_handle { * herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void **file_handle) * } */ - public static FunctionDescriptor H5FDget_vfd_handle$descriptor() { - return H5FDget_vfd_handle.DESC; - } + public static FunctionDescriptor H5FDget_vfd_handle$descriptor() { return H5FDget_vfd_handle.DESC; } /** * Downcall method handle for: @@ -16235,9 +15231,7 @@ private static class H5FDget_vfd_handle { * herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void **file_handle) * } */ - public static MethodHandle H5FDget_vfd_handle$handle() { - return H5FDget_vfd_handle.HANDLE; - } + public static MethodHandle H5FDget_vfd_handle$handle() { return H5FDget_vfd_handle.HANDLE; } /** * Address for: @@ -16245,37 +15239,31 @@ private static class H5FDget_vfd_handle { * herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void **file_handle) * } */ - public static MemorySegment H5FDget_vfd_handle$address() { - return H5FDget_vfd_handle.ADDR; - } + public static MemorySegment H5FDget_vfd_handle$address() { return H5FDget_vfd_handle.ADDR; } /** * {@snippet lang=c : * herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void **file_handle) * } */ - public static int H5FDget_vfd_handle(MemorySegment file, long fapl, MemorySegment file_handle) { + public static int H5FDget_vfd_handle(MemorySegment file, long fapl, MemorySegment file_handle) + { var mh$ = H5FDget_vfd_handle.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDget_vfd_handle", file, fapl, file_handle); } return (int)mh$.invokeExact(file, fapl, file_handle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDread { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDread"); @@ -16288,9 +15276,7 @@ private static class H5FDread { * herr_t H5FDread(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, void *buf) * } */ - public static FunctionDescriptor H5FDread$descriptor() { - return H5FDread.DESC; - } + public static FunctionDescriptor H5FDread$descriptor() { return H5FDread.DESC; } /** * Downcall method handle for: @@ -16298,9 +15284,7 @@ private static class H5FDread { * herr_t H5FDread(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, void *buf) * } */ - public static MethodHandle H5FDread$handle() { - return H5FDread.HANDLE; - } + public static MethodHandle H5FDread$handle() { return H5FDread.HANDLE; } /** * Address for: @@ -16308,37 +15292,32 @@ private static class H5FDread { * herr_t H5FDread(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, void *buf) * } */ - public static MemorySegment H5FDread$address() { - return H5FDread.ADDR; - } + public static MemorySegment H5FDread$address() { return H5FDread.ADDR; } /** * {@snippet lang=c : * herr_t H5FDread(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, void *buf) * } */ - public static int H5FDread(MemorySegment file, int type, long dxpl_id, long addr, long size, MemorySegment buf) { + public static int H5FDread(MemorySegment file, int type, long dxpl_id, long addr, long size, + MemorySegment buf) + { var mh$ = H5FDread.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDread", file, type, dxpl_id, addr, size, buf); } return (int)mh$.invokeExact(file, type, dxpl_id, addr, size, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDwrite { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDwrite"); @@ -16348,61 +15327,55 @@ private static class H5FDwrite { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *buf) + * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void + * *buf) * } */ - public static FunctionDescriptor H5FDwrite$descriptor() { - return H5FDwrite.DESC; - } + public static FunctionDescriptor H5FDwrite$descriptor() { return H5FDwrite.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *buf) + * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void + * *buf) * } */ - public static MethodHandle H5FDwrite$handle() { - return H5FDwrite.HANDLE; - } + public static MethodHandle H5FDwrite$handle() { return H5FDwrite.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *buf) + * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void + * *buf) * } */ - public static MemorySegment H5FDwrite$address() { - return H5FDwrite.ADDR; - } + public static MemorySegment H5FDwrite$address() { return H5FDwrite.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *buf) + * herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void + * *buf) * } */ - public static int H5FDwrite(MemorySegment file, int type, long dxpl_id, long addr, long size, MemorySegment buf) { + public static int H5FDwrite(MemorySegment file, int type, long dxpl_id, long addr, long size, + MemorySegment buf) + { var mh$ = H5FDwrite.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDwrite", file, type, dxpl_id, addr, size, buf); } return (int)mh$.invokeExact(file, type, dxpl_id, addr, size, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDread_vector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDread_vector"); @@ -16412,61 +15385,55 @@ private static class H5FDread_vector { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], void *bufs[]) + * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], void *bufs[]) * } */ - public static FunctionDescriptor H5FDread_vector$descriptor() { - return H5FDread_vector.DESC; - } + public static FunctionDescriptor H5FDread_vector$descriptor() { return H5FDread_vector.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], void *bufs[]) + * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], void *bufs[]) * } */ - public static MethodHandle H5FDread_vector$handle() { - return H5FDread_vector.HANDLE; - } + public static MethodHandle H5FDread_vector$handle() { return H5FDread_vector.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], void *bufs[]) + * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], void *bufs[]) * } */ - public static MemorySegment H5FDread_vector$address() { - return H5FDread_vector.ADDR; - } + public static MemorySegment H5FDread_vector$address() { return H5FDread_vector.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], void *bufs[]) + * herr_t H5FDread_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], void *bufs[]) * } */ - public static int H5FDread_vector(MemorySegment file, long dxpl_id, int count, MemorySegment types, MemorySegment addrs, MemorySegment sizes, MemorySegment bufs) { + public static int H5FDread_vector(MemorySegment file, long dxpl_id, int count, MemorySegment types, + MemorySegment addrs, MemorySegment sizes, MemorySegment bufs) + { var mh$ = H5FDread_vector.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDread_vector", file, dxpl_id, count, types, addrs, sizes, bufs); } return (int)mh$.invokeExact(file, dxpl_id, count, types, addrs, sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDwrite_vector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDwrite_vector"); @@ -16476,63 +15443,55 @@ private static class H5FDwrite_vector { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], const void *bufs[]) * } */ - public static FunctionDescriptor H5FDwrite_vector$descriptor() { - return H5FDwrite_vector.DESC; - } + public static FunctionDescriptor H5FDwrite_vector$descriptor() { return H5FDwrite_vector.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], const void *bufs[]) * } */ - public static MethodHandle H5FDwrite_vector$handle() { - return H5FDwrite_vector.HANDLE; - } + public static MethodHandle H5FDwrite_vector$handle() { return H5FDwrite_vector.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], const void *bufs[]) * } */ - public static MemorySegment H5FDwrite_vector$address() { - return H5FDwrite_vector.ADDR; - } + public static MemorySegment H5FDwrite_vector$address() { return H5FDwrite_vector.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t addrs[], size_t sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector(H5FD_t *file, hid_t dxpl_id, uint32_t count, H5FD_mem_t types[], haddr_t + * addrs[], size_t sizes[], const void *bufs[]) * } */ - public static int H5FDwrite_vector(MemorySegment file, long dxpl_id, int count, MemorySegment types, MemorySegment addrs, MemorySegment sizes, MemorySegment bufs) { + public static int H5FDwrite_vector(MemorySegment file, long dxpl_id, int count, MemorySegment types, + MemorySegment addrs, MemorySegment sizes, MemorySegment bufs) + { var mh$ = H5FDwrite_vector.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDwrite_vector", file, dxpl_id, count, types, addrs, sizes, bufs); } return (int)mh$.invokeExact(file, dxpl_id, count, types, addrs, sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDread_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDread_selection"); @@ -16542,63 +15501,59 @@ private static class H5FDread_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static FunctionDescriptor H5FDread_selection$descriptor() { - return H5FDread_selection.DESC; - } + public static FunctionDescriptor H5FDread_selection$descriptor() { return H5FDread_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MethodHandle H5FDread_selection$handle() { - return H5FDread_selection.HANDLE; - } + public static MethodHandle H5FDread_selection$handle() { return H5FDread_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MemorySegment H5FDread_selection$address() { - return H5FDread_selection.ADDR; - } + public static MemorySegment H5FDread_selection$address() { return H5FDread_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static int H5FDread_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_spaces, MemorySegment file_spaces, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDread_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_spaces, MemorySegment file_spaces, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDread_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDread_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); + traceDowncall("H5FDread_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, + offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDwrite_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDwrite_selection"); @@ -16608,63 +15563,59 @@ private static class H5FDwrite_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static FunctionDescriptor H5FDwrite_selection$descriptor() { - return H5FDwrite_selection.DESC; - } + public static FunctionDescriptor H5FDwrite_selection$descriptor() { return H5FDwrite_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MethodHandle H5FDwrite_selection$handle() { - return H5FDwrite_selection.HANDLE; - } + public static MethodHandle H5FDwrite_selection$handle() { return H5FDwrite_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MemorySegment H5FDwrite_selection$address() { - return H5FDwrite_selection.ADDR; - } + public static MemorySegment H5FDwrite_selection$address() { return H5FDwrite_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static int H5FDwrite_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_spaces, MemorySegment file_spaces, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDwrite_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_spaces, MemorySegment file_spaces, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDwrite_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDwrite_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); + traceDowncall("H5FDwrite_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, + offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDread_vector_from_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDread_vector_from_selection"); @@ -16674,63 +15625,68 @@ private static class H5FDread_vector_from_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static FunctionDescriptor H5FDread_vector_from_selection$descriptor() { + public static FunctionDescriptor H5FDread_vector_from_selection$descriptor() + { return H5FDread_vector_from_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MethodHandle H5FDread_vector_from_selection$handle() { + public static MethodHandle H5FDread_vector_from_selection$handle() + { return H5FDread_vector_from_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MemorySegment H5FDread_vector_from_selection$address() { + public static MemorySegment H5FDread_vector_from_selection$address() + { return H5FDread_vector_from_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static int H5FDread_vector_from_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_spaces, MemorySegment file_spaces, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDread_vector_from_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_spaces, MemorySegment file_spaces, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDread_vector_from_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDread_vector_from_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); + traceDowncall("H5FDread_vector_from_selection", file, type, dxpl_id, count, mem_spaces, + file_spaces, offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDwrite_vector_from_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDwrite_vector_from_selection"); @@ -16740,63 +15696,68 @@ private static class H5FDwrite_vector_from_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static FunctionDescriptor H5FDwrite_vector_from_selection$descriptor() { + public static FunctionDescriptor H5FDwrite_vector_from_selection$descriptor() + { return H5FDwrite_vector_from_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MethodHandle H5FDwrite_vector_from_selection$handle() { + public static MethodHandle H5FDwrite_vector_from_selection$handle() + { return H5FDwrite_vector_from_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MemorySegment H5FDwrite_vector_from_selection$address() { + public static MemorySegment H5FDwrite_vector_from_selection$address() + { return H5FDwrite_vector_from_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_vector_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, + * hid_t mem_spaces[], hid_t file_spaces[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static int H5FDwrite_vector_from_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_spaces, MemorySegment file_spaces, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDwrite_vector_from_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_spaces, MemorySegment file_spaces, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDwrite_vector_from_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDwrite_vector_from_selection", file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); + traceDowncall("H5FDwrite_vector_from_selection", file, type, dxpl_id, count, mem_spaces, + file_spaces, offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_spaces, file_spaces, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDread_from_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDread_from_selection"); @@ -16806,63 +15767,62 @@ private static class H5FDread_from_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static FunctionDescriptor H5FDread_from_selection$descriptor() { + public static FunctionDescriptor H5FDread_from_selection$descriptor() + { return H5FDread_from_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MethodHandle H5FDread_from_selection$handle() { - return H5FDread_from_selection.HANDLE; - } + public static MethodHandle H5FDread_from_selection$handle() { return H5FDread_from_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static MemorySegment H5FDread_from_selection$address() { - return H5FDread_from_selection.ADDR; - } + public static MemorySegment H5FDread_from_selection$address() { return H5FDread_from_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) + * herr_t H5FDread_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], void *bufs[]) * } */ - public static int H5FDread_from_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_space_ids, MemorySegment file_space_ids, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDread_from_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_space_ids, MemorySegment file_space_ids, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDread_from_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDread_from_selection", file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, element_sizes, bufs); + traceDowncall("H5FDread_from_selection", file, type, dxpl_id, count, mem_space_ids, + file_space_ids, offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDwrite_from_selection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDwrite_from_selection"); @@ -16872,57 +15832,61 @@ private static class H5FDwrite_from_selection { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static FunctionDescriptor H5FDwrite_from_selection$descriptor() { + public static FunctionDescriptor H5FDwrite_from_selection$descriptor() + { return H5FDwrite_from_selection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MethodHandle H5FDwrite_from_selection$handle() { - return H5FDwrite_from_selection.HANDLE; - } + public static MethodHandle H5FDwrite_from_selection$handle() { return H5FDwrite_from_selection.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static MemorySegment H5FDwrite_from_selection$address() { - return H5FDwrite_from_selection.ADDR; - } + public static MemorySegment H5FDwrite_from_selection$address() { return H5FDwrite_from_selection.ADDR; } /** * {@snippet lang=c : - * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) + * herr_t H5FDwrite_from_selection(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, uint32_t count, hid_t + * mem_space_ids[], hid_t file_space_ids[], haddr_t offsets[], size_t element_sizes[], const void *bufs[]) * } */ - public static int H5FDwrite_from_selection(MemorySegment file, int type, long dxpl_id, int count, MemorySegment mem_space_ids, MemorySegment file_space_ids, MemorySegment offsets, MemorySegment element_sizes, MemorySegment bufs) { + public static int H5FDwrite_from_selection(MemorySegment file, int type, long dxpl_id, int count, + MemorySegment mem_space_ids, MemorySegment file_space_ids, + MemorySegment offsets, MemorySegment element_sizes, + MemorySegment bufs) + { var mh$ = H5FDwrite_from_selection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5FDwrite_from_selection", file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, element_sizes, bufs); + traceDowncall("H5FDwrite_from_selection", file, type, dxpl_id, count, mem_space_ids, + file_space_ids, offsets, element_sizes, bufs); } - return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, element_sizes, bufs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file, type, dxpl_id, count, mem_space_ids, file_space_ids, offsets, + element_sizes, bufs); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDflush"); @@ -16935,9 +15899,7 @@ private static class H5FDflush { * herr_t H5FDflush(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static FunctionDescriptor H5FDflush$descriptor() { - return H5FDflush.DESC; - } + public static FunctionDescriptor H5FDflush$descriptor() { return H5FDflush.DESC; } /** * Downcall method handle for: @@ -16945,9 +15907,7 @@ private static class H5FDflush { * herr_t H5FDflush(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static MethodHandle H5FDflush$handle() { - return H5FDflush.HANDLE; - } + public static MethodHandle H5FDflush$handle() { return H5FDflush.HANDLE; } /** * Address for: @@ -16955,34 +15915,30 @@ private static class H5FDflush { * herr_t H5FDflush(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static MemorySegment H5FDflush$address() { - return H5FDflush.ADDR; - } + public static MemorySegment H5FDflush$address() { return H5FDflush.ADDR; } /** * {@snippet lang=c : * herr_t H5FDflush(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static int H5FDflush(MemorySegment file, long dxpl_id, boolean closing) { + public static int H5FDflush(MemorySegment file, long dxpl_id, boolean closing) + { var mh$ = H5FDflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDflush", file, dxpl_id, closing); } return (int)mh$.invokeExact(file, dxpl_id, closing); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDtruncate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDtruncate"); @@ -16995,9 +15951,7 @@ private static class H5FDtruncate { * herr_t H5FDtruncate(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static FunctionDescriptor H5FDtruncate$descriptor() { - return H5FDtruncate.DESC; - } + public static FunctionDescriptor H5FDtruncate$descriptor() { return H5FDtruncate.DESC; } /** * Downcall method handle for: @@ -17005,9 +15959,7 @@ private static class H5FDtruncate { * herr_t H5FDtruncate(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static MethodHandle H5FDtruncate$handle() { - return H5FDtruncate.HANDLE; - } + public static MethodHandle H5FDtruncate$handle() { return H5FDtruncate.HANDLE; } /** * Address for: @@ -17015,33 +15967,30 @@ private static class H5FDtruncate { * herr_t H5FDtruncate(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static MemorySegment H5FDtruncate$address() { - return H5FDtruncate.ADDR; - } + public static MemorySegment H5FDtruncate$address() { return H5FDtruncate.ADDR; } /** * {@snippet lang=c : * herr_t H5FDtruncate(H5FD_t *file, hid_t dxpl_id, hbool_t closing) * } */ - public static int H5FDtruncate(MemorySegment file, long dxpl_id, boolean closing) { + public static int H5FDtruncate(MemorySegment file, long dxpl_id, boolean closing) + { var mh$ = H5FDtruncate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDtruncate", file, dxpl_id, closing); } return (int)mh$.invokeExact(file, dxpl_id, closing); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDlock { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDlock"); @@ -17054,9 +16003,7 @@ private static class H5FDlock { * herr_t H5FDlock(H5FD_t *file, hbool_t rw) * } */ - public static FunctionDescriptor H5FDlock$descriptor() { - return H5FDlock.DESC; - } + public static FunctionDescriptor H5FDlock$descriptor() { return H5FDlock.DESC; } /** * Downcall method handle for: @@ -17064,9 +16011,7 @@ private static class H5FDlock { * herr_t H5FDlock(H5FD_t *file, hbool_t rw) * } */ - public static MethodHandle H5FDlock$handle() { - return H5FDlock.HANDLE; - } + public static MethodHandle H5FDlock$handle() { return H5FDlock.HANDLE; } /** * Address for: @@ -17074,32 +16019,29 @@ private static class H5FDlock { * herr_t H5FDlock(H5FD_t *file, hbool_t rw) * } */ - public static MemorySegment H5FDlock$address() { - return H5FDlock.ADDR; - } + public static MemorySegment H5FDlock$address() { return H5FDlock.ADDR; } /** * {@snippet lang=c : * herr_t H5FDlock(H5FD_t *file, hbool_t rw) * } */ - public static int H5FDlock(MemorySegment file, boolean rw) { + public static int H5FDlock(MemorySegment file, boolean rw) + { var mh$ = H5FDlock.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDlock", file, rw); } return (int)mh$.invokeExact(file, rw); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDunlock { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDunlock"); @@ -17112,9 +16054,7 @@ private static class H5FDunlock { * herr_t H5FDunlock(H5FD_t *file) * } */ - public static FunctionDescriptor H5FDunlock$descriptor() { - return H5FDunlock.DESC; - } + public static FunctionDescriptor H5FDunlock$descriptor() { return H5FDunlock.DESC; } /** * Downcall method handle for: @@ -17122,9 +16062,7 @@ private static class H5FDunlock { * herr_t H5FDunlock(H5FD_t *file) * } */ - public static MethodHandle H5FDunlock$handle() { - return H5FDunlock.HANDLE; - } + public static MethodHandle H5FDunlock$handle() { return H5FDunlock.HANDLE; } /** * Address for: @@ -17132,33 +16070,30 @@ private static class H5FDunlock { * herr_t H5FDunlock(H5FD_t *file) * } */ - public static MemorySegment H5FDunlock$address() { - return H5FDunlock.ADDR; - } + public static MemorySegment H5FDunlock$address() { return H5FDunlock.ADDR; } /** * {@snippet lang=c : * herr_t H5FDunlock(H5FD_t *file) * } */ - public static int H5FDunlock(MemorySegment file) { + public static int H5FDunlock(MemorySegment file) + { var mh$ = H5FDunlock.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDunlock", file); } return (int)mh$.invokeExact(file); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDdelete { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDdelete"); @@ -17171,9 +16106,7 @@ private static class H5FDdelete { * herr_t H5FDdelete(const char *name, hid_t fapl_id) * } */ - public static FunctionDescriptor H5FDdelete$descriptor() { - return H5FDdelete.DESC; - } + public static FunctionDescriptor H5FDdelete$descriptor() { return H5FDdelete.DESC; } /** * Downcall method handle for: @@ -17181,9 +16114,7 @@ private static class H5FDdelete { * herr_t H5FDdelete(const char *name, hid_t fapl_id) * } */ - public static MethodHandle H5FDdelete$handle() { - return H5FDdelete.HANDLE; - } + public static MethodHandle H5FDdelete$handle() { return H5FDdelete.HANDLE; } /** * Address for: @@ -17191,36 +16122,30 @@ private static class H5FDdelete { * herr_t H5FDdelete(const char *name, hid_t fapl_id) * } */ - public static MemorySegment H5FDdelete$address() { - return H5FDdelete.ADDR; - } + public static MemorySegment H5FDdelete$address() { return H5FDdelete.ADDR; } /** * {@snippet lang=c : * herr_t H5FDdelete(const char *name, hid_t fapl_id) * } */ - public static int H5FDdelete(MemorySegment name, long fapl_id) { + public static int H5FDdelete(MemorySegment name, long fapl_id) + { var mh$ = H5FDdelete.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDdelete", name, fapl_id); } return (int)mh$.invokeExact(name, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDctl { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDctl"); @@ -17233,9 +16158,7 @@ private static class H5FDctl { * herr_t H5FDctl(H5FD_t *file, uint64_t op_code, uint64_t flags, const void *input, void **output) * } */ - public static FunctionDescriptor H5FDctl$descriptor() { - return H5FDctl.DESC; - } + public static FunctionDescriptor H5FDctl$descriptor() { return H5FDctl.DESC; } /** * Downcall method handle for: @@ -17243,9 +16166,7 @@ private static class H5FDctl { * herr_t H5FDctl(H5FD_t *file, uint64_t op_code, uint64_t flags, const void *input, void **output) * } */ - public static MethodHandle H5FDctl$handle() { - return H5FDctl.HANDLE; - } + public static MethodHandle H5FDctl$handle() { return H5FDctl.HANDLE; } /** * Address for: @@ -17253,35 +16174,31 @@ private static class H5FDctl { * herr_t H5FDctl(H5FD_t *file, uint64_t op_code, uint64_t flags, const void *input, void **output) * } */ - public static MemorySegment H5FDctl$address() { - return H5FDctl.ADDR; - } + public static MemorySegment H5FDctl$address() { return H5FDctl.ADDR; } /** * {@snippet lang=c : * herr_t H5FDctl(H5FD_t *file, uint64_t op_code, uint64_t flags, const void *input, void **output) * } */ - public static int H5FDctl(MemorySegment file, long op_code, long flags, MemorySegment input, MemorySegment output) { + public static int H5FDctl(MemorySegment file, long op_code, long flags, MemorySegment input, + MemorySegment output) + { var mh$ = H5FDctl.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDctl", file, op_code, flags, input, output); } return (int)mh$.invokeExact(file, op_code, flags, input, output); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Iregister_future { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Iregister_future"); @@ -17291,55 +16208,53 @@ private static class H5Iregister_future { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, H5I_future_discard_func_t discard_cb) + * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, + * H5I_future_discard_func_t discard_cb) * } */ - public static FunctionDescriptor H5Iregister_future$descriptor() { - return H5Iregister_future.DESC; - } + public static FunctionDescriptor H5Iregister_future$descriptor() { return H5Iregister_future.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, H5I_future_discard_func_t discard_cb) + * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, + * H5I_future_discard_func_t discard_cb) * } */ - public static MethodHandle H5Iregister_future$handle() { - return H5Iregister_future.HANDLE; - } + public static MethodHandle H5Iregister_future$handle() { return H5Iregister_future.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, H5I_future_discard_func_t discard_cb) + * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, + * H5I_future_discard_func_t discard_cb) * } */ - public static MemorySegment H5Iregister_future$address() { - return H5Iregister_future.ADDR; - } + public static MemorySegment H5Iregister_future$address() { return H5Iregister_future.ADDR; } /** * {@snippet lang=c : - * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, H5I_future_discard_func_t discard_cb) + * hid_t H5Iregister_future(H5I_type_t type, const void *object, H5I_future_realize_func_t realize_cb, + * H5I_future_discard_func_t discard_cb) * } */ - public static long H5Iregister_future(int type, MemorySegment object, MemorySegment realize_cb, MemorySegment discard_cb) { + public static long H5Iregister_future(int type, MemorySegment object, MemorySegment realize_cb, + MemorySegment discard_cb) + { var mh$ = H5Iregister_future.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Iregister_future", type, object, realize_cb, discard_cb); } return (long)mh$.invokeExact(type, object, realize_cb, discard_cb); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lregister"); @@ -17352,9 +16267,7 @@ private static class H5Lregister { * herr_t H5Lregister(const H5L_class_t *cls) * } */ - public static FunctionDescriptor H5Lregister$descriptor() { - return H5Lregister.DESC; - } + public static FunctionDescriptor H5Lregister$descriptor() { return H5Lregister.DESC; } /** * Downcall method handle for: @@ -17362,9 +16275,7 @@ private static class H5Lregister { * herr_t H5Lregister(const H5L_class_t *cls) * } */ - public static MethodHandle H5Lregister$handle() { - return H5Lregister.HANDLE; - } + public static MethodHandle H5Lregister$handle() { return H5Lregister.HANDLE; } /** * Address for: @@ -17372,32 +16283,29 @@ private static class H5Lregister { * herr_t H5Lregister(const H5L_class_t *cls) * } */ - public static MemorySegment H5Lregister$address() { - return H5Lregister.ADDR; - } + public static MemorySegment H5Lregister$address() { return H5Lregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Lregister(const H5L_class_t *cls) * } */ - public static int H5Lregister(MemorySegment cls) { + public static int H5Lregister(MemorySegment cls) + { var mh$ = H5Lregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lregister", cls); } return (int)mh$.invokeExact(cls); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lunregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lunregister"); @@ -17410,9 +16318,7 @@ private static class H5Lunregister { * herr_t H5Lunregister(H5L_type_t id) * } */ - public static FunctionDescriptor H5Lunregister$descriptor() { - return H5Lunregister.DESC; - } + public static FunctionDescriptor H5Lunregister$descriptor() { return H5Lunregister.DESC; } /** * Downcall method handle for: @@ -17420,9 +16326,7 @@ private static class H5Lunregister { * herr_t H5Lunregister(H5L_type_t id) * } */ - public static MethodHandle H5Lunregister$handle() { - return H5Lunregister.HANDLE; - } + public static MethodHandle H5Lunregister$handle() { return H5Lunregister.HANDLE; } /** * Address for: @@ -17430,24 +16334,24 @@ private static class H5Lunregister { * herr_t H5Lunregister(H5L_type_t id) * } */ - public static MemorySegment H5Lunregister$address() { - return H5Lunregister.ADDR; - } + public static MemorySegment H5Lunregister$address() { return H5Lunregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Lunregister(H5L_type_t id) * } */ - public static int H5Lunregister(int id) { + public static int H5Lunregister(int id) + { var mh$ = H5Lunregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lunregister", id); } return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5T_CONV_INIT = (int)0L; @@ -17456,91 +16360,67 @@ public static int H5Lunregister(int id) { * enum H5T_cmd_t.H5T_CONV_INIT = 0 * } */ - public static int H5T_CONV_INIT() { - return H5T_CONV_INIT; - } + public static int H5T_CONV_INIT() { return H5T_CONV_INIT; } private static final int H5T_CONV_CONV = (int)1L; /** * {@snippet lang=c : * enum H5T_cmd_t.H5T_CONV_CONV = 1 * } */ - public static int H5T_CONV_CONV() { - return H5T_CONV_CONV; - } + public static int H5T_CONV_CONV() { return H5T_CONV_CONV; } private static final int H5T_CONV_FREE = (int)2L; /** * {@snippet lang=c : * enum H5T_cmd_t.H5T_CONV_FREE = 2 * } */ - public static int H5T_CONV_FREE() { - return H5T_CONV_FREE; - } + public static int H5T_CONV_FREE() { return H5T_CONV_FREE; } private static final int H5T_BKG_NO = (int)0L; /** * {@snippet lang=c : * enum H5T_bkg_t.H5T_BKG_NO = 0 * } */ - public static int H5T_BKG_NO() { - return H5T_BKG_NO; - } + public static int H5T_BKG_NO() { return H5T_BKG_NO; } private static final int H5T_BKG_TEMP = (int)1L; /** * {@snippet lang=c : * enum H5T_bkg_t.H5T_BKG_TEMP = 1 * } */ - public static int H5T_BKG_TEMP() { - return H5T_BKG_TEMP; - } + public static int H5T_BKG_TEMP() { return H5T_BKG_TEMP; } private static final int H5T_BKG_YES = (int)2L; /** * {@snippet lang=c : * enum H5T_bkg_t.H5T_BKG_YES = 2 * } */ - public static int H5T_BKG_YES() { - return H5T_BKG_YES; - } + public static int H5T_BKG_YES() { return H5T_BKG_YES; } private static final int H5T_PERS_DONTCARE = (int)-1L; /** * {@snippet lang=c : * enum H5T_pers_t.H5T_PERS_DONTCARE = -1 * } */ - public static int H5T_PERS_DONTCARE() { - return H5T_PERS_DONTCARE; - } + public static int H5T_PERS_DONTCARE() { return H5T_PERS_DONTCARE; } private static final int H5T_PERS_HARD = (int)0L; /** * {@snippet lang=c : * enum H5T_pers_t.H5T_PERS_HARD = 0 * } */ - public static int H5T_PERS_HARD() { - return H5T_PERS_HARD; - } + public static int H5T_PERS_HARD() { return H5T_PERS_HARD; } private static final int H5T_PERS_SOFT = (int)1L; /** * {@snippet lang=c : * enum H5T_pers_t.H5T_PERS_SOFT = 1 * } */ - public static int H5T_PERS_SOFT() { - return H5T_PERS_SOFT; - } + public static int H5T_PERS_SOFT() { return H5T_PERS_SOFT; } private static class H5Tregister { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tregister"); @@ -17553,9 +16433,7 @@ private static class H5Tregister { * herr_t H5Tregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static FunctionDescriptor H5Tregister$descriptor() { - return H5Tregister.DESC; - } + public static FunctionDescriptor H5Tregister$descriptor() { return H5Tregister.DESC; } /** * Downcall method handle for: @@ -17563,9 +16441,7 @@ private static class H5Tregister { * herr_t H5Tregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static MethodHandle H5Tregister$handle() { - return H5Tregister.HANDLE; - } + public static MethodHandle H5Tregister$handle() { return H5Tregister.HANDLE; } /** * Address for: @@ -17573,36 +16449,30 @@ private static class H5Tregister { * herr_t H5Tregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static MemorySegment H5Tregister$address() { - return H5Tregister.ADDR; - } + public static MemorySegment H5Tregister$address() { return H5Tregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Tregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static int H5Tregister(int pers, MemorySegment name, long src_id, long dst_id, MemorySegment func) { + public static int H5Tregister(int pers, MemorySegment name, long src_id, long dst_id, MemorySegment func) + { var mh$ = H5Tregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tregister", pers, name, src_id, dst_id, func); } return (int)mh$.invokeExact(pers, name, src_id, dst_id, func); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tunregister { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tunregister"); @@ -17615,9 +16485,7 @@ private static class H5Tunregister { * herr_t H5Tunregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static FunctionDescriptor H5Tunregister$descriptor() { - return H5Tunregister.DESC; - } + public static FunctionDescriptor H5Tunregister$descriptor() { return H5Tunregister.DESC; } /** * Downcall method handle for: @@ -17625,9 +16493,7 @@ private static class H5Tunregister { * herr_t H5Tunregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static MethodHandle H5Tunregister$handle() { - return H5Tunregister.HANDLE; - } + public static MethodHandle H5Tunregister$handle() { return H5Tunregister.HANDLE; } /** * Address for: @@ -17635,34 +16501,31 @@ private static class H5Tunregister { * herr_t H5Tunregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static MemorySegment H5Tunregister$address() { - return H5Tunregister.ADDR; - } + public static MemorySegment H5Tunregister$address() { return H5Tunregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Tunregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func) * } */ - public static int H5Tunregister(int pers, MemorySegment name, long src_id, long dst_id, MemorySegment func) { + public static int H5Tunregister(int pers, MemorySegment name, long src_id, long dst_id, + MemorySegment func) + { var mh$ = H5Tunregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tunregister", pers, name, src_id, dst_id, func); } return (int)mh$.invokeExact(pers, name, src_id, dst_id, func); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tfind { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tfind"); @@ -17675,9 +16538,7 @@ private static class H5Tfind { * H5T_conv_t H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata) * } */ - public static FunctionDescriptor H5Tfind$descriptor() { - return H5Tfind.DESC; - } + public static FunctionDescriptor H5Tfind$descriptor() { return H5Tfind.DESC; } /** * Downcall method handle for: @@ -17685,9 +16546,7 @@ private static class H5Tfind { * H5T_conv_t H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata) * } */ - public static MethodHandle H5Tfind$handle() { - return H5Tfind.HANDLE; - } + public static MethodHandle H5Tfind$handle() { return H5Tfind.HANDLE; } /** * Address for: @@ -17695,33 +16554,30 @@ private static class H5Tfind { * H5T_conv_t H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata) * } */ - public static MemorySegment H5Tfind$address() { - return H5Tfind.ADDR; - } + public static MemorySegment H5Tfind$address() { return H5Tfind.ADDR; } /** * {@snippet lang=c : * H5T_conv_t H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata) * } */ - public static MemorySegment H5Tfind(long src_id, long dst_id, MemorySegment pcdata) { + public static MemorySegment H5Tfind(long src_id, long dst_id, MemorySegment pcdata) + { var mh$ = H5Tfind.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tfind", src_id, dst_id, pcdata); } return (MemorySegment)mh$.invokeExact(src_id, dst_id, pcdata); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcompiler_conv { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcompiler_conv"); @@ -17734,9 +16590,7 @@ private static class H5Tcompiler_conv { * htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id) * } */ - public static FunctionDescriptor H5Tcompiler_conv$descriptor() { - return H5Tcompiler_conv.DESC; - } + public static FunctionDescriptor H5Tcompiler_conv$descriptor() { return H5Tcompiler_conv.DESC; } /** * Downcall method handle for: @@ -17744,9 +16598,7 @@ private static class H5Tcompiler_conv { * htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id) * } */ - public static MethodHandle H5Tcompiler_conv$handle() { - return H5Tcompiler_conv.HANDLE; - } + public static MethodHandle H5Tcompiler_conv$handle() { return H5Tcompiler_conv.HANDLE; } /** * Address for: @@ -17754,33 +16606,30 @@ private static class H5Tcompiler_conv { * htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id) * } */ - public static MemorySegment H5Tcompiler_conv$address() { - return H5Tcompiler_conv.ADDR; - } + public static MemorySegment H5Tcompiler_conv$address() { return H5Tcompiler_conv.ADDR; } /** * {@snippet lang=c : * htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id) * } */ - public static int H5Tcompiler_conv(long src_id, long dst_id) { + public static int H5Tcompiler_conv(long src_id, long dst_id) + { var mh$ = H5Tcompiler_conv.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcompiler_conv", src_id, dst_id); } return (int)mh$.invokeExact(src_id, dst_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5TSmutex_acquire { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5TSmutex_acquire"); @@ -17793,9 +16642,7 @@ private static class H5TSmutex_acquire { * herr_t H5TSmutex_acquire(unsigned int lock_count, bool *acquired) * } */ - public static FunctionDescriptor H5TSmutex_acquire$descriptor() { - return H5TSmutex_acquire.DESC; - } + public static FunctionDescriptor H5TSmutex_acquire$descriptor() { return H5TSmutex_acquire.DESC; } /** * Downcall method handle for: @@ -17803,9 +16650,7 @@ private static class H5TSmutex_acquire { * herr_t H5TSmutex_acquire(unsigned int lock_count, bool *acquired) * } */ - public static MethodHandle H5TSmutex_acquire$handle() { - return H5TSmutex_acquire.HANDLE; - } + public static MethodHandle H5TSmutex_acquire$handle() { return H5TSmutex_acquire.HANDLE; } /** * Address for: @@ -17813,32 +16658,29 @@ private static class H5TSmutex_acquire { * herr_t H5TSmutex_acquire(unsigned int lock_count, bool *acquired) * } */ - public static MemorySegment H5TSmutex_acquire$address() { - return H5TSmutex_acquire.ADDR; - } + public static MemorySegment H5TSmutex_acquire$address() { return H5TSmutex_acquire.ADDR; } /** * {@snippet lang=c : * herr_t H5TSmutex_acquire(unsigned int lock_count, bool *acquired) * } */ - public static int H5TSmutex_acquire(int lock_count, MemorySegment acquired) { + public static int H5TSmutex_acquire(int lock_count, MemorySegment acquired) + { var mh$ = H5TSmutex_acquire.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5TSmutex_acquire", lock_count, acquired); } return (int)mh$.invokeExact(lock_count, acquired); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5TSmutex_release { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5TSmutex_release"); @@ -17851,9 +16693,7 @@ private static class H5TSmutex_release { * herr_t H5TSmutex_release(unsigned int *lock_count) * } */ - public static FunctionDescriptor H5TSmutex_release$descriptor() { - return H5TSmutex_release.DESC; - } + public static FunctionDescriptor H5TSmutex_release$descriptor() { return H5TSmutex_release.DESC; } /** * Downcall method handle for: @@ -17861,9 +16701,7 @@ private static class H5TSmutex_release { * herr_t H5TSmutex_release(unsigned int *lock_count) * } */ - public static MethodHandle H5TSmutex_release$handle() { - return H5TSmutex_release.HANDLE; - } + public static MethodHandle H5TSmutex_release$handle() { return H5TSmutex_release.HANDLE; } /** * Address for: @@ -17871,32 +16709,29 @@ private static class H5TSmutex_release { * herr_t H5TSmutex_release(unsigned int *lock_count) * } */ - public static MemorySegment H5TSmutex_release$address() { - return H5TSmutex_release.ADDR; - } + public static MemorySegment H5TSmutex_release$address() { return H5TSmutex_release.ADDR; } /** * {@snippet lang=c : * herr_t H5TSmutex_release(unsigned int *lock_count) * } */ - public static int H5TSmutex_release(MemorySegment lock_count) { + public static int H5TSmutex_release(MemorySegment lock_count) + { var mh$ = H5TSmutex_release.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5TSmutex_release", lock_count); } return (int)mh$.invokeExact(lock_count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5TSmutex_get_attempt_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5TSmutex_get_attempt_count"); @@ -17909,7 +16744,8 @@ private static class H5TSmutex_get_attempt_count { * herr_t H5TSmutex_get_attempt_count(unsigned int *count) * } */ - public static FunctionDescriptor H5TSmutex_get_attempt_count$descriptor() { + public static FunctionDescriptor H5TSmutex_get_attempt_count$descriptor() + { return H5TSmutex_get_attempt_count.DESC; } @@ -17919,7 +16755,8 @@ private static class H5TSmutex_get_attempt_count { * herr_t H5TSmutex_get_attempt_count(unsigned int *count) * } */ - public static MethodHandle H5TSmutex_get_attempt_count$handle() { + public static MethodHandle H5TSmutex_get_attempt_count$handle() + { return H5TSmutex_get_attempt_count.HANDLE; } @@ -17929,7 +16766,8 @@ private static class H5TSmutex_get_attempt_count { * herr_t H5TSmutex_get_attempt_count(unsigned int *count) * } */ - public static MemorySegment H5TSmutex_get_attempt_count$address() { + public static MemorySegment H5TSmutex_get_attempt_count$address() + { return H5TSmutex_get_attempt_count.ADDR; } @@ -17938,23 +16776,22 @@ private static class H5TSmutex_get_attempt_count { * herr_t H5TSmutex_get_attempt_count(unsigned int *count) * } */ - public static int H5TSmutex_get_attempt_count(MemorySegment count) { + public static int H5TSmutex_get_attempt_count(MemorySegment count) + { var mh$ = H5TSmutex_get_attempt_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5TSmutex_get_attempt_count", count); } return (int)mh$.invokeExact(count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Zregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Zregister"); @@ -17967,9 +16804,7 @@ private static class H5Zregister { * herr_t H5Zregister(const void *cls) * } */ - public static FunctionDescriptor H5Zregister$descriptor() { - return H5Zregister.DESC; - } + public static FunctionDescriptor H5Zregister$descriptor() { return H5Zregister.DESC; } /** * Downcall method handle for: @@ -17977,9 +16812,7 @@ private static class H5Zregister { * herr_t H5Zregister(const void *cls) * } */ - public static MethodHandle H5Zregister$handle() { - return H5Zregister.HANDLE; - } + public static MethodHandle H5Zregister$handle() { return H5Zregister.HANDLE; } /** * Address for: @@ -17987,32 +16820,29 @@ private static class H5Zregister { * herr_t H5Zregister(const void *cls) * } */ - public static MemorySegment H5Zregister$address() { - return H5Zregister.ADDR; - } + public static MemorySegment H5Zregister$address() { return H5Zregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Zregister(const void *cls) * } */ - public static int H5Zregister(MemorySegment cls) { + public static int H5Zregister(MemorySegment cls) + { var mh$ = H5Zregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Zregister", cls); } return (int)mh$.invokeExact(cls); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Zunregister { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Zunregister"); @@ -18025,9 +16855,7 @@ private static class H5Zunregister { * herr_t H5Zunregister(H5Z_filter_t id) * } */ - public static FunctionDescriptor H5Zunregister$descriptor() { - return H5Zunregister.DESC; - } + public static FunctionDescriptor H5Zunregister$descriptor() { return H5Zunregister.DESC; } /** * Downcall method handle for: @@ -18035,9 +16863,7 @@ private static class H5Zunregister { * herr_t H5Zunregister(H5Z_filter_t id) * } */ - public static MethodHandle H5Zunregister$handle() { - return H5Zunregister.HANDLE; - } + public static MethodHandle H5Zunregister$handle() { return H5Zunregister.HANDLE; } /** * Address for: @@ -18045,34 +16871,30 @@ private static class H5Zunregister { * herr_t H5Zunregister(H5Z_filter_t id) * } */ - public static MemorySegment H5Zunregister$address() { - return H5Zunregister.ADDR; - } + public static MemorySegment H5Zunregister$address() { return H5Zunregister.ADDR; } /** * {@snippet lang=c : * herr_t H5Zunregister(H5Z_filter_t id) * } */ - public static int H5Zunregister(int id) { + public static int H5Zunregister(int id) + { var mh$ = H5Zunregister.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Zunregister", id); } return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLcmp_connector_cls { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLcmp_connector_cls"); @@ -18085,9 +16907,7 @@ private static class H5VLcmp_connector_cls { * herr_t H5VLcmp_connector_cls(int *cmp, hid_t connector_id1, hid_t connector_id2) * } */ - public static FunctionDescriptor H5VLcmp_connector_cls$descriptor() { - return H5VLcmp_connector_cls.DESC; - } + public static FunctionDescriptor H5VLcmp_connector_cls$descriptor() { return H5VLcmp_connector_cls.DESC; } /** * Downcall method handle for: @@ -18095,9 +16915,7 @@ private static class H5VLcmp_connector_cls { * herr_t H5VLcmp_connector_cls(int *cmp, hid_t connector_id1, hid_t connector_id2) * } */ - public static MethodHandle H5VLcmp_connector_cls$handle() { - return H5VLcmp_connector_cls.HANDLE; - } + public static MethodHandle H5VLcmp_connector_cls$handle() { return H5VLcmp_connector_cls.HANDLE; } /** * Address for: @@ -18105,33 +16923,30 @@ private static class H5VLcmp_connector_cls { * herr_t H5VLcmp_connector_cls(int *cmp, hid_t connector_id1, hid_t connector_id2) * } */ - public static MemorySegment H5VLcmp_connector_cls$address() { - return H5VLcmp_connector_cls.ADDR; - } + public static MemorySegment H5VLcmp_connector_cls$address() { return H5VLcmp_connector_cls.ADDR; } /** * {@snippet lang=c : * herr_t H5VLcmp_connector_cls(int *cmp, hid_t connector_id1, hid_t connector_id2) * } */ - public static int H5VLcmp_connector_cls(MemorySegment cmp, long connector_id1, long connector_id2) { + public static int H5VLcmp_connector_cls(MemorySegment cmp, long connector_id1, long connector_id2) + { var mh$ = H5VLcmp_connector_cls.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLcmp_connector_cls", cmp, connector_id1, connector_id2); } return (int)mh$.invokeExact(cmp, connector_id1, connector_id2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLwrap_register { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLwrap_register"); @@ -18144,9 +16959,7 @@ private static class H5VLwrap_register { * hid_t H5VLwrap_register(void *obj, H5I_type_t type) * } */ - public static FunctionDescriptor H5VLwrap_register$descriptor() { - return H5VLwrap_register.DESC; - } + public static FunctionDescriptor H5VLwrap_register$descriptor() { return H5VLwrap_register.DESC; } /** * Downcall method handle for: @@ -18154,9 +16967,7 @@ private static class H5VLwrap_register { * hid_t H5VLwrap_register(void *obj, H5I_type_t type) * } */ - public static MethodHandle H5VLwrap_register$handle() { - return H5VLwrap_register.HANDLE; - } + public static MethodHandle H5VLwrap_register$handle() { return H5VLwrap_register.HANDLE; } /** * Address for: @@ -18164,32 +16975,29 @@ private static class H5VLwrap_register { * hid_t H5VLwrap_register(void *obj, H5I_type_t type) * } */ - public static MemorySegment H5VLwrap_register$address() { - return H5VLwrap_register.ADDR; - } + public static MemorySegment H5VLwrap_register$address() { return H5VLwrap_register.ADDR; } /** * {@snippet lang=c : * hid_t H5VLwrap_register(void *obj, H5I_type_t type) * } */ - public static long H5VLwrap_register(MemorySegment obj, int type) { + public static long H5VLwrap_register(MemorySegment obj, int type) + { var mh$ = H5VLwrap_register.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLwrap_register", obj, type); } return (long)mh$.invokeExact(obj, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLretrieve_lib_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLretrieve_lib_state"); @@ -18202,7 +17010,8 @@ private static class H5VLretrieve_lib_state { * herr_t H5VLretrieve_lib_state(void **state) * } */ - public static FunctionDescriptor H5VLretrieve_lib_state$descriptor() { + public static FunctionDescriptor H5VLretrieve_lib_state$descriptor() + { return H5VLretrieve_lib_state.DESC; } @@ -18212,9 +17021,7 @@ private static class H5VLretrieve_lib_state { * herr_t H5VLretrieve_lib_state(void **state) * } */ - public static MethodHandle H5VLretrieve_lib_state$handle() { - return H5VLretrieve_lib_state.HANDLE; - } + public static MethodHandle H5VLretrieve_lib_state$handle() { return H5VLretrieve_lib_state.HANDLE; } /** * Address for: @@ -18222,30 +17029,29 @@ private static class H5VLretrieve_lib_state { * herr_t H5VLretrieve_lib_state(void **state) * } */ - public static MemorySegment H5VLretrieve_lib_state$address() { - return H5VLretrieve_lib_state.ADDR; - } + public static MemorySegment H5VLretrieve_lib_state$address() { return H5VLretrieve_lib_state.ADDR; } /** * {@snippet lang=c : * herr_t H5VLretrieve_lib_state(void **state) * } */ - public static int H5VLretrieve_lib_state(MemorySegment state) { + public static int H5VLretrieve_lib_state(MemorySegment state) + { var mh$ = H5VLretrieve_lib_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLretrieve_lib_state", state); } return (int)mh$.invokeExact(state); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLstart_lib_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLstart_lib_state"); @@ -18258,9 +17064,7 @@ private static class H5VLstart_lib_state { * herr_t H5VLstart_lib_state() * } */ - public static FunctionDescriptor H5VLstart_lib_state$descriptor() { - return H5VLstart_lib_state.DESC; - } + public static FunctionDescriptor H5VLstart_lib_state$descriptor() { return H5VLstart_lib_state.DESC; } /** * Downcall method handle for: @@ -18268,9 +17072,7 @@ private static class H5VLstart_lib_state { * herr_t H5VLstart_lib_state() * } */ - public static MethodHandle H5VLstart_lib_state$handle() { - return H5VLstart_lib_state.HANDLE; - } + public static MethodHandle H5VLstart_lib_state$handle() { return H5VLstart_lib_state.HANDLE; } /** * Address for: @@ -18278,32 +17080,29 @@ private static class H5VLstart_lib_state { * herr_t H5VLstart_lib_state() * } */ - public static MemorySegment H5VLstart_lib_state$address() { - return H5VLstart_lib_state.ADDR; - } + public static MemorySegment H5VLstart_lib_state$address() { return H5VLstart_lib_state.ADDR; } /** * {@snippet lang=c : * herr_t H5VLstart_lib_state() * } */ - public static int H5VLstart_lib_state() { + public static int H5VLstart_lib_state() + { var mh$ = H5VLstart_lib_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLstart_lib_state"); } return (int)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrestore_lib_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrestore_lib_state"); @@ -18316,9 +17115,7 @@ private static class H5VLrestore_lib_state { * herr_t H5VLrestore_lib_state(const void *state) * } */ - public static FunctionDescriptor H5VLrestore_lib_state$descriptor() { - return H5VLrestore_lib_state.DESC; - } + public static FunctionDescriptor H5VLrestore_lib_state$descriptor() { return H5VLrestore_lib_state.DESC; } /** * Downcall method handle for: @@ -18326,9 +17123,7 @@ private static class H5VLrestore_lib_state { * herr_t H5VLrestore_lib_state(const void *state) * } */ - public static MethodHandle H5VLrestore_lib_state$handle() { - return H5VLrestore_lib_state.HANDLE; - } + public static MethodHandle H5VLrestore_lib_state$handle() { return H5VLrestore_lib_state.HANDLE; } /** * Address for: @@ -18336,30 +17131,29 @@ private static class H5VLrestore_lib_state { * herr_t H5VLrestore_lib_state(const void *state) * } */ - public static MemorySegment H5VLrestore_lib_state$address() { - return H5VLrestore_lib_state.ADDR; - } + public static MemorySegment H5VLrestore_lib_state$address() { return H5VLrestore_lib_state.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrestore_lib_state(const void *state) * } */ - public static int H5VLrestore_lib_state(MemorySegment state) { + public static int H5VLrestore_lib_state(MemorySegment state) + { var mh$ = H5VLrestore_lib_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrestore_lib_state", state); } return (int)mh$.invokeExact(state); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfinish_lib_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfinish_lib_state"); @@ -18372,9 +17166,7 @@ private static class H5VLfinish_lib_state { * herr_t H5VLfinish_lib_state() * } */ - public static FunctionDescriptor H5VLfinish_lib_state$descriptor() { - return H5VLfinish_lib_state.DESC; - } + public static FunctionDescriptor H5VLfinish_lib_state$descriptor() { return H5VLfinish_lib_state.DESC; } /** * Downcall method handle for: @@ -18382,9 +17174,7 @@ private static class H5VLfinish_lib_state { * herr_t H5VLfinish_lib_state() * } */ - public static MethodHandle H5VLfinish_lib_state$handle() { - return H5VLfinish_lib_state.HANDLE; - } + public static MethodHandle H5VLfinish_lib_state$handle() { return H5VLfinish_lib_state.HANDLE; } /** * Address for: @@ -18392,32 +17182,29 @@ private static class H5VLfinish_lib_state { * herr_t H5VLfinish_lib_state() * } */ - public static MemorySegment H5VLfinish_lib_state$address() { - return H5VLfinish_lib_state.ADDR; - } + public static MemorySegment H5VLfinish_lib_state$address() { return H5VLfinish_lib_state.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfinish_lib_state() * } */ - public static int H5VLfinish_lib_state() { + public static int H5VLfinish_lib_state() + { var mh$ = H5VLfinish_lib_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfinish_lib_state"); } return (int)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfree_lib_state { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfree_lib_state"); @@ -18430,9 +17217,7 @@ private static class H5VLfree_lib_state { * herr_t H5VLfree_lib_state(void *state) * } */ - public static FunctionDescriptor H5VLfree_lib_state$descriptor() { - return H5VLfree_lib_state.DESC; - } + public static FunctionDescriptor H5VLfree_lib_state$descriptor() { return H5VLfree_lib_state.DESC; } /** * Downcall method handle for: @@ -18440,9 +17225,7 @@ private static class H5VLfree_lib_state { * herr_t H5VLfree_lib_state(void *state) * } */ - public static MethodHandle H5VLfree_lib_state$handle() { - return H5VLfree_lib_state.HANDLE; - } + public static MethodHandle H5VLfree_lib_state$handle() { return H5VLfree_lib_state.HANDLE; } /** * Address for: @@ -18450,33 +17233,30 @@ private static class H5VLfree_lib_state { * herr_t H5VLfree_lib_state(void *state) * } */ - public static MemorySegment H5VLfree_lib_state$address() { - return H5VLfree_lib_state.ADDR; - } + public static MemorySegment H5VLfree_lib_state$address() { return H5VLfree_lib_state.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfree_lib_state(void *state) * } */ - public static int H5VLfree_lib_state(MemorySegment state) { + public static int H5VLfree_lib_state(MemorySegment state) + { var mh$ = H5VLfree_lib_state.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfree_lib_state", state); } return (int)mh$.invokeExact(state); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_object { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_object"); @@ -18489,9 +17269,7 @@ private static class H5VLget_object { * void *H5VLget_object(void *obj, hid_t connector_id) * } */ - public static FunctionDescriptor H5VLget_object$descriptor() { - return H5VLget_object.DESC; - } + public static FunctionDescriptor H5VLget_object$descriptor() { return H5VLget_object.DESC; } /** * Downcall method handle for: @@ -18499,9 +17277,7 @@ private static class H5VLget_object { * void *H5VLget_object(void *obj, hid_t connector_id) * } */ - public static MethodHandle H5VLget_object$handle() { - return H5VLget_object.HANDLE; - } + public static MethodHandle H5VLget_object$handle() { return H5VLget_object.HANDLE; } /** * Address for: @@ -18509,34 +17285,30 @@ private static class H5VLget_object { * void *H5VLget_object(void *obj, hid_t connector_id) * } */ - public static MemorySegment H5VLget_object$address() { - return H5VLget_object.ADDR; - } + public static MemorySegment H5VLget_object$address() { return H5VLget_object.ADDR; } /** * {@snippet lang=c : * void *H5VLget_object(void *obj, hid_t connector_id) * } */ - public static MemorySegment H5VLget_object(MemorySegment obj, long connector_id) { + public static MemorySegment H5VLget_object(MemorySegment obj, long connector_id) + { var mh$ = H5VLget_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_object", obj, connector_id); } return (MemorySegment)mh$.invokeExact(obj, connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_wrap_ctx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_wrap_ctx"); @@ -18549,9 +17321,7 @@ private static class H5VLget_wrap_ctx { * herr_t H5VLget_wrap_ctx(void *obj, hid_t connector_id, void **wrap_ctx) * } */ - public static FunctionDescriptor H5VLget_wrap_ctx$descriptor() { - return H5VLget_wrap_ctx.DESC; - } + public static FunctionDescriptor H5VLget_wrap_ctx$descriptor() { return H5VLget_wrap_ctx.DESC; } /** * Downcall method handle for: @@ -18559,9 +17329,7 @@ private static class H5VLget_wrap_ctx { * herr_t H5VLget_wrap_ctx(void *obj, hid_t connector_id, void **wrap_ctx) * } */ - public static MethodHandle H5VLget_wrap_ctx$handle() { - return H5VLget_wrap_ctx.HANDLE; - } + public static MethodHandle H5VLget_wrap_ctx$handle() { return H5VLget_wrap_ctx.HANDLE; } /** * Address for: @@ -18569,35 +17337,30 @@ private static class H5VLget_wrap_ctx { * herr_t H5VLget_wrap_ctx(void *obj, hid_t connector_id, void **wrap_ctx) * } */ - public static MemorySegment H5VLget_wrap_ctx$address() { - return H5VLget_wrap_ctx.ADDR; - } + public static MemorySegment H5VLget_wrap_ctx$address() { return H5VLget_wrap_ctx.ADDR; } /** * {@snippet lang=c : * herr_t H5VLget_wrap_ctx(void *obj, hid_t connector_id, void **wrap_ctx) * } */ - public static int H5VLget_wrap_ctx(MemorySegment obj, long connector_id, MemorySegment wrap_ctx) { + public static int H5VLget_wrap_ctx(MemorySegment obj, long connector_id, MemorySegment wrap_ctx) + { var mh$ = H5VLget_wrap_ctx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_wrap_ctx", obj, connector_id, wrap_ctx); } return (int)mh$.invokeExact(obj, connector_id, wrap_ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLwrap_object { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLwrap_object"); @@ -18610,9 +17373,7 @@ private static class H5VLwrap_object { * void *H5VLwrap_object(void *obj, H5I_type_t obj_type, hid_t connector_id, void *wrap_ctx) * } */ - public static FunctionDescriptor H5VLwrap_object$descriptor() { - return H5VLwrap_object.DESC; - } + public static FunctionDescriptor H5VLwrap_object$descriptor() { return H5VLwrap_object.DESC; } /** * Downcall method handle for: @@ -18620,9 +17381,7 @@ private static class H5VLwrap_object { * void *H5VLwrap_object(void *obj, H5I_type_t obj_type, hid_t connector_id, void *wrap_ctx) * } */ - public static MethodHandle H5VLwrap_object$handle() { - return H5VLwrap_object.HANDLE; - } + public static MethodHandle H5VLwrap_object$handle() { return H5VLwrap_object.HANDLE; } /** * Address for: @@ -18630,33 +17389,31 @@ private static class H5VLwrap_object { * void *H5VLwrap_object(void *obj, H5I_type_t obj_type, hid_t connector_id, void *wrap_ctx) * } */ - public static MemorySegment H5VLwrap_object$address() { - return H5VLwrap_object.ADDR; - } + public static MemorySegment H5VLwrap_object$address() { return H5VLwrap_object.ADDR; } /** * {@snippet lang=c : * void *H5VLwrap_object(void *obj, H5I_type_t obj_type, hid_t connector_id, void *wrap_ctx) * } */ - public static MemorySegment H5VLwrap_object(MemorySegment obj, int obj_type, long connector_id, MemorySegment wrap_ctx) { + public static MemorySegment H5VLwrap_object(MemorySegment obj, int obj_type, long connector_id, + MemorySegment wrap_ctx) + { var mh$ = H5VLwrap_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLwrap_object", obj, obj_type, connector_id, wrap_ctx); } return (MemorySegment)mh$.invokeExact(obj, obj_type, connector_id, wrap_ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLunwrap_object { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLunwrap_object"); @@ -18669,9 +17426,7 @@ private static class H5VLunwrap_object { * void *H5VLunwrap_object(void *obj, hid_t connector_id) * } */ - public static FunctionDescriptor H5VLunwrap_object$descriptor() { - return H5VLunwrap_object.DESC; - } + public static FunctionDescriptor H5VLunwrap_object$descriptor() { return H5VLunwrap_object.DESC; } /** * Downcall method handle for: @@ -18679,9 +17434,7 @@ private static class H5VLunwrap_object { * void *H5VLunwrap_object(void *obj, hid_t connector_id) * } */ - public static MethodHandle H5VLunwrap_object$handle() { - return H5VLunwrap_object.HANDLE; - } + public static MethodHandle H5VLunwrap_object$handle() { return H5VLunwrap_object.HANDLE; } /** * Address for: @@ -18689,33 +17442,30 @@ private static class H5VLunwrap_object { * void *H5VLunwrap_object(void *obj, hid_t connector_id) * } */ - public static MemorySegment H5VLunwrap_object$address() { - return H5VLunwrap_object.ADDR; - } + public static MemorySegment H5VLunwrap_object$address() { return H5VLunwrap_object.ADDR; } /** * {@snippet lang=c : * void *H5VLunwrap_object(void *obj, hid_t connector_id) * } */ - public static MemorySegment H5VLunwrap_object(MemorySegment obj, long connector_id) { + public static MemorySegment H5VLunwrap_object(MemorySegment obj, long connector_id) + { var mh$ = H5VLunwrap_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLunwrap_object", obj, connector_id); } return (MemorySegment)mh$.invokeExact(obj, connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfree_wrap_ctx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfree_wrap_ctx"); @@ -18728,9 +17478,7 @@ private static class H5VLfree_wrap_ctx { * herr_t H5VLfree_wrap_ctx(void *wrap_ctx, hid_t connector_id) * } */ - public static FunctionDescriptor H5VLfree_wrap_ctx$descriptor() { - return H5VLfree_wrap_ctx.DESC; - } + public static FunctionDescriptor H5VLfree_wrap_ctx$descriptor() { return H5VLfree_wrap_ctx.DESC; } /** * Downcall method handle for: @@ -18738,9 +17486,7 @@ private static class H5VLfree_wrap_ctx { * herr_t H5VLfree_wrap_ctx(void *wrap_ctx, hid_t connector_id) * } */ - public static MethodHandle H5VLfree_wrap_ctx$handle() { - return H5VLfree_wrap_ctx.HANDLE; - } + public static MethodHandle H5VLfree_wrap_ctx$handle() { return H5VLfree_wrap_ctx.HANDLE; } /** * Address for: @@ -18748,33 +17494,30 @@ private static class H5VLfree_wrap_ctx { * herr_t H5VLfree_wrap_ctx(void *wrap_ctx, hid_t connector_id) * } */ - public static MemorySegment H5VLfree_wrap_ctx$address() { - return H5VLfree_wrap_ctx.ADDR; - } + public static MemorySegment H5VLfree_wrap_ctx$address() { return H5VLfree_wrap_ctx.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfree_wrap_ctx(void *wrap_ctx, hid_t connector_id) * } */ - public static int H5VLfree_wrap_ctx(MemorySegment wrap_ctx, long connector_id) { + public static int H5VLfree_wrap_ctx(MemorySegment wrap_ctx, long connector_id) + { var mh$ = H5VLfree_wrap_ctx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfree_wrap_ctx", wrap_ctx, connector_id); } return (int)mh$.invokeExact(wrap_ctx, connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLinitialize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLinitialize"); @@ -18787,9 +17530,7 @@ private static class H5VLinitialize { * herr_t H5VLinitialize(hid_t connector_id, hid_t vipl_id) * } */ - public static FunctionDescriptor H5VLinitialize$descriptor() { - return H5VLinitialize.DESC; - } + public static FunctionDescriptor H5VLinitialize$descriptor() { return H5VLinitialize.DESC; } /** * Downcall method handle for: @@ -18797,9 +17538,7 @@ private static class H5VLinitialize { * herr_t H5VLinitialize(hid_t connector_id, hid_t vipl_id) * } */ - public static MethodHandle H5VLinitialize$handle() { - return H5VLinitialize.HANDLE; - } + public static MethodHandle H5VLinitialize$handle() { return H5VLinitialize.HANDLE; } /** * Address for: @@ -18807,32 +17546,29 @@ private static class H5VLinitialize { * herr_t H5VLinitialize(hid_t connector_id, hid_t vipl_id) * } */ - public static MemorySegment H5VLinitialize$address() { - return H5VLinitialize.ADDR; - } + public static MemorySegment H5VLinitialize$address() { return H5VLinitialize.ADDR; } /** * {@snippet lang=c : * herr_t H5VLinitialize(hid_t connector_id, hid_t vipl_id) * } */ - public static int H5VLinitialize(long connector_id, long vipl_id) { + public static int H5VLinitialize(long connector_id, long vipl_id) + { var mh$ = H5VLinitialize.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLinitialize", connector_id, vipl_id); } return (int)mh$.invokeExact(connector_id, vipl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLterminate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLterminate"); @@ -18845,9 +17581,7 @@ private static class H5VLterminate { * herr_t H5VLterminate(hid_t connector_id) * } */ - public static FunctionDescriptor H5VLterminate$descriptor() { - return H5VLterminate.DESC; - } + public static FunctionDescriptor H5VLterminate$descriptor() { return H5VLterminate.DESC; } /** * Downcall method handle for: @@ -18855,9 +17589,7 @@ private static class H5VLterminate { * herr_t H5VLterminate(hid_t connector_id) * } */ - public static MethodHandle H5VLterminate$handle() { - return H5VLterminate.HANDLE; - } + public static MethodHandle H5VLterminate$handle() { return H5VLterminate.HANDLE; } /** * Address for: @@ -18865,33 +17597,30 @@ private static class H5VLterminate { * herr_t H5VLterminate(hid_t connector_id) * } */ - public static MemorySegment H5VLterminate$address() { - return H5VLterminate.ADDR; - } + public static MemorySegment H5VLterminate$address() { return H5VLterminate.ADDR; } /** * {@snippet lang=c : * herr_t H5VLterminate(hid_t connector_id) * } */ - public static int H5VLterminate(long connector_id) { + public static int H5VLterminate(long connector_id) + { var mh$ = H5VLterminate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLterminate", connector_id); } return (int)mh$.invokeExact(connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_cap_flags { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_cap_flags"); @@ -18904,9 +17633,7 @@ private static class H5VLget_cap_flags { * herr_t H5VLget_cap_flags(hid_t connector_id, uint64_t *cap_flags) * } */ - public static FunctionDescriptor H5VLget_cap_flags$descriptor() { - return H5VLget_cap_flags.DESC; - } + public static FunctionDescriptor H5VLget_cap_flags$descriptor() { return H5VLget_cap_flags.DESC; } /** * Downcall method handle for: @@ -18914,9 +17641,7 @@ private static class H5VLget_cap_flags { * herr_t H5VLget_cap_flags(hid_t connector_id, uint64_t *cap_flags) * } */ - public static MethodHandle H5VLget_cap_flags$handle() { - return H5VLget_cap_flags.HANDLE; - } + public static MethodHandle H5VLget_cap_flags$handle() { return H5VLget_cap_flags.HANDLE; } /** * Address for: @@ -18924,33 +17649,30 @@ private static class H5VLget_cap_flags { * herr_t H5VLget_cap_flags(hid_t connector_id, uint64_t *cap_flags) * } */ - public static MemorySegment H5VLget_cap_flags$address() { - return H5VLget_cap_flags.ADDR; - } + public static MemorySegment H5VLget_cap_flags$address() { return H5VLget_cap_flags.ADDR; } /** * {@snippet lang=c : * herr_t H5VLget_cap_flags(hid_t connector_id, uint64_t *cap_flags) * } */ - public static int H5VLget_cap_flags(long connector_id, MemorySegment cap_flags) { + public static int H5VLget_cap_flags(long connector_id, MemorySegment cap_flags) + { var mh$ = H5VLget_cap_flags.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_cap_flags", connector_id, cap_flags); } return (int)mh$.invokeExact(connector_id, cap_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_value"); @@ -18963,9 +17685,7 @@ private static class H5VLget_value { * herr_t H5VLget_value(hid_t connector_id, H5VL_class_value_t *conn_value) * } */ - public static FunctionDescriptor H5VLget_value$descriptor() { - return H5VLget_value.DESC; - } + public static FunctionDescriptor H5VLget_value$descriptor() { return H5VLget_value.DESC; } /** * Downcall method handle for: @@ -18973,9 +17693,7 @@ private static class H5VLget_value { * herr_t H5VLget_value(hid_t connector_id, H5VL_class_value_t *conn_value) * } */ - public static MethodHandle H5VLget_value$handle() { - return H5VLget_value.HANDLE; - } + public static MethodHandle H5VLget_value$handle() { return H5VLget_value.HANDLE; } /** * Address for: @@ -18983,34 +17701,30 @@ private static class H5VLget_value { * herr_t H5VLget_value(hid_t connector_id, H5VL_class_value_t *conn_value) * } */ - public static MemorySegment H5VLget_value$address() { - return H5VLget_value.ADDR; - } + public static MemorySegment H5VLget_value$address() { return H5VLget_value.ADDR; } /** * {@snippet lang=c : * herr_t H5VLget_value(hid_t connector_id, H5VL_class_value_t *conn_value) * } */ - public static int H5VLget_value(long connector_id, MemorySegment conn_value) { + public static int H5VLget_value(long connector_id, MemorySegment conn_value) + { var mh$ = H5VLget_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_value", connector_id, conn_value); } return (int)mh$.invokeExact(connector_id, conn_value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLcopy_connector_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLcopy_connector_info"); @@ -19023,7 +17737,8 @@ private static class H5VLcopy_connector_info { * herr_t H5VLcopy_connector_info(hid_t connector_id, void **dst_vol_info, void *src_vol_info) * } */ - public static FunctionDescriptor H5VLcopy_connector_info$descriptor() { + public static FunctionDescriptor H5VLcopy_connector_info$descriptor() + { return H5VLcopy_connector_info.DESC; } @@ -19033,9 +17748,7 @@ private static class H5VLcopy_connector_info { * herr_t H5VLcopy_connector_info(hid_t connector_id, void **dst_vol_info, void *src_vol_info) * } */ - public static MethodHandle H5VLcopy_connector_info$handle() { - return H5VLcopy_connector_info.HANDLE; - } + public static MethodHandle H5VLcopy_connector_info$handle() { return H5VLcopy_connector_info.HANDLE; } /** * Address for: @@ -19043,35 +17756,31 @@ private static class H5VLcopy_connector_info { * herr_t H5VLcopy_connector_info(hid_t connector_id, void **dst_vol_info, void *src_vol_info) * } */ - public static MemorySegment H5VLcopy_connector_info$address() { - return H5VLcopy_connector_info.ADDR; - } + public static MemorySegment H5VLcopy_connector_info$address() { return H5VLcopy_connector_info.ADDR; } /** * {@snippet lang=c : * herr_t H5VLcopy_connector_info(hid_t connector_id, void **dst_vol_info, void *src_vol_info) * } */ - public static int H5VLcopy_connector_info(long connector_id, MemorySegment dst_vol_info, MemorySegment src_vol_info) { + public static int H5VLcopy_connector_info(long connector_id, MemorySegment dst_vol_info, + MemorySegment src_vol_info) + { var mh$ = H5VLcopy_connector_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLcopy_connector_info", connector_id, dst_vol_info, src_vol_info); } return (int)mh$.invokeExact(connector_id, dst_vol_info, src_vol_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLcmp_connector_info { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLcmp_connector_info"); @@ -19084,7 +17793,8 @@ private static class H5VLcmp_connector_info { * herr_t H5VLcmp_connector_info(int *cmp, hid_t connector_id, const void *info1, const void *info2) * } */ - public static FunctionDescriptor H5VLcmp_connector_info$descriptor() { + public static FunctionDescriptor H5VLcmp_connector_info$descriptor() + { return H5VLcmp_connector_info.DESC; } @@ -19094,9 +17804,7 @@ private static class H5VLcmp_connector_info { * herr_t H5VLcmp_connector_info(int *cmp, hid_t connector_id, const void *info1, const void *info2) * } */ - public static MethodHandle H5VLcmp_connector_info$handle() { - return H5VLcmp_connector_info.HANDLE; - } + public static MethodHandle H5VLcmp_connector_info$handle() { return H5VLcmp_connector_info.HANDLE; } /** * Address for: @@ -19104,33 +17812,31 @@ private static class H5VLcmp_connector_info { * herr_t H5VLcmp_connector_info(int *cmp, hid_t connector_id, const void *info1, const void *info2) * } */ - public static MemorySegment H5VLcmp_connector_info$address() { - return H5VLcmp_connector_info.ADDR; - } + public static MemorySegment H5VLcmp_connector_info$address() { return H5VLcmp_connector_info.ADDR; } /** * {@snippet lang=c : * herr_t H5VLcmp_connector_info(int *cmp, hid_t connector_id, const void *info1, const void *info2) * } */ - public static int H5VLcmp_connector_info(MemorySegment cmp, long connector_id, MemorySegment info1, MemorySegment info2) { + public static int H5VLcmp_connector_info(MemorySegment cmp, long connector_id, MemorySegment info1, + MemorySegment info2) + { var mh$ = H5VLcmp_connector_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLcmp_connector_info", cmp, connector_id, info1, info2); } return (int)mh$.invokeExact(cmp, connector_id, info1, info2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfree_connector_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfree_connector_info"); @@ -19143,7 +17849,8 @@ private static class H5VLfree_connector_info { * herr_t H5VLfree_connector_info(hid_t connector_id, void *vol_info) * } */ - public static FunctionDescriptor H5VLfree_connector_info$descriptor() { + public static FunctionDescriptor H5VLfree_connector_info$descriptor() + { return H5VLfree_connector_info.DESC; } @@ -19153,9 +17860,7 @@ private static class H5VLfree_connector_info { * herr_t H5VLfree_connector_info(hid_t connector_id, void *vol_info) * } */ - public static MethodHandle H5VLfree_connector_info$handle() { - return H5VLfree_connector_info.HANDLE; - } + public static MethodHandle H5VLfree_connector_info$handle() { return H5VLfree_connector_info.HANDLE; } /** * Address for: @@ -19163,34 +17868,30 @@ private static class H5VLfree_connector_info { * herr_t H5VLfree_connector_info(hid_t connector_id, void *vol_info) * } */ - public static MemorySegment H5VLfree_connector_info$address() { - return H5VLfree_connector_info.ADDR; - } + public static MemorySegment H5VLfree_connector_info$address() { return H5VLfree_connector_info.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfree_connector_info(hid_t connector_id, void *vol_info) * } */ - public static int H5VLfree_connector_info(long connector_id, MemorySegment vol_info) { + public static int H5VLfree_connector_info(long connector_id, MemorySegment vol_info) + { var mh$ = H5VLfree_connector_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfree_connector_info", connector_id, vol_info); } return (int)mh$.invokeExact(connector_id, vol_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLconnector_info_to_str { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLconnector_info_to_str"); @@ -19203,7 +17904,8 @@ private static class H5VLconnector_info_to_str { * herr_t H5VLconnector_info_to_str(const void *info, hid_t connector_id, char **str) * } */ - public static FunctionDescriptor H5VLconnector_info_to_str$descriptor() { + public static FunctionDescriptor H5VLconnector_info_to_str$descriptor() + { return H5VLconnector_info_to_str.DESC; } @@ -19213,9 +17915,7 @@ private static class H5VLconnector_info_to_str { * herr_t H5VLconnector_info_to_str(const void *info, hid_t connector_id, char **str) * } */ - public static MethodHandle H5VLconnector_info_to_str$handle() { - return H5VLconnector_info_to_str.HANDLE; - } + public static MethodHandle H5VLconnector_info_to_str$handle() { return H5VLconnector_info_to_str.HANDLE; } /** * Address for: @@ -19223,34 +17923,30 @@ private static class H5VLconnector_info_to_str { * herr_t H5VLconnector_info_to_str(const void *info, hid_t connector_id, char **str) * } */ - public static MemorySegment H5VLconnector_info_to_str$address() { - return H5VLconnector_info_to_str.ADDR; - } + public static MemorySegment H5VLconnector_info_to_str$address() { return H5VLconnector_info_to_str.ADDR; } /** * {@snippet lang=c : * herr_t H5VLconnector_info_to_str(const void *info, hid_t connector_id, char **str) * } */ - public static int H5VLconnector_info_to_str(MemorySegment info, long connector_id, MemorySegment str) { + public static int H5VLconnector_info_to_str(MemorySegment info, long connector_id, MemorySegment str) + { var mh$ = H5VLconnector_info_to_str.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLconnector_info_to_str", info, connector_id, str); } return (int)mh$.invokeExact(info, connector_id, str); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLconnector_str_to_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLconnector_str_to_info"); @@ -19263,7 +17959,8 @@ private static class H5VLconnector_str_to_info { * herr_t H5VLconnector_str_to_info(const char *str, hid_t connector_id, void **info) * } */ - public static FunctionDescriptor H5VLconnector_str_to_info$descriptor() { + public static FunctionDescriptor H5VLconnector_str_to_info$descriptor() + { return H5VLconnector_str_to_info.DESC; } @@ -19273,9 +17970,7 @@ private static class H5VLconnector_str_to_info { * herr_t H5VLconnector_str_to_info(const char *str, hid_t connector_id, void **info) * } */ - public static MethodHandle H5VLconnector_str_to_info$handle() { - return H5VLconnector_str_to_info.HANDLE; - } + public static MethodHandle H5VLconnector_str_to_info$handle() { return H5VLconnector_str_to_info.HANDLE; } /** * Address for: @@ -19283,41 +17978,31 @@ private static class H5VLconnector_str_to_info { * herr_t H5VLconnector_str_to_info(const char *str, hid_t connector_id, void **info) * } */ - public static MemorySegment H5VLconnector_str_to_info$address() { - return H5VLconnector_str_to_info.ADDR; - } + public static MemorySegment H5VLconnector_str_to_info$address() { return H5VLconnector_str_to_info.ADDR; } /** * {@snippet lang=c : * herr_t H5VLconnector_str_to_info(const char *str, hid_t connector_id, void **info) * } */ - public static int H5VLconnector_str_to_info(MemorySegment str, long connector_id, MemorySegment info) { + public static int H5VLconnector_str_to_info(MemorySegment str, long connector_id, MemorySegment info) + { var mh$ = H5VLconnector_str_to_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLconnector_str_to_info", str, connector_id, info); } return (int)mh$.invokeExact(str, connector_id, info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_create { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_create"); @@ -19327,61 +18012,59 @@ private static class H5VLattr_create { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLattr_create$descriptor() { - return H5VLattr_create.DESC; - } + public static FunctionDescriptor H5VLattr_create$descriptor() { return H5VLattr_create.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLattr_create$handle() { - return H5VLattr_create.HANDLE; - } + public static MethodHandle H5VLattr_create$handle() { return H5VLattr_create.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_create$address() { - return H5VLattr_create.ADDR; - } + public static MemorySegment H5VLattr_create$address() { return H5VLattr_create.ADDR; } /** * {@snippet lang=c : - * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_create(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment attr_name, long type_id, long space_id, long acpl_id, long aapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLattr_create(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment attr_name, long type_id, + long space_id, long acpl_id, long aapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLattr_create.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLattr_create", obj, loc_params, connector_id, attr_name, type_id, space_id, acpl_id, aapl_id, dxpl_id, req); + traceDowncall("H5VLattr_create", obj, loc_params, connector_id, attr_name, type_id, space_id, + acpl_id, aapl_id, dxpl_id, req); } - return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, attr_name, type_id, space_id, acpl_id, aapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, attr_name, type_id, space_id, + acpl_id, aapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_open { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_open"); @@ -19391,60 +18074,56 @@ private static class H5VLattr_open { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLattr_open$descriptor() { - return H5VLattr_open.DESC; - } + public static FunctionDescriptor H5VLattr_open$descriptor() { return H5VLattr_open.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLattr_open$handle() { - return H5VLattr_open.HANDLE; - } + public static MethodHandle H5VLattr_open$handle() { return H5VLattr_open.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_open$address() { - return H5VLattr_open.ADDR; - } + public static MemorySegment H5VLattr_open$address() { return H5VLattr_open.ADDR; } /** * {@snippet lang=c : - * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t aapl_id, hid_t dxpl_id, void **req) + * void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t aapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_open(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long aapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLattr_open(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment name, long aapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLattr_open.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_open", obj, loc_params, connector_id, name, aapl_id, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, aapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_read { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_read"); @@ -19454,60 +18133,55 @@ private static class H5VLattr_read { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLattr_read$descriptor() { - return H5VLattr_read.DESC; - } + public static FunctionDescriptor H5VLattr_read$descriptor() { return H5VLattr_read.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLattr_read$handle() { - return H5VLattr_read.HANDLE; - } + public static MethodHandle H5VLattr_read$handle() { return H5VLattr_read.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLattr_read$address() { - return H5VLattr_read.ADDR; - } + public static MemorySegment H5VLattr_read$address() { return H5VLattr_read.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLattr_read(MemorySegment attr, long connector_id, long dtype_id, MemorySegment buf, long dxpl_id, MemorySegment req) { + public static int H5VLattr_read(MemorySegment attr, long connector_id, long dtype_id, MemorySegment buf, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLattr_read.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_read", attr, connector_id, dtype_id, buf, dxpl_id, req); } return (int)mh$.invokeExact(attr, connector_id, dtype_id, buf, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_write { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_write"); @@ -19517,59 +18191,54 @@ private static class H5VLattr_write { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLattr_write$descriptor() { - return H5VLattr_write.DESC; - } + public static FunctionDescriptor H5VLattr_write$descriptor() { return H5VLattr_write.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLattr_write$handle() { - return H5VLattr_write.HANDLE; - } + public static MethodHandle H5VLattr_write$handle() { return H5VLattr_write.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLattr_write$address() { - return H5VLattr_write.ADDR; - } + public static MemorySegment H5VLattr_write$address() { return H5VLattr_write.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, void **req) + * herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLattr_write(MemorySegment attr, long connector_id, long dtype_id, MemorySegment buf, long dxpl_id, MemorySegment req) { + public static int H5VLattr_write(MemorySegment attr, long connector_id, long dtype_id, MemorySegment buf, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLattr_write.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_write", attr, connector_id, dtype_id, buf, dxpl_id, req); } return (int)mh$.invokeExact(attr, connector_id, dtype_id, buf, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_get { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_get"); @@ -19579,60 +18248,55 @@ private static class H5VLattr_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLattr_get$descriptor() { - return H5VLattr_get.DESC; - } + public static FunctionDescriptor H5VLattr_get$descriptor() { return H5VLattr_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLattr_get$handle() { - return H5VLattr_get.HANDLE; - } + public static MethodHandle H5VLattr_get$handle() { return H5VLattr_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLattr_get$address() { - return H5VLattr_get.ADDR; - } + public static MemorySegment H5VLattr_get$address() { return H5VLattr_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLattr_get(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLattr_get(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLattr_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_get", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_specific { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_specific"); @@ -19642,59 +18306,54 @@ private static class H5VLattr_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLattr_specific$descriptor() { - return H5VLattr_specific.DESC; - } + public static FunctionDescriptor H5VLattr_specific$descriptor() { return H5VLattr_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLattr_specific$handle() { - return H5VLattr_specific.HANDLE; - } + public static MethodHandle H5VLattr_specific$handle() { return H5VLattr_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_specific$address() { - return H5VLattr_specific.ADDR; - } + public static MemorySegment H5VLattr_specific$address() { return H5VLattr_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLattr_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLattr_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLattr_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_specific", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_optional"); @@ -19704,58 +18363,54 @@ private static class H5VLattr_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLattr_optional$descriptor() { - return H5VLattr_optional.DESC; - } + public static FunctionDescriptor H5VLattr_optional$descriptor() { return H5VLattr_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLattr_optional$handle() { - return H5VLattr_optional.HANDLE; - } + public static MethodHandle H5VLattr_optional$handle() { return H5VLattr_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLattr_optional$address() { - return H5VLattr_optional.ADDR; - } + public static MemorySegment H5VLattr_optional$address() { return H5VLattr_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLattr_optional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLattr_optional(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLattr_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_optional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_close { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_close"); @@ -19768,9 +18423,7 @@ private static class H5VLattr_close { * herr_t H5VLattr_close(void *attr, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLattr_close$descriptor() { - return H5VLattr_close.DESC; - } + public static FunctionDescriptor H5VLattr_close$descriptor() { return H5VLattr_close.DESC; } /** * Downcall method handle for: @@ -19778,9 +18431,7 @@ private static class H5VLattr_close { * herr_t H5VLattr_close(void *attr, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLattr_close$handle() { - return H5VLattr_close.HANDLE; - } + public static MethodHandle H5VLattr_close$handle() { return H5VLattr_close.HANDLE; } /** * Address for: @@ -19788,42 +18439,32 @@ private static class H5VLattr_close { * herr_t H5VLattr_close(void *attr, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLattr_close$address() { - return H5VLattr_close.ADDR; - } + public static MemorySegment H5VLattr_close$address() { return H5VLattr_close.ADDR; } /** * {@snippet lang=c : * herr_t H5VLattr_close(void *attr, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLattr_close(MemorySegment attr, long connector_id, long dxpl_id, MemorySegment req) { + public static int H5VLattr_close(MemorySegment attr, long connector_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLattr_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLattr_close", attr, connector_id, dxpl_id, req); } return (int)mh$.invokeExact(attr, connector_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_create"); @@ -19833,61 +18474,63 @@ private static class H5VLdataset_create { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLdataset_create$descriptor() { - return H5VLdataset_create.DESC; - } + public static FunctionDescriptor H5VLdataset_create$descriptor() { return H5VLdataset_create.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLdataset_create$handle() { - return H5VLdataset_create.HANDLE; - } + public static MethodHandle H5VLdataset_create$handle() { return H5VLdataset_create.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLdataset_create$address() { - return H5VLdataset_create.ADDR; - } + public static MemorySegment H5VLdataset_create$address() { return H5VLdataset_create.ADDR; } /** * {@snippet lang=c : - * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLdataset_create(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long lcpl_id, long type_id, long space_id, long dcpl_id, long dapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLdataset_create(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment name, long lcpl_id, + long type_id, long space_id, long dcpl_id, long dapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdataset_create.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdataset_create", obj, loc_params, connector_id, name, lcpl_id, type_id, space_id, dcpl_id, dapl_id, dxpl_id, req); + traceDowncall("H5VLdataset_create", obj, loc_params, connector_id, name, lcpl_id, type_id, + space_id, dcpl_id, dapl_id, dxpl_id, req); } - return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, lcpl_id, type_id, space_id, dcpl_id, dapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, lcpl_id, type_id, + space_id, dcpl_id, dapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_open { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_open"); @@ -19897,63 +18540,56 @@ private static class H5VLdataset_open { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t dapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdataset_open$descriptor() { - return H5VLdataset_open.DESC; - } + public static FunctionDescriptor H5VLdataset_open$descriptor() { return H5VLdataset_open.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t dapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLdataset_open$handle() { - return H5VLdataset_open.HANDLE; - } + public static MethodHandle H5VLdataset_open$handle() { return H5VLdataset_open.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t dapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdataset_open$address() { - return H5VLdataset_open.ADDR; - } + public static MemorySegment H5VLdataset_open$address() { return H5VLdataset_open.ADDR; } /** * {@snippet lang=c : - * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req) + * void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t dapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdataset_open(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long dapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLdataset_open(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment name, long dapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdataset_open.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdataset_open", obj, loc_params, connector_id, name, dapl_id, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, dapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_read { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_read"); @@ -19963,63 +18599,59 @@ private static class H5VLdataset_read { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) + * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) * } */ - public static FunctionDescriptor H5VLdataset_read$descriptor() { - return H5VLdataset_read.DESC; - } + public static FunctionDescriptor H5VLdataset_read$descriptor() { return H5VLdataset_read.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) + * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) * } */ - public static MethodHandle H5VLdataset_read$handle() { - return H5VLdataset_read.HANDLE; - } + public static MethodHandle H5VLdataset_read$handle() { return H5VLdataset_read.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) + * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) * } */ - public static MemorySegment H5VLdataset_read$address() { - return H5VLdataset_read.ADDR; - } + public static MemorySegment H5VLdataset_read$address() { return H5VLdataset_read.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) + * herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[], void **req) * } */ - public static int H5VLdataset_read(long count, MemorySegment dset, long connector_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long plist_id, MemorySegment buf, MemorySegment req) { + public static int H5VLdataset_read(long count, MemorySegment dset, long connector_id, + MemorySegment mem_type_id, MemorySegment mem_space_id, + MemorySegment file_space_id, long plist_id, MemorySegment buf, + MemorySegment req) + { var mh$ = H5VLdataset_read.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdataset_read", count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req); + traceDowncall("H5VLdataset_read", count, dset, connector_id, mem_type_id, mem_space_id, + file_space_id, plist_id, buf, req); } - return (int)mh$.invokeExact(count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, + plist_id, buf, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_write { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_write"); @@ -20029,59 +18661,58 @@ private static class H5VLdataset_write { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) + * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) * } */ - public static FunctionDescriptor H5VLdataset_write$descriptor() { - return H5VLdataset_write.DESC; - } + public static FunctionDescriptor H5VLdataset_write$descriptor() { return H5VLdataset_write.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) + * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) * } */ - public static MethodHandle H5VLdataset_write$handle() { - return H5VLdataset_write.HANDLE; - } + public static MethodHandle H5VLdataset_write$handle() { return H5VLdataset_write.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) + * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) * } */ - public static MemorySegment H5VLdataset_write$address() { - return H5VLdataset_write.ADDR; - } + public static MemorySegment H5VLdataset_write$address() { return H5VLdataset_write.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) + * herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[], hid_t + * mem_space_id[], hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req) * } */ - public static int H5VLdataset_write(long count, MemorySegment dset, long connector_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long plist_id, MemorySegment buf, MemorySegment req) { + public static int H5VLdataset_write(long count, MemorySegment dset, long connector_id, + MemorySegment mem_type_id, MemorySegment mem_space_id, + MemorySegment file_space_id, long plist_id, MemorySegment buf, + MemorySegment req) + { var mh$ = H5VLdataset_write.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdataset_write", count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req); + traceDowncall("H5VLdataset_write", count, dset, connector_id, mem_type_id, mem_space_id, + file_space_id, plist_id, buf, req); } - return (int)mh$.invokeExact(count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, plist_id, buf, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(count, dset, connector_id, mem_type_id, mem_space_id, file_space_id, + plist_id, buf, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_get { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_get"); @@ -20091,59 +18722,54 @@ private static class H5VLdataset_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLdataset_get$descriptor() { - return H5VLdataset_get.DESC; - } + public static FunctionDescriptor H5VLdataset_get$descriptor() { return H5VLdataset_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLdataset_get$handle() { - return H5VLdataset_get.HANDLE; - } + public static MethodHandle H5VLdataset_get$handle() { return H5VLdataset_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLdataset_get$address() { - return H5VLdataset_get.ADDR; - } + public static MemorySegment H5VLdataset_get$address() { return H5VLdataset_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLdataset_get(MemorySegment dset, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdataset_get(MemorySegment dset, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLdataset_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdataset_get", dset, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(dset, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_specific { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_specific"); @@ -20153,59 +18779,54 @@ private static class H5VLdataset_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdataset_specific$descriptor() { - return H5VLdataset_specific.DESC; - } + public static FunctionDescriptor H5VLdataset_specific$descriptor() { return H5VLdataset_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MethodHandle H5VLdataset_specific$handle() { - return H5VLdataset_specific.HANDLE; - } + public static MethodHandle H5VLdataset_specific$handle() { return H5VLdataset_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MemorySegment H5VLdataset_specific$address() { - return H5VLdataset_specific.ADDR; - } + public static MemorySegment H5VLdataset_specific$address() { return H5VLdataset_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static int H5VLdataset_specific(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdataset_specific(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdataset_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdataset_specific", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_optional"); @@ -20215,58 +18836,54 @@ private static class H5VLdataset_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLdataset_optional$descriptor() { - return H5VLdataset_optional.DESC; - } + public static FunctionDescriptor H5VLdataset_optional$descriptor() { return H5VLdataset_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLdataset_optional$handle() { - return H5VLdataset_optional.HANDLE; - } + public static MethodHandle H5VLdataset_optional$handle() { return H5VLdataset_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLdataset_optional$address() { - return H5VLdataset_optional.ADDR; - } + public static MemorySegment H5VLdataset_optional$address() { return H5VLdataset_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLdataset_optional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdataset_optional(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdataset_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdataset_optional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_close { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_close"); @@ -20279,9 +18896,7 @@ private static class H5VLdataset_close { * herr_t H5VLdataset_close(void *dset, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdataset_close$descriptor() { - return H5VLdataset_close.DESC; - } + public static FunctionDescriptor H5VLdataset_close$descriptor() { return H5VLdataset_close.DESC; } /** * Downcall method handle for: @@ -20289,9 +18904,7 @@ private static class H5VLdataset_close { * herr_t H5VLdataset_close(void *dset, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLdataset_close$handle() { - return H5VLdataset_close.HANDLE; - } + public static MethodHandle H5VLdataset_close$handle() { return H5VLdataset_close.HANDLE; } /** * Address for: @@ -20299,41 +18912,32 @@ private static class H5VLdataset_close { * herr_t H5VLdataset_close(void *dset, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdataset_close$address() { - return H5VLdataset_close.ADDR; - } + public static MemorySegment H5VLdataset_close$address() { return H5VLdataset_close.ADDR; } /** * {@snippet lang=c : * herr_t H5VLdataset_close(void *dset, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLdataset_close(MemorySegment dset, long connector_id, long dxpl_id, MemorySegment req) { + public static int H5VLdataset_close(MemorySegment dset, long connector_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLdataset_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdataset_close", dset, connector_id, dxpl_id, req); } return (int)mh$.invokeExact(dset, connector_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_commit { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_commit"); @@ -20343,61 +18947,59 @@ private static class H5VLdatatype_commit { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const + * char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdatatype_commit$descriptor() { - return H5VLdatatype_commit.DESC; - } + public static FunctionDescriptor H5VLdatatype_commit$descriptor() { return H5VLdatatype_commit.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const + * char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLdatatype_commit$handle() { - return H5VLdatatype_commit.HANDLE; - } + public static MethodHandle H5VLdatatype_commit$handle() { return H5VLdatatype_commit.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const + * char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_commit$address() { - return H5VLdatatype_commit.ADDR; - } + public static MemorySegment H5VLdatatype_commit$address() { return H5VLdatatype_commit.ADDR; } /** * {@snippet lang=c : - * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const + * char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_commit(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long type_id, long lcpl_id, long tcpl_id, long tapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLdatatype_commit(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment name, long type_id, + long lcpl_id, long tcpl_id, long tapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLdatatype_commit.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdatatype_commit", obj, loc_params, connector_id, name, type_id, lcpl_id, tcpl_id, tapl_id, dxpl_id, req); + traceDowncall("H5VLdatatype_commit", obj, loc_params, connector_id, name, type_id, lcpl_id, + tcpl_id, tapl_id, dxpl_id, req); } - return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, type_id, lcpl_id, tcpl_id, tapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, type_id, lcpl_id, + tcpl_id, tapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_open { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_open"); @@ -20407,59 +19009,56 @@ private static class H5VLdatatype_open { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdatatype_open$descriptor() { - return H5VLdatatype_open.DESC; - } + public static FunctionDescriptor H5VLdatatype_open$descriptor() { return H5VLdatatype_open.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLdatatype_open$handle() { - return H5VLdatatype_open.HANDLE; - } + public static MethodHandle H5VLdatatype_open$handle() { return H5VLdatatype_open.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_open$address() { - return H5VLdatatype_open.ADDR; - } + public static MemorySegment H5VLdatatype_open$address() { return H5VLdatatype_open.ADDR; } /** * {@snippet lang=c : - * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t tapl_id, hid_t dxpl_id, void **req) + * void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t tapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_open(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long tapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLdatatype_open(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment name, long tapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdatatype_open.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdatatype_open", obj, loc_params, connector_id, name, tapl_id, dxpl_id, req); + traceDowncall("H5VLdatatype_open", obj, loc_params, connector_id, name, tapl_id, dxpl_id, + req); } return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, tapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_get { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_get"); @@ -20469,59 +19068,54 @@ private static class H5VLdatatype_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLdatatype_get$descriptor() { - return H5VLdatatype_get.DESC; - } + public static FunctionDescriptor H5VLdatatype_get$descriptor() { return H5VLdatatype_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLdatatype_get$handle() { - return H5VLdatatype_get.HANDLE; - } + public static MethodHandle H5VLdatatype_get$handle() { return H5VLdatatype_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLdatatype_get$address() { - return H5VLdatatype_get.ADDR; - } + public static MemorySegment H5VLdatatype_get$address() { return H5VLdatatype_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLdatatype_get(MemorySegment dt, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdatatype_get(MemorySegment dt, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLdatatype_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdatatype_get", dt, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(dt, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_specific { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_specific"); @@ -20531,59 +19125,54 @@ private static class H5VLdatatype_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdatatype_specific$descriptor() { - return H5VLdatatype_specific.DESC; - } + public static FunctionDescriptor H5VLdatatype_specific$descriptor() { return H5VLdatatype_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MethodHandle H5VLdatatype_specific$handle() { - return H5VLdatatype_specific.HANDLE; - } + public static MethodHandle H5VLdatatype_specific$handle() { return H5VLdatatype_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_specific$address() { - return H5VLdatatype_specific.ADDR; - } + public static MemorySegment H5VLdatatype_specific$address() { return H5VLdatatype_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static int H5VLdatatype_specific(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdatatype_specific(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdatatype_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdatatype_specific", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_optional"); @@ -20593,58 +19182,54 @@ private static class H5VLdatatype_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLdatatype_optional$descriptor() { - return H5VLdatatype_optional.DESC; - } + public static FunctionDescriptor H5VLdatatype_optional$descriptor() { return H5VLdatatype_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLdatatype_optional$handle() { - return H5VLdatatype_optional.HANDLE; - } + public static MethodHandle H5VLdatatype_optional$handle() { return H5VLdatatype_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLdatatype_optional$address() { - return H5VLdatatype_optional.ADDR; - } + public static MemorySegment H5VLdatatype_optional$address() { return H5VLdatatype_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLdatatype_optional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLdatatype_optional(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLdatatype_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdatatype_optional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_close { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_close"); @@ -20657,9 +19242,7 @@ private static class H5VLdatatype_close { * herr_t H5VLdatatype_close(void *dt, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLdatatype_close$descriptor() { - return H5VLdatatype_close.DESC; - } + public static FunctionDescriptor H5VLdatatype_close$descriptor() { return H5VLdatatype_close.DESC; } /** * Downcall method handle for: @@ -20667,9 +19250,7 @@ private static class H5VLdatatype_close { * herr_t H5VLdatatype_close(void *dt, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLdatatype_close$handle() { - return H5VLdatatype_close.HANDLE; - } + public static MethodHandle H5VLdatatype_close$handle() { return H5VLdatatype_close.HANDLE; } /** * Address for: @@ -20677,37 +19258,31 @@ private static class H5VLdatatype_close { * herr_t H5VLdatatype_close(void *dt, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLdatatype_close$address() { - return H5VLdatatype_close.ADDR; - } + public static MemorySegment H5VLdatatype_close$address() { return H5VLdatatype_close.ADDR; } /** * {@snippet lang=c : * herr_t H5VLdatatype_close(void *dt, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLdatatype_close(MemorySegment dt, long connector_id, long dxpl_id, MemorySegment req) { + public static int H5VLdatatype_close(MemorySegment dt, long connector_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLdatatype_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLdatatype_close", dt, connector_id, dxpl_id, req); } return (int)mh$.invokeExact(dt, connector_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_create"); @@ -20717,59 +19292,54 @@ private static class H5VLfile_create { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req) + * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t + * dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLfile_create$descriptor() { - return H5VLfile_create.DESC; - } + public static FunctionDescriptor H5VLfile_create$descriptor() { return H5VLfile_create.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req) + * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t + * dxpl_id, void **req) * } */ - public static MethodHandle H5VLfile_create$handle() { - return H5VLfile_create.HANDLE; - } + public static MethodHandle H5VLfile_create$handle() { return H5VLfile_create.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req) + * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t + * dxpl_id, void **req) * } */ - public static MemorySegment H5VLfile_create$address() { - return H5VLfile_create.ADDR; - } + public static MemorySegment H5VLfile_create$address() { return H5VLfile_create.ADDR; } /** * {@snippet lang=c : - * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req) + * void *H5VLfile_create(const char *name, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t + * dxpl_id, void **req) * } */ - public static MemorySegment H5VLfile_create(MemorySegment name, int flags, long fcpl_id, long fapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLfile_create(MemorySegment name, int flags, long fcpl_id, long fapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLfile_create.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_create", name, flags, fcpl_id, fapl_id, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(name, flags, fcpl_id, fapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_open { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_open"); @@ -20782,9 +19352,7 @@ private static class H5VLfile_open { * void *H5VLfile_open(const char *name, unsigned int flags, hid_t fapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLfile_open$descriptor() { - return H5VLfile_open.DESC; - } + public static FunctionDescriptor H5VLfile_open$descriptor() { return H5VLfile_open.DESC; } /** * Downcall method handle for: @@ -20792,9 +19360,7 @@ private static class H5VLfile_open { * void *H5VLfile_open(const char *name, unsigned int flags, hid_t fapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLfile_open$handle() { - return H5VLfile_open.HANDLE; - } + public static MethodHandle H5VLfile_open$handle() { return H5VLfile_open.HANDLE; } /** * Address for: @@ -20802,36 +19368,31 @@ private static class H5VLfile_open { * void *H5VLfile_open(const char *name, unsigned int flags, hid_t fapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLfile_open$address() { - return H5VLfile_open.ADDR; - } + public static MemorySegment H5VLfile_open$address() { return H5VLfile_open.ADDR; } /** * {@snippet lang=c : * void *H5VLfile_open(const char *name, unsigned int flags, hid_t fapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLfile_open(MemorySegment name, int flags, long fapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLfile_open(MemorySegment name, int flags, long fapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLfile_open.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_open", name, flags, fapl_id, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(name, flags, fapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_get { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_get"); @@ -20841,59 +19402,54 @@ private static class H5VLfile_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLfile_get$descriptor() { - return H5VLfile_get.DESC; - } + public static FunctionDescriptor H5VLfile_get$descriptor() { return H5VLfile_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLfile_get$handle() { - return H5VLfile_get.HANDLE; - } + public static MethodHandle H5VLfile_get$handle() { return H5VLfile_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLfile_get$address() { - return H5VLfile_get.ADDR; - } + public static MemorySegment H5VLfile_get$address() { return H5VLfile_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLfile_get(MemorySegment file, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLfile_get(MemorySegment file, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLfile_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_get", file, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(file, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_specific { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_specific"); @@ -20903,59 +19459,54 @@ private static class H5VLfile_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLfile_specific$descriptor() { - return H5VLfile_specific.DESC; - } + public static FunctionDescriptor H5VLfile_specific$descriptor() { return H5VLfile_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLfile_specific$handle() { - return H5VLfile_specific.HANDLE; - } + public static MethodHandle H5VLfile_specific$handle() { return H5VLfile_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLfile_specific$address() { - return H5VLfile_specific.ADDR; - } + public static MemorySegment H5VLfile_specific$address() { return H5VLfile_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLfile_specific(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLfile_specific(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLfile_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_specific", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_optional"); @@ -20965,58 +19516,54 @@ private static class H5VLfile_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLfile_optional$descriptor() { - return H5VLfile_optional.DESC; - } + public static FunctionDescriptor H5VLfile_optional$descriptor() { return H5VLfile_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLfile_optional$handle() { - return H5VLfile_optional.HANDLE; - } + public static MethodHandle H5VLfile_optional$handle() { return H5VLfile_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLfile_optional$address() { - return H5VLfile_optional.ADDR; - } + public static MemorySegment H5VLfile_optional$address() { return H5VLfile_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLfile_optional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLfile_optional(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLfile_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_optional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_close { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_close"); @@ -21029,9 +19576,7 @@ private static class H5VLfile_close { * herr_t H5VLfile_close(void *file, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLfile_close$descriptor() { - return H5VLfile_close.DESC; - } + public static FunctionDescriptor H5VLfile_close$descriptor() { return H5VLfile_close.DESC; } /** * Downcall method handle for: @@ -21039,9 +19584,7 @@ private static class H5VLfile_close { * herr_t H5VLfile_close(void *file, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLfile_close$handle() { - return H5VLfile_close.HANDLE; - } + public static MethodHandle H5VLfile_close$handle() { return H5VLfile_close.HANDLE; } /** * Address for: @@ -21049,40 +19592,31 @@ private static class H5VLfile_close { * herr_t H5VLfile_close(void *file, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLfile_close$address() { - return H5VLfile_close.ADDR; - } + public static MemorySegment H5VLfile_close$address() { return H5VLfile_close.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfile_close(void *file, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLfile_close(MemorySegment file, long connector_id, long dxpl_id, MemorySegment req) { + public static int H5VLfile_close(MemorySegment file, long connector_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLfile_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfile_close", file, connector_id, dxpl_id, req); } return (int)mh$.invokeExact(file, connector_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_create { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_create"); @@ -21092,61 +19626,58 @@ private static class H5VLgroup_create { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLgroup_create$descriptor() { - return H5VLgroup_create.DESC; - } + public static FunctionDescriptor H5VLgroup_create$descriptor() { return H5VLgroup_create.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLgroup_create$handle() { - return H5VLgroup_create.HANDLE; - } + public static MethodHandle H5VLgroup_create$handle() { return H5VLgroup_create.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_create$address() { - return H5VLgroup_create.ADDR; - } + public static MemorySegment H5VLgroup_create$address() { return H5VLgroup_create.ADDR; } /** * {@snippet lang=c : - * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_create(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long lcpl_id, long gcpl_id, long gapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLgroup_create(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment name, long lcpl_id, + long gcpl_id, long gapl_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLgroup_create.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLgroup_create", obj, loc_params, connector_id, name, lcpl_id, gcpl_id, gapl_id, dxpl_id, req); + traceDowncall("H5VLgroup_create", obj, loc_params, connector_id, name, lcpl_id, gcpl_id, + gapl_id, dxpl_id, req); } - return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, lcpl_id, gcpl_id, gapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, lcpl_id, gcpl_id, + gapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_open { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_open"); @@ -21156,59 +19687,55 @@ private static class H5VLgroup_open { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLgroup_open$descriptor() { - return H5VLgroup_open.DESC; - } + public static FunctionDescriptor H5VLgroup_open$descriptor() { return H5VLgroup_open.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLgroup_open$handle() { - return H5VLgroup_open.HANDLE; - } + public static MethodHandle H5VLgroup_open$handle() { return H5VLgroup_open.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_open$address() { - return H5VLgroup_open.ADDR; - } + public static MemorySegment H5VLgroup_open$address() { return H5VLgroup_open.ADDR; } /** * {@snippet lang=c : - * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req) + * void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, const char + * *name, hid_t gapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_open(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment name, long gapl_id, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLgroup_open(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment name, long gapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLgroup_open.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLgroup_open", obj, loc_params, connector_id, name, gapl_id, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, name, gapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_get { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_get"); @@ -21218,59 +19745,54 @@ private static class H5VLgroup_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLgroup_get$descriptor() { - return H5VLgroup_get.DESC; - } + public static FunctionDescriptor H5VLgroup_get$descriptor() { return H5VLgroup_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLgroup_get$handle() { - return H5VLgroup_get.HANDLE; - } + public static MethodHandle H5VLgroup_get$handle() { return H5VLgroup_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLgroup_get$address() { - return H5VLgroup_get.ADDR; - } + public static MemorySegment H5VLgroup_get$address() { return H5VLgroup_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLgroup_get(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLgroup_get(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLgroup_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLgroup_get", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_specific { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_specific"); @@ -21280,59 +19802,54 @@ private static class H5VLgroup_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLgroup_specific$descriptor() { - return H5VLgroup_specific.DESC; - } + public static FunctionDescriptor H5VLgroup_specific$descriptor() { return H5VLgroup_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MethodHandle H5VLgroup_specific$handle() { - return H5VLgroup_specific.HANDLE; - } + public static MethodHandle H5VLgroup_specific$handle() { return H5VLgroup_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_specific$address() { - return H5VLgroup_specific.ADDR; - } + public static MemorySegment H5VLgroup_specific$address() { return H5VLgroup_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args, hid_t + * dxpl_id, void **req) * } */ - public static int H5VLgroup_specific(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLgroup_specific(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLgroup_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLgroup_specific", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_optional"); @@ -21342,58 +19859,54 @@ private static class H5VLgroup_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static FunctionDescriptor H5VLgroup_optional$descriptor() { - return H5VLgroup_optional.DESC; - } + public static FunctionDescriptor H5VLgroup_optional$descriptor() { return H5VLgroup_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MethodHandle H5VLgroup_optional$handle() { - return H5VLgroup_optional.HANDLE; - } + public static MethodHandle H5VLgroup_optional$handle() { return H5VLgroup_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static MemorySegment H5VLgroup_optional$address() { - return H5VLgroup_optional.ADDR; - } + public static MemorySegment H5VLgroup_optional$address() { return H5VLgroup_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, + * void **req) * } */ - public static int H5VLgroup_optional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLgroup_optional(MemorySegment obj, long connector_id, MemorySegment args, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLgroup_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLgroup_optional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_close { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_close"); @@ -21406,9 +19919,7 @@ private static class H5VLgroup_close { * herr_t H5VLgroup_close(void *grp, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLgroup_close$descriptor() { - return H5VLgroup_close.DESC; - } + public static FunctionDescriptor H5VLgroup_close$descriptor() { return H5VLgroup_close.DESC; } /** * Downcall method handle for: @@ -21416,9 +19927,7 @@ private static class H5VLgroup_close { * herr_t H5VLgroup_close(void *grp, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLgroup_close$handle() { - return H5VLgroup_close.HANDLE; - } + public static MethodHandle H5VLgroup_close$handle() { return H5VLgroup_close.HANDLE; } /** * Address for: @@ -21426,39 +19935,31 @@ private static class H5VLgroup_close { * herr_t H5VLgroup_close(void *grp, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLgroup_close$address() { - return H5VLgroup_close.ADDR; - } + public static MemorySegment H5VLgroup_close$address() { return H5VLgroup_close.ADDR; } /** * {@snippet lang=c : * herr_t H5VLgroup_close(void *grp, hid_t connector_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLgroup_close(MemorySegment grp, long connector_id, long dxpl_id, MemorySegment req) { + public static int H5VLgroup_close(MemorySegment grp, long connector_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLgroup_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLgroup_close", grp, connector_id, dxpl_id, req); } return (int)mh$.invokeExact(grp, connector_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_create { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_create"); @@ -21468,63 +19969,57 @@ private static class H5VLlink_create { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, + * hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLlink_create$descriptor() { - return H5VLlink_create.DESC; - } + public static FunctionDescriptor H5VLlink_create$descriptor() { return H5VLlink_create.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, + * hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLlink_create$handle() { - return H5VLlink_create.HANDLE; - } + public static MethodHandle H5VLlink_create$handle() { return H5VLlink_create.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, + * hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLlink_create$address() { - return H5VLlink_create.ADDR; - } + public static MemorySegment H5VLlink_create$address() { return H5VLlink_create.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params, + * hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLlink_create(MemorySegment args, MemorySegment obj, MemorySegment loc_params, long connector_id, long lcpl_id, long lapl_id, long dxpl_id, MemorySegment req) { + public static int H5VLlink_create(MemorySegment args, MemorySegment obj, MemorySegment loc_params, + long connector_id, long lcpl_id, long lapl_id, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLlink_create.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLlink_create", args, obj, loc_params, connector_id, lcpl_id, lapl_id, dxpl_id, req); + traceDowncall("H5VLlink_create", args, obj, loc_params, connector_id, lcpl_id, lapl_id, + dxpl_id, req); } return (int)mh$.invokeExact(args, obj, loc_params, connector_id, lcpl_id, lapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_copy { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_copy"); @@ -21534,63 +20029,62 @@ private static class H5VLlink_copy { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLlink_copy$descriptor() { - return H5VLlink_copy.DESC; - } + public static FunctionDescriptor H5VLlink_copy$descriptor() { return H5VLlink_copy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLlink_copy$handle() { - return H5VLlink_copy.HANDLE; - } + public static MethodHandle H5VLlink_copy$handle() { return H5VLlink_copy.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLlink_copy$address() { - return H5VLlink_copy.ADDR; - } + public static MemorySegment H5VLlink_copy$address() { return H5VLlink_copy.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLlink_copy(MemorySegment src_obj, MemorySegment loc_params1, MemorySegment dst_obj, MemorySegment loc_params2, long connector_id, long lcpl_id, long lapl_id, long dxpl_id, MemorySegment req) { + public static int H5VLlink_copy(MemorySegment src_obj, MemorySegment loc_params1, MemorySegment dst_obj, + MemorySegment loc_params2, long connector_id, long lcpl_id, long lapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLlink_copy.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLlink_copy", src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, lapl_id, dxpl_id, req); + traceDowncall("H5VLlink_copy", src_obj, loc_params1, dst_obj, loc_params2, connector_id, + lcpl_id, lapl_id, dxpl_id, req); } - return (int)mh$.invokeExact(src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, lapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, + lapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_move { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_move"); @@ -21600,60 +20094,62 @@ private static class H5VLlink_move { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLlink_move$descriptor() { - return H5VLlink_move.DESC; - } + public static FunctionDescriptor H5VLlink_move$descriptor() { return H5VLlink_move.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLlink_move$handle() { - return H5VLlink_move.HANDLE; - } + public static MethodHandle H5VLlink_move$handle() { return H5VLlink_move.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLlink_move$address() { - return H5VLlink_move.ADDR; - } + public static MemorySegment H5VLlink_move$address() { return H5VLlink_move.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req) + * herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const + * H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLlink_move(MemorySegment src_obj, MemorySegment loc_params1, MemorySegment dst_obj, MemorySegment loc_params2, long connector_id, long lcpl_id, long lapl_id, long dxpl_id, MemorySegment req) { + public static int H5VLlink_move(MemorySegment src_obj, MemorySegment loc_params1, MemorySegment dst_obj, + MemorySegment loc_params2, long connector_id, long lcpl_id, long lapl_id, + long dxpl_id, MemorySegment req) + { var mh$ = H5VLlink_move.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLlink_move", src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, lapl_id, dxpl_id, req); + traceDowncall("H5VLlink_move", src_obj, loc_params1, dst_obj, loc_params2, connector_id, + lcpl_id, lapl_id, dxpl_id, req); } - return (int)mh$.invokeExact(src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, lapl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(src_obj, loc_params1, dst_obj, loc_params2, connector_id, lcpl_id, + lapl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_get { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_get"); @@ -21663,60 +20159,55 @@ private static class H5VLlink_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLlink_get$descriptor() { - return H5VLlink_get.DESC; - } + public static FunctionDescriptor H5VLlink_get$descriptor() { return H5VLlink_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLlink_get$handle() { - return H5VLlink_get.HANDLE; - } + public static MethodHandle H5VLlink_get$handle() { return H5VLlink_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLlink_get$address() { - return H5VLlink_get.ADDR; - } + public static MemorySegment H5VLlink_get$address() { return H5VLlink_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLlink_get(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLlink_get(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLlink_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLlink_get", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_specific { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_specific"); @@ -21726,60 +20217,55 @@ private static class H5VLlink_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLlink_specific$descriptor() { - return H5VLlink_specific.DESC; - } + public static FunctionDescriptor H5VLlink_specific$descriptor() { return H5VLlink_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLlink_specific$handle() { - return H5VLlink_specific.HANDLE; - } + public static MethodHandle H5VLlink_specific$handle() { return H5VLlink_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLlink_specific$address() { - return H5VLlink_specific.ADDR; - } + public static MemorySegment H5VLlink_specific$address() { return H5VLlink_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLlink_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLlink_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLlink_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLlink_specific", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_optional { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_optional"); @@ -21789,60 +20275,55 @@ private static class H5VLlink_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLlink_optional$descriptor() { - return H5VLlink_optional.DESC; - } + public static FunctionDescriptor H5VLlink_optional$descriptor() { return H5VLlink_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLlink_optional$handle() { - return H5VLlink_optional.HANDLE; - } + public static MethodHandle H5VLlink_optional$handle() { return H5VLlink_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLlink_optional$address() { - return H5VLlink_optional.ADDR; - } + public static MemorySegment H5VLlink_optional$address() { return H5VLlink_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLlink_optional(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLlink_optional(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLlink_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLlink_optional", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_open { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_open"); @@ -21852,65 +20333,57 @@ private static class H5VLobject_open { /** * Function descriptor for: * {@snippet lang=c : - * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t *opened_type, hid_t dxpl_id, void **req) + * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t + * *opened_type, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLobject_open$descriptor() { - return H5VLobject_open.DESC; - } + public static FunctionDescriptor H5VLobject_open$descriptor() { return H5VLobject_open.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t *opened_type, hid_t dxpl_id, void **req) + * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t + * *opened_type, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLobject_open$handle() { - return H5VLobject_open.HANDLE; - } + public static MethodHandle H5VLobject_open$handle() { return H5VLobject_open.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t *opened_type, hid_t dxpl_id, void **req) + * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t + * *opened_type, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_open$address() { - return H5VLobject_open.ADDR; - } + public static MemorySegment H5VLobject_open$address() { return H5VLobject_open.ADDR; } /** * {@snippet lang=c : - * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t *opened_type, hid_t dxpl_id, void **req) + * void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5I_type_t + * *opened_type, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_open(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment opened_type, long dxpl_id, MemorySegment req) { + public static MemorySegment H5VLobject_open(MemorySegment obj, MemorySegment loc_params, + long connector_id, MemorySegment opened_type, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLobject_open.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject_open", obj, loc_params, connector_id, opened_type, dxpl_id, req); } return (MemorySegment)mh$.invokeExact(obj, loc_params, connector_id, opened_type, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_copy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_copy"); @@ -21920,60 +20393,63 @@ private static class H5VLobject_copy { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) + * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void + * *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t + * ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLobject_copy$descriptor() { - return H5VLobject_copy.DESC; - } + public static FunctionDescriptor H5VLobject_copy$descriptor() { return H5VLobject_copy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) + * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void + * *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t + * ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLobject_copy$handle() { - return H5VLobject_copy.HANDLE; - } + public static MethodHandle H5VLobject_copy$handle() { return H5VLobject_copy.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) + * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void + * *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t + * ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_copy$address() { - return H5VLobject_copy.ADDR; - } + public static MemorySegment H5VLobject_copy$address() { return H5VLobject_copy.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) + * herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void + * *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t connector_id, hid_t + * ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req) * } */ - public static int H5VLobject_copy(MemorySegment src_obj, MemorySegment loc_params1, MemorySegment src_name, MemorySegment dst_obj, MemorySegment loc_params2, MemorySegment dst_name, long connector_id, long ocpypl_id, long lcpl_id, long dxpl_id, MemorySegment req) { + public static int H5VLobject_copy(MemorySegment src_obj, MemorySegment loc_params1, + MemorySegment src_name, MemorySegment dst_obj, + MemorySegment loc_params2, MemorySegment dst_name, long connector_id, + long ocpypl_id, long lcpl_id, long dxpl_id, MemorySegment req) + { var mh$ = H5VLobject_copy.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLobject_copy", src_obj, loc_params1, src_name, dst_obj, loc_params2, dst_name, connector_id, ocpypl_id, lcpl_id, dxpl_id, req); + traceDowncall("H5VLobject_copy", src_obj, loc_params1, src_name, dst_obj, loc_params2, + dst_name, connector_id, ocpypl_id, lcpl_id, dxpl_id, req); } - return (int)mh$.invokeExact(src_obj, loc_params1, src_name, dst_obj, loc_params2, dst_name, connector_id, ocpypl_id, lcpl_id, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(src_obj, loc_params1, src_name, dst_obj, loc_params2, dst_name, + connector_id, ocpypl_id, lcpl_id, dxpl_id, req); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_get { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_get"); @@ -21983,60 +20459,55 @@ private static class H5VLobject_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLobject_get$descriptor() { - return H5VLobject_get.DESC; - } + public static FunctionDescriptor H5VLobject_get$descriptor() { return H5VLobject_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLobject_get$handle() { - return H5VLobject_get.HANDLE; - } + public static MethodHandle H5VLobject_get$handle() { return H5VLobject_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_get$address() { - return H5VLobject_get.ADDR; - } + public static MemorySegment H5VLobject_get$address() { return H5VLobject_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_get_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLobject_get(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLobject_get(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLobject_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject_get", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_specific { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_specific"); @@ -22046,60 +20517,55 @@ private static class H5VLobject_specific { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLobject_specific$descriptor() { - return H5VLobject_specific.DESC; - } + public static FunctionDescriptor H5VLobject_specific$descriptor() { return H5VLobject_specific.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLobject_specific$handle() { - return H5VLobject_specific.HANDLE; - } + public static MethodHandle H5VLobject_specific$handle() { return H5VLobject_specific.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_specific$address() { - return H5VLobject_specific.ADDR; - } + public static MemorySegment H5VLobject_specific$address() { return H5VLobject_specific.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLobject_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLobject_specific(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLobject_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject_specific", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_optional { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_optional"); @@ -22109,58 +20575,54 @@ private static class H5VLobject_optional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static FunctionDescriptor H5VLobject_optional$descriptor() { - return H5VLobject_optional.DESC; - } + public static FunctionDescriptor H5VLobject_optional$descriptor() { return H5VLobject_optional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MethodHandle H5VLobject_optional$handle() { - return H5VLobject_optional.HANDLE; - } + public static MethodHandle H5VLobject_optional$handle() { return H5VLobject_optional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static MemorySegment H5VLobject_optional$address() { - return H5VLobject_optional.ADDR; - } + public static MemorySegment H5VLobject_optional$address() { return H5VLobject_optional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id, + * H5VL_optional_args_t *args, hid_t dxpl_id, void **req) * } */ - public static int H5VLobject_optional(MemorySegment obj, MemorySegment loc_params, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLobject_optional(MemorySegment obj, MemorySegment loc_params, long connector_id, + MemorySegment args, long dxpl_id, MemorySegment req) + { var mh$ = H5VLobject_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject_optional", obj, loc_params, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, loc_params, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLintrospect_get_conn_cls { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLintrospect_get_conn_cls"); @@ -22170,57 +20632,63 @@ private static class H5VLintrospect_get_conn_cls { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const H5VL_class_t **conn_cls) + * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const + * H5VL_class_t **conn_cls) * } */ - public static FunctionDescriptor H5VLintrospect_get_conn_cls$descriptor() { + public static FunctionDescriptor H5VLintrospect_get_conn_cls$descriptor() + { return H5VLintrospect_get_conn_cls.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const H5VL_class_t **conn_cls) + * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const + * H5VL_class_t **conn_cls) * } */ - public static MethodHandle H5VLintrospect_get_conn_cls$handle() { + public static MethodHandle H5VLintrospect_get_conn_cls$handle() + { return H5VLintrospect_get_conn_cls.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const H5VL_class_t **conn_cls) + * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const + * H5VL_class_t **conn_cls) * } */ - public static MemorySegment H5VLintrospect_get_conn_cls$address() { + public static MemorySegment H5VLintrospect_get_conn_cls$address() + { return H5VLintrospect_get_conn_cls.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const H5VL_class_t **conn_cls) + * herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl, const + * H5VL_class_t **conn_cls) * } */ - public static int H5VLintrospect_get_conn_cls(MemorySegment obj, long connector_id, int lvl, MemorySegment conn_cls) { + public static int H5VLintrospect_get_conn_cls(MemorySegment obj, long connector_id, int lvl, + MemorySegment conn_cls) + { var mh$ = H5VLintrospect_get_conn_cls.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLintrospect_get_conn_cls", obj, connector_id, lvl, conn_cls); } return (int)mh$.invokeExact(obj, connector_id, lvl, conn_cls); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLintrospect_get_cap_flags { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLintrospect_get_cap_flags"); @@ -22233,7 +20701,8 @@ private static class H5VLintrospect_get_cap_flags { * herr_t H5VLintrospect_get_cap_flags(const void *info, hid_t connector_id, uint64_t *cap_flags) * } */ - public static FunctionDescriptor H5VLintrospect_get_cap_flags$descriptor() { + public static FunctionDescriptor H5VLintrospect_get_cap_flags$descriptor() + { return H5VLintrospect_get_cap_flags.DESC; } @@ -22243,7 +20712,8 @@ private static class H5VLintrospect_get_cap_flags { * herr_t H5VLintrospect_get_cap_flags(const void *info, hid_t connector_id, uint64_t *cap_flags) * } */ - public static MethodHandle H5VLintrospect_get_cap_flags$handle() { + public static MethodHandle H5VLintrospect_get_cap_flags$handle() + { return H5VLintrospect_get_cap_flags.HANDLE; } @@ -22253,7 +20723,8 @@ private static class H5VLintrospect_get_cap_flags { * herr_t H5VLintrospect_get_cap_flags(const void *info, hid_t connector_id, uint64_t *cap_flags) * } */ - public static MemorySegment H5VLintrospect_get_cap_flags$address() { + public static MemorySegment H5VLintrospect_get_cap_flags$address() + { return H5VLintrospect_get_cap_flags.ADDR; } @@ -22262,27 +20733,24 @@ private static class H5VLintrospect_get_cap_flags { * herr_t H5VLintrospect_get_cap_flags(const void *info, hid_t connector_id, uint64_t *cap_flags) * } */ - public static int H5VLintrospect_get_cap_flags(MemorySegment info, long connector_id, MemorySegment cap_flags) { + public static int H5VLintrospect_get_cap_flags(MemorySegment info, long connector_id, + MemorySegment cap_flags) + { var mh$ = H5VLintrospect_get_cap_flags.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLintrospect_get_cap_flags", info, connector_id, cap_flags); } return (int)mh$.invokeExact(info, connector_id, cap_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLintrospect_opt_query { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLintrospect_opt_query"); @@ -22292,58 +20760,57 @@ private static class H5VLintrospect_opt_query { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) + * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, + * uint64_t *flags) * } */ - public static FunctionDescriptor H5VLintrospect_opt_query$descriptor() { + public static FunctionDescriptor H5VLintrospect_opt_query$descriptor() + { return H5VLintrospect_opt_query.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) + * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, + * uint64_t *flags) * } */ - public static MethodHandle H5VLintrospect_opt_query$handle() { - return H5VLintrospect_opt_query.HANDLE; - } + public static MethodHandle H5VLintrospect_opt_query$handle() { return H5VLintrospect_opt_query.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) + * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, + * uint64_t *flags) * } */ - public static MemorySegment H5VLintrospect_opt_query$address() { - return H5VLintrospect_opt_query.ADDR; - } + public static MemorySegment H5VLintrospect_opt_query$address() { return H5VLintrospect_opt_query.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) + * herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type, + * uint64_t *flags) * } */ - public static int H5VLintrospect_opt_query(MemorySegment obj, long connector_id, int subcls, int opt_type, MemorySegment flags) { + public static int H5VLintrospect_opt_query(MemorySegment obj, long connector_id, int subcls, int opt_type, + MemorySegment flags) + { var mh$ = H5VLintrospect_opt_query.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLintrospect_opt_query", obj, connector_id, subcls, opt_type, flags); } return (int)mh$.invokeExact(obj, connector_id, subcls, opt_type, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_wait { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_wait"); @@ -22356,9 +20823,7 @@ private static class H5VLrequest_wait { * herr_t H5VLrequest_wait(void *req, hid_t connector_id, uint64_t timeout, H5VL_request_status_t *status) * } */ - public static FunctionDescriptor H5VLrequest_wait$descriptor() { - return H5VLrequest_wait.DESC; - } + public static FunctionDescriptor H5VLrequest_wait$descriptor() { return H5VLrequest_wait.DESC; } /** * Downcall method handle for: @@ -22366,9 +20831,7 @@ private static class H5VLrequest_wait { * herr_t H5VLrequest_wait(void *req, hid_t connector_id, uint64_t timeout, H5VL_request_status_t *status) * } */ - public static MethodHandle H5VLrequest_wait$handle() { - return H5VLrequest_wait.HANDLE; - } + public static MethodHandle H5VLrequest_wait$handle() { return H5VLrequest_wait.HANDLE; } /** * Address for: @@ -22376,35 +20839,31 @@ private static class H5VLrequest_wait { * herr_t H5VLrequest_wait(void *req, hid_t connector_id, uint64_t timeout, H5VL_request_status_t *status) * } */ - public static MemorySegment H5VLrequest_wait$address() { - return H5VLrequest_wait.ADDR; - } + public static MemorySegment H5VLrequest_wait$address() { return H5VLrequest_wait.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_wait(void *req, hid_t connector_id, uint64_t timeout, H5VL_request_status_t *status) * } */ - public static int H5VLrequest_wait(MemorySegment req, long connector_id, long timeout, MemorySegment status) { + public static int H5VLrequest_wait(MemorySegment req, long connector_id, long timeout, + MemorySegment status) + { var mh$ = H5VLrequest_wait.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_wait", req, connector_id, timeout, status); } return (int)mh$.invokeExact(req, connector_id, timeout, status); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_notify { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_notify"); @@ -22417,9 +20876,7 @@ private static class H5VLrequest_notify { * herr_t H5VLrequest_notify(void *req, hid_t connector_id, H5VL_request_notify_t cb, void *ctx) * } */ - public static FunctionDescriptor H5VLrequest_notify$descriptor() { - return H5VLrequest_notify.DESC; - } + public static FunctionDescriptor H5VLrequest_notify$descriptor() { return H5VLrequest_notify.DESC; } /** * Downcall method handle for: @@ -22427,9 +20884,7 @@ private static class H5VLrequest_notify { * herr_t H5VLrequest_notify(void *req, hid_t connector_id, H5VL_request_notify_t cb, void *ctx) * } */ - public static MethodHandle H5VLrequest_notify$handle() { - return H5VLrequest_notify.HANDLE; - } + public static MethodHandle H5VLrequest_notify$handle() { return H5VLrequest_notify.HANDLE; } /** * Address for: @@ -22437,34 +20892,31 @@ private static class H5VLrequest_notify { * herr_t H5VLrequest_notify(void *req, hid_t connector_id, H5VL_request_notify_t cb, void *ctx) * } */ - public static MemorySegment H5VLrequest_notify$address() { - return H5VLrequest_notify.ADDR; - } + public static MemorySegment H5VLrequest_notify$address() { return H5VLrequest_notify.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_notify(void *req, hid_t connector_id, H5VL_request_notify_t cb, void *ctx) * } */ - public static int H5VLrequest_notify(MemorySegment req, long connector_id, MemorySegment cb, MemorySegment ctx) { + public static int H5VLrequest_notify(MemorySegment req, long connector_id, MemorySegment cb, + MemorySegment ctx) + { var mh$ = H5VLrequest_notify.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_notify", req, connector_id, cb, ctx); } return (int)mh$.invokeExact(req, connector_id, cb, ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_cancel { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_cancel"); @@ -22477,9 +20929,7 @@ private static class H5VLrequest_cancel { * herr_t H5VLrequest_cancel(void *req, hid_t connector_id, H5VL_request_status_t *status) * } */ - public static FunctionDescriptor H5VLrequest_cancel$descriptor() { - return H5VLrequest_cancel.DESC; - } + public static FunctionDescriptor H5VLrequest_cancel$descriptor() { return H5VLrequest_cancel.DESC; } /** * Downcall method handle for: @@ -22487,9 +20937,7 @@ private static class H5VLrequest_cancel { * herr_t H5VLrequest_cancel(void *req, hid_t connector_id, H5VL_request_status_t *status) * } */ - public static MethodHandle H5VLrequest_cancel$handle() { - return H5VLrequest_cancel.HANDLE; - } + public static MethodHandle H5VLrequest_cancel$handle() { return H5VLrequest_cancel.HANDLE; } /** * Address for: @@ -22497,34 +20945,30 @@ private static class H5VLrequest_cancel { * herr_t H5VLrequest_cancel(void *req, hid_t connector_id, H5VL_request_status_t *status) * } */ - public static MemorySegment H5VLrequest_cancel$address() { - return H5VLrequest_cancel.ADDR; - } + public static MemorySegment H5VLrequest_cancel$address() { return H5VLrequest_cancel.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_cancel(void *req, hid_t connector_id, H5VL_request_status_t *status) * } */ - public static int H5VLrequest_cancel(MemorySegment req, long connector_id, MemorySegment status) { + public static int H5VLrequest_cancel(MemorySegment req, long connector_id, MemorySegment status) + { var mh$ = H5VLrequest_cancel.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_cancel", req, connector_id, status); } return (int)mh$.invokeExact(req, connector_id, status); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_specific { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_specific"); @@ -22537,9 +20981,7 @@ private static class H5VLrequest_specific { * herr_t H5VLrequest_specific(void *req, hid_t connector_id, H5VL_request_specific_args_t *args) * } */ - public static FunctionDescriptor H5VLrequest_specific$descriptor() { - return H5VLrequest_specific.DESC; - } + public static FunctionDescriptor H5VLrequest_specific$descriptor() { return H5VLrequest_specific.DESC; } /** * Downcall method handle for: @@ -22547,9 +20989,7 @@ private static class H5VLrequest_specific { * herr_t H5VLrequest_specific(void *req, hid_t connector_id, H5VL_request_specific_args_t *args) * } */ - public static MethodHandle H5VLrequest_specific$handle() { - return H5VLrequest_specific.HANDLE; - } + public static MethodHandle H5VLrequest_specific$handle() { return H5VLrequest_specific.HANDLE; } /** * Address for: @@ -22557,34 +20997,30 @@ private static class H5VLrequest_specific { * herr_t H5VLrequest_specific(void *req, hid_t connector_id, H5VL_request_specific_args_t *args) * } */ - public static MemorySegment H5VLrequest_specific$address() { - return H5VLrequest_specific.ADDR; - } + public static MemorySegment H5VLrequest_specific$address() { return H5VLrequest_specific.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_specific(void *req, hid_t connector_id, H5VL_request_specific_args_t *args) * } */ - public static int H5VLrequest_specific(MemorySegment req, long connector_id, MemorySegment args) { + public static int H5VLrequest_specific(MemorySegment req, long connector_id, MemorySegment args) + { var mh$ = H5VLrequest_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_specific", req, connector_id, args); } return (int)mh$.invokeExact(req, connector_id, args); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_optional { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_optional"); @@ -22597,9 +21033,7 @@ private static class H5VLrequest_optional { * herr_t H5VLrequest_optional(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static FunctionDescriptor H5VLrequest_optional$descriptor() { - return H5VLrequest_optional.DESC; - } + public static FunctionDescriptor H5VLrequest_optional$descriptor() { return H5VLrequest_optional.DESC; } /** * Downcall method handle for: @@ -22607,9 +21041,7 @@ private static class H5VLrequest_optional { * herr_t H5VLrequest_optional(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static MethodHandle H5VLrequest_optional$handle() { - return H5VLrequest_optional.HANDLE; - } + public static MethodHandle H5VLrequest_optional$handle() { return H5VLrequest_optional.HANDLE; } /** * Address for: @@ -22617,33 +21049,30 @@ private static class H5VLrequest_optional { * herr_t H5VLrequest_optional(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static MemorySegment H5VLrequest_optional$address() { - return H5VLrequest_optional.ADDR; - } + public static MemorySegment H5VLrequest_optional$address() { return H5VLrequest_optional.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_optional(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static int H5VLrequest_optional(MemorySegment req, long connector_id, MemorySegment args) { + public static int H5VLrequest_optional(MemorySegment req, long connector_id, MemorySegment args) + { var mh$ = H5VLrequest_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_optional", req, connector_id, args); } return (int)mh$.invokeExact(req, connector_id, args); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_free { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_free"); @@ -22656,9 +21085,7 @@ private static class H5VLrequest_free { * herr_t H5VLrequest_free(void *req, hid_t connector_id) * } */ - public static FunctionDescriptor H5VLrequest_free$descriptor() { - return H5VLrequest_free.DESC; - } + public static FunctionDescriptor H5VLrequest_free$descriptor() { return H5VLrequest_free.DESC; } /** * Downcall method handle for: @@ -22666,9 +21093,7 @@ private static class H5VLrequest_free { * herr_t H5VLrequest_free(void *req, hid_t connector_id) * } */ - public static MethodHandle H5VLrequest_free$handle() { - return H5VLrequest_free.HANDLE; - } + public static MethodHandle H5VLrequest_free$handle() { return H5VLrequest_free.HANDLE; } /** * Address for: @@ -22676,37 +21101,31 @@ private static class H5VLrequest_free { * herr_t H5VLrequest_free(void *req, hid_t connector_id) * } */ - public static MemorySegment H5VLrequest_free$address() { - return H5VLrequest_free.ADDR; - } + public static MemorySegment H5VLrequest_free$address() { return H5VLrequest_free.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_free(void *req, hid_t connector_id) * } */ - public static int H5VLrequest_free(MemorySegment req, long connector_id) { + public static int H5VLrequest_free(MemorySegment req, long connector_id) + { var mh$ = H5VLrequest_free.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_free", req, connector_id); } return (int)mh$.invokeExact(req, connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLblob_put { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLblob_put"); @@ -22716,60 +21135,55 @@ private static class H5VLblob_put { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void *ctx) + * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void + * *ctx) * } */ - public static FunctionDescriptor H5VLblob_put$descriptor() { - return H5VLblob_put.DESC; - } + public static FunctionDescriptor H5VLblob_put$descriptor() { return H5VLblob_put.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void *ctx) + * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void + * *ctx) * } */ - public static MethodHandle H5VLblob_put$handle() { - return H5VLblob_put.HANDLE; - } + public static MethodHandle H5VLblob_put$handle() { return H5VLblob_put.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void *ctx) + * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void + * *ctx) * } */ - public static MemorySegment H5VLblob_put$address() { - return H5VLblob_put.ADDR; - } + public static MemorySegment H5VLblob_put$address() { return H5VLblob_put.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void *ctx) + * herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id, void + * *ctx) * } */ - public static int H5VLblob_put(MemorySegment obj, long connector_id, MemorySegment buf, long size, MemorySegment blob_id, MemorySegment ctx) { + public static int H5VLblob_put(MemorySegment obj, long connector_id, MemorySegment buf, long size, + MemorySegment blob_id, MemorySegment ctx) + { var mh$ = H5VLblob_put.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLblob_put", obj, connector_id, buf, size, blob_id, ctx); } return (int)mh$.invokeExact(obj, connector_id, buf, size, blob_id, ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLblob_get { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLblob_get"); @@ -22779,58 +21193,54 @@ private static class H5VLblob_get { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void *ctx) + * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void + * *ctx) * } */ - public static FunctionDescriptor H5VLblob_get$descriptor() { - return H5VLblob_get.DESC; - } + public static FunctionDescriptor H5VLblob_get$descriptor() { return H5VLblob_get.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void *ctx) + * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void + * *ctx) * } */ - public static MethodHandle H5VLblob_get$handle() { - return H5VLblob_get.HANDLE; - } + public static MethodHandle H5VLblob_get$handle() { return H5VLblob_get.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void *ctx) + * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void + * *ctx) * } */ - public static MemorySegment H5VLblob_get$address() { - return H5VLblob_get.ADDR; - } + public static MemorySegment H5VLblob_get$address() { return H5VLblob_get.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void *ctx) + * herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size, void + * *ctx) * } */ - public static int H5VLblob_get(MemorySegment obj, long connector_id, MemorySegment blob_id, MemorySegment buf, long size, MemorySegment ctx) { + public static int H5VLblob_get(MemorySegment obj, long connector_id, MemorySegment blob_id, + MemorySegment buf, long size, MemorySegment ctx) + { var mh$ = H5VLblob_get.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLblob_get", obj, connector_id, blob_id, buf, size, ctx); } return (int)mh$.invokeExact(obj, connector_id, blob_id, buf, size, ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLblob_specific { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLblob_specific"); @@ -22843,9 +21253,7 @@ private static class H5VLblob_specific { * herr_t H5VLblob_specific(void *obj, hid_t connector_id, void *blob_id, H5VL_blob_specific_args_t *args) * } */ - public static FunctionDescriptor H5VLblob_specific$descriptor() { - return H5VLblob_specific.DESC; - } + public static FunctionDescriptor H5VLblob_specific$descriptor() { return H5VLblob_specific.DESC; } /** * Downcall method handle for: @@ -22853,9 +21261,7 @@ private static class H5VLblob_specific { * herr_t H5VLblob_specific(void *obj, hid_t connector_id, void *blob_id, H5VL_blob_specific_args_t *args) * } */ - public static MethodHandle H5VLblob_specific$handle() { - return H5VLblob_specific.HANDLE; - } + public static MethodHandle H5VLblob_specific$handle() { return H5VLblob_specific.HANDLE; } /** * Address for: @@ -22863,35 +21269,31 @@ private static class H5VLblob_specific { * herr_t H5VLblob_specific(void *obj, hid_t connector_id, void *blob_id, H5VL_blob_specific_args_t *args) * } */ - public static MemorySegment H5VLblob_specific$address() { - return H5VLblob_specific.ADDR; - } + public static MemorySegment H5VLblob_specific$address() { return H5VLblob_specific.ADDR; } /** * {@snippet lang=c : * herr_t H5VLblob_specific(void *obj, hid_t connector_id, void *blob_id, H5VL_blob_specific_args_t *args) * } */ - public static int H5VLblob_specific(MemorySegment obj, long connector_id, MemorySegment blob_id, MemorySegment args) { + public static int H5VLblob_specific(MemorySegment obj, long connector_id, MemorySegment blob_id, + MemorySegment args) + { var mh$ = H5VLblob_specific.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLblob_specific", obj, connector_id, blob_id, args); } return (int)mh$.invokeExact(obj, connector_id, blob_id, args); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLblob_optional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLblob_optional"); @@ -22904,9 +21306,7 @@ private static class H5VLblob_optional { * herr_t H5VLblob_optional(void *obj, hid_t connector_id, void *blob_id, H5VL_optional_args_t *args) * } */ - public static FunctionDescriptor H5VLblob_optional$descriptor() { - return H5VLblob_optional.DESC; - } + public static FunctionDescriptor H5VLblob_optional$descriptor() { return H5VLblob_optional.DESC; } /** * Downcall method handle for: @@ -22914,9 +21314,7 @@ private static class H5VLblob_optional { * herr_t H5VLblob_optional(void *obj, hid_t connector_id, void *blob_id, H5VL_optional_args_t *args) * } */ - public static MethodHandle H5VLblob_optional$handle() { - return H5VLblob_optional.HANDLE; - } + public static MethodHandle H5VLblob_optional$handle() { return H5VLblob_optional.HANDLE; } /** * Address for: @@ -22924,36 +21322,32 @@ private static class H5VLblob_optional { * herr_t H5VLblob_optional(void *obj, hid_t connector_id, void *blob_id, H5VL_optional_args_t *args) * } */ - public static MemorySegment H5VLblob_optional$address() { - return H5VLblob_optional.ADDR; - } + public static MemorySegment H5VLblob_optional$address() { return H5VLblob_optional.ADDR; } /** * {@snippet lang=c : * herr_t H5VLblob_optional(void *obj, hid_t connector_id, void *blob_id, H5VL_optional_args_t *args) * } */ - public static int H5VLblob_optional(MemorySegment obj, long connector_id, MemorySegment blob_id, MemorySegment args) { + public static int H5VLblob_optional(MemorySegment obj, long connector_id, MemorySegment blob_id, + MemorySegment args) + { var mh$ = H5VLblob_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLblob_optional", obj, connector_id, blob_id, args); } return (int)mh$.invokeExact(obj, connector_id, blob_id, args); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLtoken_cmp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLtoken_cmp"); @@ -22963,59 +21357,54 @@ private static class H5VLtoken_cmp { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value) + * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t + * *token2, int *cmp_value) * } */ - public static FunctionDescriptor H5VLtoken_cmp$descriptor() { - return H5VLtoken_cmp.DESC; - } + public static FunctionDescriptor H5VLtoken_cmp$descriptor() { return H5VLtoken_cmp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value) + * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t + * *token2, int *cmp_value) * } */ - public static MethodHandle H5VLtoken_cmp$handle() { - return H5VLtoken_cmp.HANDLE; - } + public static MethodHandle H5VLtoken_cmp$handle() { return H5VLtoken_cmp.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value) + * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t + * *token2, int *cmp_value) * } */ - public static MemorySegment H5VLtoken_cmp$address() { - return H5VLtoken_cmp.ADDR; - } + public static MemorySegment H5VLtoken_cmp$address() { return H5VLtoken_cmp.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value) + * herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1, const H5O_token_t + * *token2, int *cmp_value) * } */ - public static int H5VLtoken_cmp(MemorySegment obj, long connector_id, MemorySegment token1, MemorySegment token2, MemorySegment cmp_value) { + public static int H5VLtoken_cmp(MemorySegment obj, long connector_id, MemorySegment token1, + MemorySegment token2, MemorySegment cmp_value) + { var mh$ = H5VLtoken_cmp.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLtoken_cmp", obj, connector_id, token1, token2, cmp_value); } return (int)mh$.invokeExact(obj, connector_id, token1, token2, cmp_value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLtoken_to_str { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLtoken_to_str"); @@ -23025,59 +21414,54 @@ private static class H5VLtoken_to_str { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, char **token_str) + * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, + * char **token_str) * } */ - public static FunctionDescriptor H5VLtoken_to_str$descriptor() { - return H5VLtoken_to_str.DESC; - } + public static FunctionDescriptor H5VLtoken_to_str$descriptor() { return H5VLtoken_to_str.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, char **token_str) + * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, + * char **token_str) * } */ - public static MethodHandle H5VLtoken_to_str$handle() { - return H5VLtoken_to_str.HANDLE; - } + public static MethodHandle H5VLtoken_to_str$handle() { return H5VLtoken_to_str.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, char **token_str) + * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, + * char **token_str) * } */ - public static MemorySegment H5VLtoken_to_str$address() { - return H5VLtoken_to_str.ADDR; - } + public static MemorySegment H5VLtoken_to_str$address() { return H5VLtoken_to_str.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, char **token_str) + * herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token, + * char **token_str) * } */ - public static int H5VLtoken_to_str(MemorySegment obj, int obj_type, long connector_id, MemorySegment token, MemorySegment token_str) { + public static int H5VLtoken_to_str(MemorySegment obj, int obj_type, long connector_id, + MemorySegment token, MemorySegment token_str) + { var mh$ = H5VLtoken_to_str.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLtoken_to_str", obj, obj_type, connector_id, token, token_str); } return (int)mh$.invokeExact(obj, obj_type, connector_id, token, token_str); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLtoken_from_str { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLtoken_from_str"); @@ -23087,59 +21471,54 @@ private static class H5VLtoken_from_str { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, H5O_token_t *token) + * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, + * H5O_token_t *token) * } */ - public static FunctionDescriptor H5VLtoken_from_str$descriptor() { - return H5VLtoken_from_str.DESC; - } + public static FunctionDescriptor H5VLtoken_from_str$descriptor() { return H5VLtoken_from_str.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, H5O_token_t *token) + * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, + * H5O_token_t *token) * } */ - public static MethodHandle H5VLtoken_from_str$handle() { - return H5VLtoken_from_str.HANDLE; - } + public static MethodHandle H5VLtoken_from_str$handle() { return H5VLtoken_from_str.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, H5O_token_t *token) + * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, + * H5O_token_t *token) * } */ - public static MemorySegment H5VLtoken_from_str$address() { - return H5VLtoken_from_str.ADDR; - } + public static MemorySegment H5VLtoken_from_str$address() { return H5VLtoken_from_str.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, H5O_token_t *token) + * herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str, + * H5O_token_t *token) * } */ - public static int H5VLtoken_from_str(MemorySegment obj, int obj_type, long connector_id, MemorySegment token_str, MemorySegment token) { + public static int H5VLtoken_from_str(MemorySegment obj, int obj_type, long connector_id, + MemorySegment token_str, MemorySegment token) + { var mh$ = H5VLtoken_from_str.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLtoken_from_str", obj, obj_type, connector_id, token_str, token); } return (int)mh$.invokeExact(obj, obj_type, connector_id, token_str, token); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLoptional { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLoptional"); @@ -23149,53 +21528,55 @@ private static class H5VLoptional { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static FunctionDescriptor H5VLoptional$descriptor() { - return H5VLoptional.DESC; - } + public static FunctionDescriptor H5VLoptional$descriptor() { return H5VLoptional.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MethodHandle H5VLoptional$handle() { - return H5VLoptional.HANDLE; - } + public static MethodHandle H5VLoptional$handle() { return H5VLoptional.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static MemorySegment H5VLoptional$address() { - return H5VLoptional.ADDR; - } + public static MemorySegment H5VLoptional$address() { return H5VLoptional.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void **req) + * herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id, void + * **req) * } */ - public static int H5VLoptional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, MemorySegment req) { + public static int H5VLoptional(MemorySegment obj, long connector_id, MemorySegment args, long dxpl_id, + MemorySegment req) + { var mh$ = H5VLoptional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLoptional", obj, connector_id, args, dxpl_id, req); } return (int)mh$.invokeExact(obj, connector_id, args, dxpl_id, req); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VL_NATIVE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5VL_NATIVE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5VL_NATIVE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23204,9 +21585,7 @@ private static class H5VL_NATIVE_g$constants { * extern hid_t H5VL_NATIVE_g * } */ - public static OfLong H5VL_NATIVE_g$layout() { - return H5VL_NATIVE_g$constants.LAYOUT; - } + public static OfLong H5VL_NATIVE_g$layout() { return H5VL_NATIVE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23214,9 +21593,7 @@ private static class H5VL_NATIVE_g$constants { * extern hid_t H5VL_NATIVE_g * } */ - public static MemorySegment H5VL_NATIVE_g$segment() { - return H5VL_NATIVE_g$constants.SEGMENT; - } + public static MemorySegment H5VL_NATIVE_g$segment() { return H5VL_NATIVE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23224,7 +21601,8 @@ private static class H5VL_NATIVE_g$constants { * extern hid_t H5VL_NATIVE_g * } */ - public static long H5VL_NATIVE_g() { + public static long H5VL_NATIVE_g() + { return H5VL_NATIVE_g$constants.SEGMENT.get(H5VL_NATIVE_g$constants.LAYOUT, 0L); } @@ -23234,17 +21612,14 @@ public static long H5VL_NATIVE_g() { * extern hid_t H5VL_NATIVE_g * } */ - public static void H5VL_NATIVE_g(long varValue) { + public static void H5VL_NATIVE_g(long varValue) + { H5VL_NATIVE_g$constants.SEGMENT.set(H5VL_NATIVE_g$constants.LAYOUT, 0L, varValue); } private static class H5VLnative_addr_to_token { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLnative_addr_to_token"); @@ -23257,7 +21632,8 @@ private static class H5VLnative_addr_to_token { * herr_t H5VLnative_addr_to_token(hid_t loc_id, haddr_t addr, H5O_token_t *token) * } */ - public static FunctionDescriptor H5VLnative_addr_to_token$descriptor() { + public static FunctionDescriptor H5VLnative_addr_to_token$descriptor() + { return H5VLnative_addr_to_token.DESC; } @@ -23267,9 +21643,7 @@ private static class H5VLnative_addr_to_token { * herr_t H5VLnative_addr_to_token(hid_t loc_id, haddr_t addr, H5O_token_t *token) * } */ - public static MethodHandle H5VLnative_addr_to_token$handle() { - return H5VLnative_addr_to_token.HANDLE; - } + public static MethodHandle H5VLnative_addr_to_token$handle() { return H5VLnative_addr_to_token.HANDLE; } /** * Address for: @@ -23277,34 +21651,30 @@ private static class H5VLnative_addr_to_token { * herr_t H5VLnative_addr_to_token(hid_t loc_id, haddr_t addr, H5O_token_t *token) * } */ - public static MemorySegment H5VLnative_addr_to_token$address() { - return H5VLnative_addr_to_token.ADDR; - } + public static MemorySegment H5VLnative_addr_to_token$address() { return H5VLnative_addr_to_token.ADDR; } /** * {@snippet lang=c : * herr_t H5VLnative_addr_to_token(hid_t loc_id, haddr_t addr, H5O_token_t *token) * } */ - public static int H5VLnative_addr_to_token(long loc_id, long addr, MemorySegment token) { + public static int H5VLnative_addr_to_token(long loc_id, long addr, MemorySegment token) + { var mh$ = H5VLnative_addr_to_token.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLnative_addr_to_token", loc_id, addr, token); } return (int)mh$.invokeExact(loc_id, addr, token); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLnative_token_to_addr { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - H5O_token_t.layout(), - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, H5O_token_t.layout(), hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLnative_token_to_addr"); @@ -23317,7 +21687,8 @@ private static class H5VLnative_token_to_addr { * herr_t H5VLnative_token_to_addr(hid_t loc_id, H5O_token_t token, haddr_t *addr) * } */ - public static FunctionDescriptor H5VLnative_token_to_addr$descriptor() { + public static FunctionDescriptor H5VLnative_token_to_addr$descriptor() + { return H5VLnative_token_to_addr.DESC; } @@ -23327,9 +21698,7 @@ private static class H5VLnative_token_to_addr { * herr_t H5VLnative_token_to_addr(hid_t loc_id, H5O_token_t token, haddr_t *addr) * } */ - public static MethodHandle H5VLnative_token_to_addr$handle() { - return H5VLnative_token_to_addr.HANDLE; - } + public static MethodHandle H5VLnative_token_to_addr$handle() { return H5VLnative_token_to_addr.HANDLE; } /** * Address for: @@ -23337,30 +21706,29 @@ private static class H5VLnative_token_to_addr { * herr_t H5VLnative_token_to_addr(hid_t loc_id, H5O_token_t token, haddr_t *addr) * } */ - public static MemorySegment H5VLnative_token_to_addr$address() { - return H5VLnative_token_to_addr.ADDR; - } + public static MemorySegment H5VLnative_token_to_addr$address() { return H5VLnative_token_to_addr.ADDR; } /** * {@snippet lang=c : * herr_t H5VLnative_token_to_addr(hid_t loc_id, H5O_token_t token, haddr_t *addr) * } */ - public static int H5VLnative_token_to_addr(long loc_id, MemorySegment token, MemorySegment addr) { + public static int H5VLnative_token_to_addr(long loc_id, MemorySegment token, MemorySegment addr) + { var mh$ = H5VLnative_token_to_addr.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLnative_token_to_addr", loc_id, token, addr); } return (int)mh$.invokeExact(loc_id, token, addr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_core_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_core_init"); @@ -23373,9 +21741,7 @@ private static class H5FD_core_init { * hid_t H5FD_core_init() * } */ - public static FunctionDescriptor H5FD_core_init$descriptor() { - return H5FD_core_init.DESC; - } + public static FunctionDescriptor H5FD_core_init$descriptor() { return H5FD_core_init.DESC; } /** * Downcall method handle for: @@ -23383,9 +21749,7 @@ private static class H5FD_core_init { * hid_t H5FD_core_init() * } */ - public static MethodHandle H5FD_core_init$handle() { - return H5FD_core_init.HANDLE; - } + public static MethodHandle H5FD_core_init$handle() { return H5FD_core_init.HANDLE; } /** * Address for: @@ -23393,34 +21757,30 @@ private static class H5FD_core_init { * hid_t H5FD_core_init() * } */ - public static MemorySegment H5FD_core_init$address() { - return H5FD_core_init.ADDR; - } + public static MemorySegment H5FD_core_init$address() { return H5FD_core_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_core_init() * } */ - public static long H5FD_core_init() { + public static long H5FD_core_init() + { var mh$ = H5FD_core_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_core_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_core { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_core"); @@ -23433,9 +21793,7 @@ private static class H5Pset_fapl_core { * herr_t H5Pset_fapl_core(hid_t fapl_id, size_t increment, hbool_t backing_store) * } */ - public static FunctionDescriptor H5Pset_fapl_core$descriptor() { - return H5Pset_fapl_core.DESC; - } + public static FunctionDescriptor H5Pset_fapl_core$descriptor() { return H5Pset_fapl_core.DESC; } /** * Downcall method handle for: @@ -23443,9 +21801,7 @@ private static class H5Pset_fapl_core { * herr_t H5Pset_fapl_core(hid_t fapl_id, size_t increment, hbool_t backing_store) * } */ - public static MethodHandle H5Pset_fapl_core$handle() { - return H5Pset_fapl_core.HANDLE; - } + public static MethodHandle H5Pset_fapl_core$handle() { return H5Pset_fapl_core.HANDLE; } /** * Address for: @@ -23453,34 +21809,30 @@ private static class H5Pset_fapl_core { * herr_t H5Pset_fapl_core(hid_t fapl_id, size_t increment, hbool_t backing_store) * } */ - public static MemorySegment H5Pset_fapl_core$address() { - return H5Pset_fapl_core.ADDR; - } + public static MemorySegment H5Pset_fapl_core$address() { return H5Pset_fapl_core.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_core(hid_t fapl_id, size_t increment, hbool_t backing_store) * } */ - public static int H5Pset_fapl_core(long fapl_id, long increment, boolean backing_store) { + public static int H5Pset_fapl_core(long fapl_id, long increment, boolean backing_store) + { var mh$ = H5Pset_fapl_core.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_core", fapl_id, increment, backing_store); } return (int)mh$.invokeExact(fapl_id, increment, backing_store); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fapl_core { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fapl_core"); @@ -23493,9 +21845,7 @@ private static class H5Pget_fapl_core { * herr_t H5Pget_fapl_core(hid_t fapl_id, size_t *increment, hbool_t *backing_store) * } */ - public static FunctionDescriptor H5Pget_fapl_core$descriptor() { - return H5Pget_fapl_core.DESC; - } + public static FunctionDescriptor H5Pget_fapl_core$descriptor() { return H5Pget_fapl_core.DESC; } /** * Downcall method handle for: @@ -23503,9 +21853,7 @@ private static class H5Pget_fapl_core { * herr_t H5Pget_fapl_core(hid_t fapl_id, size_t *increment, hbool_t *backing_store) * } */ - public static MethodHandle H5Pget_fapl_core$handle() { - return H5Pget_fapl_core.HANDLE; - } + public static MethodHandle H5Pget_fapl_core$handle() { return H5Pget_fapl_core.HANDLE; } /** * Address for: @@ -23513,30 +21861,29 @@ private static class H5Pget_fapl_core { * herr_t H5Pget_fapl_core(hid_t fapl_id, size_t *increment, hbool_t *backing_store) * } */ - public static MemorySegment H5Pget_fapl_core$address() { - return H5Pget_fapl_core.ADDR; - } + public static MemorySegment H5Pget_fapl_core$address() { return H5Pget_fapl_core.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fapl_core(hid_t fapl_id, size_t *increment, hbool_t *backing_store) * } */ - public static int H5Pget_fapl_core(long fapl_id, MemorySegment increment, MemorySegment backing_store) { + public static int H5Pget_fapl_core(long fapl_id, MemorySegment increment, MemorySegment backing_store) + { var mh$ = H5Pget_fapl_core.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fapl_core", fapl_id, increment, backing_store); } return (int)mh$.invokeExact(fapl_id, increment, backing_store); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_family_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_family_init"); @@ -23549,9 +21896,7 @@ private static class H5FD_family_init { * hid_t H5FD_family_init() * } */ - public static FunctionDescriptor H5FD_family_init$descriptor() { - return H5FD_family_init.DESC; - } + public static FunctionDescriptor H5FD_family_init$descriptor() { return H5FD_family_init.DESC; } /** * Downcall method handle for: @@ -23559,9 +21904,7 @@ private static class H5FD_family_init { * hid_t H5FD_family_init() * } */ - public static MethodHandle H5FD_family_init$handle() { - return H5FD_family_init.HANDLE; - } + public static MethodHandle H5FD_family_init$handle() { return H5FD_family_init.HANDLE; } /** * Address for: @@ -23569,34 +21912,30 @@ private static class H5FD_family_init { * hid_t H5FD_family_init() * } */ - public static MemorySegment H5FD_family_init$address() { - return H5FD_family_init.ADDR; - } + public static MemorySegment H5FD_family_init$address() { return H5FD_family_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_family_init() * } */ - public static long H5FD_family_init() { + public static long H5FD_family_init() + { var mh$ = H5FD_family_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_family_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_family { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_family"); @@ -23609,9 +21948,7 @@ private static class H5Pset_fapl_family { * herr_t H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id) * } */ - public static FunctionDescriptor H5Pset_fapl_family$descriptor() { - return H5Pset_fapl_family.DESC; - } + public static FunctionDescriptor H5Pset_fapl_family$descriptor() { return H5Pset_fapl_family.DESC; } /** * Downcall method handle for: @@ -23619,9 +21956,7 @@ private static class H5Pset_fapl_family { * herr_t H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id) * } */ - public static MethodHandle H5Pset_fapl_family$handle() { - return H5Pset_fapl_family.HANDLE; - } + public static MethodHandle H5Pset_fapl_family$handle() { return H5Pset_fapl_family.HANDLE; } /** * Address for: @@ -23629,34 +21964,30 @@ private static class H5Pset_fapl_family { * herr_t H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id) * } */ - public static MemorySegment H5Pset_fapl_family$address() { - return H5Pset_fapl_family.ADDR; - } + public static MemorySegment H5Pset_fapl_family$address() { return H5Pset_fapl_family.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id) * } */ - public static int H5Pset_fapl_family(long fapl_id, long memb_size, long memb_fapl_id) { + public static int H5Pset_fapl_family(long fapl_id, long memb_size, long memb_fapl_id) + { var mh$ = H5Pset_fapl_family.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_family", fapl_id, memb_size, memb_fapl_id); } return (int)mh$.invokeExact(fapl_id, memb_size, memb_fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fapl_family { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fapl_family"); @@ -23669,9 +22000,7 @@ private static class H5Pget_fapl_family { * herr_t H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size, hid_t *memb_fapl_id) * } */ - public static FunctionDescriptor H5Pget_fapl_family$descriptor() { - return H5Pget_fapl_family.DESC; - } + public static FunctionDescriptor H5Pget_fapl_family$descriptor() { return H5Pget_fapl_family.DESC; } /** * Downcall method handle for: @@ -23679,9 +22008,7 @@ private static class H5Pget_fapl_family { * herr_t H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size, hid_t *memb_fapl_id) * } */ - public static MethodHandle H5Pget_fapl_family$handle() { - return H5Pget_fapl_family.HANDLE; - } + public static MethodHandle H5Pget_fapl_family$handle() { return H5Pget_fapl_family.HANDLE; } /** * Address for: @@ -23689,30 +22016,29 @@ private static class H5Pget_fapl_family { * herr_t H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size, hid_t *memb_fapl_id) * } */ - public static MemorySegment H5Pget_fapl_family$address() { - return H5Pget_fapl_family.ADDR; - } + public static MemorySegment H5Pget_fapl_family$address() { return H5Pget_fapl_family.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size, hid_t *memb_fapl_id) * } */ - public static int H5Pget_fapl_family(long fapl_id, MemorySegment memb_size, MemorySegment memb_fapl_id) { + public static int H5Pget_fapl_family(long fapl_id, MemorySegment memb_size, MemorySegment memb_fapl_id) + { var mh$ = H5Pget_fapl_family.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fapl_family", fapl_id, memb_size, memb_fapl_id); } return (int)mh$.invokeExact(fapl_id, memb_size, memb_fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_log_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_log_init"); @@ -23725,9 +22051,7 @@ private static class H5FD_log_init { * hid_t H5FD_log_init() * } */ - public static FunctionDescriptor H5FD_log_init$descriptor() { - return H5FD_log_init.DESC; - } + public static FunctionDescriptor H5FD_log_init$descriptor() { return H5FD_log_init.DESC; } /** * Downcall method handle for: @@ -23735,9 +22059,7 @@ private static class H5FD_log_init { * hid_t H5FD_log_init() * } */ - public static MethodHandle H5FD_log_init$handle() { - return H5FD_log_init.HANDLE; - } + public static MethodHandle H5FD_log_init$handle() { return H5FD_log_init.HANDLE; } /** * Address for: @@ -23745,35 +22067,30 @@ private static class H5FD_log_init { * hid_t H5FD_log_init() * } */ - public static MemorySegment H5FD_log_init$address() { - return H5FD_log_init.ADDR; - } + public static MemorySegment H5FD_log_init$address() { return H5FD_log_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_log_init() * } */ - public static long H5FD_log_init() { + public static long H5FD_log_init() + { var mh$ = H5FD_log_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_log_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_log { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_log"); @@ -23786,9 +22103,7 @@ private static class H5Pset_fapl_log { * herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size) * } */ - public static FunctionDescriptor H5Pset_fapl_log$descriptor() { - return H5Pset_fapl_log.DESC; - } + public static FunctionDescriptor H5Pset_fapl_log$descriptor() { return H5Pset_fapl_log.DESC; } /** * Downcall method handle for: @@ -23796,9 +22111,7 @@ private static class H5Pset_fapl_log { * herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size) * } */ - public static MethodHandle H5Pset_fapl_log$handle() { - return H5Pset_fapl_log.HANDLE; - } + public static MethodHandle H5Pset_fapl_log$handle() { return H5Pset_fapl_log.HANDLE; } /** * Address for: @@ -23806,24 +22119,24 @@ private static class H5Pset_fapl_log { * herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size) * } */ - public static MemorySegment H5Pset_fapl_log$address() { - return H5Pset_fapl_log.ADDR; - } + public static MemorySegment H5Pset_fapl_log$address() { return H5Pset_fapl_log.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size) * } */ - public static int H5Pset_fapl_log(long fapl_id, MemorySegment logfile, long flags, long buf_size) { + public static int H5Pset_fapl_log(long fapl_id, MemorySegment logfile, long flags, long buf_size) + { var mh$ = H5Pset_fapl_log.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_log", fapl_id, logfile, flags, buf_size); } return (int)mh$.invokeExact(fapl_id, logfile, flags, buf_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5FD_MPIO_INDEPENDENT = (int)0L; @@ -23832,67 +22145,52 @@ public static int H5Pset_fapl_log(long fapl_id, MemorySegment logfile, long flag * enum H5FD_mpio_xfer_t.H5FD_MPIO_INDEPENDENT = 0 * } */ - public static int H5FD_MPIO_INDEPENDENT() { - return H5FD_MPIO_INDEPENDENT; - } + public static int H5FD_MPIO_INDEPENDENT() { return H5FD_MPIO_INDEPENDENT; } private static final int H5FD_MPIO_COLLECTIVE = (int)1L; /** * {@snippet lang=c : * enum H5FD_mpio_xfer_t.H5FD_MPIO_COLLECTIVE = 1 * } */ - public static int H5FD_MPIO_COLLECTIVE() { - return H5FD_MPIO_COLLECTIVE; - } + public static int H5FD_MPIO_COLLECTIVE() { return H5FD_MPIO_COLLECTIVE; } private static final int H5FD_MPIO_CHUNK_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5FD_mpio_chunk_opt_t.H5FD_MPIO_CHUNK_DEFAULT = 0 * } */ - public static int H5FD_MPIO_CHUNK_DEFAULT() { - return H5FD_MPIO_CHUNK_DEFAULT; - } + public static int H5FD_MPIO_CHUNK_DEFAULT() { return H5FD_MPIO_CHUNK_DEFAULT; } private static final int H5FD_MPIO_CHUNK_ONE_IO = (int)1L; /** * {@snippet lang=c : * enum H5FD_mpio_chunk_opt_t.H5FD_MPIO_CHUNK_ONE_IO = 1 * } */ - public static int H5FD_MPIO_CHUNK_ONE_IO() { - return H5FD_MPIO_CHUNK_ONE_IO; - } + public static int H5FD_MPIO_CHUNK_ONE_IO() { return H5FD_MPIO_CHUNK_ONE_IO; } private static final int H5FD_MPIO_CHUNK_MULTI_IO = (int)2L; /** * {@snippet lang=c : * enum H5FD_mpio_chunk_opt_t.H5FD_MPIO_CHUNK_MULTI_IO = 2 * } */ - public static int H5FD_MPIO_CHUNK_MULTI_IO() { - return H5FD_MPIO_CHUNK_MULTI_IO; - } + public static int H5FD_MPIO_CHUNK_MULTI_IO() { return H5FD_MPIO_CHUNK_MULTI_IO; } private static final int H5FD_MPIO_COLLECTIVE_IO = (int)0L; /** * {@snippet lang=c : * enum H5FD_mpio_collective_opt_t.H5FD_MPIO_COLLECTIVE_IO = 0 * } */ - public static int H5FD_MPIO_COLLECTIVE_IO() { - return H5FD_MPIO_COLLECTIVE_IO; - } + public static int H5FD_MPIO_COLLECTIVE_IO() { return H5FD_MPIO_COLLECTIVE_IO; } private static final int H5FD_MPIO_INDIVIDUAL_IO = (int)1L; /** * {@snippet lang=c : * enum H5FD_mpio_collective_opt_t.H5FD_MPIO_INDIVIDUAL_IO = 1 * } */ - public static int H5FD_MPIO_INDIVIDUAL_IO() { - return H5FD_MPIO_INDIVIDUAL_IO; - } + public static int H5FD_MPIO_INDIVIDUAL_IO() { return H5FD_MPIO_INDIVIDUAL_IO; } private static class H5FD_multi_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_multi_init"); @@ -23905,9 +22203,7 @@ private static class H5FD_multi_init { * hid_t H5FD_multi_init() * } */ - public static FunctionDescriptor H5FD_multi_init$descriptor() { - return H5FD_multi_init.DESC; - } + public static FunctionDescriptor H5FD_multi_init$descriptor() { return H5FD_multi_init.DESC; } /** * Downcall method handle for: @@ -23915,9 +22211,7 @@ private static class H5FD_multi_init { * hid_t H5FD_multi_init() * } */ - public static MethodHandle H5FD_multi_init$handle() { - return H5FD_multi_init.HANDLE; - } + public static MethodHandle H5FD_multi_init$handle() { return H5FD_multi_init.HANDLE; } /** * Address for: @@ -23925,37 +22219,31 @@ private static class H5FD_multi_init { * hid_t H5FD_multi_init() * } */ - public static MemorySegment H5FD_multi_init$address() { - return H5FD_multi_init.ADDR; - } + public static MemorySegment H5FD_multi_init$address() { return H5FD_multi_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_multi_init() * } */ - public static long H5FD_multi_init() { + public static long H5FD_multi_init() + { var mh$ = H5FD_multi_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_multi_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_multi { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_multi"); @@ -23965,60 +22253,55 @@ private static class H5Pset_fapl_multi { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char *const *memb_name, const haddr_t *memb_addr, hbool_t relax) + * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char + * *const *memb_name, const haddr_t *memb_addr, hbool_t relax) * } */ - public static FunctionDescriptor H5Pset_fapl_multi$descriptor() { - return H5Pset_fapl_multi.DESC; - } + public static FunctionDescriptor H5Pset_fapl_multi$descriptor() { return H5Pset_fapl_multi.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char *const *memb_name, const haddr_t *memb_addr, hbool_t relax) + * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char + * *const *memb_name, const haddr_t *memb_addr, hbool_t relax) * } */ - public static MethodHandle H5Pset_fapl_multi$handle() { - return H5Pset_fapl_multi.HANDLE; - } + public static MethodHandle H5Pset_fapl_multi$handle() { return H5Pset_fapl_multi.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char *const *memb_name, const haddr_t *memb_addr, hbool_t relax) + * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char + * *const *memb_name, const haddr_t *memb_addr, hbool_t relax) * } */ - public static MemorySegment H5Pset_fapl_multi$address() { - return H5Pset_fapl_multi.ADDR; - } + public static MemorySegment H5Pset_fapl_multi$address() { return H5Pset_fapl_multi.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char *const *memb_name, const haddr_t *memb_addr, hbool_t relax) + * herr_t H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, const hid_t *memb_fapl, const char + * *const *memb_name, const haddr_t *memb_addr, hbool_t relax) * } */ - public static int H5Pset_fapl_multi(long fapl_id, MemorySegment memb_map, MemorySegment memb_fapl, MemorySegment memb_name, MemorySegment memb_addr, boolean relax) { + public static int H5Pset_fapl_multi(long fapl_id, MemorySegment memb_map, MemorySegment memb_fapl, + MemorySegment memb_name, MemorySegment memb_addr, boolean relax) + { var mh$ = H5Pset_fapl_multi.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_multi", fapl_id, memb_map, memb_fapl, memb_name, memb_addr, relax); } return (int)mh$.invokeExact(fapl_id, memb_map, memb_fapl, memb_name, memb_addr, relax); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fapl_multi { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fapl_multi"); @@ -24028,59 +22311,54 @@ private static class H5Pget_fapl_multi { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, haddr_t *memb_addr, hbool_t *relax) + * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, + * haddr_t *memb_addr, hbool_t *relax) * } */ - public static FunctionDescriptor H5Pget_fapl_multi$descriptor() { - return H5Pget_fapl_multi.DESC; - } + public static FunctionDescriptor H5Pget_fapl_multi$descriptor() { return H5Pget_fapl_multi.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, haddr_t *memb_addr, hbool_t *relax) + * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, + * haddr_t *memb_addr, hbool_t *relax) * } */ - public static MethodHandle H5Pget_fapl_multi$handle() { - return H5Pget_fapl_multi.HANDLE; - } + public static MethodHandle H5Pget_fapl_multi$handle() { return H5Pget_fapl_multi.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, haddr_t *memb_addr, hbool_t *relax) + * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, + * haddr_t *memb_addr, hbool_t *relax) * } */ - public static MemorySegment H5Pget_fapl_multi$address() { - return H5Pget_fapl_multi.ADDR; - } + public static MemorySegment H5Pget_fapl_multi$address() { return H5Pget_fapl_multi.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, haddr_t *memb_addr, hbool_t *relax) + * herr_t H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map, hid_t *memb_fapl, char **memb_name, + * haddr_t *memb_addr, hbool_t *relax) * } */ - public static int H5Pget_fapl_multi(long fapl_id, MemorySegment memb_map, MemorySegment memb_fapl, MemorySegment memb_name, MemorySegment memb_addr, MemorySegment relax) { + public static int H5Pget_fapl_multi(long fapl_id, MemorySegment memb_map, MemorySegment memb_fapl, + MemorySegment memb_name, MemorySegment memb_addr, MemorySegment relax) + { var mh$ = H5Pget_fapl_multi.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fapl_multi", fapl_id, memb_map, memb_fapl, memb_name, memb_addr, relax); } return (int)mh$.invokeExact(fapl_id, memb_map, memb_fapl, memb_name, memb_addr, relax); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_split { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_split"); @@ -24090,47 +22368,48 @@ private static class H5Pset_fapl_split { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, hid_t raw_plist_id) + * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, + * hid_t raw_plist_id) * } */ - public static FunctionDescriptor H5Pset_fapl_split$descriptor() { - return H5Pset_fapl_split.DESC; - } + public static FunctionDescriptor H5Pset_fapl_split$descriptor() { return H5Pset_fapl_split.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, hid_t raw_plist_id) + * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, + * hid_t raw_plist_id) * } */ - public static MethodHandle H5Pset_fapl_split$handle() { - return H5Pset_fapl_split.HANDLE; - } + public static MethodHandle H5Pset_fapl_split$handle() { return H5Pset_fapl_split.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, hid_t raw_plist_id) + * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, + * hid_t raw_plist_id) * } */ - public static MemorySegment H5Pset_fapl_split$address() { - return H5Pset_fapl_split.ADDR; - } + public static MemorySegment H5Pset_fapl_split$address() { return H5Pset_fapl_split.ADDR; } /** * {@snippet lang=c : - * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, hid_t raw_plist_id) + * herr_t H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, const char *raw_ext, + * hid_t raw_plist_id) * } */ - public static int H5Pset_fapl_split(long fapl, MemorySegment meta_ext, long meta_plist_id, MemorySegment raw_ext, long raw_plist_id) { + public static int H5Pset_fapl_split(long fapl, MemorySegment meta_ext, long meta_plist_id, + MemorySegment raw_ext, long raw_plist_id) + { var mh$ = H5Pset_fapl_split.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_split", fapl, meta_ext, meta_plist_id, raw_ext, raw_plist_id); } return (int)mh$.invokeExact(fapl, meta_ext, meta_plist_id, raw_ext, raw_plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5FD_ONION_STORE_TARGET_ONION = (int)0L; @@ -24139,13 +22418,10 @@ public static int H5Pset_fapl_split(long fapl, MemorySegment meta_ext, long meta * enum H5FD_onion_target_file_constant_t.H5FD_ONION_STORE_TARGET_ONION = 0 * } */ - public static int H5FD_ONION_STORE_TARGET_ONION() { - return H5FD_ONION_STORE_TARGET_ONION; - } + public static int H5FD_ONION_STORE_TARGET_ONION() { return H5FD_ONION_STORE_TARGET_ONION; } private static class H5FD_onion_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_onion_init"); @@ -24158,9 +22434,7 @@ private static class H5FD_onion_init { * hid_t H5FD_onion_init() * } */ - public static FunctionDescriptor H5FD_onion_init$descriptor() { - return H5FD_onion_init.DESC; - } + public static FunctionDescriptor H5FD_onion_init$descriptor() { return H5FD_onion_init.DESC; } /** * Downcall method handle for: @@ -24168,9 +22442,7 @@ private static class H5FD_onion_init { * hid_t H5FD_onion_init() * } */ - public static MethodHandle H5FD_onion_init$handle() { - return H5FD_onion_init.HANDLE; - } + public static MethodHandle H5FD_onion_init$handle() { return H5FD_onion_init.HANDLE; } /** * Address for: @@ -24178,33 +22450,30 @@ private static class H5FD_onion_init { * hid_t H5FD_onion_init() * } */ - public static MemorySegment H5FD_onion_init$address() { - return H5FD_onion_init.ADDR; - } + public static MemorySegment H5FD_onion_init$address() { return H5FD_onion_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_onion_init() * } */ - public static long H5FD_onion_init() { + public static long H5FD_onion_init() + { var mh$ = H5FD_onion_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_onion_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fapl_onion { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fapl_onion"); @@ -24217,9 +22486,7 @@ private static class H5Pget_fapl_onion { * herr_t H5Pget_fapl_onion(hid_t fapl_id, H5FD_onion_fapl_info_t *fa_out) * } */ - public static FunctionDescriptor H5Pget_fapl_onion$descriptor() { - return H5Pget_fapl_onion.DESC; - } + public static FunctionDescriptor H5Pget_fapl_onion$descriptor() { return H5Pget_fapl_onion.DESC; } /** * Downcall method handle for: @@ -24227,9 +22494,7 @@ private static class H5Pget_fapl_onion { * herr_t H5Pget_fapl_onion(hid_t fapl_id, H5FD_onion_fapl_info_t *fa_out) * } */ - public static MethodHandle H5Pget_fapl_onion$handle() { - return H5Pget_fapl_onion.HANDLE; - } + public static MethodHandle H5Pget_fapl_onion$handle() { return H5Pget_fapl_onion.HANDLE; } /** * Address for: @@ -24237,33 +22502,30 @@ private static class H5Pget_fapl_onion { * herr_t H5Pget_fapl_onion(hid_t fapl_id, H5FD_onion_fapl_info_t *fa_out) * } */ - public static MemorySegment H5Pget_fapl_onion$address() { - return H5Pget_fapl_onion.ADDR; - } + public static MemorySegment H5Pget_fapl_onion$address() { return H5Pget_fapl_onion.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fapl_onion(hid_t fapl_id, H5FD_onion_fapl_info_t *fa_out) * } */ - public static int H5Pget_fapl_onion(long fapl_id, MemorySegment fa_out) { + public static int H5Pget_fapl_onion(long fapl_id, MemorySegment fa_out) + { var mh$ = H5Pget_fapl_onion.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fapl_onion", fapl_id, fa_out); } return (int)mh$.invokeExact(fapl_id, fa_out); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_onion { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_onion"); @@ -24276,9 +22538,7 @@ private static class H5Pset_fapl_onion { * herr_t H5Pset_fapl_onion(hid_t fapl_id, const H5FD_onion_fapl_info_t *fa) * } */ - public static FunctionDescriptor H5Pset_fapl_onion$descriptor() { - return H5Pset_fapl_onion.DESC; - } + public static FunctionDescriptor H5Pset_fapl_onion$descriptor() { return H5Pset_fapl_onion.DESC; } /** * Downcall method handle for: @@ -24286,9 +22546,7 @@ private static class H5Pset_fapl_onion { * herr_t H5Pset_fapl_onion(hid_t fapl_id, const H5FD_onion_fapl_info_t *fa) * } */ - public static MethodHandle H5Pset_fapl_onion$handle() { - return H5Pset_fapl_onion.HANDLE; - } + public static MethodHandle H5Pset_fapl_onion$handle() { return H5Pset_fapl_onion.HANDLE; } /** * Address for: @@ -24296,34 +22554,30 @@ private static class H5Pset_fapl_onion { * herr_t H5Pset_fapl_onion(hid_t fapl_id, const H5FD_onion_fapl_info_t *fa) * } */ - public static MemorySegment H5Pset_fapl_onion$address() { - return H5Pset_fapl_onion.ADDR; - } + public static MemorySegment H5Pset_fapl_onion$address() { return H5Pset_fapl_onion.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_onion(hid_t fapl_id, const H5FD_onion_fapl_info_t *fa) * } */ - public static int H5Pset_fapl_onion(long fapl_id, MemorySegment fa) { + public static int H5Pset_fapl_onion(long fapl_id, MemorySegment fa) + { var mh$ = H5Pset_fapl_onion.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_onion", fapl_id, fa); } return (int)mh$.invokeExact(fapl_id, fa); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FDonion_get_revision_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDonion_get_revision_count"); @@ -24336,7 +22590,8 @@ private static class H5FDonion_get_revision_count { * herr_t H5FDonion_get_revision_count(const char *filename, hid_t fapl_id, uint64_t *revision_count) * } */ - public static FunctionDescriptor H5FDonion_get_revision_count$descriptor() { + public static FunctionDescriptor H5FDonion_get_revision_count$descriptor() + { return H5FDonion_get_revision_count.DESC; } @@ -24346,7 +22601,8 @@ private static class H5FDonion_get_revision_count { * herr_t H5FDonion_get_revision_count(const char *filename, hid_t fapl_id, uint64_t *revision_count) * } */ - public static MethodHandle H5FDonion_get_revision_count$handle() { + public static MethodHandle H5FDonion_get_revision_count$handle() + { return H5FDonion_get_revision_count.HANDLE; } @@ -24356,7 +22612,8 @@ private static class H5FDonion_get_revision_count { * herr_t H5FDonion_get_revision_count(const char *filename, hid_t fapl_id, uint64_t *revision_count) * } */ - public static MemorySegment H5FDonion_get_revision_count$address() { + public static MemorySegment H5FDonion_get_revision_count$address() + { return H5FDonion_get_revision_count.ADDR; } @@ -24365,21 +22622,23 @@ private static class H5FDonion_get_revision_count { * herr_t H5FDonion_get_revision_count(const char *filename, hid_t fapl_id, uint64_t *revision_count) * } */ - public static int H5FDonion_get_revision_count(MemorySegment filename, long fapl_id, MemorySegment revision_count) { + public static int H5FDonion_get_revision_count(MemorySegment filename, long fapl_id, + MemorySegment revision_count) + { var mh$ = H5FDonion_get_revision_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDonion_get_revision_count", filename, fapl_id, revision_count); } return (int)mh$.invokeExact(filename, fapl_id, revision_count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_sec2_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_sec2_init"); @@ -24392,9 +22651,7 @@ private static class H5FD_sec2_init { * hid_t H5FD_sec2_init() * } */ - public static FunctionDescriptor H5FD_sec2_init$descriptor() { - return H5FD_sec2_init.DESC; - } + public static FunctionDescriptor H5FD_sec2_init$descriptor() { return H5FD_sec2_init.DESC; } /** * Downcall method handle for: @@ -24402,9 +22659,7 @@ private static class H5FD_sec2_init { * hid_t H5FD_sec2_init() * } */ - public static MethodHandle H5FD_sec2_init$handle() { - return H5FD_sec2_init.HANDLE; - } + public static MethodHandle H5FD_sec2_init$handle() { return H5FD_sec2_init.HANDLE; } /** * Address for: @@ -24412,32 +22667,29 @@ private static class H5FD_sec2_init { * hid_t H5FD_sec2_init() * } */ - public static MemorySegment H5FD_sec2_init$address() { - return H5FD_sec2_init.ADDR; - } + public static MemorySegment H5FD_sec2_init$address() { return H5FD_sec2_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_sec2_init() * } */ - public static long H5FD_sec2_init() { + public static long H5FD_sec2_init() + { var mh$ = H5FD_sec2_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_sec2_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_sec2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_sec2"); @@ -24450,9 +22702,7 @@ private static class H5Pset_fapl_sec2 { * herr_t H5Pset_fapl_sec2(hid_t fapl_id) * } */ - public static FunctionDescriptor H5Pset_fapl_sec2$descriptor() { - return H5Pset_fapl_sec2.DESC; - } + public static FunctionDescriptor H5Pset_fapl_sec2$descriptor() { return H5Pset_fapl_sec2.DESC; } /** * Downcall method handle for: @@ -24460,9 +22710,7 @@ private static class H5Pset_fapl_sec2 { * herr_t H5Pset_fapl_sec2(hid_t fapl_id) * } */ - public static MethodHandle H5Pset_fapl_sec2$handle() { - return H5Pset_fapl_sec2.HANDLE; - } + public static MethodHandle H5Pset_fapl_sec2$handle() { return H5Pset_fapl_sec2.HANDLE; } /** * Address for: @@ -24470,30 +22718,29 @@ private static class H5Pset_fapl_sec2 { * herr_t H5Pset_fapl_sec2(hid_t fapl_id) * } */ - public static MemorySegment H5Pset_fapl_sec2$address() { - return H5Pset_fapl_sec2.ADDR; - } + public static MemorySegment H5Pset_fapl_sec2$address() { return H5Pset_fapl_sec2.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_sec2(hid_t fapl_id) * } */ - public static int H5Pset_fapl_sec2(long fapl_id) { + public static int H5Pset_fapl_sec2(long fapl_id) + { var mh$ = H5Pset_fapl_sec2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_sec2", fapl_id); } return (int)mh$.invokeExact(fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_splitter_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_splitter_init"); @@ -24506,9 +22753,7 @@ private static class H5FD_splitter_init { * hid_t H5FD_splitter_init() * } */ - public static FunctionDescriptor H5FD_splitter_init$descriptor() { - return H5FD_splitter_init.DESC; - } + public static FunctionDescriptor H5FD_splitter_init$descriptor() { return H5FD_splitter_init.DESC; } /** * Downcall method handle for: @@ -24516,9 +22761,7 @@ private static class H5FD_splitter_init { * hid_t H5FD_splitter_init() * } */ - public static MethodHandle H5FD_splitter_init$handle() { - return H5FD_splitter_init.HANDLE; - } + public static MethodHandle H5FD_splitter_init$handle() { return H5FD_splitter_init.HANDLE; } /** * Address for: @@ -24526,33 +22769,30 @@ private static class H5FD_splitter_init { * hid_t H5FD_splitter_init() * } */ - public static MemorySegment H5FD_splitter_init$address() { - return H5FD_splitter_init.ADDR; - } + public static MemorySegment H5FD_splitter_init$address() { return H5FD_splitter_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_splitter_init() * } */ - public static long H5FD_splitter_init() { + public static long H5FD_splitter_init() + { var mh$ = H5FD_splitter_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_splitter_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_splitter { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_splitter"); @@ -24565,9 +22805,7 @@ private static class H5Pset_fapl_splitter { * herr_t H5Pset_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pset_fapl_splitter$descriptor() { - return H5Pset_fapl_splitter.DESC; - } + public static FunctionDescriptor H5Pset_fapl_splitter$descriptor() { return H5Pset_fapl_splitter.DESC; } /** * Downcall method handle for: @@ -24575,9 +22813,7 @@ private static class H5Pset_fapl_splitter { * herr_t H5Pset_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static MethodHandle H5Pset_fapl_splitter$handle() { - return H5Pset_fapl_splitter.HANDLE; - } + public static MethodHandle H5Pset_fapl_splitter$handle() { return H5Pset_fapl_splitter.HANDLE; } /** * Address for: @@ -24585,33 +22821,30 @@ private static class H5Pset_fapl_splitter { * herr_t H5Pset_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static MemorySegment H5Pset_fapl_splitter$address() { - return H5Pset_fapl_splitter.ADDR; - } + public static MemorySegment H5Pset_fapl_splitter$address() { return H5Pset_fapl_splitter.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static int H5Pset_fapl_splitter(long fapl_id, MemorySegment config_ptr) { + public static int H5Pset_fapl_splitter(long fapl_id, MemorySegment config_ptr) + { var mh$ = H5Pset_fapl_splitter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_splitter", fapl_id, config_ptr); } return (int)mh$.invokeExact(fapl_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pget_fapl_splitter { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pget_fapl_splitter"); @@ -24624,9 +22857,7 @@ private static class H5Pget_fapl_splitter { * herr_t H5Pget_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Pget_fapl_splitter$descriptor() { - return H5Pget_fapl_splitter.DESC; - } + public static FunctionDescriptor H5Pget_fapl_splitter$descriptor() { return H5Pget_fapl_splitter.DESC; } /** * Downcall method handle for: @@ -24634,9 +22865,7 @@ private static class H5Pget_fapl_splitter { * herr_t H5Pget_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static MethodHandle H5Pget_fapl_splitter$handle() { - return H5Pget_fapl_splitter.HANDLE; - } + public static MethodHandle H5Pget_fapl_splitter$handle() { return H5Pget_fapl_splitter.HANDLE; } /** * Address for: @@ -24644,30 +22873,29 @@ private static class H5Pget_fapl_splitter { * herr_t H5Pget_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static MemorySegment H5Pget_fapl_splitter$address() { - return H5Pget_fapl_splitter.ADDR; - } + public static MemorySegment H5Pget_fapl_splitter$address() { return H5Pget_fapl_splitter.ADDR; } /** * {@snippet lang=c : * herr_t H5Pget_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr) * } */ - public static int H5Pget_fapl_splitter(long fapl_id, MemorySegment config_ptr) { + public static int H5Pget_fapl_splitter(long fapl_id, MemorySegment config_ptr) + { var mh$ = H5Pget_fapl_splitter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pget_fapl_splitter", fapl_id, config_ptr); } return (int)mh$.invokeExact(fapl_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5FD_stdio_init { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FD_stdio_init"); @@ -24680,9 +22908,7 @@ private static class H5FD_stdio_init { * hid_t H5FD_stdio_init() * } */ - public static FunctionDescriptor H5FD_stdio_init$descriptor() { - return H5FD_stdio_init.DESC; - } + public static FunctionDescriptor H5FD_stdio_init$descriptor() { return H5FD_stdio_init.DESC; } /** * Downcall method handle for: @@ -24690,9 +22916,7 @@ private static class H5FD_stdio_init { * hid_t H5FD_stdio_init() * } */ - public static MethodHandle H5FD_stdio_init$handle() { - return H5FD_stdio_init.HANDLE; - } + public static MethodHandle H5FD_stdio_init$handle() { return H5FD_stdio_init.HANDLE; } /** * Address for: @@ -24700,32 +22924,29 @@ private static class H5FD_stdio_init { * hid_t H5FD_stdio_init() * } */ - public static MemorySegment H5FD_stdio_init$address() { - return H5FD_stdio_init.ADDR; - } + public static MemorySegment H5FD_stdio_init$address() { return H5FD_stdio_init.ADDR; } /** * {@snippet lang=c : * hid_t H5FD_stdio_init() * } */ - public static long H5FD_stdio_init() { + public static long H5FD_stdio_init() + { var mh$ = H5FD_stdio_init.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FD_stdio_init"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Pset_fapl_stdio { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Pset_fapl_stdio"); @@ -24738,9 +22959,7 @@ private static class H5Pset_fapl_stdio { * herr_t H5Pset_fapl_stdio(hid_t fapl_id) * } */ - public static FunctionDescriptor H5Pset_fapl_stdio$descriptor() { - return H5Pset_fapl_stdio.DESC; - } + public static FunctionDescriptor H5Pset_fapl_stdio$descriptor() { return H5Pset_fapl_stdio.DESC; } /** * Downcall method handle for: @@ -24748,9 +22967,7 @@ private static class H5Pset_fapl_stdio { * herr_t H5Pset_fapl_stdio(hid_t fapl_id) * } */ - public static MethodHandle H5Pset_fapl_stdio$handle() { - return H5Pset_fapl_stdio.HANDLE; - } + public static MethodHandle H5Pset_fapl_stdio$handle() { return H5Pset_fapl_stdio.HANDLE; } /** * Address for: @@ -24758,30 +22975,31 @@ private static class H5Pset_fapl_stdio { * herr_t H5Pset_fapl_stdio(hid_t fapl_id) * } */ - public static MemorySegment H5Pset_fapl_stdio$address() { - return H5Pset_fapl_stdio.ADDR; - } + public static MemorySegment H5Pset_fapl_stdio$address() { return H5Pset_fapl_stdio.ADDR; } /** * {@snippet lang=c : * herr_t H5Pset_fapl_stdio(hid_t fapl_id) * } */ - public static int H5Pset_fapl_stdio(long fapl_id) { + public static int H5Pset_fapl_stdio(long fapl_id) + { var mh$ = H5Pset_fapl_stdio.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Pset_fapl_stdio", fapl_id); } return (int)mh$.invokeExact(fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VL_PASSTHRU_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5VL_PASSTHRU_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5VL_PASSTHRU_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24790,9 +23008,7 @@ private static class H5VL_PASSTHRU_g$constants { * extern hid_t H5VL_PASSTHRU_g * } */ - public static OfLong H5VL_PASSTHRU_g$layout() { - return H5VL_PASSTHRU_g$constants.LAYOUT; - } + public static OfLong H5VL_PASSTHRU_g$layout() { return H5VL_PASSTHRU_g$constants.LAYOUT; } /** * Segment for variable: @@ -24800,9 +23016,7 @@ private static class H5VL_PASSTHRU_g$constants { * extern hid_t H5VL_PASSTHRU_g * } */ - public static MemorySegment H5VL_PASSTHRU_g$segment() { - return H5VL_PASSTHRU_g$constants.SEGMENT; - } + public static MemorySegment H5VL_PASSTHRU_g$segment() { return H5VL_PASSTHRU_g$constants.SEGMENT; } /** * Getter for variable: @@ -24810,7 +23024,8 @@ private static class H5VL_PASSTHRU_g$constants { * extern hid_t H5VL_PASSTHRU_g * } */ - public static long H5VL_PASSTHRU_g() { + public static long H5VL_PASSTHRU_g() + { return H5VL_PASSTHRU_g$constants.SEGMENT.get(H5VL_PASSTHRU_g$constants.LAYOUT, 0L); } @@ -24820,7 +23035,8 @@ public static long H5VL_PASSTHRU_g() { * extern hid_t H5VL_PASSTHRU_g * } */ - public static void H5VL_PASSTHRU_g(long varValue) { + public static void H5VL_PASSTHRU_g(long varValue) + { H5VL_PASSTHRU_g$constants.SEGMENT.set(H5VL_PASSTHRU_g$constants.LAYOUT, 0L, varValue); } /** @@ -24828,10 +23044,11 @@ public static void H5VL_PASSTHRU_g(long varValue) { * #define H5_DEFAULT_PLUGINDIR "/usr/local/hdf5/lib/plugin" * } */ - public static MemorySegment H5_DEFAULT_PLUGINDIR() { + public static MemorySegment H5_DEFAULT_PLUGINDIR() + { class Holder { - static final MemorySegment H5_DEFAULT_PLUGINDIR - = hdf5_h.LIBRARY_ARENA.allocateFrom("/usr/local/hdf5/lib/plugin"); + static final MemorySegment H5_DEFAULT_PLUGINDIR = + hdf5_h.LIBRARY_ARENA.allocateFrom("/usr/local/hdf5/lib/plugin"); } return Holder.H5_DEFAULT_PLUGINDIR; } @@ -24840,10 +23057,10 @@ class Holder { * #define H5_PACKAGE "hdf5" * } */ - public static MemorySegment H5_PACKAGE() { + public static MemorySegment H5_PACKAGE() + { class Holder { - static final MemorySegment H5_PACKAGE - = hdf5_h.LIBRARY_ARENA.allocateFrom("hdf5"); + static final MemorySegment H5_PACKAGE = hdf5_h.LIBRARY_ARENA.allocateFrom("hdf5"); } return Holder.H5_PACKAGE; } @@ -24852,10 +23069,11 @@ class Holder { * #define H5_PACKAGE_BUGREPORT "help@hdfgroup.org" * } */ - public static MemorySegment H5_PACKAGE_BUGREPORT() { + public static MemorySegment H5_PACKAGE_BUGREPORT() + { class Holder { - static final MemorySegment H5_PACKAGE_BUGREPORT - = hdf5_h.LIBRARY_ARENA.allocateFrom("help@hdfgroup.org"); + static final MemorySegment H5_PACKAGE_BUGREPORT = + hdf5_h.LIBRARY_ARENA.allocateFrom("help@hdfgroup.org"); } return Holder.H5_PACKAGE_BUGREPORT; } @@ -24864,10 +23082,10 @@ class Holder { * #define H5_PACKAGE_NAME "HDF5" * } */ - public static MemorySegment H5_PACKAGE_NAME() { + public static MemorySegment H5_PACKAGE_NAME() + { class Holder { - static final MemorySegment H5_PACKAGE_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5"); + static final MemorySegment H5_PACKAGE_NAME = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5"); } return Holder.H5_PACKAGE_NAME; } @@ -24876,10 +23094,10 @@ class Holder { * #define H5_PACKAGE_STRING "HDF5 1.17.0" * } */ - public static MemorySegment H5_PACKAGE_STRING() { + public static MemorySegment H5_PACKAGE_STRING() + { class Holder { - static final MemorySegment H5_PACKAGE_STRING - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5 1.17.0"); + static final MemorySegment H5_PACKAGE_STRING = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5 1.17.0"); } return Holder.H5_PACKAGE_STRING; } @@ -24888,10 +23106,10 @@ class Holder { * #define H5_PACKAGE_TARNAME "hdf5" * } */ - public static MemorySegment H5_PACKAGE_TARNAME() { + public static MemorySegment H5_PACKAGE_TARNAME() + { class Holder { - static final MemorySegment H5_PACKAGE_TARNAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("hdf5"); + static final MemorySegment H5_PACKAGE_TARNAME = hdf5_h.LIBRARY_ARENA.allocateFrom("hdf5"); } return Holder.H5_PACKAGE_TARNAME; } @@ -24900,10 +23118,11 @@ class Holder { * #define H5_PACKAGE_URL "http://www.hdfgroup.org" * } */ - public static MemorySegment H5_PACKAGE_URL() { + public static MemorySegment H5_PACKAGE_URL() + { class Holder { - static final MemorySegment H5_PACKAGE_URL - = hdf5_h.LIBRARY_ARENA.allocateFrom("http://www.hdfgroup.org"); + static final MemorySegment H5_PACKAGE_URL = + hdf5_h.LIBRARY_ARENA.allocateFrom("http://www.hdfgroup.org"); } return Holder.H5_PACKAGE_URL; } @@ -24912,10 +23131,10 @@ class Holder { * #define H5_PACKAGE_VERSION "1.17.0" * } */ - public static MemorySegment H5_PACKAGE_VERSION() { + public static MemorySegment H5_PACKAGE_VERSION() + { class Holder { - static final MemorySegment H5_PACKAGE_VERSION - = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); + static final MemorySegment H5_PACKAGE_VERSION = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); } return Holder.H5_PACKAGE_VERSION; } @@ -24924,10 +23143,10 @@ class Holder { * #define H5_VERSION "1.17.0" * } */ - public static MemorySegment H5_VERSION() { + public static MemorySegment H5_VERSION() + { class Holder { - static final MemorySegment H5_VERSION - = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); + static final MemorySegment H5_VERSION = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); } return Holder.H5_VERSION; } @@ -24937,531 +23156,415 @@ class Holder { * #define _POSIX_C_SOURCE 200809 * } */ - public static long _POSIX_C_SOURCE() { - return _POSIX_C_SOURCE; - } + public static long _POSIX_C_SOURCE() { return _POSIX_C_SOURCE; } private static final int __TIMESIZE = (int)64L; /** * {@snippet lang=c : * #define __TIMESIZE 64 * } */ - public static int __TIMESIZE() { - return __TIMESIZE; - } + public static int __TIMESIZE() { return __TIMESIZE; } private static final long __STDC_IEC_60559_BFP__ = 201404L; /** * {@snippet lang=c : * #define __STDC_IEC_60559_BFP__ 201404 * } */ - public static long __STDC_IEC_60559_BFP__() { - return __STDC_IEC_60559_BFP__; - } + public static long __STDC_IEC_60559_BFP__() { return __STDC_IEC_60559_BFP__; } private static final long __STDC_IEC_60559_COMPLEX__ = 201404L; /** * {@snippet lang=c : * #define __STDC_IEC_60559_COMPLEX__ 201404 * } */ - public static long __STDC_IEC_60559_COMPLEX__() { - return __STDC_IEC_60559_COMPLEX__; - } + public static long __STDC_IEC_60559_COMPLEX__() { return __STDC_IEC_60559_COMPLEX__; } private static final long __STDC_ISO_10646__ = 201706L; /** * {@snippet lang=c : * #define __STDC_ISO_10646__ 201706 * } */ - public static long __STDC_ISO_10646__() { - return __STDC_ISO_10646__; - } + public static long __STDC_ISO_10646__() { return __STDC_ISO_10646__; } private static final int __WCHAR_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define __WCHAR_MAX 2147483647 * } */ - public static int __WCHAR_MAX() { - return __WCHAR_MAX; - } + public static int __WCHAR_MAX() { return __WCHAR_MAX; } private static final int __WCHAR_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define __WCHAR_MIN -2147483648 * } */ - public static int __WCHAR_MIN() { - return __WCHAR_MIN; - } + public static int __WCHAR_MIN() { return __WCHAR_MIN; } private static final int INT8_MIN = (int)-128L; /** * {@snippet lang=c : * #define INT8_MIN -128 * } */ - public static int INT8_MIN() { - return INT8_MIN; - } + public static int INT8_MIN() { return INT8_MIN; } private static final int INT16_MIN = (int)-32768L; /** * {@snippet lang=c : * #define INT16_MIN -32768 * } */ - public static int INT16_MIN() { - return INT16_MIN; - } + public static int INT16_MIN() { return INT16_MIN; } private static final int INT32_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define INT32_MIN -2147483648 * } */ - public static int INT32_MIN() { - return INT32_MIN; - } + public static int INT32_MIN() { return INT32_MIN; } private static final long INT64_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INT64_MIN -9223372036854775808 * } */ - public static long INT64_MIN() { - return INT64_MIN; - } + public static long INT64_MIN() { return INT64_MIN; } private static final int INT8_MAX = (int)127L; /** * {@snippet lang=c : * #define INT8_MAX 127 * } */ - public static int INT8_MAX() { - return INT8_MAX; - } + public static int INT8_MAX() { return INT8_MAX; } private static final int INT16_MAX = (int)32767L; /** * {@snippet lang=c : * #define INT16_MAX 32767 * } */ - public static int INT16_MAX() { - return INT16_MAX; - } + public static int INT16_MAX() { return INT16_MAX; } private static final int INT32_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define INT32_MAX 2147483647 * } */ - public static int INT32_MAX() { - return INT32_MAX; - } + public static int INT32_MAX() { return INT32_MAX; } private static final long INT64_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INT64_MAX 9223372036854775807 * } */ - public static long INT64_MAX() { - return INT64_MAX; - } + public static long INT64_MAX() { return INT64_MAX; } private static final int UINT8_MAX = (int)255L; /** * {@snippet lang=c : * #define UINT8_MAX 255 * } */ - public static int UINT8_MAX() { - return UINT8_MAX; - } + public static int UINT8_MAX() { return UINT8_MAX; } private static final int UINT16_MAX = (int)65535L; /** * {@snippet lang=c : * #define UINT16_MAX 65535 * } */ - public static int UINT16_MAX() { - return UINT16_MAX; - } + public static int UINT16_MAX() { return UINT16_MAX; } private static final int UINT32_MAX = (int)4294967295L; /** * {@snippet lang=c : * #define UINT32_MAX 4294967295 * } */ - public static int UINT32_MAX() { - return UINT32_MAX; - } + public static int UINT32_MAX() { return UINT32_MAX; } private static final long UINT64_MAX = -1L; /** * {@snippet lang=c : * #define UINT64_MAX -1 * } */ - public static long UINT64_MAX() { - return UINT64_MAX; - } + public static long UINT64_MAX() { return UINT64_MAX; } private static final int INT_LEAST8_MIN = (int)-128L; /** * {@snippet lang=c : * #define INT_LEAST8_MIN -128 * } */ - public static int INT_LEAST8_MIN() { - return INT_LEAST8_MIN; - } + public static int INT_LEAST8_MIN() { return INT_LEAST8_MIN; } private static final int INT_LEAST16_MIN = (int)-32768L; /** * {@snippet lang=c : * #define INT_LEAST16_MIN -32768 * } */ - public static int INT_LEAST16_MIN() { - return INT_LEAST16_MIN; - } + public static int INT_LEAST16_MIN() { return INT_LEAST16_MIN; } private static final int INT_LEAST32_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define INT_LEAST32_MIN -2147483648 * } */ - public static int INT_LEAST32_MIN() { - return INT_LEAST32_MIN; - } + public static int INT_LEAST32_MIN() { return INT_LEAST32_MIN; } private static final long INT_LEAST64_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INT_LEAST64_MIN -9223372036854775808 * } */ - public static long INT_LEAST64_MIN() { - return INT_LEAST64_MIN; - } + public static long INT_LEAST64_MIN() { return INT_LEAST64_MIN; } private static final int INT_LEAST8_MAX = (int)127L; /** * {@snippet lang=c : * #define INT_LEAST8_MAX 127 * } */ - public static int INT_LEAST8_MAX() { - return INT_LEAST8_MAX; - } + public static int INT_LEAST8_MAX() { return INT_LEAST8_MAX; } private static final int INT_LEAST16_MAX = (int)32767L; /** * {@snippet lang=c : * #define INT_LEAST16_MAX 32767 * } */ - public static int INT_LEAST16_MAX() { - return INT_LEAST16_MAX; - } + public static int INT_LEAST16_MAX() { return INT_LEAST16_MAX; } private static final int INT_LEAST32_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define INT_LEAST32_MAX 2147483647 * } */ - public static int INT_LEAST32_MAX() { - return INT_LEAST32_MAX; - } + public static int INT_LEAST32_MAX() { return INT_LEAST32_MAX; } private static final long INT_LEAST64_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INT_LEAST64_MAX 9223372036854775807 * } */ - public static long INT_LEAST64_MAX() { - return INT_LEAST64_MAX; - } + public static long INT_LEAST64_MAX() { return INT_LEAST64_MAX; } private static final int UINT_LEAST8_MAX = (int)255L; /** * {@snippet lang=c : * #define UINT_LEAST8_MAX 255 * } */ - public static int UINT_LEAST8_MAX() { - return UINT_LEAST8_MAX; - } + public static int UINT_LEAST8_MAX() { return UINT_LEAST8_MAX; } private static final int UINT_LEAST16_MAX = (int)65535L; /** * {@snippet lang=c : * #define UINT_LEAST16_MAX 65535 * } */ - public static int UINT_LEAST16_MAX() { - return UINT_LEAST16_MAX; - } + public static int UINT_LEAST16_MAX() { return UINT_LEAST16_MAX; } private static final int UINT_LEAST32_MAX = (int)4294967295L; /** * {@snippet lang=c : * #define UINT_LEAST32_MAX 4294967295 * } */ - public static int UINT_LEAST32_MAX() { - return UINT_LEAST32_MAX; - } + public static int UINT_LEAST32_MAX() { return UINT_LEAST32_MAX; } private static final long UINT_LEAST64_MAX = -1L; /** * {@snippet lang=c : * #define UINT_LEAST64_MAX -1 * } */ - public static long UINT_LEAST64_MAX() { - return UINT_LEAST64_MAX; - } + public static long UINT_LEAST64_MAX() { return UINT_LEAST64_MAX; } private static final int INT_FAST8_MIN = (int)-128L; /** * {@snippet lang=c : * #define INT_FAST8_MIN -128 * } */ - public static int INT_FAST8_MIN() { - return INT_FAST8_MIN; - } + public static int INT_FAST8_MIN() { return INT_FAST8_MIN; } private static final long INT_FAST16_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INT_FAST16_MIN -9223372036854775808 * } */ - public static long INT_FAST16_MIN() { - return INT_FAST16_MIN; - } + public static long INT_FAST16_MIN() { return INT_FAST16_MIN; } private static final long INT_FAST32_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INT_FAST32_MIN -9223372036854775808 * } */ - public static long INT_FAST32_MIN() { - return INT_FAST32_MIN; - } + public static long INT_FAST32_MIN() { return INT_FAST32_MIN; } private static final long INT_FAST64_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INT_FAST64_MIN -9223372036854775808 * } */ - public static long INT_FAST64_MIN() { - return INT_FAST64_MIN; - } + public static long INT_FAST64_MIN() { return INT_FAST64_MIN; } private static final int INT_FAST8_MAX = (int)127L; /** * {@snippet lang=c : * #define INT_FAST8_MAX 127 * } */ - public static int INT_FAST8_MAX() { - return INT_FAST8_MAX; - } + public static int INT_FAST8_MAX() { return INT_FAST8_MAX; } private static final long INT_FAST16_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INT_FAST16_MAX 9223372036854775807 * } */ - public static long INT_FAST16_MAX() { - return INT_FAST16_MAX; - } + public static long INT_FAST16_MAX() { return INT_FAST16_MAX; } private static final long INT_FAST32_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INT_FAST32_MAX 9223372036854775807 * } */ - public static long INT_FAST32_MAX() { - return INT_FAST32_MAX; - } + public static long INT_FAST32_MAX() { return INT_FAST32_MAX; } private static final long INT_FAST64_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INT_FAST64_MAX 9223372036854775807 * } */ - public static long INT_FAST64_MAX() { - return INT_FAST64_MAX; - } + public static long INT_FAST64_MAX() { return INT_FAST64_MAX; } private static final int UINT_FAST8_MAX = (int)255L; /** * {@snippet lang=c : * #define UINT_FAST8_MAX 255 * } */ - public static int UINT_FAST8_MAX() { - return UINT_FAST8_MAX; - } + public static int UINT_FAST8_MAX() { return UINT_FAST8_MAX; } private static final long UINT_FAST16_MAX = -1L; /** * {@snippet lang=c : * #define UINT_FAST16_MAX -1 * } */ - public static long UINT_FAST16_MAX() { - return UINT_FAST16_MAX; - } + public static long UINT_FAST16_MAX() { return UINT_FAST16_MAX; } private static final long UINT_FAST32_MAX = -1L; /** * {@snippet lang=c : * #define UINT_FAST32_MAX -1 * } */ - public static long UINT_FAST32_MAX() { - return UINT_FAST32_MAX; - } + public static long UINT_FAST32_MAX() { return UINT_FAST32_MAX; } private static final long UINT_FAST64_MAX = -1L; /** * {@snippet lang=c : * #define UINT_FAST64_MAX -1 * } */ - public static long UINT_FAST64_MAX() { - return UINT_FAST64_MAX; - } + public static long UINT_FAST64_MAX() { return UINT_FAST64_MAX; } private static final long INTPTR_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INTPTR_MIN -9223372036854775808 * } */ - public static long INTPTR_MIN() { - return INTPTR_MIN; - } + public static long INTPTR_MIN() { return INTPTR_MIN; } private static final long INTPTR_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INTPTR_MAX 9223372036854775807 * } */ - public static long INTPTR_MAX() { - return INTPTR_MAX; - } + public static long INTPTR_MAX() { return INTPTR_MAX; } private static final long UINTPTR_MAX = -1L; /** * {@snippet lang=c : * #define UINTPTR_MAX -1 * } */ - public static long UINTPTR_MAX() { - return UINTPTR_MAX; - } + public static long UINTPTR_MAX() { return UINTPTR_MAX; } private static final long INTMAX_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define INTMAX_MIN -9223372036854775808 * } */ - public static long INTMAX_MIN() { - return INTMAX_MIN; - } + public static long INTMAX_MIN() { return INTMAX_MIN; } private static final long INTMAX_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define INTMAX_MAX 9223372036854775807 * } */ - public static long INTMAX_MAX() { - return INTMAX_MAX; - } + public static long INTMAX_MAX() { return INTMAX_MAX; } private static final long UINTMAX_MAX = -1L; /** * {@snippet lang=c : * #define UINTMAX_MAX -1 * } */ - public static long UINTMAX_MAX() { - return UINTMAX_MAX; - } + public static long UINTMAX_MAX() { return UINTMAX_MAX; } private static final long PTRDIFF_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define PTRDIFF_MIN -9223372036854775808 * } */ - public static long PTRDIFF_MIN() { - return PTRDIFF_MIN; - } + public static long PTRDIFF_MIN() { return PTRDIFF_MIN; } private static final long PTRDIFF_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define PTRDIFF_MAX 9223372036854775807 * } */ - public static long PTRDIFF_MAX() { - return PTRDIFF_MAX; - } + public static long PTRDIFF_MAX() { return PTRDIFF_MAX; } private static final int SIG_ATOMIC_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define SIG_ATOMIC_MIN -2147483648 * } */ - public static int SIG_ATOMIC_MIN() { - return SIG_ATOMIC_MIN; - } + public static int SIG_ATOMIC_MIN() { return SIG_ATOMIC_MIN; } private static final int SIG_ATOMIC_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define SIG_ATOMIC_MAX 2147483647 * } */ - public static int SIG_ATOMIC_MAX() { - return SIG_ATOMIC_MAX; - } + public static int SIG_ATOMIC_MAX() { return SIG_ATOMIC_MAX; } private static final long SIZE_MAX = -1L; /** * {@snippet lang=c : * #define SIZE_MAX -1 * } */ - public static long SIZE_MAX() { - return SIZE_MAX; - } + public static long SIZE_MAX() { return SIZE_MAX; } private static final int WCHAR_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define WCHAR_MIN -2147483648 * } */ - public static int WCHAR_MIN() { - return WCHAR_MIN; - } + public static int WCHAR_MIN() { return WCHAR_MIN; } private static final int WCHAR_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define WCHAR_MAX 2147483647 * } */ - public static int WCHAR_MAX() { - return WCHAR_MAX; - } + public static int WCHAR_MAX() { return WCHAR_MAX; } private static final int WINT_MIN = (int)0L; /** * {@snippet lang=c : * #define WINT_MIN 0 * } */ - public static int WINT_MIN() { - return WINT_MIN; - } + public static int WINT_MIN() { return WINT_MIN; } private static final int WINT_MAX = (int)4294967295L; /** * {@snippet lang=c : * #define WINT_MAX 4294967295 * } */ - public static int WINT_MAX() { - return WINT_MAX; - } + public static int WINT_MAX() { return WINT_MAX; } /** * {@snippet lang=c : * #define __PRI64_PREFIX "l" * } */ - public static MemorySegment __PRI64_PREFIX() { + public static MemorySegment __PRI64_PREFIX() + { class Holder { - static final MemorySegment __PRI64_PREFIX - = hdf5_h.LIBRARY_ARENA.allocateFrom("l"); + static final MemorySegment __PRI64_PREFIX = hdf5_h.LIBRARY_ARENA.allocateFrom("l"); } return Holder.__PRI64_PREFIX; } @@ -25470,10 +23573,10 @@ class Holder { * #define __PRIPTR_PREFIX "l" * } */ - public static MemorySegment __PRIPTR_PREFIX() { + public static MemorySegment __PRIPTR_PREFIX() + { class Holder { - static final MemorySegment __PRIPTR_PREFIX - = hdf5_h.LIBRARY_ARENA.allocateFrom("l"); + static final MemorySegment __PRIPTR_PREFIX = hdf5_h.LIBRARY_ARENA.allocateFrom("l"); } return Holder.__PRIPTR_PREFIX; } @@ -25482,10 +23585,10 @@ class Holder { * #define PRId8 "d" * } */ - public static MemorySegment PRId8() { + public static MemorySegment PRId8() + { class Holder { - static final MemorySegment PRId8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRId8 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRId8; } @@ -25494,10 +23597,10 @@ class Holder { * #define PRId16 "d" * } */ - public static MemorySegment PRId16() { + public static MemorySegment PRId16() + { class Holder { - static final MemorySegment PRId16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRId16 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRId16; } @@ -25506,10 +23609,10 @@ class Holder { * #define PRId32 "d" * } */ - public static MemorySegment PRId32() { + public static MemorySegment PRId32() + { class Holder { - static final MemorySegment PRId32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRId32 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRId32; } @@ -25518,10 +23621,10 @@ class Holder { * #define PRId64 "ld" * } */ - public static MemorySegment PRId64() { + public static MemorySegment PRId64() + { class Holder { - static final MemorySegment PRId64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRId64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRId64; } @@ -25530,10 +23633,10 @@ class Holder { * #define PRIdLEAST8 "d" * } */ - public static MemorySegment PRIdLEAST8() { + public static MemorySegment PRIdLEAST8() + { class Holder { - static final MemorySegment PRIdLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRIdLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRIdLEAST8; } @@ -25542,10 +23645,10 @@ class Holder { * #define PRIdLEAST16 "d" * } */ - public static MemorySegment PRIdLEAST16() { + public static MemorySegment PRIdLEAST16() + { class Holder { - static final MemorySegment PRIdLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRIdLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRIdLEAST16; } @@ -25554,10 +23657,10 @@ class Holder { * #define PRIdLEAST32 "d" * } */ - public static MemorySegment PRIdLEAST32() { + public static MemorySegment PRIdLEAST32() + { class Holder { - static final MemorySegment PRIdLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRIdLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRIdLEAST32; } @@ -25566,10 +23669,10 @@ class Holder { * #define PRIdLEAST64 "ld" * } */ - public static MemorySegment PRIdLEAST64() { + public static MemorySegment PRIdLEAST64() + { class Holder { - static final MemorySegment PRIdLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdLEAST64; } @@ -25578,10 +23681,10 @@ class Holder { * #define PRIdFAST8 "d" * } */ - public static MemorySegment PRIdFAST8() { + public static MemorySegment PRIdFAST8() + { class Holder { - static final MemorySegment PRIdFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment PRIdFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.PRIdFAST8; } @@ -25590,10 +23693,10 @@ class Holder { * #define PRIdFAST16 "ld" * } */ - public static MemorySegment PRIdFAST16() { + public static MemorySegment PRIdFAST16() + { class Holder { - static final MemorySegment PRIdFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdFAST16; } @@ -25602,10 +23705,10 @@ class Holder { * #define PRIdFAST32 "ld" * } */ - public static MemorySegment PRIdFAST32() { + public static MemorySegment PRIdFAST32() + { class Holder { - static final MemorySegment PRIdFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdFAST32; } @@ -25614,10 +23717,10 @@ class Holder { * #define PRIdFAST64 "ld" * } */ - public static MemorySegment PRIdFAST64() { + public static MemorySegment PRIdFAST64() + { class Holder { - static final MemorySegment PRIdFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdFAST64; } @@ -25626,10 +23729,10 @@ class Holder { * #define PRIi8 "i" * } */ - public static MemorySegment PRIi8() { + public static MemorySegment PRIi8() + { class Holder { - static final MemorySegment PRIi8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIi8 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIi8; } @@ -25638,10 +23741,10 @@ class Holder { * #define PRIi16 "i" * } */ - public static MemorySegment PRIi16() { + public static MemorySegment PRIi16() + { class Holder { - static final MemorySegment PRIi16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIi16 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIi16; } @@ -25650,10 +23753,10 @@ class Holder { * #define PRIi32 "i" * } */ - public static MemorySegment PRIi32() { + public static MemorySegment PRIi32() + { class Holder { - static final MemorySegment PRIi32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIi32 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIi32; } @@ -25662,10 +23765,10 @@ class Holder { * #define PRIi64 "li" * } */ - public static MemorySegment PRIi64() { + public static MemorySegment PRIi64() + { class Holder { - static final MemorySegment PRIi64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIi64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIi64; } @@ -25674,10 +23777,10 @@ class Holder { * #define PRIiLEAST8 "i" * } */ - public static MemorySegment PRIiLEAST8() { + public static MemorySegment PRIiLEAST8() + { class Holder { - static final MemorySegment PRIiLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIiLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIiLEAST8; } @@ -25686,10 +23789,10 @@ class Holder { * #define PRIiLEAST16 "i" * } */ - public static MemorySegment PRIiLEAST16() { + public static MemorySegment PRIiLEAST16() + { class Holder { - static final MemorySegment PRIiLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIiLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIiLEAST16; } @@ -25698,10 +23801,10 @@ class Holder { * #define PRIiLEAST32 "i" * } */ - public static MemorySegment PRIiLEAST32() { + public static MemorySegment PRIiLEAST32() + { class Holder { - static final MemorySegment PRIiLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIiLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIiLEAST32; } @@ -25710,10 +23813,10 @@ class Holder { * #define PRIiLEAST64 "li" * } */ - public static MemorySegment PRIiLEAST64() { + public static MemorySegment PRIiLEAST64() + { class Holder { - static final MemorySegment PRIiLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiLEAST64; } @@ -25722,10 +23825,10 @@ class Holder { * #define PRIiFAST8 "i" * } */ - public static MemorySegment PRIiFAST8() { + public static MemorySegment PRIiFAST8() + { class Holder { - static final MemorySegment PRIiFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment PRIiFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.PRIiFAST8; } @@ -25734,10 +23837,10 @@ class Holder { * #define PRIiFAST16 "li" * } */ - public static MemorySegment PRIiFAST16() { + public static MemorySegment PRIiFAST16() + { class Holder { - static final MemorySegment PRIiFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiFAST16; } @@ -25746,10 +23849,10 @@ class Holder { * #define PRIiFAST32 "li" * } */ - public static MemorySegment PRIiFAST32() { + public static MemorySegment PRIiFAST32() + { class Holder { - static final MemorySegment PRIiFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiFAST32; } @@ -25758,10 +23861,10 @@ class Holder { * #define PRIiFAST64 "li" * } */ - public static MemorySegment PRIiFAST64() { + public static MemorySegment PRIiFAST64() + { class Holder { - static final MemorySegment PRIiFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiFAST64; } @@ -25770,10 +23873,10 @@ class Holder { * #define PRIo8 "o" * } */ - public static MemorySegment PRIo8() { + public static MemorySegment PRIo8() + { class Holder { - static final MemorySegment PRIo8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIo8 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIo8; } @@ -25782,10 +23885,10 @@ class Holder { * #define PRIo16 "o" * } */ - public static MemorySegment PRIo16() { + public static MemorySegment PRIo16() + { class Holder { - static final MemorySegment PRIo16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIo16 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIo16; } @@ -25794,10 +23897,10 @@ class Holder { * #define PRIo32 "o" * } */ - public static MemorySegment PRIo32() { + public static MemorySegment PRIo32() + { class Holder { - static final MemorySegment PRIo32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIo32 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIo32; } @@ -25806,10 +23909,10 @@ class Holder { * #define PRIo64 "lo" * } */ - public static MemorySegment PRIo64() { + public static MemorySegment PRIo64() + { class Holder { - static final MemorySegment PRIo64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIo64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIo64; } @@ -25818,10 +23921,10 @@ class Holder { * #define PRIoLEAST8 "o" * } */ - public static MemorySegment PRIoLEAST8() { + public static MemorySegment PRIoLEAST8() + { class Holder { - static final MemorySegment PRIoLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIoLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIoLEAST8; } @@ -25830,10 +23933,10 @@ class Holder { * #define PRIoLEAST16 "o" * } */ - public static MemorySegment PRIoLEAST16() { + public static MemorySegment PRIoLEAST16() + { class Holder { - static final MemorySegment PRIoLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIoLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIoLEAST16; } @@ -25842,10 +23945,10 @@ class Holder { * #define PRIoLEAST32 "o" * } */ - public static MemorySegment PRIoLEAST32() { + public static MemorySegment PRIoLEAST32() + { class Holder { - static final MemorySegment PRIoLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIoLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIoLEAST32; } @@ -25854,10 +23957,10 @@ class Holder { * #define PRIoLEAST64 "lo" * } */ - public static MemorySegment PRIoLEAST64() { + public static MemorySegment PRIoLEAST64() + { class Holder { - static final MemorySegment PRIoLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoLEAST64; } @@ -25866,10 +23969,10 @@ class Holder { * #define PRIoFAST8 "o" * } */ - public static MemorySegment PRIoFAST8() { + public static MemorySegment PRIoFAST8() + { class Holder { - static final MemorySegment PRIoFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment PRIoFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.PRIoFAST8; } @@ -25878,10 +23981,10 @@ class Holder { * #define PRIoFAST16 "lo" * } */ - public static MemorySegment PRIoFAST16() { + public static MemorySegment PRIoFAST16() + { class Holder { - static final MemorySegment PRIoFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoFAST16; } @@ -25890,10 +23993,10 @@ class Holder { * #define PRIoFAST32 "lo" * } */ - public static MemorySegment PRIoFAST32() { + public static MemorySegment PRIoFAST32() + { class Holder { - static final MemorySegment PRIoFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoFAST32; } @@ -25902,10 +24005,10 @@ class Holder { * #define PRIoFAST64 "lo" * } */ - public static MemorySegment PRIoFAST64() { + public static MemorySegment PRIoFAST64() + { class Holder { - static final MemorySegment PRIoFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoFAST64; } @@ -25914,10 +24017,10 @@ class Holder { * #define PRIu8 "u" * } */ - public static MemorySegment PRIu8() { + public static MemorySegment PRIu8() + { class Holder { - static final MemorySegment PRIu8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIu8 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIu8; } @@ -25926,10 +24029,10 @@ class Holder { * #define PRIu16 "u" * } */ - public static MemorySegment PRIu16() { + public static MemorySegment PRIu16() + { class Holder { - static final MemorySegment PRIu16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIu16 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIu16; } @@ -25938,10 +24041,10 @@ class Holder { * #define PRIu32 "u" * } */ - public static MemorySegment PRIu32() { + public static MemorySegment PRIu32() + { class Holder { - static final MemorySegment PRIu32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIu32 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIu32; } @@ -25950,10 +24053,10 @@ class Holder { * #define PRIu64 "lu" * } */ - public static MemorySegment PRIu64() { + public static MemorySegment PRIu64() + { class Holder { - static final MemorySegment PRIu64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIu64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIu64; } @@ -25962,10 +24065,10 @@ class Holder { * #define PRIuLEAST8 "u" * } */ - public static MemorySegment PRIuLEAST8() { + public static MemorySegment PRIuLEAST8() + { class Holder { - static final MemorySegment PRIuLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIuLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIuLEAST8; } @@ -25974,10 +24077,10 @@ class Holder { * #define PRIuLEAST16 "u" * } */ - public static MemorySegment PRIuLEAST16() { + public static MemorySegment PRIuLEAST16() + { class Holder { - static final MemorySegment PRIuLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIuLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIuLEAST16; } @@ -25986,10 +24089,10 @@ class Holder { * #define PRIuLEAST32 "u" * } */ - public static MemorySegment PRIuLEAST32() { + public static MemorySegment PRIuLEAST32() + { class Holder { - static final MemorySegment PRIuLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIuLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIuLEAST32; } @@ -25998,10 +24101,10 @@ class Holder { * #define PRIuLEAST64 "lu" * } */ - public static MemorySegment PRIuLEAST64() { + public static MemorySegment PRIuLEAST64() + { class Holder { - static final MemorySegment PRIuLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuLEAST64; } @@ -26010,10 +24113,10 @@ class Holder { * #define PRIuFAST8 "u" * } */ - public static MemorySegment PRIuFAST8() { + public static MemorySegment PRIuFAST8() + { class Holder { - static final MemorySegment PRIuFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment PRIuFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.PRIuFAST8; } @@ -26022,10 +24125,10 @@ class Holder { * #define PRIuFAST16 "lu" * } */ - public static MemorySegment PRIuFAST16() { + public static MemorySegment PRIuFAST16() + { class Holder { - static final MemorySegment PRIuFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuFAST16; } @@ -26034,10 +24137,10 @@ class Holder { * #define PRIuFAST32 "lu" * } */ - public static MemorySegment PRIuFAST32() { + public static MemorySegment PRIuFAST32() + { class Holder { - static final MemorySegment PRIuFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuFAST32; } @@ -26046,10 +24149,10 @@ class Holder { * #define PRIuFAST64 "lu" * } */ - public static MemorySegment PRIuFAST64() { + public static MemorySegment PRIuFAST64() + { class Holder { - static final MemorySegment PRIuFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuFAST64; } @@ -26058,10 +24161,10 @@ class Holder { * #define PRIx8 "x" * } */ - public static MemorySegment PRIx8() { + public static MemorySegment PRIx8() + { class Holder { - static final MemorySegment PRIx8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIx8 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIx8; } @@ -26070,10 +24173,10 @@ class Holder { * #define PRIx16 "x" * } */ - public static MemorySegment PRIx16() { + public static MemorySegment PRIx16() + { class Holder { - static final MemorySegment PRIx16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIx16 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIx16; } @@ -26082,10 +24185,10 @@ class Holder { * #define PRIx32 "x" * } */ - public static MemorySegment PRIx32() { + public static MemorySegment PRIx32() + { class Holder { - static final MemorySegment PRIx32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIx32 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIx32; } @@ -26094,10 +24197,10 @@ class Holder { * #define PRIx64 "lx" * } */ - public static MemorySegment PRIx64() { + public static MemorySegment PRIx64() + { class Holder { - static final MemorySegment PRIx64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIx64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIx64; } @@ -26106,10 +24209,10 @@ class Holder { * #define PRIxLEAST8 "x" * } */ - public static MemorySegment PRIxLEAST8() { + public static MemorySegment PRIxLEAST8() + { class Holder { - static final MemorySegment PRIxLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIxLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIxLEAST8; } @@ -26118,10 +24221,10 @@ class Holder { * #define PRIxLEAST16 "x" * } */ - public static MemorySegment PRIxLEAST16() { + public static MemorySegment PRIxLEAST16() + { class Holder { - static final MemorySegment PRIxLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIxLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIxLEAST16; } @@ -26130,10 +24233,10 @@ class Holder { * #define PRIxLEAST32 "x" * } */ - public static MemorySegment PRIxLEAST32() { + public static MemorySegment PRIxLEAST32() + { class Holder { - static final MemorySegment PRIxLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIxLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIxLEAST32; } @@ -26142,10 +24245,10 @@ class Holder { * #define PRIxLEAST64 "lx" * } */ - public static MemorySegment PRIxLEAST64() { + public static MemorySegment PRIxLEAST64() + { class Holder { - static final MemorySegment PRIxLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxLEAST64; } @@ -26154,10 +24257,10 @@ class Holder { * #define PRIxFAST8 "x" * } */ - public static MemorySegment PRIxFAST8() { + public static MemorySegment PRIxFAST8() + { class Holder { - static final MemorySegment PRIxFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment PRIxFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.PRIxFAST8; } @@ -26166,10 +24269,10 @@ class Holder { * #define PRIxFAST16 "lx" * } */ - public static MemorySegment PRIxFAST16() { + public static MemorySegment PRIxFAST16() + { class Holder { - static final MemorySegment PRIxFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxFAST16; } @@ -26178,10 +24281,10 @@ class Holder { * #define PRIxFAST32 "lx" * } */ - public static MemorySegment PRIxFAST32() { + public static MemorySegment PRIxFAST32() + { class Holder { - static final MemorySegment PRIxFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxFAST32; } @@ -26190,10 +24293,10 @@ class Holder { * #define PRIxFAST64 "lx" * } */ - public static MemorySegment PRIxFAST64() { + public static MemorySegment PRIxFAST64() + { class Holder { - static final MemorySegment PRIxFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxFAST64; } @@ -26202,10 +24305,10 @@ class Holder { * #define PRIX8 "X" * } */ - public static MemorySegment PRIX8() { + public static MemorySegment PRIX8() + { class Holder { - static final MemorySegment PRIX8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIX8 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIX8; } @@ -26214,10 +24317,10 @@ class Holder { * #define PRIX16 "X" * } */ - public static MemorySegment PRIX16() { + public static MemorySegment PRIX16() + { class Holder { - static final MemorySegment PRIX16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIX16 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIX16; } @@ -26226,10 +24329,10 @@ class Holder { * #define PRIX32 "X" * } */ - public static MemorySegment PRIX32() { + public static MemorySegment PRIX32() + { class Holder { - static final MemorySegment PRIX32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIX32 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIX32; } @@ -26238,10 +24341,10 @@ class Holder { * #define PRIX64 "lX" * } */ - public static MemorySegment PRIX64() { + public static MemorySegment PRIX64() + { class Holder { - static final MemorySegment PRIX64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIX64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIX64; } @@ -26250,10 +24353,10 @@ class Holder { * #define PRIXLEAST8 "X" * } */ - public static MemorySegment PRIXLEAST8() { + public static MemorySegment PRIXLEAST8() + { class Holder { - static final MemorySegment PRIXLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIXLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIXLEAST8; } @@ -26262,10 +24365,10 @@ class Holder { * #define PRIXLEAST16 "X" * } */ - public static MemorySegment PRIXLEAST16() { + public static MemorySegment PRIXLEAST16() + { class Holder { - static final MemorySegment PRIXLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIXLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIXLEAST16; } @@ -26274,10 +24377,10 @@ class Holder { * #define PRIXLEAST32 "X" * } */ - public static MemorySegment PRIXLEAST32() { + public static MemorySegment PRIXLEAST32() + { class Holder { - static final MemorySegment PRIXLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIXLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIXLEAST32; } @@ -26286,10 +24389,10 @@ class Holder { * #define PRIXLEAST64 "lX" * } */ - public static MemorySegment PRIXLEAST64() { + public static MemorySegment PRIXLEAST64() + { class Holder { - static final MemorySegment PRIXLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXLEAST64; } @@ -26298,10 +24401,10 @@ class Holder { * #define PRIXFAST8 "X" * } */ - public static MemorySegment PRIXFAST8() { + public static MemorySegment PRIXFAST8() + { class Holder { - static final MemorySegment PRIXFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); + static final MemorySegment PRIXFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("X"); } return Holder.PRIXFAST8; } @@ -26310,10 +24413,10 @@ class Holder { * #define PRIXFAST16 "lX" * } */ - public static MemorySegment PRIXFAST16() { + public static MemorySegment PRIXFAST16() + { class Holder { - static final MemorySegment PRIXFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXFAST16; } @@ -26322,10 +24425,10 @@ class Holder { * #define PRIXFAST32 "lX" * } */ - public static MemorySegment PRIXFAST32() { + public static MemorySegment PRIXFAST32() + { class Holder { - static final MemorySegment PRIXFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXFAST32; } @@ -26334,10 +24437,10 @@ class Holder { * #define PRIXFAST64 "lX" * } */ - public static MemorySegment PRIXFAST64() { + public static MemorySegment PRIXFAST64() + { class Holder { - static final MemorySegment PRIXFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXFAST64; } @@ -26346,10 +24449,10 @@ class Holder { * #define PRIdMAX "ld" * } */ - public static MemorySegment PRIdMAX() { + public static MemorySegment PRIdMAX() + { class Holder { - static final MemorySegment PRIdMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdMAX; } @@ -26358,10 +24461,10 @@ class Holder { * #define PRIiMAX "li" * } */ - public static MemorySegment PRIiMAX() { + public static MemorySegment PRIiMAX() + { class Holder { - static final MemorySegment PRIiMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiMAX; } @@ -26370,10 +24473,10 @@ class Holder { * #define PRIoMAX "lo" * } */ - public static MemorySegment PRIoMAX() { + public static MemorySegment PRIoMAX() + { class Holder { - static final MemorySegment PRIoMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoMAX; } @@ -26382,10 +24485,10 @@ class Holder { * #define PRIuMAX "lu" * } */ - public static MemorySegment PRIuMAX() { + public static MemorySegment PRIuMAX() + { class Holder { - static final MemorySegment PRIuMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuMAX; } @@ -26394,10 +24497,10 @@ class Holder { * #define PRIxMAX "lx" * } */ - public static MemorySegment PRIxMAX() { + public static MemorySegment PRIxMAX() + { class Holder { - static final MemorySegment PRIxMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxMAX; } @@ -26406,10 +24509,10 @@ class Holder { * #define PRIXMAX "lX" * } */ - public static MemorySegment PRIXMAX() { + public static MemorySegment PRIXMAX() + { class Holder { - static final MemorySegment PRIXMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXMAX; } @@ -26418,10 +24521,10 @@ class Holder { * #define PRIdPTR "ld" * } */ - public static MemorySegment PRIdPTR() { + public static MemorySegment PRIdPTR() + { class Holder { - static final MemorySegment PRIdPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdPTR; } @@ -26430,10 +24533,10 @@ class Holder { * #define PRIiPTR "li" * } */ - public static MemorySegment PRIiPTR() { + public static MemorySegment PRIiPTR() + { class Holder { - static final MemorySegment PRIiPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiPTR; } @@ -26442,10 +24545,10 @@ class Holder { * #define PRIoPTR "lo" * } */ - public static MemorySegment PRIoPTR() { + public static MemorySegment PRIoPTR() + { class Holder { - static final MemorySegment PRIoPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoPTR; } @@ -26454,10 +24557,10 @@ class Holder { * #define PRIuPTR "lu" * } */ - public static MemorySegment PRIuPTR() { + public static MemorySegment PRIuPTR() + { class Holder { - static final MemorySegment PRIuPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuPTR; } @@ -26466,10 +24569,10 @@ class Holder { * #define PRIxPTR "lx" * } */ - public static MemorySegment PRIxPTR() { + public static MemorySegment PRIxPTR() + { class Holder { - static final MemorySegment PRIxPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxPTR; } @@ -26478,10 +24581,10 @@ class Holder { * #define PRIXPTR "lX" * } */ - public static MemorySegment PRIXPTR() { + public static MemorySegment PRIXPTR() + { class Holder { - static final MemorySegment PRIXPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXPTR; } @@ -26490,10 +24593,10 @@ class Holder { * #define SCNd8 "hhd" * } */ - public static MemorySegment SCNd8() { + public static MemorySegment SCNd8() + { class Holder { - static final MemorySegment SCNd8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); + static final MemorySegment SCNd8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); } return Holder.SCNd8; } @@ -26502,10 +24605,10 @@ class Holder { * #define SCNd16 "hd" * } */ - public static MemorySegment SCNd16() { + public static MemorySegment SCNd16() + { class Holder { - static final MemorySegment SCNd16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hd"); + static final MemorySegment SCNd16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hd"); } return Holder.SCNd16; } @@ -26514,10 +24617,10 @@ class Holder { * #define SCNd32 "d" * } */ - public static MemorySegment SCNd32() { + public static MemorySegment SCNd32() + { class Holder { - static final MemorySegment SCNd32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment SCNd32 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.SCNd32; } @@ -26526,10 +24629,10 @@ class Holder { * #define SCNd64 "ld" * } */ - public static MemorySegment SCNd64() { + public static MemorySegment SCNd64() + { class Holder { - static final MemorySegment SCNd64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNd64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNd64; } @@ -26538,10 +24641,10 @@ class Holder { * #define SCNdLEAST8 "hhd" * } */ - public static MemorySegment SCNdLEAST8() { + public static MemorySegment SCNdLEAST8() + { class Holder { - static final MemorySegment SCNdLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); + static final MemorySegment SCNdLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); } return Holder.SCNdLEAST8; } @@ -26550,10 +24653,10 @@ class Holder { * #define SCNdLEAST16 "hd" * } */ - public static MemorySegment SCNdLEAST16() { + public static MemorySegment SCNdLEAST16() + { class Holder { - static final MemorySegment SCNdLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hd"); + static final MemorySegment SCNdLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hd"); } return Holder.SCNdLEAST16; } @@ -26562,10 +24665,10 @@ class Holder { * #define SCNdLEAST32 "d" * } */ - public static MemorySegment SCNdLEAST32() { + public static MemorySegment SCNdLEAST32() + { class Holder { - static final MemorySegment SCNdLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); + static final MemorySegment SCNdLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("d"); } return Holder.SCNdLEAST32; } @@ -26574,10 +24677,10 @@ class Holder { * #define SCNdLEAST64 "ld" * } */ - public static MemorySegment SCNdLEAST64() { + public static MemorySegment SCNdLEAST64() + { class Holder { - static final MemorySegment SCNdLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdLEAST64; } @@ -26586,10 +24689,10 @@ class Holder { * #define SCNdFAST8 "hhd" * } */ - public static MemorySegment SCNdFAST8() { + public static MemorySegment SCNdFAST8() + { class Holder { - static final MemorySegment SCNdFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); + static final MemorySegment SCNdFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhd"); } return Holder.SCNdFAST8; } @@ -26598,10 +24701,10 @@ class Holder { * #define SCNdFAST16 "ld" * } */ - public static MemorySegment SCNdFAST16() { + public static MemorySegment SCNdFAST16() + { class Holder { - static final MemorySegment SCNdFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdFAST16; } @@ -26610,10 +24713,10 @@ class Holder { * #define SCNdFAST32 "ld" * } */ - public static MemorySegment SCNdFAST32() { + public static MemorySegment SCNdFAST32() + { class Holder { - static final MemorySegment SCNdFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdFAST32; } @@ -26622,10 +24725,10 @@ class Holder { * #define SCNdFAST64 "ld" * } */ - public static MemorySegment SCNdFAST64() { + public static MemorySegment SCNdFAST64() + { class Holder { - static final MemorySegment SCNdFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdFAST64; } @@ -26634,10 +24737,10 @@ class Holder { * #define SCNi8 "hhi" * } */ - public static MemorySegment SCNi8() { + public static MemorySegment SCNi8() + { class Holder { - static final MemorySegment SCNi8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); + static final MemorySegment SCNi8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); } return Holder.SCNi8; } @@ -26646,10 +24749,10 @@ class Holder { * #define SCNi16 "hi" * } */ - public static MemorySegment SCNi16() { + public static MemorySegment SCNi16() + { class Holder { - static final MemorySegment SCNi16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hi"); + static final MemorySegment SCNi16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hi"); } return Holder.SCNi16; } @@ -26658,10 +24761,10 @@ class Holder { * #define SCNi32 "i" * } */ - public static MemorySegment SCNi32() { + public static MemorySegment SCNi32() + { class Holder { - static final MemorySegment SCNi32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment SCNi32 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.SCNi32; } @@ -26670,10 +24773,10 @@ class Holder { * #define SCNi64 "li" * } */ - public static MemorySegment SCNi64() { + public static MemorySegment SCNi64() + { class Holder { - static final MemorySegment SCNi64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNi64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNi64; } @@ -26682,10 +24785,10 @@ class Holder { * #define SCNiLEAST8 "hhi" * } */ - public static MemorySegment SCNiLEAST8() { + public static MemorySegment SCNiLEAST8() + { class Holder { - static final MemorySegment SCNiLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); + static final MemorySegment SCNiLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); } return Holder.SCNiLEAST8; } @@ -26694,10 +24797,10 @@ class Holder { * #define SCNiLEAST16 "hi" * } */ - public static MemorySegment SCNiLEAST16() { + public static MemorySegment SCNiLEAST16() + { class Holder { - static final MemorySegment SCNiLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hi"); + static final MemorySegment SCNiLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hi"); } return Holder.SCNiLEAST16; } @@ -26706,10 +24809,10 @@ class Holder { * #define SCNiLEAST32 "i" * } */ - public static MemorySegment SCNiLEAST32() { + public static MemorySegment SCNiLEAST32() + { class Holder { - static final MemorySegment SCNiLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); + static final MemorySegment SCNiLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("i"); } return Holder.SCNiLEAST32; } @@ -26718,10 +24821,10 @@ class Holder { * #define SCNiLEAST64 "li" * } */ - public static MemorySegment SCNiLEAST64() { + public static MemorySegment SCNiLEAST64() + { class Holder { - static final MemorySegment SCNiLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiLEAST64; } @@ -26730,10 +24833,10 @@ class Holder { * #define SCNiFAST8 "hhi" * } */ - public static MemorySegment SCNiFAST8() { + public static MemorySegment SCNiFAST8() + { class Holder { - static final MemorySegment SCNiFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); + static final MemorySegment SCNiFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhi"); } return Holder.SCNiFAST8; } @@ -26742,10 +24845,10 @@ class Holder { * #define SCNiFAST16 "li" * } */ - public static MemorySegment SCNiFAST16() { + public static MemorySegment SCNiFAST16() + { class Holder { - static final MemorySegment SCNiFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiFAST16; } @@ -26754,10 +24857,10 @@ class Holder { * #define SCNiFAST32 "li" * } */ - public static MemorySegment SCNiFAST32() { + public static MemorySegment SCNiFAST32() + { class Holder { - static final MemorySegment SCNiFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiFAST32; } @@ -26766,10 +24869,10 @@ class Holder { * #define SCNiFAST64 "li" * } */ - public static MemorySegment SCNiFAST64() { + public static MemorySegment SCNiFAST64() + { class Holder { - static final MemorySegment SCNiFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiFAST64; } @@ -26778,10 +24881,10 @@ class Holder { * #define SCNu8 "hhu" * } */ - public static MemorySegment SCNu8() { + public static MemorySegment SCNu8() + { class Holder { - static final MemorySegment SCNu8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); + static final MemorySegment SCNu8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); } return Holder.SCNu8; } @@ -26790,10 +24893,10 @@ class Holder { * #define SCNu16 "hu" * } */ - public static MemorySegment SCNu16() { + public static MemorySegment SCNu16() + { class Holder { - static final MemorySegment SCNu16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hu"); + static final MemorySegment SCNu16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hu"); } return Holder.SCNu16; } @@ -26802,10 +24905,10 @@ class Holder { * #define SCNu32 "u" * } */ - public static MemorySegment SCNu32() { + public static MemorySegment SCNu32() + { class Holder { - static final MemorySegment SCNu32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment SCNu32 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.SCNu32; } @@ -26814,10 +24917,10 @@ class Holder { * #define SCNu64 "lu" * } */ - public static MemorySegment SCNu64() { + public static MemorySegment SCNu64() + { class Holder { - static final MemorySegment SCNu64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNu64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNu64; } @@ -26826,10 +24929,10 @@ class Holder { * #define SCNuLEAST8 "hhu" * } */ - public static MemorySegment SCNuLEAST8() { + public static MemorySegment SCNuLEAST8() + { class Holder { - static final MemorySegment SCNuLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); + static final MemorySegment SCNuLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); } return Holder.SCNuLEAST8; } @@ -26838,10 +24941,10 @@ class Holder { * #define SCNuLEAST16 "hu" * } */ - public static MemorySegment SCNuLEAST16() { + public static MemorySegment SCNuLEAST16() + { class Holder { - static final MemorySegment SCNuLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hu"); + static final MemorySegment SCNuLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hu"); } return Holder.SCNuLEAST16; } @@ -26850,10 +24953,10 @@ class Holder { * #define SCNuLEAST32 "u" * } */ - public static MemorySegment SCNuLEAST32() { + public static MemorySegment SCNuLEAST32() + { class Holder { - static final MemorySegment SCNuLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); + static final MemorySegment SCNuLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("u"); } return Holder.SCNuLEAST32; } @@ -26862,10 +24965,10 @@ class Holder { * #define SCNuLEAST64 "lu" * } */ - public static MemorySegment SCNuLEAST64() { + public static MemorySegment SCNuLEAST64() + { class Holder { - static final MemorySegment SCNuLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuLEAST64; } @@ -26874,10 +24977,10 @@ class Holder { * #define SCNuFAST8 "hhu" * } */ - public static MemorySegment SCNuFAST8() { + public static MemorySegment SCNuFAST8() + { class Holder { - static final MemorySegment SCNuFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); + static final MemorySegment SCNuFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhu"); } return Holder.SCNuFAST8; } @@ -26886,10 +24989,10 @@ class Holder { * #define SCNuFAST16 "lu" * } */ - public static MemorySegment SCNuFAST16() { + public static MemorySegment SCNuFAST16() + { class Holder { - static final MemorySegment SCNuFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuFAST16; } @@ -26898,10 +25001,10 @@ class Holder { * #define SCNuFAST32 "lu" * } */ - public static MemorySegment SCNuFAST32() { + public static MemorySegment SCNuFAST32() + { class Holder { - static final MemorySegment SCNuFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuFAST32; } @@ -26910,10 +25013,10 @@ class Holder { * #define SCNuFAST64 "lu" * } */ - public static MemorySegment SCNuFAST64() { + public static MemorySegment SCNuFAST64() + { class Holder { - static final MemorySegment SCNuFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuFAST64; } @@ -26922,10 +25025,10 @@ class Holder { * #define SCNo8 "hho" * } */ - public static MemorySegment SCNo8() { + public static MemorySegment SCNo8() + { class Holder { - static final MemorySegment SCNo8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); + static final MemorySegment SCNo8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); } return Holder.SCNo8; } @@ -26934,10 +25037,10 @@ class Holder { * #define SCNo16 "ho" * } */ - public static MemorySegment SCNo16() { + public static MemorySegment SCNo16() + { class Holder { - static final MemorySegment SCNo16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ho"); + static final MemorySegment SCNo16 = hdf5_h.LIBRARY_ARENA.allocateFrom("ho"); } return Holder.SCNo16; } @@ -26946,10 +25049,10 @@ class Holder { * #define SCNo32 "o" * } */ - public static MemorySegment SCNo32() { + public static MemorySegment SCNo32() + { class Holder { - static final MemorySegment SCNo32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment SCNo32 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.SCNo32; } @@ -26958,10 +25061,10 @@ class Holder { * #define SCNo64 "lo" * } */ - public static MemorySegment SCNo64() { + public static MemorySegment SCNo64() + { class Holder { - static final MemorySegment SCNo64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNo64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNo64; } @@ -26970,10 +25073,10 @@ class Holder { * #define SCNoLEAST8 "hho" * } */ - public static MemorySegment SCNoLEAST8() { + public static MemorySegment SCNoLEAST8() + { class Holder { - static final MemorySegment SCNoLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); + static final MemorySegment SCNoLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); } return Holder.SCNoLEAST8; } @@ -26982,10 +25085,10 @@ class Holder { * #define SCNoLEAST16 "ho" * } */ - public static MemorySegment SCNoLEAST16() { + public static MemorySegment SCNoLEAST16() + { class Holder { - static final MemorySegment SCNoLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("ho"); + static final MemorySegment SCNoLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("ho"); } return Holder.SCNoLEAST16; } @@ -26994,10 +25097,10 @@ class Holder { * #define SCNoLEAST32 "o" * } */ - public static MemorySegment SCNoLEAST32() { + public static MemorySegment SCNoLEAST32() + { class Holder { - static final MemorySegment SCNoLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); + static final MemorySegment SCNoLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("o"); } return Holder.SCNoLEAST32; } @@ -27006,10 +25109,10 @@ class Holder { * #define SCNoLEAST64 "lo" * } */ - public static MemorySegment SCNoLEAST64() { + public static MemorySegment SCNoLEAST64() + { class Holder { - static final MemorySegment SCNoLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoLEAST64; } @@ -27018,10 +25121,10 @@ class Holder { * #define SCNoFAST8 "hho" * } */ - public static MemorySegment SCNoFAST8() { + public static MemorySegment SCNoFAST8() + { class Holder { - static final MemorySegment SCNoFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); + static final MemorySegment SCNoFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hho"); } return Holder.SCNoFAST8; } @@ -27030,10 +25133,10 @@ class Holder { * #define SCNoFAST16 "lo" * } */ - public static MemorySegment SCNoFAST16() { + public static MemorySegment SCNoFAST16() + { class Holder { - static final MemorySegment SCNoFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoFAST16; } @@ -27042,10 +25145,10 @@ class Holder { * #define SCNoFAST32 "lo" * } */ - public static MemorySegment SCNoFAST32() { + public static MemorySegment SCNoFAST32() + { class Holder { - static final MemorySegment SCNoFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoFAST32; } @@ -27054,10 +25157,10 @@ class Holder { * #define SCNoFAST64 "lo" * } */ - public static MemorySegment SCNoFAST64() { + public static MemorySegment SCNoFAST64() + { class Holder { - static final MemorySegment SCNoFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoFAST64; } @@ -27066,10 +25169,10 @@ class Holder { * #define SCNx8 "hhx" * } */ - public static MemorySegment SCNx8() { + public static MemorySegment SCNx8() + { class Holder { - static final MemorySegment SCNx8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); + static final MemorySegment SCNx8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); } return Holder.SCNx8; } @@ -27078,10 +25181,10 @@ class Holder { * #define SCNx16 "hx" * } */ - public static MemorySegment SCNx16() { + public static MemorySegment SCNx16() + { class Holder { - static final MemorySegment SCNx16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hx"); + static final MemorySegment SCNx16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hx"); } return Holder.SCNx16; } @@ -27090,10 +25193,10 @@ class Holder { * #define SCNx32 "x" * } */ - public static MemorySegment SCNx32() { + public static MemorySegment SCNx32() + { class Holder { - static final MemorySegment SCNx32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment SCNx32 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.SCNx32; } @@ -27102,10 +25205,10 @@ class Holder { * #define SCNx64 "lx" * } */ - public static MemorySegment SCNx64() { + public static MemorySegment SCNx64() + { class Holder { - static final MemorySegment SCNx64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNx64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNx64; } @@ -27114,10 +25217,10 @@ class Holder { * #define SCNxLEAST8 "hhx" * } */ - public static MemorySegment SCNxLEAST8() { + public static MemorySegment SCNxLEAST8() + { class Holder { - static final MemorySegment SCNxLEAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); + static final MemorySegment SCNxLEAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); } return Holder.SCNxLEAST8; } @@ -27126,10 +25229,10 @@ class Holder { * #define SCNxLEAST16 "hx" * } */ - public static MemorySegment SCNxLEAST16() { + public static MemorySegment SCNxLEAST16() + { class Holder { - static final MemorySegment SCNxLEAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hx"); + static final MemorySegment SCNxLEAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("hx"); } return Holder.SCNxLEAST16; } @@ -27138,10 +25241,10 @@ class Holder { * #define SCNxLEAST32 "x" * } */ - public static MemorySegment SCNxLEAST32() { + public static MemorySegment SCNxLEAST32() + { class Holder { - static final MemorySegment SCNxLEAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); + static final MemorySegment SCNxLEAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("x"); } return Holder.SCNxLEAST32; } @@ -27150,10 +25253,10 @@ class Holder { * #define SCNxLEAST64 "lx" * } */ - public static MemorySegment SCNxLEAST64() { + public static MemorySegment SCNxLEAST64() + { class Holder { - static final MemorySegment SCNxLEAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxLEAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxLEAST64; } @@ -27162,10 +25265,10 @@ class Holder { * #define SCNxFAST8 "hhx" * } */ - public static MemorySegment SCNxFAST8() { + public static MemorySegment SCNxFAST8() + { class Holder { - static final MemorySegment SCNxFAST8 - = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); + static final MemorySegment SCNxFAST8 = hdf5_h.LIBRARY_ARENA.allocateFrom("hhx"); } return Holder.SCNxFAST8; } @@ -27174,10 +25277,10 @@ class Holder { * #define SCNxFAST16 "lx" * } */ - public static MemorySegment SCNxFAST16() { + public static MemorySegment SCNxFAST16() + { class Holder { - static final MemorySegment SCNxFAST16 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxFAST16 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxFAST16; } @@ -27186,10 +25289,10 @@ class Holder { * #define SCNxFAST32 "lx" * } */ - public static MemorySegment SCNxFAST32() { + public static MemorySegment SCNxFAST32() + { class Holder { - static final MemorySegment SCNxFAST32 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxFAST32 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxFAST32; } @@ -27198,10 +25301,10 @@ class Holder { * #define SCNxFAST64 "lx" * } */ - public static MemorySegment SCNxFAST64() { + public static MemorySegment SCNxFAST64() + { class Holder { - static final MemorySegment SCNxFAST64 - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxFAST64 = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxFAST64; } @@ -27210,10 +25313,10 @@ class Holder { * #define SCNdMAX "ld" * } */ - public static MemorySegment SCNdMAX() { + public static MemorySegment SCNdMAX() + { class Holder { - static final MemorySegment SCNdMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdMAX; } @@ -27222,10 +25325,10 @@ class Holder { * #define SCNiMAX "li" * } */ - public static MemorySegment SCNiMAX() { + public static MemorySegment SCNiMAX() + { class Holder { - static final MemorySegment SCNiMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiMAX; } @@ -27234,10 +25337,10 @@ class Holder { * #define SCNoMAX "lo" * } */ - public static MemorySegment SCNoMAX() { + public static MemorySegment SCNoMAX() + { class Holder { - static final MemorySegment SCNoMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoMAX; } @@ -27246,10 +25349,10 @@ class Holder { * #define SCNuMAX "lu" * } */ - public static MemorySegment SCNuMAX() { + public static MemorySegment SCNuMAX() + { class Holder { - static final MemorySegment SCNuMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuMAX; } @@ -27258,10 +25361,10 @@ class Holder { * #define SCNxMAX "lx" * } */ - public static MemorySegment SCNxMAX() { + public static MemorySegment SCNxMAX() + { class Holder { - static final MemorySegment SCNxMAX - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxMAX = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxMAX; } @@ -27270,10 +25373,10 @@ class Holder { * #define SCNdPTR "ld" * } */ - public static MemorySegment SCNdPTR() { + public static MemorySegment SCNdPTR() + { class Holder { - static final MemorySegment SCNdPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment SCNdPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.SCNdPTR; } @@ -27282,10 +25385,10 @@ class Holder { * #define SCNiPTR "li" * } */ - public static MemorySegment SCNiPTR() { + public static MemorySegment SCNiPTR() + { class Holder { - static final MemorySegment SCNiPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment SCNiPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.SCNiPTR; } @@ -27294,10 +25397,10 @@ class Holder { * #define SCNoPTR "lo" * } */ - public static MemorySegment SCNoPTR() { + public static MemorySegment SCNoPTR() + { class Holder { - static final MemorySegment SCNoPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment SCNoPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.SCNoPTR; } @@ -27306,10 +25409,10 @@ class Holder { * #define SCNuPTR "lu" * } */ - public static MemorySegment SCNuPTR() { + public static MemorySegment SCNuPTR() + { class Holder { - static final MemorySegment SCNuPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment SCNuPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.SCNuPTR; } @@ -27318,10 +25421,10 @@ class Holder { * #define SCNxPTR "lx" * } */ - public static MemorySegment SCNxPTR() { + public static MemorySegment SCNxPTR() + { class Holder { - static final MemorySegment SCNxPTR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment SCNxPTR = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.SCNxPTR; } @@ -27331,369 +25434,289 @@ class Holder { * #define LLONG_MIN -9223372036854775808 * } */ - public static long LLONG_MIN() { - return LLONG_MIN; - } + public static long LLONG_MIN() { return LLONG_MIN; } private static final long LLONG_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define LLONG_MAX 9223372036854775807 * } */ - public static long LLONG_MAX() { - return LLONG_MAX; - } + public static long LLONG_MAX() { return LLONG_MAX; } private static final long ULLONG_MAX = -1L; /** * {@snippet lang=c : * #define ULLONG_MAX -1 * } */ - public static long ULLONG_MAX() { - return ULLONG_MAX; - } + public static long ULLONG_MAX() { return ULLONG_MAX; } private static final int PTHREAD_DESTRUCTOR_ITERATIONS = (int)4L; /** * {@snippet lang=c : * #define PTHREAD_DESTRUCTOR_ITERATIONS 4 * } */ - public static int PTHREAD_DESTRUCTOR_ITERATIONS() { - return PTHREAD_DESTRUCTOR_ITERATIONS; - } + public static int PTHREAD_DESTRUCTOR_ITERATIONS() { return PTHREAD_DESTRUCTOR_ITERATIONS; } private static final int SEM_VALUE_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define SEM_VALUE_MAX 2147483647 * } */ - public static int SEM_VALUE_MAX() { - return SEM_VALUE_MAX; - } + public static int SEM_VALUE_MAX() { return SEM_VALUE_MAX; } private static final long SSIZE_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define SSIZE_MAX 9223372036854775807 * } */ - public static long SSIZE_MAX() { - return SSIZE_MAX; - } + public static long SSIZE_MAX() { return SSIZE_MAX; } private static final int BC_BASE_MAX = (int)99L; /** * {@snippet lang=c : * #define BC_BASE_MAX 99 * } */ - public static int BC_BASE_MAX() { - return BC_BASE_MAX; - } + public static int BC_BASE_MAX() { return BC_BASE_MAX; } private static final int BC_DIM_MAX = (int)2048L; /** * {@snippet lang=c : * #define BC_DIM_MAX 2048 * } */ - public static int BC_DIM_MAX() { - return BC_DIM_MAX; - } + public static int BC_DIM_MAX() { return BC_DIM_MAX; } private static final int BC_SCALE_MAX = (int)99L; /** * {@snippet lang=c : * #define BC_SCALE_MAX 99 * } */ - public static int BC_SCALE_MAX() { - return BC_SCALE_MAX; - } + public static int BC_SCALE_MAX() { return BC_SCALE_MAX; } private static final int BC_STRING_MAX = (int)1000L; /** * {@snippet lang=c : * #define BC_STRING_MAX 1000 * } */ - public static int BC_STRING_MAX() { - return BC_STRING_MAX; - } + public static int BC_STRING_MAX() { return BC_STRING_MAX; } private static final int EXPR_NEST_MAX = (int)32L; /** * {@snippet lang=c : * #define EXPR_NEST_MAX 32 * } */ - public static int EXPR_NEST_MAX() { - return EXPR_NEST_MAX; - } + public static int EXPR_NEST_MAX() { return EXPR_NEST_MAX; } private static final int LINE_MAX = (int)2048L; /** * {@snippet lang=c : * #define LINE_MAX 2048 * } */ - public static int LINE_MAX() { - return LINE_MAX; - } + public static int LINE_MAX() { return LINE_MAX; } private static final int RE_DUP_MAX = (int)32767L; /** * {@snippet lang=c : * #define RE_DUP_MAX 32767 * } */ - public static int RE_DUP_MAX() { - return RE_DUP_MAX; - } + public static int RE_DUP_MAX() { return RE_DUP_MAX; } private static final int SCHAR_MAX = (int)127L; /** * {@snippet lang=c : * #define SCHAR_MAX 127 * } */ - public static int SCHAR_MAX() { - return SCHAR_MAX; - } + public static int SCHAR_MAX() { return SCHAR_MAX; } private static final int SHRT_MAX = (int)32767L; /** * {@snippet lang=c : * #define SHRT_MAX 32767 * } */ - public static int SHRT_MAX() { - return SHRT_MAX; - } + public static int SHRT_MAX() { return SHRT_MAX; } private static final int INT_MAX = (int)2147483647L; /** * {@snippet lang=c : * #define INT_MAX 2147483647 * } */ - public static int INT_MAX() { - return INT_MAX; - } + public static int INT_MAX() { return INT_MAX; } private static final long LONG_MAX = 9223372036854775807L; /** * {@snippet lang=c : * #define LONG_MAX 9223372036854775807 * } */ - public static long LONG_MAX() { - return LONG_MAX; - } + public static long LONG_MAX() { return LONG_MAX; } private static final int SCHAR_MIN = (int)-128L; /** * {@snippet lang=c : * #define SCHAR_MIN -128 * } */ - public static int SCHAR_MIN() { - return SCHAR_MIN; - } + public static int SCHAR_MIN() { return SCHAR_MIN; } private static final int SHRT_MIN = (int)-32768L; /** * {@snippet lang=c : * #define SHRT_MIN -32768 * } */ - public static int SHRT_MIN() { - return SHRT_MIN; - } + public static int SHRT_MIN() { return SHRT_MIN; } private static final int INT_MIN = (int)-2147483648L; /** * {@snippet lang=c : * #define INT_MIN -2147483648 * } */ - public static int INT_MIN() { - return INT_MIN; - } + public static int INT_MIN() { return INT_MIN; } private static final long LONG_MIN = -9223372036854775808L; /** * {@snippet lang=c : * #define LONG_MIN -9223372036854775808 * } */ - public static long LONG_MIN() { - return LONG_MIN; - } + public static long LONG_MIN() { return LONG_MIN; } private static final int UCHAR_MAX = (int)255L; /** * {@snippet lang=c : * #define UCHAR_MAX 255 * } */ - public static int UCHAR_MAX() { - return UCHAR_MAX; - } + public static int UCHAR_MAX() { return UCHAR_MAX; } private static final int USHRT_MAX = (int)65535L; /** * {@snippet lang=c : * #define USHRT_MAX 65535 * } */ - public static int USHRT_MAX() { - return USHRT_MAX; - } + public static int USHRT_MAX() { return USHRT_MAX; } private static final int UINT_MAX = (int)4294967295L; /** * {@snippet lang=c : * #define UINT_MAX 4294967295 * } */ - public static int UINT_MAX() { - return UINT_MAX; - } + public static int UINT_MAX() { return UINT_MAX; } private static final long ULONG_MAX = -1L; /** * {@snippet lang=c : * #define ULONG_MAX -1 * } */ - public static long ULONG_MAX() { - return ULONG_MAX; - } + public static long ULONG_MAX() { return ULONG_MAX; } private static final int CHAR_BIT = (int)8L; /** * {@snippet lang=c : * #define CHAR_BIT 8 * } */ - public static int CHAR_BIT() { - return CHAR_BIT; - } + public static int CHAR_BIT() { return CHAR_BIT; } private static final int CHAR_MIN = (int)-128L; /** * {@snippet lang=c : * #define CHAR_MIN -128 * } */ - public static int CHAR_MIN() { - return CHAR_MIN; - } + public static int CHAR_MIN() { return CHAR_MIN; } private static final int CHAR_MAX = (int)127L; /** * {@snippet lang=c : * #define CHAR_MAX 127 * } */ - public static int CHAR_MAX() { - return CHAR_MAX; - } + public static int CHAR_MAX() { return CHAR_MAX; } private static final MemorySegment NULL = MemorySegment.ofAddress(0L); /** * {@snippet lang=c : * #define NULL (void*) 0 * } */ - public static MemorySegment NULL() { - return NULL; - } + public static MemorySegment NULL() { return NULL; } private static final int __BYTE_ORDER = (int)1234L; /** * {@snippet lang=c : * #define __BYTE_ORDER 1234 * } */ - public static int __BYTE_ORDER() { - return __BYTE_ORDER; - } + public static int __BYTE_ORDER() { return __BYTE_ORDER; } private static final int __FLOAT_WORD_ORDER = (int)1234L; /** * {@snippet lang=c : * #define __FLOAT_WORD_ORDER 1234 * } */ - public static int __FLOAT_WORD_ORDER() { - return __FLOAT_WORD_ORDER; - } + public static int __FLOAT_WORD_ORDER() { return __FLOAT_WORD_ORDER; } private static final int LITTLE_ENDIAN = (int)1234L; /** * {@snippet lang=c : * #define LITTLE_ENDIAN 1234 * } */ - public static int LITTLE_ENDIAN() { - return LITTLE_ENDIAN; - } + public static int LITTLE_ENDIAN() { return LITTLE_ENDIAN; } private static final int BIG_ENDIAN = (int)4321L; /** * {@snippet lang=c : * #define BIG_ENDIAN 4321 * } */ - public static int BIG_ENDIAN() { - return BIG_ENDIAN; - } + public static int BIG_ENDIAN() { return BIG_ENDIAN; } private static final int PDP_ENDIAN = (int)3412L; /** * {@snippet lang=c : * #define PDP_ENDIAN 3412 * } */ - public static int PDP_ENDIAN() { - return PDP_ENDIAN; - } + public static int PDP_ENDIAN() { return PDP_ENDIAN; } private static final int BYTE_ORDER = (int)1234L; /** * {@snippet lang=c : * #define BYTE_ORDER 1234 * } */ - public static int BYTE_ORDER() { - return BYTE_ORDER; - } + public static int BYTE_ORDER() { return BYTE_ORDER; } private static final long _SIGSET_NWORDS = 16L; /** * {@snippet lang=c : * #define _SIGSET_NWORDS 16 * } */ - public static long _SIGSET_NWORDS() { - return _SIGSET_NWORDS; - } + public static long _SIGSET_NWORDS() { return _SIGSET_NWORDS; } private static final int __NFDBITS = (int)64L; /** * {@snippet lang=c : * #define __NFDBITS 64 * } */ - public static int __NFDBITS() { - return __NFDBITS; - } + public static int __NFDBITS() { return __NFDBITS; } private static final int FD_SETSIZE = (int)1024L; /** * {@snippet lang=c : * #define FD_SETSIZE 1024 * } */ - public static int FD_SETSIZE() { - return FD_SETSIZE; - } + public static int FD_SETSIZE() { return FD_SETSIZE; } private static final int NFDBITS = (int)64L; /** * {@snippet lang=c : * #define NFDBITS 64 * } */ - public static int NFDBITS() { - return NFDBITS; - } + public static int NFDBITS() { return NFDBITS; } private static final int __PTHREAD_RWLOCK_ELISION_EXTRA = (int)0L; /** * {@snippet lang=c : * #define __PTHREAD_RWLOCK_ELISION_EXTRA 0 * } */ - public static int __PTHREAD_RWLOCK_ELISION_EXTRA() { - return __PTHREAD_RWLOCK_ELISION_EXTRA; - } + public static int __PTHREAD_RWLOCK_ELISION_EXTRA() { return __PTHREAD_RWLOCK_ELISION_EXTRA; } /** * {@snippet lang=c : * #define H5_VERS_SUBRELEASE "" * } */ - public static MemorySegment H5_VERS_SUBRELEASE() { + public static MemorySegment H5_VERS_SUBRELEASE() + { class Holder { - static final MemorySegment H5_VERS_SUBRELEASE - = hdf5_h.LIBRARY_ARENA.allocateFrom(""); + static final MemorySegment H5_VERS_SUBRELEASE = hdf5_h.LIBRARY_ARENA.allocateFrom(""); } return Holder.H5_VERS_SUBRELEASE; } @@ -27702,10 +25725,10 @@ class Holder { * #define H5_VERS_STR "1.17.0" * } */ - public static MemorySegment H5_VERS_STR() { + public static MemorySegment H5_VERS_STR() + { class Holder { - static final MemorySegment H5_VERS_STR - = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); + static final MemorySegment H5_VERS_STR = hdf5_h.LIBRARY_ARENA.allocateFrom("1.17.0"); } return Holder.H5_VERS_STR; } @@ -27714,10 +25737,11 @@ class Holder { * #define H5_VERS_INFO "HDF5 library version: 1.17.0" * } */ - public static MemorySegment H5_VERS_INFO() { + public static MemorySegment H5_VERS_INFO() + { class Holder { - static final MemorySegment H5_VERS_INFO - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5 library version: 1.17.0"); + static final MemorySegment H5_VERS_INFO = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5 library version: 1.17.0"); } return Holder.H5_VERS_INFO; } @@ -27726,10 +25750,10 @@ class Holder { * #define HDF5_DRIVER "HDF5_DRIVER" * } */ - public static MemorySegment HDF5_DRIVER() { + public static MemorySegment HDF5_DRIVER() + { class Holder { - static final MemorySegment HDF5_DRIVER - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_DRIVER"); + static final MemorySegment HDF5_DRIVER = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_DRIVER"); } return Holder.HDF5_DRIVER; } @@ -27738,10 +25762,11 @@ class Holder { * #define HDF5_DRIVER_CONFIG "HDF5_DRIVER_CONFIG" * } */ - public static MemorySegment HDF5_DRIVER_CONFIG() { + public static MemorySegment HDF5_DRIVER_CONFIG() + { class Holder { - static final MemorySegment HDF5_DRIVER_CONFIG - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_DRIVER_CONFIG"); + static final MemorySegment HDF5_DRIVER_CONFIG = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_DRIVER_CONFIG"); } return Holder.HDF5_DRIVER_CONFIG; } @@ -27750,10 +25775,11 @@ class Holder { * #define HDF5_VOL_CONNECTOR "HDF5_VOL_CONNECTOR" * } */ - public static MemorySegment HDF5_VOL_CONNECTOR() { + public static MemorySegment HDF5_VOL_CONNECTOR() + { class Holder { - static final MemorySegment HDF5_VOL_CONNECTOR - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_VOL_CONNECTOR"); + static final MemorySegment HDF5_VOL_CONNECTOR = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_VOL_CONNECTOR"); } return Holder.HDF5_VOL_CONNECTOR; } @@ -27762,10 +25788,11 @@ class Holder { * #define HDF5_PLUGIN_PATH "HDF5_PLUGIN_PATH" * } */ - public static MemorySegment HDF5_PLUGIN_PATH() { + public static MemorySegment HDF5_PLUGIN_PATH() + { class Holder { - static final MemorySegment HDF5_PLUGIN_PATH - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_PLUGIN_PATH"); + static final MemorySegment HDF5_PLUGIN_PATH = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_PLUGIN_PATH"); } return Holder.HDF5_PLUGIN_PATH; } @@ -27774,10 +25801,11 @@ class Holder { * #define HDF5_PLUGIN_PRELOAD "HDF5_PLUGIN_PRELOAD" * } */ - public static MemorySegment HDF5_PLUGIN_PRELOAD() { + public static MemorySegment HDF5_PLUGIN_PRELOAD() + { class Holder { - static final MemorySegment HDF5_PLUGIN_PRELOAD - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_PLUGIN_PRELOAD"); + static final MemorySegment HDF5_PLUGIN_PRELOAD = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_PLUGIN_PRELOAD"); } return Holder.HDF5_PLUGIN_PRELOAD; } @@ -27786,10 +25814,11 @@ class Holder { * #define HDF5_USE_FILE_LOCKING "HDF5_USE_FILE_LOCKING" * } */ - public static MemorySegment HDF5_USE_FILE_LOCKING() { + public static MemorySegment HDF5_USE_FILE_LOCKING() + { class Holder { - static final MemorySegment HDF5_USE_FILE_LOCKING - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_USE_FILE_LOCKING"); + static final MemorySegment HDF5_USE_FILE_LOCKING = + hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_USE_FILE_LOCKING"); } return Holder.HDF5_USE_FILE_LOCKING; } @@ -27798,10 +25827,10 @@ class Holder { * #define HDF5_NOCLEANUP "HDF5_NOCLEANUP" * } */ - public static MemorySegment HDF5_NOCLEANUP() { + public static MemorySegment HDF5_NOCLEANUP() + { class Holder { - static final MemorySegment HDF5_NOCLEANUP - = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_NOCLEANUP"); + static final MemorySegment HDF5_NOCLEANUP = hdf5_h.LIBRARY_ARENA.allocateFrom("HDF5_NOCLEANUP"); } return Holder.HDF5_NOCLEANUP; } @@ -27810,10 +25839,10 @@ class Holder { * #define PRIdHSIZE "ld" * } */ - public static MemorySegment PRIdHSIZE() { + public static MemorySegment PRIdHSIZE() + { class Holder { - static final MemorySegment PRIdHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdHSIZE; } @@ -27822,10 +25851,10 @@ class Holder { * #define PRIiHSIZE "li" * } */ - public static MemorySegment PRIiHSIZE() { + public static MemorySegment PRIiHSIZE() + { class Holder { - static final MemorySegment PRIiHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); + static final MemorySegment PRIiHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("li"); } return Holder.PRIiHSIZE; } @@ -27834,10 +25863,10 @@ class Holder { * #define PRIoHSIZE "lo" * } */ - public static MemorySegment PRIoHSIZE() { + public static MemorySegment PRIoHSIZE() + { class Holder { - static final MemorySegment PRIoHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoHSIZE; } @@ -27846,10 +25875,10 @@ class Holder { * #define PRIuHSIZE "lu" * } */ - public static MemorySegment PRIuHSIZE() { + public static MemorySegment PRIuHSIZE() + { class Holder { - static final MemorySegment PRIuHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuHSIZE; } @@ -27858,10 +25887,10 @@ class Holder { * #define PRIxHSIZE "lx" * } */ - public static MemorySegment PRIxHSIZE() { + public static MemorySegment PRIxHSIZE() + { class Holder { - static final MemorySegment PRIxHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxHSIZE; } @@ -27870,10 +25899,10 @@ class Holder { * #define PRIXHSIZE "lX" * } */ - public static MemorySegment PRIXHSIZE() { + public static MemorySegment PRIXHSIZE() + { class Holder { - static final MemorySegment PRIXHSIZE - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXHSIZE = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXHSIZE; } @@ -27883,18 +25912,16 @@ class Holder { * #define HSIZE_UNDEF -1 * } */ - public static long HSIZE_UNDEF() { - return HSIZE_UNDEF; - } + public static long HSIZE_UNDEF() { return HSIZE_UNDEF; } /** * {@snippet lang=c : * #define PRIdHADDR "ld" * } */ - public static MemorySegment PRIdHADDR() { + public static MemorySegment PRIdHADDR() + { class Holder { - static final MemorySegment PRIdHADDR - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdHADDR = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdHADDR; } @@ -27903,10 +25930,10 @@ class Holder { * #define PRIoHADDR "lo" * } */ - public static MemorySegment PRIoHADDR() { + public static MemorySegment PRIoHADDR() + { class Holder { - static final MemorySegment PRIoHADDR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoHADDR = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoHADDR; } @@ -27915,10 +25942,10 @@ class Holder { * #define PRIuHADDR "lu" * } */ - public static MemorySegment PRIuHADDR() { + public static MemorySegment PRIuHADDR() + { class Holder { - static final MemorySegment PRIuHADDR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); + static final MemorySegment PRIuHADDR = hdf5_h.LIBRARY_ARENA.allocateFrom("lu"); } return Holder.PRIuHADDR; } @@ -27927,10 +25954,10 @@ class Holder { * #define PRIxHADDR "lx" * } */ - public static MemorySegment PRIxHADDR() { + public static MemorySegment PRIxHADDR() + { class Holder { - static final MemorySegment PRIxHADDR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxHADDR = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxHADDR; } @@ -27939,10 +25966,10 @@ class Holder { * #define PRIXHADDR "lX" * } */ - public static MemorySegment PRIXHADDR() { + public static MemorySegment PRIXHADDR() + { class Holder { - static final MemorySegment PRIXHADDR - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXHADDR = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXHADDR; } @@ -27952,18 +25979,16 @@ class Holder { * #define HADDR_UNDEF -1 * } */ - public static long HADDR_UNDEF() { - return HADDR_UNDEF; - } + public static long HADDR_UNDEF() { return HADDR_UNDEF; } /** * {@snippet lang=c : * #define H5_PRINTF_HADDR_FMT "%lu" * } */ - public static MemorySegment H5_PRINTF_HADDR_FMT() { + public static MemorySegment H5_PRINTF_HADDR_FMT() + { class Holder { - static final MemorySegment H5_PRINTF_HADDR_FMT - = hdf5_h.LIBRARY_ARENA.allocateFrom("%lu"); + static final MemorySegment H5_PRINTF_HADDR_FMT = hdf5_h.LIBRARY_ARENA.allocateFrom("%lu"); } return Holder.H5_PRINTF_HADDR_FMT; } @@ -27973,54 +25998,44 @@ class Holder { * #define HADDR_MAX -2 * } */ - public static long HADDR_MAX() { - return HADDR_MAX; - } + public static long HADDR_MAX() { return HADDR_MAX; } private static final int H5_ITER_ERROR = (int)-1L; /** * {@snippet lang=c : * #define H5_ITER_ERROR -1 * } */ - public static int H5_ITER_ERROR() { - return H5_ITER_ERROR; - } + public static int H5_ITER_ERROR() { return H5_ITER_ERROR; } private static final int H5_ITER_CONT = (int)0L; /** * {@snippet lang=c : * #define H5_ITER_CONT 0 * } */ - public static int H5_ITER_CONT() { - return H5_ITER_CONT; - } + public static int H5_ITER_CONT() { return H5_ITER_CONT; } private static final int H5_ITER_STOP = (int)1L; /** * {@snippet lang=c : * #define H5_ITER_STOP 1 * } */ - public static int H5_ITER_STOP() { - return H5_ITER_STOP; - } + public static int H5_ITER_STOP() { return H5_ITER_STOP; } private static final int H5O_MAX_TOKEN_SIZE = (int)16L; /** * {@snippet lang=c : * #define H5O_MAX_TOKEN_SIZE 16 * } */ - public static int H5O_MAX_TOKEN_SIZE() { - return H5O_MAX_TOKEN_SIZE; - } + public static int H5O_MAX_TOKEN_SIZE() { return H5O_MAX_TOKEN_SIZE; } /** * {@snippet lang=c : * #define PRIdHID "ld" * } */ - public static MemorySegment PRIdHID() { + public static MemorySegment PRIdHID() + { class Holder { - static final MemorySegment PRIdHID - = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); + static final MemorySegment PRIdHID = hdf5_h.LIBRARY_ARENA.allocateFrom("ld"); } return Holder.PRIdHID; } @@ -28029,10 +26044,10 @@ class Holder { * #define PRIxHID "lx" * } */ - public static MemorySegment PRIxHID() { + public static MemorySegment PRIxHID() + { class Holder { - static final MemorySegment PRIxHID - = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); + static final MemorySegment PRIxHID = hdf5_h.LIBRARY_ARENA.allocateFrom("lx"); } return Holder.PRIxHID; } @@ -28041,10 +26056,10 @@ class Holder { * #define PRIXHID "lX" * } */ - public static MemorySegment PRIXHID() { + public static MemorySegment PRIXHID() + { class Holder { - static final MemorySegment PRIXHID - = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); + static final MemorySegment PRIXHID = hdf5_h.LIBRARY_ARENA.allocateFrom("lX"); } return Holder.PRIXHID; } @@ -28053,10 +26068,10 @@ class Holder { * #define PRIoHID "lo" * } */ - public static MemorySegment PRIoHID() { + public static MemorySegment PRIoHID() + { class Holder { - static final MemorySegment PRIoHID - = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); + static final MemorySegment PRIoHID = hdf5_h.LIBRARY_ARENA.allocateFrom("lo"); } return Holder.PRIoHID; } @@ -28066,268 +26081,211 @@ class Holder { * #define H5_SIZEOF_HID_T 8 * } */ - public static int H5_SIZEOF_HID_T() { - return H5_SIZEOF_HID_T; - } + public static int H5_SIZEOF_HID_T() { return H5_SIZEOF_HID_T; } private static final int H5I_INVALID_HID = (int)-1L; /** * {@snippet lang=c : * #define H5I_INVALID_HID -1 * } */ - public static int H5I_INVALID_HID() { - return H5I_INVALID_HID; - } + public static int H5I_INVALID_HID() { return H5I_INVALID_HID; } private static final int H5O_COPY_SHALLOW_HIERARCHY_FLAG = (int)1L; /** * {@snippet lang=c : * #define H5O_COPY_SHALLOW_HIERARCHY_FLAG 1 * } */ - public static int H5O_COPY_SHALLOW_HIERARCHY_FLAG() { - return H5O_COPY_SHALLOW_HIERARCHY_FLAG; - } + public static int H5O_COPY_SHALLOW_HIERARCHY_FLAG() { return H5O_COPY_SHALLOW_HIERARCHY_FLAG; } private static final int H5O_COPY_EXPAND_SOFT_LINK_FLAG = (int)2L; /** * {@snippet lang=c : * #define H5O_COPY_EXPAND_SOFT_LINK_FLAG 2 * } */ - public static int H5O_COPY_EXPAND_SOFT_LINK_FLAG() { - return H5O_COPY_EXPAND_SOFT_LINK_FLAG; - } + public static int H5O_COPY_EXPAND_SOFT_LINK_FLAG() { return H5O_COPY_EXPAND_SOFT_LINK_FLAG; } private static final int H5O_COPY_EXPAND_EXT_LINK_FLAG = (int)4L; /** * {@snippet lang=c : * #define H5O_COPY_EXPAND_EXT_LINK_FLAG 4 * } */ - public static int H5O_COPY_EXPAND_EXT_LINK_FLAG() { - return H5O_COPY_EXPAND_EXT_LINK_FLAG; - } + public static int H5O_COPY_EXPAND_EXT_LINK_FLAG() { return H5O_COPY_EXPAND_EXT_LINK_FLAG; } private static final int H5O_COPY_EXPAND_REFERENCE_FLAG = (int)8L; /** * {@snippet lang=c : * #define H5O_COPY_EXPAND_REFERENCE_FLAG 8 * } */ - public static int H5O_COPY_EXPAND_REFERENCE_FLAG() { - return H5O_COPY_EXPAND_REFERENCE_FLAG; - } + public static int H5O_COPY_EXPAND_REFERENCE_FLAG() { return H5O_COPY_EXPAND_REFERENCE_FLAG; } private static final int H5O_COPY_WITHOUT_ATTR_FLAG = (int)16L; /** * {@snippet lang=c : * #define H5O_COPY_WITHOUT_ATTR_FLAG 16 * } */ - public static int H5O_COPY_WITHOUT_ATTR_FLAG() { - return H5O_COPY_WITHOUT_ATTR_FLAG; - } + public static int H5O_COPY_WITHOUT_ATTR_FLAG() { return H5O_COPY_WITHOUT_ATTR_FLAG; } private static final int H5O_COPY_PRESERVE_NULL_FLAG = (int)32L; /** * {@snippet lang=c : * #define H5O_COPY_PRESERVE_NULL_FLAG 32 * } */ - public static int H5O_COPY_PRESERVE_NULL_FLAG() { - return H5O_COPY_PRESERVE_NULL_FLAG; - } + public static int H5O_COPY_PRESERVE_NULL_FLAG() { return H5O_COPY_PRESERVE_NULL_FLAG; } private static final int H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG = (int)64L; /** * {@snippet lang=c : * #define H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG 64 * } */ - public static int H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG() { - return H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG; - } + public static int H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG() { return H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG; } private static final int H5O_COPY_ALL = (int)127L; /** * {@snippet lang=c : * #define H5O_COPY_ALL 127 * } */ - public static int H5O_COPY_ALL() { - return H5O_COPY_ALL; - } + public static int H5O_COPY_ALL() { return H5O_COPY_ALL; } private static final int H5O_SHMESG_SDSPACE_FLAG = (int)2L; /** * {@snippet lang=c : * #define H5O_SHMESG_SDSPACE_FLAG 2 * } */ - public static int H5O_SHMESG_SDSPACE_FLAG() { - return H5O_SHMESG_SDSPACE_FLAG; - } + public static int H5O_SHMESG_SDSPACE_FLAG() { return H5O_SHMESG_SDSPACE_FLAG; } private static final int H5O_SHMESG_DTYPE_FLAG = (int)8L; /** * {@snippet lang=c : * #define H5O_SHMESG_DTYPE_FLAG 8 * } */ - public static int H5O_SHMESG_DTYPE_FLAG() { - return H5O_SHMESG_DTYPE_FLAG; - } + public static int H5O_SHMESG_DTYPE_FLAG() { return H5O_SHMESG_DTYPE_FLAG; } private static final int H5O_SHMESG_FILL_FLAG = (int)32L; /** * {@snippet lang=c : * #define H5O_SHMESG_FILL_FLAG 32 * } */ - public static int H5O_SHMESG_FILL_FLAG() { - return H5O_SHMESG_FILL_FLAG; - } + public static int H5O_SHMESG_FILL_FLAG() { return H5O_SHMESG_FILL_FLAG; } private static final int H5O_SHMESG_PLINE_FLAG = (int)2048L; /** * {@snippet lang=c : * #define H5O_SHMESG_PLINE_FLAG 2048 * } */ - public static int H5O_SHMESG_PLINE_FLAG() { - return H5O_SHMESG_PLINE_FLAG; - } + public static int H5O_SHMESG_PLINE_FLAG() { return H5O_SHMESG_PLINE_FLAG; } private static final int H5O_SHMESG_ATTR_FLAG = (int)4096L; /** * {@snippet lang=c : * #define H5O_SHMESG_ATTR_FLAG 4096 * } */ - public static int H5O_SHMESG_ATTR_FLAG() { - return H5O_SHMESG_ATTR_FLAG; - } + public static int H5O_SHMESG_ATTR_FLAG() { return H5O_SHMESG_ATTR_FLAG; } private static final int H5O_SHMESG_ALL_FLAG = (int)6186L; /** * {@snippet lang=c : * #define H5O_SHMESG_ALL_FLAG 6186 * } */ - public static int H5O_SHMESG_ALL_FLAG() { - return H5O_SHMESG_ALL_FLAG; - } + public static int H5O_SHMESG_ALL_FLAG() { return H5O_SHMESG_ALL_FLAG; } private static final int H5O_HDR_ALL_FLAGS = (int)63L; /** * {@snippet lang=c : * #define H5O_HDR_ALL_FLAGS 63 * } */ - public static int H5O_HDR_ALL_FLAGS() { - return H5O_HDR_ALL_FLAGS; - } + public static int H5O_HDR_ALL_FLAGS() { return H5O_HDR_ALL_FLAGS; } private static final int H5O_INFO_BASIC = (int)1L; /** * {@snippet lang=c : * #define H5O_INFO_BASIC 1 * } */ - public static int H5O_INFO_BASIC() { - return H5O_INFO_BASIC; - } + public static int H5O_INFO_BASIC() { return H5O_INFO_BASIC; } private static final int H5O_INFO_TIME = (int)2L; /** * {@snippet lang=c : * #define H5O_INFO_TIME 2 * } */ - public static int H5O_INFO_TIME() { - return H5O_INFO_TIME; - } + public static int H5O_INFO_TIME() { return H5O_INFO_TIME; } private static final int H5O_INFO_NUM_ATTRS = (int)4L; /** * {@snippet lang=c : * #define H5O_INFO_NUM_ATTRS 4 * } */ - public static int H5O_INFO_NUM_ATTRS() { - return H5O_INFO_NUM_ATTRS; - } + public static int H5O_INFO_NUM_ATTRS() { return H5O_INFO_NUM_ATTRS; } private static final int H5O_INFO_ALL = (int)31L; /** * {@snippet lang=c : * #define H5O_INFO_ALL 31 * } */ - public static int H5O_INFO_ALL() { - return H5O_INFO_ALL; - } + public static int H5O_INFO_ALL() { return H5O_INFO_ALL; } private static final int H5O_NATIVE_INFO_HDR = (int)8L; /** * {@snippet lang=c : * #define H5O_NATIVE_INFO_HDR 8 * } */ - public static int H5O_NATIVE_INFO_HDR() { - return H5O_NATIVE_INFO_HDR; - } + public static int H5O_NATIVE_INFO_HDR() { return H5O_NATIVE_INFO_HDR; } private static final int H5O_NATIVE_INFO_META_SIZE = (int)16L; /** * {@snippet lang=c : * #define H5O_NATIVE_INFO_META_SIZE 16 * } */ - public static int H5O_NATIVE_INFO_META_SIZE() { - return H5O_NATIVE_INFO_META_SIZE; - } + public static int H5O_NATIVE_INFO_META_SIZE() { return H5O_NATIVE_INFO_META_SIZE; } private static final int H5O_NATIVE_INFO_ALL = (int)24L; /** * {@snippet lang=c : * #define H5O_NATIVE_INFO_ALL 24 * } */ - public static int H5O_NATIVE_INFO_ALL() { - return H5O_NATIVE_INFO_ALL; - } + public static int H5O_NATIVE_INFO_ALL() { return H5O_NATIVE_INFO_ALL; } private static final int H5O_INFO_HDR = (int)8L; /** * {@snippet lang=c : * #define H5O_INFO_HDR 8 * } */ - public static int H5O_INFO_HDR() { - return H5O_INFO_HDR; - } + public static int H5O_INFO_HDR() { return H5O_INFO_HDR; } private static final int H5O_INFO_META_SIZE = (int)16L; /** * {@snippet lang=c : * #define H5O_INFO_META_SIZE 16 * } */ - public static int H5O_INFO_META_SIZE() { - return H5O_INFO_META_SIZE; - } + public static int H5O_INFO_META_SIZE() { return H5O_INFO_META_SIZE; } private static final int H5T_NCSET = (int)2L; /** * {@snippet lang=c : * #define H5T_NCSET 2 * } */ - public static int H5T_NCSET() { - return H5T_NCSET; - } + public static int H5T_NCSET() { return H5T_NCSET; } private static final int H5T_NSTR = (int)3L; /** * {@snippet lang=c : * #define H5T_NSTR 3 * } */ - public static int H5T_NSTR() { - return H5T_NSTR; - } + public static int H5T_NSTR() { return H5T_NSTR; } private static final long H5T_VARIABLE = -1L; /** * {@snippet lang=c : * #define H5T_VARIABLE -1 * } */ - public static long H5T_VARIABLE() { - return H5T_VARIABLE; - } + public static long H5T_VARIABLE() { return H5T_VARIABLE; } private static final int H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE = (int)-1L; /** * {@snippet lang=c : * #define H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE -1 * } */ - public static int H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE() { + public static int H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE() + { return H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE; } private static final long H5D_CHUNK_CACHE_NSLOTS_DEFAULT = -1L; @@ -28336,54 +26294,45 @@ public static int H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE() { * #define H5D_CHUNK_CACHE_NSLOTS_DEFAULT -1 * } */ - public static long H5D_CHUNK_CACHE_NSLOTS_DEFAULT() { - return H5D_CHUNK_CACHE_NSLOTS_DEFAULT; - } + public static long H5D_CHUNK_CACHE_NSLOTS_DEFAULT() { return H5D_CHUNK_CACHE_NSLOTS_DEFAULT; } private static final long H5D_CHUNK_CACHE_NBYTES_DEFAULT = -1L; /** * {@snippet lang=c : * #define H5D_CHUNK_CACHE_NBYTES_DEFAULT -1 * } */ - public static long H5D_CHUNK_CACHE_NBYTES_DEFAULT() { - return H5D_CHUNK_CACHE_NBYTES_DEFAULT; - } + public static long H5D_CHUNK_CACHE_NBYTES_DEFAULT() { return H5D_CHUNK_CACHE_NBYTES_DEFAULT; } private static final double H5D_CHUNK_CACHE_W0_DEFAULT = -1.0d; /** * {@snippet lang=c : * #define H5D_CHUNK_CACHE_W0_DEFAULT -1.0 * } */ - public static double H5D_CHUNK_CACHE_W0_DEFAULT() { - return H5D_CHUNK_CACHE_W0_DEFAULT; - } + public static double H5D_CHUNK_CACHE_W0_DEFAULT() { return H5D_CHUNK_CACHE_W0_DEFAULT; } private static final int H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS = (int)2L; /** * {@snippet lang=c : * #define H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS 2 * } */ - public static int H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS() { - return H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS; - } + public static int H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS() { return H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS; } private static final int H5D_CHUNK_BTREE = (int)0L; /** * {@snippet lang=c : * #define H5D_CHUNK_BTREE 0 * } */ - public static int H5D_CHUNK_BTREE() { - return H5D_CHUNK_BTREE; - } + public static int H5D_CHUNK_BTREE() { return H5D_CHUNK_BTREE; } /** * {@snippet lang=c : * #define H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME "direct_chunk_flag" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_flag"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_flag"); } return Holder.H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME; } @@ -28392,10 +26341,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME "direct_chunk_filters" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_filters"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_filters"); } return Holder.H5D_XFER_DIRECT_CHUNK_WRITE_FILTERS_NAME; } @@ -28404,10 +26354,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME "direct_chunk_offset" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_offset"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_offset"); } return Holder.H5D_XFER_DIRECT_CHUNK_WRITE_OFFSET_NAME; } @@ -28416,10 +26367,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME "direct_chunk_datasize" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_datasize"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_datasize"); } return Holder.H5D_XFER_DIRECT_CHUNK_WRITE_DATASIZE_NAME; } @@ -28428,10 +26380,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME "direct_chunk_read_flag" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_flag"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_flag"); } return Holder.H5D_XFER_DIRECT_CHUNK_READ_FLAG_NAME; } @@ -28440,10 +26393,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME "direct_chunk_read_offset" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_offset"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_offset"); } return Holder.H5D_XFER_DIRECT_CHUNK_READ_OFFSET_NAME; } @@ -28452,10 +26406,11 @@ class Holder { * #define H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME "direct_chunk_read_filters" * } */ - public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME() { + public static MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME() + { class Holder { - static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_filters"); + static final MemorySegment H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME = + hdf5_h.LIBRARY_ARENA.allocateFrom("direct_chunk_read_filters"); } return Holder.H5D_XFER_DIRECT_CHUNK_READ_FILTERS_NAME; } @@ -28465,18 +26420,16 @@ class Holder { * #define EOF -1 * } */ - public static int EOF() { - return EOF; - } + public static int EOF() { return EOF; } /** * {@snippet lang=c : * #define P_tmpdir "/tmp" * } */ - public static MemorySegment P_tmpdir() { + public static MemorySegment P_tmpdir() + { class Holder { - static final MemorySegment P_tmpdir - = hdf5_h.LIBRARY_ARENA.allocateFrom("/tmp"); + static final MemorySegment P_tmpdir = hdf5_h.LIBRARY_ARENA.allocateFrom("/tmp"); } return Holder.P_tmpdir; } @@ -28486,205 +26439,162 @@ class Holder { * #define __HAVE_DISTINCT_FLOAT16 0 * } */ - public static int __HAVE_DISTINCT_FLOAT16() { - return __HAVE_DISTINCT_FLOAT16; - } + public static int __HAVE_DISTINCT_FLOAT16() { return __HAVE_DISTINCT_FLOAT16; } private static final int __HAVE_DISTINCT_FLOAT128X = (int)0L; /** * {@snippet lang=c : * #define __HAVE_DISTINCT_FLOAT128X 0 * } */ - public static int __HAVE_DISTINCT_FLOAT128X() { - return __HAVE_DISTINCT_FLOAT128X; - } + public static int __HAVE_DISTINCT_FLOAT128X() { return __HAVE_DISTINCT_FLOAT128X; } private static final int __HAVE_FLOAT128_UNLIKE_LDBL = (int)0L; /** * {@snippet lang=c : * #define __HAVE_FLOAT128_UNLIKE_LDBL 0 * } */ - public static int __HAVE_FLOAT128_UNLIKE_LDBL() { - return __HAVE_FLOAT128_UNLIKE_LDBL; - } + public static int __HAVE_FLOAT128_UNLIKE_LDBL() { return __HAVE_FLOAT128_UNLIKE_LDBL; } private static final long H5ES_WAIT_FOREVER = -1L; /** * {@snippet lang=c : * #define H5ES_WAIT_FOREVER -1 * } */ - public static long H5ES_WAIT_FOREVER() { - return H5ES_WAIT_FOREVER; - } + public static long H5ES_WAIT_FOREVER() { return H5ES_WAIT_FOREVER; } private static final int H5ES_WAIT_NONE = (int)0L; /** * {@snippet lang=c : * #define H5ES_WAIT_NONE 0 * } */ - public static int H5ES_WAIT_NONE() { - return H5ES_WAIT_NONE; - } + public static int H5ES_WAIT_NONE() { return H5ES_WAIT_NONE; } private static final int H5F_ACC_RDONLY = (int)0L; /** * {@snippet lang=c : * #define H5F_ACC_RDONLY 0 * } */ - public static int H5F_ACC_RDONLY() { - return H5F_ACC_RDONLY; - } + public static int H5F_ACC_RDONLY() { return H5F_ACC_RDONLY; } private static final int H5F_ACC_RDWR = (int)1L; /** * {@snippet lang=c : * #define H5F_ACC_RDWR 1 * } */ - public static int H5F_ACC_RDWR() { - return H5F_ACC_RDWR; - } + public static int H5F_ACC_RDWR() { return H5F_ACC_RDWR; } private static final int H5F_ACC_TRUNC = (int)2L; /** * {@snippet lang=c : * #define H5F_ACC_TRUNC 2 * } */ - public static int H5F_ACC_TRUNC() { - return H5F_ACC_TRUNC; - } + public static int H5F_ACC_TRUNC() { return H5F_ACC_TRUNC; } private static final int H5F_ACC_EXCL = (int)4L; /** * {@snippet lang=c : * #define H5F_ACC_EXCL 4 * } */ - public static int H5F_ACC_EXCL() { - return H5F_ACC_EXCL; - } + public static int H5F_ACC_EXCL() { return H5F_ACC_EXCL; } private static final int H5F_ACC_CREAT = (int)16L; /** * {@snippet lang=c : * #define H5F_ACC_CREAT 16 * } */ - public static int H5F_ACC_CREAT() { - return H5F_ACC_CREAT; - } + public static int H5F_ACC_CREAT() { return H5F_ACC_CREAT; } private static final int H5F_ACC_SWMR_WRITE = (int)32L; /** * {@snippet lang=c : * #define H5F_ACC_SWMR_WRITE 32 * } */ - public static int H5F_ACC_SWMR_WRITE() { - return H5F_ACC_SWMR_WRITE; - } + public static int H5F_ACC_SWMR_WRITE() { return H5F_ACC_SWMR_WRITE; } private static final int H5F_ACC_SWMR_READ = (int)64L; /** * {@snippet lang=c : * #define H5F_ACC_SWMR_READ 64 * } */ - public static int H5F_ACC_SWMR_READ() { - return H5F_ACC_SWMR_READ; - } + public static int H5F_ACC_SWMR_READ() { return H5F_ACC_SWMR_READ; } private static final int H5F_ACC_DEFAULT = (int)65535L; /** * {@snippet lang=c : * #define H5F_ACC_DEFAULT 65535 * } */ - public static int H5F_ACC_DEFAULT() { - return H5F_ACC_DEFAULT; - } + public static int H5F_ACC_DEFAULT() { return H5F_ACC_DEFAULT; } private static final int H5F_OBJ_FILE = (int)1L; /** * {@snippet lang=c : * #define H5F_OBJ_FILE 1 * } */ - public static int H5F_OBJ_FILE() { - return H5F_OBJ_FILE; - } + public static int H5F_OBJ_FILE() { return H5F_OBJ_FILE; } private static final int H5F_OBJ_DATASET = (int)2L; /** * {@snippet lang=c : * #define H5F_OBJ_DATASET 2 * } */ - public static int H5F_OBJ_DATASET() { - return H5F_OBJ_DATASET; - } + public static int H5F_OBJ_DATASET() { return H5F_OBJ_DATASET; } private static final int H5F_OBJ_GROUP = (int)4L; /** * {@snippet lang=c : * #define H5F_OBJ_GROUP 4 * } */ - public static int H5F_OBJ_GROUP() { - return H5F_OBJ_GROUP; - } + public static int H5F_OBJ_GROUP() { return H5F_OBJ_GROUP; } private static final int H5F_OBJ_DATATYPE = (int)8L; /** * {@snippet lang=c : * #define H5F_OBJ_DATATYPE 8 * } */ - public static int H5F_OBJ_DATATYPE() { - return H5F_OBJ_DATATYPE; - } + public static int H5F_OBJ_DATATYPE() { return H5F_OBJ_DATATYPE; } private static final int H5F_OBJ_ATTR = (int)16L; /** * {@snippet lang=c : * #define H5F_OBJ_ATTR 16 * } */ - public static int H5F_OBJ_ATTR() { - return H5F_OBJ_ATTR; - } + public static int H5F_OBJ_ATTR() { return H5F_OBJ_ATTR; } private static final int H5F_OBJ_ALL = (int)31L; /** * {@snippet lang=c : * #define H5F_OBJ_ALL 31 * } */ - public static int H5F_OBJ_ALL() { - return H5F_OBJ_ALL; - } + public static int H5F_OBJ_ALL() { return H5F_OBJ_ALL; } private static final int H5F_OBJ_LOCAL = (int)32L; /** * {@snippet lang=c : * #define H5F_OBJ_LOCAL 32 * } */ - public static int H5F_OBJ_LOCAL() { - return H5F_OBJ_LOCAL; - } + public static int H5F_OBJ_LOCAL() { return H5F_OBJ_LOCAL; } private static final long H5F_UNLIMITED = -1L; /** * {@snippet lang=c : * #define H5F_UNLIMITED -1 * } */ - public static long H5F_UNLIMITED() { - return H5F_UNLIMITED; - } + public static long H5F_UNLIMITED() { return H5F_UNLIMITED; } private static final int H5F_LIBVER_LATEST = (int)6L; /** * {@snippet lang=c : * #define H5F_LIBVER_LATEST 6 * } */ - public static int H5F_LIBVER_LATEST() { - return H5F_LIBVER_LATEST; - } + public static int H5F_LIBVER_LATEST() { return H5F_LIBVER_LATEST; } private static final int H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS = (int)1L; /** * {@snippet lang=c : * #define H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS 1 * } */ - public static int H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS() { + public static int H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS() + { return H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS; } private static final int H5F_RFIC_ALL = (int)1L; @@ -28693,439 +26603,344 @@ public static int H5F_RFIC_UNUSUAL_NUM_UNUSED_NUMERIC_BITS() { * #define H5F_RFIC_ALL 1 * } */ - public static int H5F_RFIC_ALL() { - return H5F_RFIC_ALL; - } + public static int H5F_RFIC_ALL() { return H5F_RFIC_ALL; } private static final int H5F_ACC_DEBUG = (int)0L; /** * {@snippet lang=c : * #define H5F_ACC_DEBUG 0 * } */ - public static int H5F_ACC_DEBUG() { - return H5F_ACC_DEBUG; - } + public static int H5F_ACC_DEBUG() { return H5F_ACC_DEBUG; } private static final int H5_VFD_INVALID = (int)-1L; /** * {@snippet lang=c : * #define H5_VFD_INVALID -1 * } */ - public static int H5_VFD_INVALID() { - return H5_VFD_INVALID; - } + public static int H5_VFD_INVALID() { return H5_VFD_INVALID; } private static final int H5_VFD_SEC2 = (int)0L; /** * {@snippet lang=c : * #define H5_VFD_SEC2 0 * } */ - public static int H5_VFD_SEC2() { - return H5_VFD_SEC2; - } + public static int H5_VFD_SEC2() { return H5_VFD_SEC2; } private static final int H5_VFD_CORE = (int)1L; /** * {@snippet lang=c : * #define H5_VFD_CORE 1 * } */ - public static int H5_VFD_CORE() { - return H5_VFD_CORE; - } + public static int H5_VFD_CORE() { return H5_VFD_CORE; } private static final int H5_VFD_LOG = (int)2L; /** * {@snippet lang=c : * #define H5_VFD_LOG 2 * } */ - public static int H5_VFD_LOG() { - return H5_VFD_LOG; - } + public static int H5_VFD_LOG() { return H5_VFD_LOG; } private static final int H5_VFD_FAMILY = (int)3L; /** * {@snippet lang=c : * #define H5_VFD_FAMILY 3 * } */ - public static int H5_VFD_FAMILY() { - return H5_VFD_FAMILY; - } + public static int H5_VFD_FAMILY() { return H5_VFD_FAMILY; } private static final int H5_VFD_MULTI = (int)4L; /** * {@snippet lang=c : * #define H5_VFD_MULTI 4 * } */ - public static int H5_VFD_MULTI() { - return H5_VFD_MULTI; - } + public static int H5_VFD_MULTI() { return H5_VFD_MULTI; } private static final int H5_VFD_STDIO = (int)5L; /** * {@snippet lang=c : * #define H5_VFD_STDIO 5 * } */ - public static int H5_VFD_STDIO() { - return H5_VFD_STDIO; - } + public static int H5_VFD_STDIO() { return H5_VFD_STDIO; } private static final int H5_VFD_SPLITTER = (int)6L; /** * {@snippet lang=c : * #define H5_VFD_SPLITTER 6 * } */ - public static int H5_VFD_SPLITTER() { - return H5_VFD_SPLITTER; - } + public static int H5_VFD_SPLITTER() { return H5_VFD_SPLITTER; } private static final int H5_VFD_MPIO = (int)7L; /** * {@snippet lang=c : * #define H5_VFD_MPIO 7 * } */ - public static int H5_VFD_MPIO() { - return H5_VFD_MPIO; - } + public static int H5_VFD_MPIO() { return H5_VFD_MPIO; } private static final int H5_VFD_DIRECT = (int)8L; /** * {@snippet lang=c : * #define H5_VFD_DIRECT 8 * } */ - public static int H5_VFD_DIRECT() { - return H5_VFD_DIRECT; - } + public static int H5_VFD_DIRECT() { return H5_VFD_DIRECT; } private static final int H5_VFD_MIRROR = (int)9L; /** * {@snippet lang=c : * #define H5_VFD_MIRROR 9 * } */ - public static int H5_VFD_MIRROR() { - return H5_VFD_MIRROR; - } + public static int H5_VFD_MIRROR() { return H5_VFD_MIRROR; } private static final int H5_VFD_HDFS = (int)10L; /** * {@snippet lang=c : * #define H5_VFD_HDFS 10 * } */ - public static int H5_VFD_HDFS() { - return H5_VFD_HDFS; - } + public static int H5_VFD_HDFS() { return H5_VFD_HDFS; } private static final int H5_VFD_ROS3 = (int)11L; /** * {@snippet lang=c : * #define H5_VFD_ROS3 11 * } */ - public static int H5_VFD_ROS3() { - return H5_VFD_ROS3; - } + public static int H5_VFD_ROS3() { return H5_VFD_ROS3; } private static final int H5_VFD_SUBFILING = (int)12L; /** * {@snippet lang=c : * #define H5_VFD_SUBFILING 12 * } */ - public static int H5_VFD_SUBFILING() { - return H5_VFD_SUBFILING; - } + public static int H5_VFD_SUBFILING() { return H5_VFD_SUBFILING; } private static final int H5_VFD_IOC = (int)13L; /** * {@snippet lang=c : * #define H5_VFD_IOC 13 * } */ - public static int H5_VFD_IOC() { - return H5_VFD_IOC; - } + public static int H5_VFD_IOC() { return H5_VFD_IOC; } private static final int H5_VFD_ONION = (int)14L; /** * {@snippet lang=c : * #define H5_VFD_ONION 14 * } */ - public static int H5_VFD_ONION() { - return H5_VFD_ONION; - } + public static int H5_VFD_ONION() { return H5_VFD_ONION; } private static final int H5FD_FEAT_ACCUMULATE_METADATA = (int)6L; /** * {@snippet lang=c : * #define H5FD_FEAT_ACCUMULATE_METADATA 6 * } */ - public static int H5FD_FEAT_ACCUMULATE_METADATA() { - return H5FD_FEAT_ACCUMULATE_METADATA; - } + public static int H5FD_FEAT_ACCUMULATE_METADATA() { return H5FD_FEAT_ACCUMULATE_METADATA; } private static final int H5FD_CTL_OPC_EXPER_MIN = (int)512L; /** * {@snippet lang=c : * #define H5FD_CTL_OPC_EXPER_MIN 512 * } */ - public static int H5FD_CTL_OPC_EXPER_MIN() { - return H5FD_CTL_OPC_EXPER_MIN; - } + public static int H5FD_CTL_OPC_EXPER_MIN() { return H5FD_CTL_OPC_EXPER_MIN; } private static final int H5FD_CTL_OPC_EXPER_MAX = (int)1023L; /** * {@snippet lang=c : * #define H5FD_CTL_OPC_EXPER_MAX 1023 * } */ - public static int H5FD_CTL_OPC_EXPER_MAX() { - return H5FD_CTL_OPC_EXPER_MAX; - } + public static int H5FD_CTL_OPC_EXPER_MAX() { return H5FD_CTL_OPC_EXPER_MAX; } private static final int H5L_MAX_LINK_NAME_LEN = (int)4294967295L; /** * {@snippet lang=c : * #define H5L_MAX_LINK_NAME_LEN 4294967295 * } */ - public static int H5L_MAX_LINK_NAME_LEN() { - return H5L_MAX_LINK_NAME_LEN; - } + public static int H5L_MAX_LINK_NAME_LEN() { return H5L_MAX_LINK_NAME_LEN; } private static final int H5L_TYPE_BUILTIN_MAX = (int)1L; /** * {@snippet lang=c : * #define H5L_TYPE_BUILTIN_MAX 1 * } */ - public static int H5L_TYPE_BUILTIN_MAX() { - return H5L_TYPE_BUILTIN_MAX; - } + public static int H5L_TYPE_BUILTIN_MAX() { return H5L_TYPE_BUILTIN_MAX; } private static final int H5L_TYPE_UD_MIN = (int)64L; /** * {@snippet lang=c : * #define H5L_TYPE_UD_MIN 64 * } */ - public static int H5L_TYPE_UD_MIN() { - return H5L_TYPE_UD_MIN; - } + public static int H5L_TYPE_UD_MIN() { return H5L_TYPE_UD_MIN; } private static final int H5L_TYPE_UD_MAX = (int)255L; /** * {@snippet lang=c : * #define H5L_TYPE_UD_MAX 255 * } */ - public static int H5L_TYPE_UD_MAX() { - return H5L_TYPE_UD_MAX; - } + public static int H5L_TYPE_UD_MAX() { return H5L_TYPE_UD_MAX; } private static final int H5G_SAME_LOC = (int)0L; /** * {@snippet lang=c : * #define H5G_SAME_LOC 0 * } */ - public static int H5G_SAME_LOC() { - return H5G_SAME_LOC; - } + public static int H5G_SAME_LOC() { return H5G_SAME_LOC; } private static final int H5G_LINK_ERROR = (int)-1L; /** * {@snippet lang=c : * #define H5G_LINK_ERROR -1 * } */ - public static int H5G_LINK_ERROR() { - return H5G_LINK_ERROR; - } + public static int H5G_LINK_ERROR() { return H5G_LINK_ERROR; } private static final int H5G_LINK_HARD = (int)0L; /** * {@snippet lang=c : * #define H5G_LINK_HARD 0 * } */ - public static int H5G_LINK_HARD() { - return H5G_LINK_HARD; - } + public static int H5G_LINK_HARD() { return H5G_LINK_HARD; } private static final int H5G_LINK_SOFT = (int)1L; /** * {@snippet lang=c : * #define H5G_LINK_SOFT 1 * } */ - public static int H5G_LINK_SOFT() { - return H5G_LINK_SOFT; - } + public static int H5G_LINK_SOFT() { return H5G_LINK_SOFT; } private static final int H5G_NUSERTYPES = (int)248L; /** * {@snippet lang=c : * #define H5G_NUSERTYPES 248 * } */ - public static int H5G_NUSERTYPES() { - return H5G_NUSERTYPES; - } + public static int H5G_NUSERTYPES() { return H5G_NUSERTYPES; } private static final int H5_VOL_INVALID = (int)-1L; /** * {@snippet lang=c : * #define H5_VOL_INVALID -1 * } */ - public static int H5_VOL_INVALID() { - return H5_VOL_INVALID; - } + public static int H5_VOL_INVALID() { return H5_VOL_INVALID; } private static final int H5VL_CAP_FLAG_SOFT_LINKS = (int)2147483648L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_SOFT_LINKS 2147483648 * } */ - public static int H5VL_CAP_FLAG_SOFT_LINKS() { - return H5VL_CAP_FLAG_SOFT_LINKS; - } + public static int H5VL_CAP_FLAG_SOFT_LINKS() { return H5VL_CAP_FLAG_SOFT_LINKS; } private static final long H5VL_CAP_FLAG_UD_LINKS = 4294967296L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_UD_LINKS 4294967296 * } */ - public static long H5VL_CAP_FLAG_UD_LINKS() { - return H5VL_CAP_FLAG_UD_LINKS; - } + public static long H5VL_CAP_FLAG_UD_LINKS() { return H5VL_CAP_FLAG_UD_LINKS; } private static final long H5VL_CAP_FLAG_TRACK_TIMES = 8589934592L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_TRACK_TIMES 8589934592 * } */ - public static long H5VL_CAP_FLAG_TRACK_TIMES() { - return H5VL_CAP_FLAG_TRACK_TIMES; - } + public static long H5VL_CAP_FLAG_TRACK_TIMES() { return H5VL_CAP_FLAG_TRACK_TIMES; } private static final long H5VL_CAP_FLAG_MOUNT = 17179869184L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_MOUNT 17179869184 * } */ - public static long H5VL_CAP_FLAG_MOUNT() { - return H5VL_CAP_FLAG_MOUNT; - } + public static long H5VL_CAP_FLAG_MOUNT() { return H5VL_CAP_FLAG_MOUNT; } private static final long H5VL_CAP_FLAG_FILTERS = 34359738368L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_FILTERS 34359738368 * } */ - public static long H5VL_CAP_FLAG_FILTERS() { - return H5VL_CAP_FLAG_FILTERS; - } + public static long H5VL_CAP_FLAG_FILTERS() { return H5VL_CAP_FLAG_FILTERS; } private static final long H5VL_CAP_FLAG_FILL_VALUES = 68719476736L; /** * {@snippet lang=c : * #define H5VL_CAP_FLAG_FILL_VALUES 68719476736 * } */ - public static long H5VL_CAP_FLAG_FILL_VALUES() { - return H5VL_CAP_FLAG_FILL_VALUES; - } + public static long H5VL_CAP_FLAG_FILL_VALUES() { return H5VL_CAP_FLAG_FILL_VALUES; } private static final long H5R_OBJ_REF_BUF_SIZE = 8L; /** * {@snippet lang=c : * #define H5R_OBJ_REF_BUF_SIZE 8 * } */ - public static long H5R_OBJ_REF_BUF_SIZE() { - return H5R_OBJ_REF_BUF_SIZE; - } + public static long H5R_OBJ_REF_BUF_SIZE() { return H5R_OBJ_REF_BUF_SIZE; } private static final long H5R_DSET_REG_REF_BUF_SIZE = 12L; /** * {@snippet lang=c : * #define H5R_DSET_REG_REF_BUF_SIZE 12 * } */ - public static long H5R_DSET_REG_REF_BUF_SIZE() { - return H5R_DSET_REG_REF_BUF_SIZE; - } + public static long H5R_DSET_REG_REF_BUF_SIZE() { return H5R_DSET_REG_REF_BUF_SIZE; } private static final int H5R_REF_BUF_SIZE = (int)64L; /** * {@snippet lang=c : * #define H5R_REF_BUF_SIZE 64 * } */ - public static int H5R_REF_BUF_SIZE() { - return H5R_REF_BUF_SIZE; - } + public static int H5R_REF_BUF_SIZE() { return H5R_REF_BUF_SIZE; } private static final int H5R_OBJECT = (int)0L; /** * {@snippet lang=c : * #define H5R_OBJECT 0 * } */ - public static int H5R_OBJECT() { - return H5R_OBJECT; - } + public static int H5R_OBJECT() { return H5R_OBJECT; } private static final int H5R_DATASET_REGION = (int)1L; /** * {@snippet lang=c : * #define H5R_DATASET_REGION 1 * } */ - public static int H5R_DATASET_REGION() { - return H5R_DATASET_REGION; - } + public static int H5R_DATASET_REGION() { return H5R_DATASET_REGION; } private static final int H5VL_MAX_BLOB_ID_SIZE = (int)16L; /** * {@snippet lang=c : * #define H5VL_MAX_BLOB_ID_SIZE 16 * } */ - public static int H5VL_MAX_BLOB_ID_SIZE() { - return H5VL_MAX_BLOB_ID_SIZE; - } + public static int H5VL_MAX_BLOB_ID_SIZE() { return H5VL_MAX_BLOB_ID_SIZE; } private static final long H5S_UNLIMITED = -1L; /** * {@snippet lang=c : * #define H5S_UNLIMITED -1 * } */ - public static long H5S_UNLIMITED() { - return H5S_UNLIMITED; - } + public static long H5S_UNLIMITED() { return H5S_UNLIMITED; } private static final int H5Z_FILTER_ERROR = (int)-1L; /** * {@snippet lang=c : * #define H5Z_FILTER_ERROR -1 * } */ - public static int H5Z_FILTER_ERROR() { - return H5Z_FILTER_ERROR; - } + public static int H5Z_FILTER_ERROR() { return H5Z_FILTER_ERROR; } private static final int H5Z_FILTER_CONFIG_ENCODE_ENABLED = (int)1L; /** * {@snippet lang=c : * #define H5Z_FILTER_CONFIG_ENCODE_ENABLED 1 * } */ - public static int H5Z_FILTER_CONFIG_ENCODE_ENABLED() { - return H5Z_FILTER_CONFIG_ENCODE_ENABLED; - } + public static int H5Z_FILTER_CONFIG_ENCODE_ENABLED() { return H5Z_FILTER_CONFIG_ENCODE_ENABLED; } private static final int H5Z_FILTER_CONFIG_DECODE_ENABLED = (int)2L; /** * {@snippet lang=c : * #define H5Z_FILTER_CONFIG_DECODE_ENABLED 2 * } */ - public static int H5Z_FILTER_CONFIG_DECODE_ENABLED() { - return H5Z_FILTER_CONFIG_DECODE_ENABLED; - } + public static int H5Z_FILTER_CONFIG_DECODE_ENABLED() { return H5Z_FILTER_CONFIG_DECODE_ENABLED; } private static final int H5D_SEL_IO_DISABLE_BY_API = (int)1L; /** * {@snippet lang=c : * #define H5D_SEL_IO_DISABLE_BY_API 1 * } */ - public static int H5D_SEL_IO_DISABLE_BY_API() { - return H5D_SEL_IO_DISABLE_BY_API; - } + public static int H5D_SEL_IO_DISABLE_BY_API() { return H5D_SEL_IO_DISABLE_BY_API; } private static final int H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET = (int)2L; /** * {@snippet lang=c : * #define H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET 2 * } */ - public static int H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() { + public static int H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() + { return H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET; } private static final int H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER = (int)4L; @@ -29134,16 +26949,15 @@ public static int H5D_SEL_IO_NOT_CONTIGUOUS_OR_CHUNKED_DATASET() { * #define H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER 4 * } */ - public static int H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER() { - return H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER; - } + public static int H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER() { return H5D_SEL_IO_CONTIGUOUS_SIEVE_BUFFER; } private static final int H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB = (int)8L; /** * {@snippet lang=c : * #define H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB 8 * } */ - public static int H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB() { + public static int H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB() + { return H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB; } private static final int H5D_SEL_IO_PAGE_BUFFER = (int)16L; @@ -29152,99 +26966,79 @@ public static int H5D_SEL_IO_NO_VECTOR_OR_SELECTION_IO_CB() { * #define H5D_SEL_IO_PAGE_BUFFER 16 * } */ - public static int H5D_SEL_IO_PAGE_BUFFER() { - return H5D_SEL_IO_PAGE_BUFFER; - } + public static int H5D_SEL_IO_PAGE_BUFFER() { return H5D_SEL_IO_PAGE_BUFFER; } private static final int H5D_SEL_IO_DATASET_FILTER = (int)32L; /** * {@snippet lang=c : * #define H5D_SEL_IO_DATASET_FILTER 32 * } */ - public static int H5D_SEL_IO_DATASET_FILTER() { - return H5D_SEL_IO_DATASET_FILTER; - } + public static int H5D_SEL_IO_DATASET_FILTER() { return H5D_SEL_IO_DATASET_FILTER; } private static final int H5D_SEL_IO_CHUNK_CACHE = (int)64L; /** * {@snippet lang=c : * #define H5D_SEL_IO_CHUNK_CACHE 64 * } */ - public static int H5D_SEL_IO_CHUNK_CACHE() { - return H5D_SEL_IO_CHUNK_CACHE; - } + public static int H5D_SEL_IO_CHUNK_CACHE() { return H5D_SEL_IO_CHUNK_CACHE; } private static final int H5D_SEL_IO_TCONV_BUF_TOO_SMALL = (int)128L; /** * {@snippet lang=c : * #define H5D_SEL_IO_TCONV_BUF_TOO_SMALL 128 * } */ - public static int H5D_SEL_IO_TCONV_BUF_TOO_SMALL() { - return H5D_SEL_IO_TCONV_BUF_TOO_SMALL; - } + public static int H5D_SEL_IO_TCONV_BUF_TOO_SMALL() { return H5D_SEL_IO_TCONV_BUF_TOO_SMALL; } private static final int H5D_SEL_IO_BKG_BUF_TOO_SMALL = (int)256L; /** * {@snippet lang=c : * #define H5D_SEL_IO_BKG_BUF_TOO_SMALL 256 * } */ - public static int H5D_SEL_IO_BKG_BUF_TOO_SMALL() { - return H5D_SEL_IO_BKG_BUF_TOO_SMALL; - } + public static int H5D_SEL_IO_BKG_BUF_TOO_SMALL() { return H5D_SEL_IO_BKG_BUF_TOO_SMALL; } private static final int H5D_SEL_IO_DEFAULT_OFF = (int)512L; /** * {@snippet lang=c : * #define H5D_SEL_IO_DEFAULT_OFF 512 * } */ - public static int H5D_SEL_IO_DEFAULT_OFF() { - return H5D_SEL_IO_DEFAULT_OFF; - } + public static int H5D_SEL_IO_DEFAULT_OFF() { return H5D_SEL_IO_DEFAULT_OFF; } private static final int H5D_MPIO_NO_SELECTION_IO_CAUSES = (int)481L; /** * {@snippet lang=c : * #define H5D_MPIO_NO_SELECTION_IO_CAUSES 481 * } */ - public static int H5D_MPIO_NO_SELECTION_IO_CAUSES() { - return H5D_MPIO_NO_SELECTION_IO_CAUSES; - } + public static int H5D_MPIO_NO_SELECTION_IO_CAUSES() { return H5D_MPIO_NO_SELECTION_IO_CAUSES; } private static final int H5D_SCALAR_IO = (int)1L; /** * {@snippet lang=c : * #define H5D_SCALAR_IO 1 * } */ - public static int H5D_SCALAR_IO() { - return H5D_SCALAR_IO; - } + public static int H5D_SCALAR_IO() { return H5D_SCALAR_IO; } private static final int H5D_VECTOR_IO = (int)2L; /** * {@snippet lang=c : * #define H5D_VECTOR_IO 2 * } */ - public static int H5D_VECTOR_IO() { - return H5D_VECTOR_IO; - } + public static int H5D_VECTOR_IO() { return H5D_VECTOR_IO; } private static final int H5D_SELECTION_IO = (int)4L; /** * {@snippet lang=c : * #define H5D_SELECTION_IO 4 * } */ - public static int H5D_SELECTION_IO() { - return H5D_SELECTION_IO; - } + public static int H5D_SELECTION_IO() { return H5D_SELECTION_IO; } /** * {@snippet lang=c : * #define H5PL_NO_PLUGIN "::" * } */ - public static MemorySegment H5PL_NO_PLUGIN() { + public static MemorySegment H5PL_NO_PLUGIN() + { class Holder { - static final MemorySegment H5PL_NO_PLUGIN - = hdf5_h.LIBRARY_ARENA.allocateFrom("::"); + static final MemorySegment H5PL_NO_PLUGIN = hdf5_h.LIBRARY_ARENA.allocateFrom("::"); } return Holder.H5PL_NO_PLUGIN; } @@ -29254,162 +27048,128 @@ class Holder { * #define H5FD_MEM_FHEAP_HDR 6 * } */ - public static int H5FD_MEM_FHEAP_HDR() { - return H5FD_MEM_FHEAP_HDR; - } + public static int H5FD_MEM_FHEAP_HDR() { return H5FD_MEM_FHEAP_HDR; } private static final int H5FD_MEM_FHEAP_IBLOCK = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_FHEAP_IBLOCK 6 * } */ - public static int H5FD_MEM_FHEAP_IBLOCK() { - return H5FD_MEM_FHEAP_IBLOCK; - } + public static int H5FD_MEM_FHEAP_IBLOCK() { return H5FD_MEM_FHEAP_IBLOCK; } private static final int H5FD_MEM_FHEAP_DBLOCK = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_FHEAP_DBLOCK 5 * } */ - public static int H5FD_MEM_FHEAP_DBLOCK() { - return H5FD_MEM_FHEAP_DBLOCK; - } + public static int H5FD_MEM_FHEAP_DBLOCK() { return H5FD_MEM_FHEAP_DBLOCK; } private static final int H5FD_MEM_FHEAP_HUGE_OBJ = (int)3L; /** * {@snippet lang=c : * #define H5FD_MEM_FHEAP_HUGE_OBJ 3 * } */ - public static int H5FD_MEM_FHEAP_HUGE_OBJ() { - return H5FD_MEM_FHEAP_HUGE_OBJ; - } + public static int H5FD_MEM_FHEAP_HUGE_OBJ() { return H5FD_MEM_FHEAP_HUGE_OBJ; } private static final int H5FD_MEM_FSPACE_HDR = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_FSPACE_HDR 6 * } */ - public static int H5FD_MEM_FSPACE_HDR() { - return H5FD_MEM_FSPACE_HDR; - } + public static int H5FD_MEM_FSPACE_HDR() { return H5FD_MEM_FSPACE_HDR; } private static final int H5FD_MEM_FSPACE_SINFO = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_FSPACE_SINFO 5 * } */ - public static int H5FD_MEM_FSPACE_SINFO() { - return H5FD_MEM_FSPACE_SINFO; - } + public static int H5FD_MEM_FSPACE_SINFO() { return H5FD_MEM_FSPACE_SINFO; } private static final int H5FD_MEM_SOHM_TABLE = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_SOHM_TABLE 6 * } */ - public static int H5FD_MEM_SOHM_TABLE() { - return H5FD_MEM_SOHM_TABLE; - } + public static int H5FD_MEM_SOHM_TABLE() { return H5FD_MEM_SOHM_TABLE; } private static final int H5FD_MEM_SOHM_INDEX = (int)2L; /** * {@snippet lang=c : * #define H5FD_MEM_SOHM_INDEX 2 * } */ - public static int H5FD_MEM_SOHM_INDEX() { - return H5FD_MEM_SOHM_INDEX; - } + public static int H5FD_MEM_SOHM_INDEX() { return H5FD_MEM_SOHM_INDEX; } private static final int H5FD_MEM_EARRAY_HDR = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_EARRAY_HDR 6 * } */ - public static int H5FD_MEM_EARRAY_HDR() { - return H5FD_MEM_EARRAY_HDR; - } + public static int H5FD_MEM_EARRAY_HDR() { return H5FD_MEM_EARRAY_HDR; } private static final int H5FD_MEM_EARRAY_IBLOCK = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_EARRAY_IBLOCK 6 * } */ - public static int H5FD_MEM_EARRAY_IBLOCK() { - return H5FD_MEM_EARRAY_IBLOCK; - } + public static int H5FD_MEM_EARRAY_IBLOCK() { return H5FD_MEM_EARRAY_IBLOCK; } private static final int H5FD_MEM_EARRAY_SBLOCK = (int)2L; /** * {@snippet lang=c : * #define H5FD_MEM_EARRAY_SBLOCK 2 * } */ - public static int H5FD_MEM_EARRAY_SBLOCK() { - return H5FD_MEM_EARRAY_SBLOCK; - } + public static int H5FD_MEM_EARRAY_SBLOCK() { return H5FD_MEM_EARRAY_SBLOCK; } private static final int H5FD_MEM_EARRAY_DBLOCK = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_EARRAY_DBLOCK 5 * } */ - public static int H5FD_MEM_EARRAY_DBLOCK() { - return H5FD_MEM_EARRAY_DBLOCK; - } + public static int H5FD_MEM_EARRAY_DBLOCK() { return H5FD_MEM_EARRAY_DBLOCK; } private static final int H5FD_MEM_EARRAY_DBLK_PAGE = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_EARRAY_DBLK_PAGE 5 * } */ - public static int H5FD_MEM_EARRAY_DBLK_PAGE() { - return H5FD_MEM_EARRAY_DBLK_PAGE; - } + public static int H5FD_MEM_EARRAY_DBLK_PAGE() { return H5FD_MEM_EARRAY_DBLK_PAGE; } private static final int H5FD_MEM_FARRAY_HDR = (int)6L; /** * {@snippet lang=c : * #define H5FD_MEM_FARRAY_HDR 6 * } */ - public static int H5FD_MEM_FARRAY_HDR() { - return H5FD_MEM_FARRAY_HDR; - } + public static int H5FD_MEM_FARRAY_HDR() { return H5FD_MEM_FARRAY_HDR; } private static final int H5FD_MEM_FARRAY_DBLOCK = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_FARRAY_DBLOCK 5 * } */ - public static int H5FD_MEM_FARRAY_DBLOCK() { - return H5FD_MEM_FARRAY_DBLOCK; - } + public static int H5FD_MEM_FARRAY_DBLOCK() { return H5FD_MEM_FARRAY_DBLOCK; } private static final int H5FD_MEM_FARRAY_DBLK_PAGE = (int)5L; /** * {@snippet lang=c : * #define H5FD_MEM_FARRAY_DBLK_PAGE 5 * } */ - public static int H5FD_MEM_FARRAY_DBLK_PAGE() { - return H5FD_MEM_FARRAY_DBLK_PAGE; - } + public static int H5FD_MEM_FARRAY_DBLK_PAGE() { return H5FD_MEM_FARRAY_DBLK_PAGE; } private static final int H5Z_CLASS_T_VERS = (int)1L; /** * {@snippet lang=c : * #define H5Z_CLASS_T_VERS 1 * } */ - public static int H5Z_CLASS_T_VERS() { - return H5Z_CLASS_T_VERS; - } + public static int H5Z_CLASS_T_VERS() { return H5Z_CLASS_T_VERS; } /** * {@snippet lang=c : * #define H5VL_NATIVE_NAME "native" * } */ - public static MemorySegment H5VL_NATIVE_NAME() { + public static MemorySegment H5VL_NATIVE_NAME() + { class Holder { - static final MemorySegment H5VL_NATIVE_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("native"); + static final MemorySegment H5VL_NATIVE_NAME = hdf5_h.LIBRARY_ARENA.allocateFrom("native"); } return Holder.H5VL_NATIVE_NAME; } @@ -29419,160 +27179,127 @@ class Holder { * #define H5VL_NATIVE_VALUE 0 * } */ - public static int H5VL_NATIVE_VALUE() { - return H5VL_NATIVE_VALUE; - } + public static int H5VL_NATIVE_VALUE() { return H5VL_NATIVE_VALUE; } private static final int H5FD_CORE_VALUE = (int)1L; /** * {@snippet lang=c : * #define H5FD_CORE_VALUE 1 * } */ - public static int H5FD_CORE_VALUE() { - return H5FD_CORE_VALUE; - } + public static int H5FD_CORE_VALUE() { return H5FD_CORE_VALUE; } private static final int H5FD_DIRECT = (int)-1L; /** * {@snippet lang=c : * #define H5FD_DIRECT -1 * } */ - public static int H5FD_DIRECT() { - return H5FD_DIRECT; - } + public static int H5FD_DIRECT() { return H5FD_DIRECT; } private static final int H5FD_DIRECT_VALUE = (int)-1L; /** * {@snippet lang=c : * #define H5FD_DIRECT_VALUE -1 * } */ - public static int H5FD_DIRECT_VALUE() { - return H5FD_DIRECT_VALUE; - } + public static int H5FD_DIRECT_VALUE() { return H5FD_DIRECT_VALUE; } private static final int CBSIZE_DEF = (int)16777216L; /** * {@snippet lang=c : * #define CBSIZE_DEF 16777216 * } */ - public static int CBSIZE_DEF() { - return CBSIZE_DEF; - } + public static int CBSIZE_DEF() { return CBSIZE_DEF; } private static final int H5FD_FAMILY_VALUE = (int)3L; /** * {@snippet lang=c : * #define H5FD_FAMILY_VALUE 3 * } */ - public static int H5FD_FAMILY_VALUE() { - return H5FD_FAMILY_VALUE; - } + public static int H5FD_FAMILY_VALUE() { return H5FD_FAMILY_VALUE; } private static final int H5FD_HDFS = (int)-1L; /** * {@snippet lang=c : * #define H5FD_HDFS -1 * } */ - public static int H5FD_HDFS() { - return H5FD_HDFS; - } + public static int H5FD_HDFS() { return H5FD_HDFS; } private static final int H5FD_HDFS_VALUE = (int)-1L; /** * {@snippet lang=c : * #define H5FD_HDFS_VALUE -1 * } */ - public static int H5FD_HDFS_VALUE() { - return H5FD_HDFS_VALUE; - } + public static int H5FD_HDFS_VALUE() { return H5FD_HDFS_VALUE; } private static final int H5FD_LOG_VALUE = (int)2L; /** * {@snippet lang=c : * #define H5FD_LOG_VALUE 2 * } */ - public static int H5FD_LOG_VALUE() { - return H5FD_LOG_VALUE; - } + public static int H5FD_LOG_VALUE() { return H5FD_LOG_VALUE; } private static final int H5FD_LOG_META_IO = (int)1L; /** * {@snippet lang=c : * #define H5FD_LOG_META_IO 1 * } */ - public static int H5FD_LOG_META_IO() { - return H5FD_LOG_META_IO; - } + public static int H5FD_LOG_META_IO() { return H5FD_LOG_META_IO; } private static final int H5FD_LOG_LOC_IO = (int)14L; /** * {@snippet lang=c : * #define H5FD_LOG_LOC_IO 14 * } */ - public static int H5FD_LOG_LOC_IO() { - return H5FD_LOG_LOC_IO; - } + public static int H5FD_LOG_LOC_IO() { return H5FD_LOG_LOC_IO; } private static final int H5FD_LOG_FILE_IO = (int)48L; /** * {@snippet lang=c : * #define H5FD_LOG_FILE_IO 48 * } */ - public static int H5FD_LOG_FILE_IO() { - return H5FD_LOG_FILE_IO; - } + public static int H5FD_LOG_FILE_IO() { return H5FD_LOG_FILE_IO; } private static final int H5FD_LOG_NUM_IO = (int)1920L; /** * {@snippet lang=c : * #define H5FD_LOG_NUM_IO 1920 * } */ - public static int H5FD_LOG_NUM_IO() { - return H5FD_LOG_NUM_IO; - } + public static int H5FD_LOG_NUM_IO() { return H5FD_LOG_NUM_IO; } private static final int H5FD_LOG_TIME_IO = (int)260096L; /** * {@snippet lang=c : * #define H5FD_LOG_TIME_IO 260096 * } */ - public static int H5FD_LOG_TIME_IO() { - return H5FD_LOG_TIME_IO; - } + public static int H5FD_LOG_TIME_IO() { return H5FD_LOG_TIME_IO; } private static final int H5FD_LOG_ALL = (int)1048575L; /** * {@snippet lang=c : * #define H5FD_LOG_ALL 1048575 * } */ - public static int H5FD_LOG_ALL() { - return H5FD_LOG_ALL; - } + public static int H5FD_LOG_ALL() { return H5FD_LOG_ALL; } private static final int H5FD_MPIO = (int)-1L; /** * {@snippet lang=c : * #define H5FD_MPIO -1 * } */ - public static int H5FD_MPIO() { - return H5FD_MPIO; - } + public static int H5FD_MPIO() { return H5FD_MPIO; } private static final int H5FD_ONION_VALUE = (int)14L; /** * {@snippet lang=c : * #define H5FD_ONION_VALUE 14 * } */ - public static int H5FD_ONION_VALUE() { - return H5FD_ONION_VALUE; - } + public static int H5FD_ONION_VALUE() { return H5FD_ONION_VALUE; } private static final int H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT = (int)1L; /** * {@snippet lang=c : * #define H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT 1 * } */ - public static int H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT() { + public static int H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT() + { return H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT; } private static final long H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST = -1L; @@ -29581,7 +27308,8 @@ public static int H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT() { * #define H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST -1 * } */ - public static long H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST() { + public static long H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST() + { return H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST; } private static final int H5FD_ROS3 = (int)-1L; @@ -29590,54 +27318,44 @@ public static long H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST() { * #define H5FD_ROS3 -1 * } */ - public static int H5FD_ROS3() { - return H5FD_ROS3; - } + public static int H5FD_ROS3() { return H5FD_ROS3; } private static final int H5FD_ROS3_VALUE = (int)-1L; /** * {@snippet lang=c : * #define H5FD_ROS3_VALUE -1 * } */ - public static int H5FD_ROS3_VALUE() { - return H5FD_ROS3_VALUE; - } + public static int H5FD_ROS3_VALUE() { return H5FD_ROS3_VALUE; } private static final int H5FD_SEC2_VALUE = (int)0L; /** * {@snippet lang=c : * #define H5FD_SEC2_VALUE 0 * } */ - public static int H5FD_SEC2_VALUE() { - return H5FD_SEC2_VALUE; - } + public static int H5FD_SEC2_VALUE() { return H5FD_SEC2_VALUE; } private static final int H5FD_SPLITTER_VALUE = (int)6L; /** * {@snippet lang=c : * #define H5FD_SPLITTER_VALUE 6 * } */ - public static int H5FD_SPLITTER_VALUE() { - return H5FD_SPLITTER_VALUE; - } + public static int H5FD_SPLITTER_VALUE() { return H5FD_SPLITTER_VALUE; } private static final int H5FD_SUBFILING = (int)-1L; /** * {@snippet lang=c : * #define H5FD_SUBFILING -1 * } */ - public static int H5FD_SUBFILING() { - return H5FD_SUBFILING; - } + public static int H5FD_SUBFILING() { return H5FD_SUBFILING; } /** * {@snippet lang=c : * #define H5FD_SUBFILING_NAME "subfiling" * } */ - public static MemorySegment H5FD_SUBFILING_NAME() { + public static MemorySegment H5FD_SUBFILING_NAME() + { class Holder { - static final MemorySegment H5FD_SUBFILING_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("subfiling"); + static final MemorySegment H5FD_SUBFILING_NAME = hdf5_h.LIBRARY_ARENA.allocateFrom("subfiling"); } return Holder.H5FD_SUBFILING_NAME; } @@ -29647,18 +27365,16 @@ class Holder { * #define H5FD_IOC -1 * } */ - public static int H5FD_IOC() { - return H5FD_IOC; - } + public static int H5FD_IOC() { return H5FD_IOC; } /** * {@snippet lang=c : * #define H5FD_IOC_NAME "ioc" * } */ - public static MemorySegment H5FD_IOC_NAME() { + public static MemorySegment H5FD_IOC_NAME() + { class Holder { - static final MemorySegment H5FD_IOC_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("ioc"); + static final MemorySegment H5FD_IOC_NAME = hdf5_h.LIBRARY_ARENA.allocateFrom("ioc"); } return Holder.H5FD_IOC_NAME; } @@ -29667,12 +27383,11 @@ class Holder { * #define H5VL_PASSTHRU_NAME "pass_through" * } */ - public static MemorySegment H5VL_PASSTHRU_NAME() { + public static MemorySegment H5VL_PASSTHRU_NAME() + { class Holder { - static final MemorySegment H5VL_PASSTHRU_NAME - = hdf5_h.LIBRARY_ARENA.allocateFrom("pass_through"); + static final MemorySegment H5VL_PASSTHRU_NAME = hdf5_h.LIBRARY_ARENA.allocateFrom("pass_through"); } return Holder.H5VL_PASSTHRU_NAME; } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_1.java b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_1.java index ee5933bc6d2..4971e5f68e8 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_1.java +++ b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_1.java @@ -2,25 +2,27 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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.*; - public class hdf5_h_1 extends hdf5_h_2 { - hdf5_h_1() { + hdf5_h_1() + { // Should not be called directly } private static class H5T_NATIVE_USHORT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_USHORT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_USHORT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -29,9 +31,7 @@ private static class H5T_NATIVE_USHORT_g$constants { * extern hid_t H5T_NATIVE_USHORT_g * } */ - public static OfLong H5T_NATIVE_USHORT_g$layout() { - return H5T_NATIVE_USHORT_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_USHORT_g$layout() { return H5T_NATIVE_USHORT_g$constants.LAYOUT; } /** * Segment for variable: @@ -39,7 +39,8 @@ private static class H5T_NATIVE_USHORT_g$constants { * extern hid_t H5T_NATIVE_USHORT_g * } */ - public static MemorySegment H5T_NATIVE_USHORT_g$segment() { + public static MemorySegment H5T_NATIVE_USHORT_g$segment() + { return H5T_NATIVE_USHORT_g$constants.SEGMENT; } @@ -49,7 +50,8 @@ private static class H5T_NATIVE_USHORT_g$constants { * extern hid_t H5T_NATIVE_USHORT_g * } */ - public static long H5T_NATIVE_USHORT_g() { + public static long H5T_NATIVE_USHORT_g() + { return H5T_NATIVE_USHORT_g$constants.SEGMENT.get(H5T_NATIVE_USHORT_g$constants.LAYOUT, 0L); } @@ -59,13 +61,15 @@ public static long H5T_NATIVE_USHORT_g() { * extern hid_t H5T_NATIVE_USHORT_g * } */ - public static void H5T_NATIVE_USHORT_g(long varValue) { + public static void H5T_NATIVE_USHORT_g(long varValue) + { H5T_NATIVE_USHORT_g$constants.SEGMENT.set(H5T_NATIVE_USHORT_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -74,9 +78,7 @@ private static class H5T_NATIVE_INT_g$constants { * extern hid_t H5T_NATIVE_INT_g * } */ - public static OfLong H5T_NATIVE_INT_g$layout() { - return H5T_NATIVE_INT_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_g$layout() { return H5T_NATIVE_INT_g$constants.LAYOUT; } /** * Segment for variable: @@ -84,9 +86,7 @@ private static class H5T_NATIVE_INT_g$constants { * extern hid_t H5T_NATIVE_INT_g * } */ - public static MemorySegment H5T_NATIVE_INT_g$segment() { - return H5T_NATIVE_INT_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_INT_g$segment() { return H5T_NATIVE_INT_g$constants.SEGMENT; } /** * Getter for variable: @@ -94,7 +94,8 @@ private static class H5T_NATIVE_INT_g$constants { * extern hid_t H5T_NATIVE_INT_g * } */ - public static long H5T_NATIVE_INT_g() { + public static long H5T_NATIVE_INT_g() + { return H5T_NATIVE_INT_g$constants.SEGMENT.get(H5T_NATIVE_INT_g$constants.LAYOUT, 0L); } @@ -104,13 +105,15 @@ public static long H5T_NATIVE_INT_g() { * extern hid_t H5T_NATIVE_INT_g * } */ - public static void H5T_NATIVE_INT_g(long varValue) { + public static void H5T_NATIVE_INT_g(long varValue) + { H5T_NATIVE_INT_g$constants.SEGMENT.set(H5T_NATIVE_INT_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -119,9 +122,7 @@ private static class H5T_NATIVE_UINT_g$constants { * extern hid_t H5T_NATIVE_UINT_g * } */ - public static OfLong H5T_NATIVE_UINT_g$layout() { - return H5T_NATIVE_UINT_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT_g$layout() { return H5T_NATIVE_UINT_g$constants.LAYOUT; } /** * Segment for variable: @@ -129,9 +130,7 @@ private static class H5T_NATIVE_UINT_g$constants { * extern hid_t H5T_NATIVE_UINT_g * } */ - public static MemorySegment H5T_NATIVE_UINT_g$segment() { - return H5T_NATIVE_UINT_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_UINT_g$segment() { return H5T_NATIVE_UINT_g$constants.SEGMENT; } /** * Getter for variable: @@ -139,7 +138,8 @@ private static class H5T_NATIVE_UINT_g$constants { * extern hid_t H5T_NATIVE_UINT_g * } */ - public static long H5T_NATIVE_UINT_g() { + public static long H5T_NATIVE_UINT_g() + { return H5T_NATIVE_UINT_g$constants.SEGMENT.get(H5T_NATIVE_UINT_g$constants.LAYOUT, 0L); } @@ -149,13 +149,15 @@ public static long H5T_NATIVE_UINT_g() { * extern hid_t H5T_NATIVE_UINT_g * } */ - public static void H5T_NATIVE_UINT_g(long varValue) { + public static void H5T_NATIVE_UINT_g(long varValue) + { H5T_NATIVE_UINT_g$constants.SEGMENT.set(H5T_NATIVE_UINT_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_LONG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_LONG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_LONG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -164,9 +166,7 @@ private static class H5T_NATIVE_LONG_g$constants { * extern hid_t H5T_NATIVE_LONG_g * } */ - public static OfLong H5T_NATIVE_LONG_g$layout() { - return H5T_NATIVE_LONG_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_LONG_g$layout() { return H5T_NATIVE_LONG_g$constants.LAYOUT; } /** * Segment for variable: @@ -174,9 +174,7 @@ private static class H5T_NATIVE_LONG_g$constants { * extern hid_t H5T_NATIVE_LONG_g * } */ - public static MemorySegment H5T_NATIVE_LONG_g$segment() { - return H5T_NATIVE_LONG_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_LONG_g$segment() { return H5T_NATIVE_LONG_g$constants.SEGMENT; } /** * Getter for variable: @@ -184,7 +182,8 @@ private static class H5T_NATIVE_LONG_g$constants { * extern hid_t H5T_NATIVE_LONG_g * } */ - public static long H5T_NATIVE_LONG_g() { + public static long H5T_NATIVE_LONG_g() + { return H5T_NATIVE_LONG_g$constants.SEGMENT.get(H5T_NATIVE_LONG_g$constants.LAYOUT, 0L); } @@ -194,13 +193,15 @@ public static long H5T_NATIVE_LONG_g() { * extern hid_t H5T_NATIVE_LONG_g * } */ - public static void H5T_NATIVE_LONG_g(long varValue) { + public static void H5T_NATIVE_LONG_g(long varValue) + { H5T_NATIVE_LONG_g$constants.SEGMENT.set(H5T_NATIVE_LONG_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_ULONG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_ULONG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_ULONG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -209,9 +210,7 @@ private static class H5T_NATIVE_ULONG_g$constants { * extern hid_t H5T_NATIVE_ULONG_g * } */ - public static OfLong H5T_NATIVE_ULONG_g$layout() { - return H5T_NATIVE_ULONG_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_ULONG_g$layout() { return H5T_NATIVE_ULONG_g$constants.LAYOUT; } /** * Segment for variable: @@ -219,9 +218,7 @@ private static class H5T_NATIVE_ULONG_g$constants { * extern hid_t H5T_NATIVE_ULONG_g * } */ - public static MemorySegment H5T_NATIVE_ULONG_g$segment() { - return H5T_NATIVE_ULONG_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_ULONG_g$segment() { return H5T_NATIVE_ULONG_g$constants.SEGMENT; } /** * Getter for variable: @@ -229,7 +226,8 @@ private static class H5T_NATIVE_ULONG_g$constants { * extern hid_t H5T_NATIVE_ULONG_g * } */ - public static long H5T_NATIVE_ULONG_g() { + public static long H5T_NATIVE_ULONG_g() + { return H5T_NATIVE_ULONG_g$constants.SEGMENT.get(H5T_NATIVE_ULONG_g$constants.LAYOUT, 0L); } @@ -239,13 +237,15 @@ public static long H5T_NATIVE_ULONG_g() { * extern hid_t H5T_NATIVE_ULONG_g * } */ - public static void H5T_NATIVE_ULONG_g(long varValue) { + public static void H5T_NATIVE_ULONG_g(long varValue) + { H5T_NATIVE_ULONG_g$constants.SEGMENT.set(H5T_NATIVE_ULONG_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_LLONG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_LLONG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_LLONG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -254,9 +254,7 @@ private static class H5T_NATIVE_LLONG_g$constants { * extern hid_t H5T_NATIVE_LLONG_g * } */ - public static OfLong H5T_NATIVE_LLONG_g$layout() { - return H5T_NATIVE_LLONG_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_LLONG_g$layout() { return H5T_NATIVE_LLONG_g$constants.LAYOUT; } /** * Segment for variable: @@ -264,9 +262,7 @@ private static class H5T_NATIVE_LLONG_g$constants { * extern hid_t H5T_NATIVE_LLONG_g * } */ - public static MemorySegment H5T_NATIVE_LLONG_g$segment() { - return H5T_NATIVE_LLONG_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_LLONG_g$segment() { return H5T_NATIVE_LLONG_g$constants.SEGMENT; } /** * Getter for variable: @@ -274,7 +270,8 @@ private static class H5T_NATIVE_LLONG_g$constants { * extern hid_t H5T_NATIVE_LLONG_g * } */ - public static long H5T_NATIVE_LLONG_g() { + public static long H5T_NATIVE_LLONG_g() + { return H5T_NATIVE_LLONG_g$constants.SEGMENT.get(H5T_NATIVE_LLONG_g$constants.LAYOUT, 0L); } @@ -284,13 +281,15 @@ public static long H5T_NATIVE_LLONG_g() { * extern hid_t H5T_NATIVE_LLONG_g * } */ - public static void H5T_NATIVE_LLONG_g(long varValue) { + public static void H5T_NATIVE_LLONG_g(long varValue) + { H5T_NATIVE_LLONG_g$constants.SEGMENT.set(H5T_NATIVE_LLONG_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_ULLONG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_ULLONG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_ULLONG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -299,9 +298,7 @@ private static class H5T_NATIVE_ULLONG_g$constants { * extern hid_t H5T_NATIVE_ULLONG_g * } */ - public static OfLong H5T_NATIVE_ULLONG_g$layout() { - return H5T_NATIVE_ULLONG_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_ULLONG_g$layout() { return H5T_NATIVE_ULLONG_g$constants.LAYOUT; } /** * Segment for variable: @@ -309,7 +306,8 @@ private static class H5T_NATIVE_ULLONG_g$constants { * extern hid_t H5T_NATIVE_ULLONG_g * } */ - public static MemorySegment H5T_NATIVE_ULLONG_g$segment() { + public static MemorySegment H5T_NATIVE_ULLONG_g$segment() + { return H5T_NATIVE_ULLONG_g$constants.SEGMENT; } @@ -319,7 +317,8 @@ private static class H5T_NATIVE_ULLONG_g$constants { * extern hid_t H5T_NATIVE_ULLONG_g * } */ - public static long H5T_NATIVE_ULLONG_g() { + public static long H5T_NATIVE_ULLONG_g() + { return H5T_NATIVE_ULLONG_g$constants.SEGMENT.get(H5T_NATIVE_ULLONG_g$constants.LAYOUT, 0L); } @@ -329,13 +328,15 @@ public static long H5T_NATIVE_ULLONG_g() { * extern hid_t H5T_NATIVE_ULLONG_g * } */ - public static void H5T_NATIVE_ULLONG_g(long varValue) { + public static void H5T_NATIVE_ULLONG_g(long varValue) + { H5T_NATIVE_ULLONG_g$constants.SEGMENT.set(H5T_NATIVE_ULLONG_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_FLOAT16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_FLOAT16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_FLOAT16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -344,9 +345,7 @@ private static class H5T_NATIVE_FLOAT16_g$constants { * extern hid_t H5T_NATIVE_FLOAT16_g * } */ - public static OfLong H5T_NATIVE_FLOAT16_g$layout() { - return H5T_NATIVE_FLOAT16_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_FLOAT16_g$layout() { return H5T_NATIVE_FLOAT16_g$constants.LAYOUT; } /** * Segment for variable: @@ -354,7 +353,8 @@ private static class H5T_NATIVE_FLOAT16_g$constants { * extern hid_t H5T_NATIVE_FLOAT16_g * } */ - public static MemorySegment H5T_NATIVE_FLOAT16_g$segment() { + public static MemorySegment H5T_NATIVE_FLOAT16_g$segment() + { return H5T_NATIVE_FLOAT16_g$constants.SEGMENT; } @@ -364,7 +364,8 @@ private static class H5T_NATIVE_FLOAT16_g$constants { * extern hid_t H5T_NATIVE_FLOAT16_g * } */ - public static long H5T_NATIVE_FLOAT16_g() { + public static long H5T_NATIVE_FLOAT16_g() + { return H5T_NATIVE_FLOAT16_g$constants.SEGMENT.get(H5T_NATIVE_FLOAT16_g$constants.LAYOUT, 0L); } @@ -374,13 +375,15 @@ public static long H5T_NATIVE_FLOAT16_g() { * extern hid_t H5T_NATIVE_FLOAT16_g * } */ - public static void H5T_NATIVE_FLOAT16_g(long varValue) { + public static void H5T_NATIVE_FLOAT16_g(long varValue) + { H5T_NATIVE_FLOAT16_g$constants.SEGMENT.set(H5T_NATIVE_FLOAT16_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_FLOAT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_FLOAT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_FLOAT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -389,9 +392,7 @@ private static class H5T_NATIVE_FLOAT_g$constants { * extern hid_t H5T_NATIVE_FLOAT_g * } */ - public static OfLong H5T_NATIVE_FLOAT_g$layout() { - return H5T_NATIVE_FLOAT_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_FLOAT_g$layout() { return H5T_NATIVE_FLOAT_g$constants.LAYOUT; } /** * Segment for variable: @@ -399,9 +400,7 @@ private static class H5T_NATIVE_FLOAT_g$constants { * extern hid_t H5T_NATIVE_FLOAT_g * } */ - public static MemorySegment H5T_NATIVE_FLOAT_g$segment() { - return H5T_NATIVE_FLOAT_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_FLOAT_g$segment() { return H5T_NATIVE_FLOAT_g$constants.SEGMENT; } /** * Getter for variable: @@ -409,7 +408,8 @@ private static class H5T_NATIVE_FLOAT_g$constants { * extern hid_t H5T_NATIVE_FLOAT_g * } */ - public static long H5T_NATIVE_FLOAT_g() { + public static long H5T_NATIVE_FLOAT_g() + { return H5T_NATIVE_FLOAT_g$constants.SEGMENT.get(H5T_NATIVE_FLOAT_g$constants.LAYOUT, 0L); } @@ -419,13 +419,15 @@ public static long H5T_NATIVE_FLOAT_g() { * extern hid_t H5T_NATIVE_FLOAT_g * } */ - public static void H5T_NATIVE_FLOAT_g(long varValue) { + public static void H5T_NATIVE_FLOAT_g(long varValue) + { H5T_NATIVE_FLOAT_g$constants.SEGMENT.set(H5T_NATIVE_FLOAT_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_DOUBLE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_DOUBLE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_DOUBLE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -434,9 +436,7 @@ private static class H5T_NATIVE_DOUBLE_g$constants { * extern hid_t H5T_NATIVE_DOUBLE_g * } */ - public static OfLong H5T_NATIVE_DOUBLE_g$layout() { - return H5T_NATIVE_DOUBLE_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_DOUBLE_g$layout() { return H5T_NATIVE_DOUBLE_g$constants.LAYOUT; } /** * Segment for variable: @@ -444,7 +444,8 @@ private static class H5T_NATIVE_DOUBLE_g$constants { * extern hid_t H5T_NATIVE_DOUBLE_g * } */ - public static MemorySegment H5T_NATIVE_DOUBLE_g$segment() { + public static MemorySegment H5T_NATIVE_DOUBLE_g$segment() + { return H5T_NATIVE_DOUBLE_g$constants.SEGMENT; } @@ -454,7 +455,8 @@ private static class H5T_NATIVE_DOUBLE_g$constants { * extern hid_t H5T_NATIVE_DOUBLE_g * } */ - public static long H5T_NATIVE_DOUBLE_g() { + public static long H5T_NATIVE_DOUBLE_g() + { return H5T_NATIVE_DOUBLE_g$constants.SEGMENT.get(H5T_NATIVE_DOUBLE_g$constants.LAYOUT, 0L); } @@ -464,13 +466,15 @@ public static long H5T_NATIVE_DOUBLE_g() { * extern hid_t H5T_NATIVE_DOUBLE_g * } */ - public static void H5T_NATIVE_DOUBLE_g(long varValue) { + public static void H5T_NATIVE_DOUBLE_g(long varValue) + { H5T_NATIVE_DOUBLE_g$constants.SEGMENT.set(H5T_NATIVE_DOUBLE_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_LDOUBLE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_LDOUBLE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_LDOUBLE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -479,9 +483,7 @@ private static class H5T_NATIVE_LDOUBLE_g$constants { * extern hid_t H5T_NATIVE_LDOUBLE_g * } */ - public static OfLong H5T_NATIVE_LDOUBLE_g$layout() { - return H5T_NATIVE_LDOUBLE_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_LDOUBLE_g$layout() { return H5T_NATIVE_LDOUBLE_g$constants.LAYOUT; } /** * Segment for variable: @@ -489,7 +491,8 @@ private static class H5T_NATIVE_LDOUBLE_g$constants { * extern hid_t H5T_NATIVE_LDOUBLE_g * } */ - public static MemorySegment H5T_NATIVE_LDOUBLE_g$segment() { + public static MemorySegment H5T_NATIVE_LDOUBLE_g$segment() + { return H5T_NATIVE_LDOUBLE_g$constants.SEGMENT; } @@ -499,7 +502,8 @@ private static class H5T_NATIVE_LDOUBLE_g$constants { * extern hid_t H5T_NATIVE_LDOUBLE_g * } */ - public static long H5T_NATIVE_LDOUBLE_g() { + public static long H5T_NATIVE_LDOUBLE_g() + { return H5T_NATIVE_LDOUBLE_g$constants.SEGMENT.get(H5T_NATIVE_LDOUBLE_g$constants.LAYOUT, 0L); } @@ -509,13 +513,15 @@ public static long H5T_NATIVE_LDOUBLE_g() { * extern hid_t H5T_NATIVE_LDOUBLE_g * } */ - public static void H5T_NATIVE_LDOUBLE_g(long varValue) { + public static void H5T_NATIVE_LDOUBLE_g(long varValue) + { H5T_NATIVE_LDOUBLE_g$constants.SEGMENT.set(H5T_NATIVE_LDOUBLE_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_B8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_B8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_B8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -524,9 +530,7 @@ private static class H5T_NATIVE_B8_g$constants { * extern hid_t H5T_NATIVE_B8_g * } */ - public static OfLong H5T_NATIVE_B8_g$layout() { - return H5T_NATIVE_B8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_B8_g$layout() { return H5T_NATIVE_B8_g$constants.LAYOUT; } /** * Segment for variable: @@ -534,9 +538,7 @@ private static class H5T_NATIVE_B8_g$constants { * extern hid_t H5T_NATIVE_B8_g * } */ - public static MemorySegment H5T_NATIVE_B8_g$segment() { - return H5T_NATIVE_B8_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_B8_g$segment() { return H5T_NATIVE_B8_g$constants.SEGMENT; } /** * Getter for variable: @@ -544,7 +546,8 @@ private static class H5T_NATIVE_B8_g$constants { * extern hid_t H5T_NATIVE_B8_g * } */ - public static long H5T_NATIVE_B8_g() { + public static long H5T_NATIVE_B8_g() + { return H5T_NATIVE_B8_g$constants.SEGMENT.get(H5T_NATIVE_B8_g$constants.LAYOUT, 0L); } @@ -554,13 +557,15 @@ public static long H5T_NATIVE_B8_g() { * extern hid_t H5T_NATIVE_B8_g * } */ - public static void H5T_NATIVE_B8_g(long varValue) { + public static void H5T_NATIVE_B8_g(long varValue) + { H5T_NATIVE_B8_g$constants.SEGMENT.set(H5T_NATIVE_B8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_B16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_B16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_B16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -569,9 +574,7 @@ private static class H5T_NATIVE_B16_g$constants { * extern hid_t H5T_NATIVE_B16_g * } */ - public static OfLong H5T_NATIVE_B16_g$layout() { - return H5T_NATIVE_B16_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_B16_g$layout() { return H5T_NATIVE_B16_g$constants.LAYOUT; } /** * Segment for variable: @@ -579,9 +582,7 @@ private static class H5T_NATIVE_B16_g$constants { * extern hid_t H5T_NATIVE_B16_g * } */ - public static MemorySegment H5T_NATIVE_B16_g$segment() { - return H5T_NATIVE_B16_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_B16_g$segment() { return H5T_NATIVE_B16_g$constants.SEGMENT; } /** * Getter for variable: @@ -589,7 +590,8 @@ private static class H5T_NATIVE_B16_g$constants { * extern hid_t H5T_NATIVE_B16_g * } */ - public static long H5T_NATIVE_B16_g() { + public static long H5T_NATIVE_B16_g() + { return H5T_NATIVE_B16_g$constants.SEGMENT.get(H5T_NATIVE_B16_g$constants.LAYOUT, 0L); } @@ -599,13 +601,15 @@ public static long H5T_NATIVE_B16_g() { * extern hid_t H5T_NATIVE_B16_g * } */ - public static void H5T_NATIVE_B16_g(long varValue) { + public static void H5T_NATIVE_B16_g(long varValue) + { H5T_NATIVE_B16_g$constants.SEGMENT.set(H5T_NATIVE_B16_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_B32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_B32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_B32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -614,9 +618,7 @@ private static class H5T_NATIVE_B32_g$constants { * extern hid_t H5T_NATIVE_B32_g * } */ - public static OfLong H5T_NATIVE_B32_g$layout() { - return H5T_NATIVE_B32_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_B32_g$layout() { return H5T_NATIVE_B32_g$constants.LAYOUT; } /** * Segment for variable: @@ -624,9 +626,7 @@ private static class H5T_NATIVE_B32_g$constants { * extern hid_t H5T_NATIVE_B32_g * } */ - public static MemorySegment H5T_NATIVE_B32_g$segment() { - return H5T_NATIVE_B32_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_B32_g$segment() { return H5T_NATIVE_B32_g$constants.SEGMENT; } /** * Getter for variable: @@ -634,7 +634,8 @@ private static class H5T_NATIVE_B32_g$constants { * extern hid_t H5T_NATIVE_B32_g * } */ - public static long H5T_NATIVE_B32_g() { + public static long H5T_NATIVE_B32_g() + { return H5T_NATIVE_B32_g$constants.SEGMENT.get(H5T_NATIVE_B32_g$constants.LAYOUT, 0L); } @@ -644,13 +645,15 @@ public static long H5T_NATIVE_B32_g() { * extern hid_t H5T_NATIVE_B32_g * } */ - public static void H5T_NATIVE_B32_g(long varValue) { + public static void H5T_NATIVE_B32_g(long varValue) + { H5T_NATIVE_B32_g$constants.SEGMENT.set(H5T_NATIVE_B32_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_B64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_B64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_B64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -659,9 +662,7 @@ private static class H5T_NATIVE_B64_g$constants { * extern hid_t H5T_NATIVE_B64_g * } */ - public static OfLong H5T_NATIVE_B64_g$layout() { - return H5T_NATIVE_B64_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_B64_g$layout() { return H5T_NATIVE_B64_g$constants.LAYOUT; } /** * Segment for variable: @@ -669,9 +670,7 @@ private static class H5T_NATIVE_B64_g$constants { * extern hid_t H5T_NATIVE_B64_g * } */ - public static MemorySegment H5T_NATIVE_B64_g$segment() { - return H5T_NATIVE_B64_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_B64_g$segment() { return H5T_NATIVE_B64_g$constants.SEGMENT; } /** * Getter for variable: @@ -679,7 +678,8 @@ private static class H5T_NATIVE_B64_g$constants { * extern hid_t H5T_NATIVE_B64_g * } */ - public static long H5T_NATIVE_B64_g() { + public static long H5T_NATIVE_B64_g() + { return H5T_NATIVE_B64_g$constants.SEGMENT.get(H5T_NATIVE_B64_g$constants.LAYOUT, 0L); } @@ -689,13 +689,15 @@ public static long H5T_NATIVE_B64_g() { * extern hid_t H5T_NATIVE_B64_g * } */ - public static void H5T_NATIVE_B64_g(long varValue) { + public static void H5T_NATIVE_B64_g(long varValue) + { H5T_NATIVE_B64_g$constants.SEGMENT.set(H5T_NATIVE_B64_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_OPAQUE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_OPAQUE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_OPAQUE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -704,9 +706,7 @@ private static class H5T_NATIVE_OPAQUE_g$constants { * extern hid_t H5T_NATIVE_OPAQUE_g * } */ - public static OfLong H5T_NATIVE_OPAQUE_g$layout() { - return H5T_NATIVE_OPAQUE_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_OPAQUE_g$layout() { return H5T_NATIVE_OPAQUE_g$constants.LAYOUT; } /** * Segment for variable: @@ -714,7 +714,8 @@ private static class H5T_NATIVE_OPAQUE_g$constants { * extern hid_t H5T_NATIVE_OPAQUE_g * } */ - public static MemorySegment H5T_NATIVE_OPAQUE_g$segment() { + public static MemorySegment H5T_NATIVE_OPAQUE_g$segment() + { return H5T_NATIVE_OPAQUE_g$constants.SEGMENT; } @@ -724,7 +725,8 @@ private static class H5T_NATIVE_OPAQUE_g$constants { * extern hid_t H5T_NATIVE_OPAQUE_g * } */ - public static long H5T_NATIVE_OPAQUE_g() { + public static long H5T_NATIVE_OPAQUE_g() + { return H5T_NATIVE_OPAQUE_g$constants.SEGMENT.get(H5T_NATIVE_OPAQUE_g$constants.LAYOUT, 0L); } @@ -734,13 +736,15 @@ public static long H5T_NATIVE_OPAQUE_g() { * extern hid_t H5T_NATIVE_OPAQUE_g * } */ - public static void H5T_NATIVE_OPAQUE_g(long varValue) { + public static void H5T_NATIVE_OPAQUE_g(long varValue) + { H5T_NATIVE_OPAQUE_g$constants.SEGMENT.set(H5T_NATIVE_OPAQUE_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_HADDR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_HADDR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_HADDR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -749,9 +753,7 @@ private static class H5T_NATIVE_HADDR_g$constants { * extern hid_t H5T_NATIVE_HADDR_g * } */ - public static OfLong H5T_NATIVE_HADDR_g$layout() { - return H5T_NATIVE_HADDR_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_HADDR_g$layout() { return H5T_NATIVE_HADDR_g$constants.LAYOUT; } /** * Segment for variable: @@ -759,9 +761,7 @@ private static class H5T_NATIVE_HADDR_g$constants { * extern hid_t H5T_NATIVE_HADDR_g * } */ - public static MemorySegment H5T_NATIVE_HADDR_g$segment() { - return H5T_NATIVE_HADDR_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_HADDR_g$segment() { return H5T_NATIVE_HADDR_g$constants.SEGMENT; } /** * Getter for variable: @@ -769,7 +769,8 @@ private static class H5T_NATIVE_HADDR_g$constants { * extern hid_t H5T_NATIVE_HADDR_g * } */ - public static long H5T_NATIVE_HADDR_g() { + public static long H5T_NATIVE_HADDR_g() + { return H5T_NATIVE_HADDR_g$constants.SEGMENT.get(H5T_NATIVE_HADDR_g$constants.LAYOUT, 0L); } @@ -779,13 +780,15 @@ public static long H5T_NATIVE_HADDR_g() { * extern hid_t H5T_NATIVE_HADDR_g * } */ - public static void H5T_NATIVE_HADDR_g(long varValue) { + public static void H5T_NATIVE_HADDR_g(long varValue) + { H5T_NATIVE_HADDR_g$constants.SEGMENT.set(H5T_NATIVE_HADDR_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_HSIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_HSIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_HSIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -794,9 +797,7 @@ private static class H5T_NATIVE_HSIZE_g$constants { * extern hid_t H5T_NATIVE_HSIZE_g * } */ - public static OfLong H5T_NATIVE_HSIZE_g$layout() { - return H5T_NATIVE_HSIZE_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_HSIZE_g$layout() { return H5T_NATIVE_HSIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -804,9 +805,7 @@ private static class H5T_NATIVE_HSIZE_g$constants { * extern hid_t H5T_NATIVE_HSIZE_g * } */ - public static MemorySegment H5T_NATIVE_HSIZE_g$segment() { - return H5T_NATIVE_HSIZE_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_HSIZE_g$segment() { return H5T_NATIVE_HSIZE_g$constants.SEGMENT; } /** * Getter for variable: @@ -814,7 +813,8 @@ private static class H5T_NATIVE_HSIZE_g$constants { * extern hid_t H5T_NATIVE_HSIZE_g * } */ - public static long H5T_NATIVE_HSIZE_g() { + public static long H5T_NATIVE_HSIZE_g() + { return H5T_NATIVE_HSIZE_g$constants.SEGMENT.get(H5T_NATIVE_HSIZE_g$constants.LAYOUT, 0L); } @@ -824,13 +824,15 @@ public static long H5T_NATIVE_HSIZE_g() { * extern hid_t H5T_NATIVE_HSIZE_g * } */ - public static void H5T_NATIVE_HSIZE_g(long varValue) { + public static void H5T_NATIVE_HSIZE_g(long varValue) + { H5T_NATIVE_HSIZE_g$constants.SEGMENT.set(H5T_NATIVE_HSIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_HSSIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_HSSIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_HSSIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -839,9 +841,7 @@ private static class H5T_NATIVE_HSSIZE_g$constants { * extern hid_t H5T_NATIVE_HSSIZE_g * } */ - public static OfLong H5T_NATIVE_HSSIZE_g$layout() { - return H5T_NATIVE_HSSIZE_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_HSSIZE_g$layout() { return H5T_NATIVE_HSSIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -849,7 +849,8 @@ private static class H5T_NATIVE_HSSIZE_g$constants { * extern hid_t H5T_NATIVE_HSSIZE_g * } */ - public static MemorySegment H5T_NATIVE_HSSIZE_g$segment() { + public static MemorySegment H5T_NATIVE_HSSIZE_g$segment() + { return H5T_NATIVE_HSSIZE_g$constants.SEGMENT; } @@ -859,7 +860,8 @@ private static class H5T_NATIVE_HSSIZE_g$constants { * extern hid_t H5T_NATIVE_HSSIZE_g * } */ - public static long H5T_NATIVE_HSSIZE_g() { + public static long H5T_NATIVE_HSSIZE_g() + { return H5T_NATIVE_HSSIZE_g$constants.SEGMENT.get(H5T_NATIVE_HSSIZE_g$constants.LAYOUT, 0L); } @@ -869,13 +871,15 @@ public static long H5T_NATIVE_HSSIZE_g() { * extern hid_t H5T_NATIVE_HSSIZE_g * } */ - public static void H5T_NATIVE_HSSIZE_g(long varValue) { + public static void H5T_NATIVE_HSSIZE_g(long varValue) + { H5T_NATIVE_HSSIZE_g$constants.SEGMENT.set(H5T_NATIVE_HSSIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_HERR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_HERR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_HERR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -884,9 +888,7 @@ private static class H5T_NATIVE_HERR_g$constants { * extern hid_t H5T_NATIVE_HERR_g * } */ - public static OfLong H5T_NATIVE_HERR_g$layout() { - return H5T_NATIVE_HERR_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_HERR_g$layout() { return H5T_NATIVE_HERR_g$constants.LAYOUT; } /** * Segment for variable: @@ -894,9 +896,7 @@ private static class H5T_NATIVE_HERR_g$constants { * extern hid_t H5T_NATIVE_HERR_g * } */ - public static MemorySegment H5T_NATIVE_HERR_g$segment() { - return H5T_NATIVE_HERR_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_HERR_g$segment() { return H5T_NATIVE_HERR_g$constants.SEGMENT; } /** * Getter for variable: @@ -904,7 +904,8 @@ private static class H5T_NATIVE_HERR_g$constants { * extern hid_t H5T_NATIVE_HERR_g * } */ - public static long H5T_NATIVE_HERR_g() { + public static long H5T_NATIVE_HERR_g() + { return H5T_NATIVE_HERR_g$constants.SEGMENT.get(H5T_NATIVE_HERR_g$constants.LAYOUT, 0L); } @@ -914,13 +915,15 @@ public static long H5T_NATIVE_HERR_g() { * extern hid_t H5T_NATIVE_HERR_g * } */ - public static void H5T_NATIVE_HERR_g(long varValue) { + public static void H5T_NATIVE_HERR_g(long varValue) + { H5T_NATIVE_HERR_g$constants.SEGMENT.set(H5T_NATIVE_HERR_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_HBOOL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_HBOOL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_HBOOL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -929,9 +932,7 @@ private static class H5T_NATIVE_HBOOL_g$constants { * extern hid_t H5T_NATIVE_HBOOL_g * } */ - public static OfLong H5T_NATIVE_HBOOL_g$layout() { - return H5T_NATIVE_HBOOL_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_HBOOL_g$layout() { return H5T_NATIVE_HBOOL_g$constants.LAYOUT; } /** * Segment for variable: @@ -939,9 +940,7 @@ private static class H5T_NATIVE_HBOOL_g$constants { * extern hid_t H5T_NATIVE_HBOOL_g * } */ - public static MemorySegment H5T_NATIVE_HBOOL_g$segment() { - return H5T_NATIVE_HBOOL_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_HBOOL_g$segment() { return H5T_NATIVE_HBOOL_g$constants.SEGMENT; } /** * Getter for variable: @@ -949,7 +948,8 @@ private static class H5T_NATIVE_HBOOL_g$constants { * extern hid_t H5T_NATIVE_HBOOL_g * } */ - public static long H5T_NATIVE_HBOOL_g() { + public static long H5T_NATIVE_HBOOL_g() + { return H5T_NATIVE_HBOOL_g$constants.SEGMENT.get(H5T_NATIVE_HBOOL_g$constants.LAYOUT, 0L); } @@ -959,13 +959,15 @@ public static long H5T_NATIVE_HBOOL_g() { * extern hid_t H5T_NATIVE_HBOOL_g * } */ - public static void H5T_NATIVE_HBOOL_g(long varValue) { + public static void H5T_NATIVE_HBOOL_g(long varValue) + { H5T_NATIVE_HBOOL_g$constants.SEGMENT.set(H5T_NATIVE_HBOOL_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -974,9 +976,7 @@ private static class H5T_NATIVE_INT8_g$constants { * extern hid_t H5T_NATIVE_INT8_g * } */ - public static OfLong H5T_NATIVE_INT8_g$layout() { - return H5T_NATIVE_INT8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT8_g$layout() { return H5T_NATIVE_INT8_g$constants.LAYOUT; } /** * Segment for variable: @@ -984,9 +984,7 @@ private static class H5T_NATIVE_INT8_g$constants { * extern hid_t H5T_NATIVE_INT8_g * } */ - public static MemorySegment H5T_NATIVE_INT8_g$segment() { - return H5T_NATIVE_INT8_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_INT8_g$segment() { return H5T_NATIVE_INT8_g$constants.SEGMENT; } /** * Getter for variable: @@ -994,7 +992,8 @@ private static class H5T_NATIVE_INT8_g$constants { * extern hid_t H5T_NATIVE_INT8_g * } */ - public static long H5T_NATIVE_INT8_g() { + public static long H5T_NATIVE_INT8_g() + { return H5T_NATIVE_INT8_g$constants.SEGMENT.get(H5T_NATIVE_INT8_g$constants.LAYOUT, 0L); } @@ -1004,13 +1003,15 @@ public static long H5T_NATIVE_INT8_g() { * extern hid_t H5T_NATIVE_INT8_g * } */ - public static void H5T_NATIVE_INT8_g(long varValue) { + public static void H5T_NATIVE_INT8_g(long varValue) + { H5T_NATIVE_INT8_g$constants.SEGMENT.set(H5T_NATIVE_INT8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1019,9 +1020,7 @@ private static class H5T_NATIVE_UINT8_g$constants { * extern hid_t H5T_NATIVE_UINT8_g * } */ - public static OfLong H5T_NATIVE_UINT8_g$layout() { - return H5T_NATIVE_UINT8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT8_g$layout() { return H5T_NATIVE_UINT8_g$constants.LAYOUT; } /** * Segment for variable: @@ -1029,9 +1028,7 @@ private static class H5T_NATIVE_UINT8_g$constants { * extern hid_t H5T_NATIVE_UINT8_g * } */ - public static MemorySegment H5T_NATIVE_UINT8_g$segment() { - return H5T_NATIVE_UINT8_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_UINT8_g$segment() { return H5T_NATIVE_UINT8_g$constants.SEGMENT; } /** * Getter for variable: @@ -1039,7 +1036,8 @@ private static class H5T_NATIVE_UINT8_g$constants { * extern hid_t H5T_NATIVE_UINT8_g * } */ - public static long H5T_NATIVE_UINT8_g() { + public static long H5T_NATIVE_UINT8_g() + { return H5T_NATIVE_UINT8_g$constants.SEGMENT.get(H5T_NATIVE_UINT8_g$constants.LAYOUT, 0L); } @@ -1049,13 +1047,15 @@ public static long H5T_NATIVE_UINT8_g() { * extern hid_t H5T_NATIVE_UINT8_g * } */ - public static void H5T_NATIVE_UINT8_g(long varValue) { + public static void H5T_NATIVE_UINT8_g(long varValue) + { H5T_NATIVE_UINT8_g$constants.SEGMENT.set(H5T_NATIVE_UINT8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT_LEAST8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1064,9 +1064,7 @@ private static class H5T_NATIVE_INT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST8_g * } */ - public static OfLong H5T_NATIVE_INT_LEAST8_g$layout() { - return H5T_NATIVE_INT_LEAST8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_LEAST8_g$layout() { return H5T_NATIVE_INT_LEAST8_g$constants.LAYOUT; } /** * Segment for variable: @@ -1074,7 +1072,8 @@ private static class H5T_NATIVE_INT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST8_g * } */ - public static MemorySegment H5T_NATIVE_INT_LEAST8_g$segment() { + public static MemorySegment H5T_NATIVE_INT_LEAST8_g$segment() + { return H5T_NATIVE_INT_LEAST8_g$constants.SEGMENT; } @@ -1084,7 +1083,8 @@ private static class H5T_NATIVE_INT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST8_g * } */ - public static long H5T_NATIVE_INT_LEAST8_g() { + public static long H5T_NATIVE_INT_LEAST8_g() + { return H5T_NATIVE_INT_LEAST8_g$constants.SEGMENT.get(H5T_NATIVE_INT_LEAST8_g$constants.LAYOUT, 0L); } @@ -1094,13 +1094,15 @@ public static long H5T_NATIVE_INT_LEAST8_g() { * extern hid_t H5T_NATIVE_INT_LEAST8_g * } */ - public static void H5T_NATIVE_INT_LEAST8_g(long varValue) { + public static void H5T_NATIVE_INT_LEAST8_g(long varValue) + { H5T_NATIVE_INT_LEAST8_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_LEAST8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1109,7 +1111,8 @@ private static class H5T_NATIVE_UINT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST8_g * } */ - public static OfLong H5T_NATIVE_UINT_LEAST8_g$layout() { + public static OfLong H5T_NATIVE_UINT_LEAST8_g$layout() + { return H5T_NATIVE_UINT_LEAST8_g$constants.LAYOUT; } @@ -1119,7 +1122,8 @@ private static class H5T_NATIVE_UINT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST8_g * } */ - public static MemorySegment H5T_NATIVE_UINT_LEAST8_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_LEAST8_g$segment() + { return H5T_NATIVE_UINT_LEAST8_g$constants.SEGMENT; } @@ -1129,7 +1133,8 @@ private static class H5T_NATIVE_UINT_LEAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST8_g * } */ - public static long H5T_NATIVE_UINT_LEAST8_g() { + public static long H5T_NATIVE_UINT_LEAST8_g() + { return H5T_NATIVE_UINT_LEAST8_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST8_g$constants.LAYOUT, 0L); } @@ -1139,13 +1144,16 @@ public static long H5T_NATIVE_UINT_LEAST8_g() { * extern hid_t H5T_NATIVE_UINT_LEAST8_g * } */ - public static void H5T_NATIVE_UINT_LEAST8_g(long varValue) { - H5T_NATIVE_UINT_LEAST8_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST8_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_LEAST8_g(long varValue) + { + H5T_NATIVE_UINT_LEAST8_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST8_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT_FAST8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1154,9 +1162,7 @@ private static class H5T_NATIVE_INT_FAST8_g$constants { * extern hid_t H5T_NATIVE_INT_FAST8_g * } */ - public static OfLong H5T_NATIVE_INT_FAST8_g$layout() { - return H5T_NATIVE_INT_FAST8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_FAST8_g$layout() { return H5T_NATIVE_INT_FAST8_g$constants.LAYOUT; } /** * Segment for variable: @@ -1164,7 +1170,8 @@ private static class H5T_NATIVE_INT_FAST8_g$constants { * extern hid_t H5T_NATIVE_INT_FAST8_g * } */ - public static MemorySegment H5T_NATIVE_INT_FAST8_g$segment() { + public static MemorySegment H5T_NATIVE_INT_FAST8_g$segment() + { return H5T_NATIVE_INT_FAST8_g$constants.SEGMENT; } @@ -1174,7 +1181,8 @@ private static class H5T_NATIVE_INT_FAST8_g$constants { * extern hid_t H5T_NATIVE_INT_FAST8_g * } */ - public static long H5T_NATIVE_INT_FAST8_g() { + public static long H5T_NATIVE_INT_FAST8_g() + { return H5T_NATIVE_INT_FAST8_g$constants.SEGMENT.get(H5T_NATIVE_INT_FAST8_g$constants.LAYOUT, 0L); } @@ -1184,13 +1192,15 @@ public static long H5T_NATIVE_INT_FAST8_g() { * extern hid_t H5T_NATIVE_INT_FAST8_g * } */ - public static void H5T_NATIVE_INT_FAST8_g(long varValue) { + public static void H5T_NATIVE_INT_FAST8_g(long varValue) + { H5T_NATIVE_INT_FAST8_g$constants.SEGMENT.set(H5T_NATIVE_INT_FAST8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_FAST8_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST8_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST8_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1199,9 +1209,7 @@ private static class H5T_NATIVE_UINT_FAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST8_g * } */ - public static OfLong H5T_NATIVE_UINT_FAST8_g$layout() { - return H5T_NATIVE_UINT_FAST8_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT_FAST8_g$layout() { return H5T_NATIVE_UINT_FAST8_g$constants.LAYOUT; } /** * Segment for variable: @@ -1209,7 +1217,8 @@ private static class H5T_NATIVE_UINT_FAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST8_g * } */ - public static MemorySegment H5T_NATIVE_UINT_FAST8_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_FAST8_g$segment() + { return H5T_NATIVE_UINT_FAST8_g$constants.SEGMENT; } @@ -1219,7 +1228,8 @@ private static class H5T_NATIVE_UINT_FAST8_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST8_g * } */ - public static long H5T_NATIVE_UINT_FAST8_g() { + public static long H5T_NATIVE_UINT_FAST8_g() + { return H5T_NATIVE_UINT_FAST8_g$constants.SEGMENT.get(H5T_NATIVE_UINT_FAST8_g$constants.LAYOUT, 0L); } @@ -1229,13 +1239,15 @@ public static long H5T_NATIVE_UINT_FAST8_g() { * extern hid_t H5T_NATIVE_UINT_FAST8_g * } */ - public static void H5T_NATIVE_UINT_FAST8_g(long varValue) { + public static void H5T_NATIVE_UINT_FAST8_g(long varValue) + { H5T_NATIVE_UINT_FAST8_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST8_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1244,9 +1256,7 @@ private static class H5T_NATIVE_INT16_g$constants { * extern hid_t H5T_NATIVE_INT16_g * } */ - public static OfLong H5T_NATIVE_INT16_g$layout() { - return H5T_NATIVE_INT16_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT16_g$layout() { return H5T_NATIVE_INT16_g$constants.LAYOUT; } /** * Segment for variable: @@ -1254,9 +1264,7 @@ private static class H5T_NATIVE_INT16_g$constants { * extern hid_t H5T_NATIVE_INT16_g * } */ - public static MemorySegment H5T_NATIVE_INT16_g$segment() { - return H5T_NATIVE_INT16_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_INT16_g$segment() { return H5T_NATIVE_INT16_g$constants.SEGMENT; } /** * Getter for variable: @@ -1264,7 +1272,8 @@ private static class H5T_NATIVE_INT16_g$constants { * extern hid_t H5T_NATIVE_INT16_g * } */ - public static long H5T_NATIVE_INT16_g() { + public static long H5T_NATIVE_INT16_g() + { return H5T_NATIVE_INT16_g$constants.SEGMENT.get(H5T_NATIVE_INT16_g$constants.LAYOUT, 0L); } @@ -1274,13 +1283,15 @@ public static long H5T_NATIVE_INT16_g() { * extern hid_t H5T_NATIVE_INT16_g * } */ - public static void H5T_NATIVE_INT16_g(long varValue) { + public static void H5T_NATIVE_INT16_g(long varValue) + { H5T_NATIVE_INT16_g$constants.SEGMENT.set(H5T_NATIVE_INT16_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1289,9 +1300,7 @@ private static class H5T_NATIVE_UINT16_g$constants { * extern hid_t H5T_NATIVE_UINT16_g * } */ - public static OfLong H5T_NATIVE_UINT16_g$layout() { - return H5T_NATIVE_UINT16_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT16_g$layout() { return H5T_NATIVE_UINT16_g$constants.LAYOUT; } /** * Segment for variable: @@ -1299,7 +1308,8 @@ private static class H5T_NATIVE_UINT16_g$constants { * extern hid_t H5T_NATIVE_UINT16_g * } */ - public static MemorySegment H5T_NATIVE_UINT16_g$segment() { + public static MemorySegment H5T_NATIVE_UINT16_g$segment() + { return H5T_NATIVE_UINT16_g$constants.SEGMENT; } @@ -1309,7 +1319,8 @@ private static class H5T_NATIVE_UINT16_g$constants { * extern hid_t H5T_NATIVE_UINT16_g * } */ - public static long H5T_NATIVE_UINT16_g() { + public static long H5T_NATIVE_UINT16_g() + { return H5T_NATIVE_UINT16_g$constants.SEGMENT.get(H5T_NATIVE_UINT16_g$constants.LAYOUT, 0L); } @@ -1319,13 +1330,15 @@ public static long H5T_NATIVE_UINT16_g() { * extern hid_t H5T_NATIVE_UINT16_g * } */ - public static void H5T_NATIVE_UINT16_g(long varValue) { + public static void H5T_NATIVE_UINT16_g(long varValue) + { H5T_NATIVE_UINT16_g$constants.SEGMENT.set(H5T_NATIVE_UINT16_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT_LEAST16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1334,7 +1347,8 @@ private static class H5T_NATIVE_INT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST16_g * } */ - public static OfLong H5T_NATIVE_INT_LEAST16_g$layout() { + public static OfLong H5T_NATIVE_INT_LEAST16_g$layout() + { return H5T_NATIVE_INT_LEAST16_g$constants.LAYOUT; } @@ -1344,7 +1358,8 @@ private static class H5T_NATIVE_INT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST16_g * } */ - public static MemorySegment H5T_NATIVE_INT_LEAST16_g$segment() { + public static MemorySegment H5T_NATIVE_INT_LEAST16_g$segment() + { return H5T_NATIVE_INT_LEAST16_g$constants.SEGMENT; } @@ -1354,7 +1369,8 @@ private static class H5T_NATIVE_INT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST16_g * } */ - public static long H5T_NATIVE_INT_LEAST16_g() { + public static long H5T_NATIVE_INT_LEAST16_g() + { return H5T_NATIVE_INT_LEAST16_g$constants.SEGMENT.get(H5T_NATIVE_INT_LEAST16_g$constants.LAYOUT, 0L); } @@ -1364,13 +1380,16 @@ public static long H5T_NATIVE_INT_LEAST16_g() { * extern hid_t H5T_NATIVE_INT_LEAST16_g * } */ - public static void H5T_NATIVE_INT_LEAST16_g(long varValue) { - H5T_NATIVE_INT_LEAST16_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST16_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_INT_LEAST16_g(long varValue) + { + H5T_NATIVE_INT_LEAST16_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST16_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_UINT_LEAST16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1379,7 +1398,8 @@ private static class H5T_NATIVE_UINT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST16_g * } */ - public static OfLong H5T_NATIVE_UINT_LEAST16_g$layout() { + public static OfLong H5T_NATIVE_UINT_LEAST16_g$layout() + { return H5T_NATIVE_UINT_LEAST16_g$constants.LAYOUT; } @@ -1389,7 +1409,8 @@ private static class H5T_NATIVE_UINT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST16_g * } */ - public static MemorySegment H5T_NATIVE_UINT_LEAST16_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_LEAST16_g$segment() + { return H5T_NATIVE_UINT_LEAST16_g$constants.SEGMENT; } @@ -1399,8 +1420,10 @@ private static class H5T_NATIVE_UINT_LEAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST16_g * } */ - public static long H5T_NATIVE_UINT_LEAST16_g() { - return H5T_NATIVE_UINT_LEAST16_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST16_g$constants.LAYOUT, 0L); + public static long H5T_NATIVE_UINT_LEAST16_g() + { + return H5T_NATIVE_UINT_LEAST16_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST16_g$constants.LAYOUT, + 0L); } /** @@ -1409,13 +1432,16 @@ public static long H5T_NATIVE_UINT_LEAST16_g() { * extern hid_t H5T_NATIVE_UINT_LEAST16_g * } */ - public static void H5T_NATIVE_UINT_LEAST16_g(long varValue) { - H5T_NATIVE_UINT_LEAST16_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST16_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_LEAST16_g(long varValue) + { + H5T_NATIVE_UINT_LEAST16_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST16_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT_FAST16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1424,9 +1450,7 @@ private static class H5T_NATIVE_INT_FAST16_g$constants { * extern hid_t H5T_NATIVE_INT_FAST16_g * } */ - public static OfLong H5T_NATIVE_INT_FAST16_g$layout() { - return H5T_NATIVE_INT_FAST16_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_FAST16_g$layout() { return H5T_NATIVE_INT_FAST16_g$constants.LAYOUT; } /** * Segment for variable: @@ -1434,7 +1458,8 @@ private static class H5T_NATIVE_INT_FAST16_g$constants { * extern hid_t H5T_NATIVE_INT_FAST16_g * } */ - public static MemorySegment H5T_NATIVE_INT_FAST16_g$segment() { + public static MemorySegment H5T_NATIVE_INT_FAST16_g$segment() + { return H5T_NATIVE_INT_FAST16_g$constants.SEGMENT; } @@ -1444,7 +1469,8 @@ private static class H5T_NATIVE_INT_FAST16_g$constants { * extern hid_t H5T_NATIVE_INT_FAST16_g * } */ - public static long H5T_NATIVE_INT_FAST16_g() { + public static long H5T_NATIVE_INT_FAST16_g() + { return H5T_NATIVE_INT_FAST16_g$constants.SEGMENT.get(H5T_NATIVE_INT_FAST16_g$constants.LAYOUT, 0L); } @@ -1454,13 +1480,15 @@ public static long H5T_NATIVE_INT_FAST16_g() { * extern hid_t H5T_NATIVE_INT_FAST16_g * } */ - public static void H5T_NATIVE_INT_FAST16_g(long varValue) { + public static void H5T_NATIVE_INT_FAST16_g(long varValue) + { H5T_NATIVE_INT_FAST16_g$constants.SEGMENT.set(H5T_NATIVE_INT_FAST16_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_FAST16_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST16_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST16_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1469,7 +1497,8 @@ private static class H5T_NATIVE_UINT_FAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST16_g * } */ - public static OfLong H5T_NATIVE_UINT_FAST16_g$layout() { + public static OfLong H5T_NATIVE_UINT_FAST16_g$layout() + { return H5T_NATIVE_UINT_FAST16_g$constants.LAYOUT; } @@ -1479,7 +1508,8 @@ private static class H5T_NATIVE_UINT_FAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST16_g * } */ - public static MemorySegment H5T_NATIVE_UINT_FAST16_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_FAST16_g$segment() + { return H5T_NATIVE_UINT_FAST16_g$constants.SEGMENT; } @@ -1489,7 +1519,8 @@ private static class H5T_NATIVE_UINT_FAST16_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST16_g * } */ - public static long H5T_NATIVE_UINT_FAST16_g() { + public static long H5T_NATIVE_UINT_FAST16_g() + { return H5T_NATIVE_UINT_FAST16_g$constants.SEGMENT.get(H5T_NATIVE_UINT_FAST16_g$constants.LAYOUT, 0L); } @@ -1499,13 +1530,16 @@ public static long H5T_NATIVE_UINT_FAST16_g() { * extern hid_t H5T_NATIVE_UINT_FAST16_g * } */ - public static void H5T_NATIVE_UINT_FAST16_g(long varValue) { - H5T_NATIVE_UINT_FAST16_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST16_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_FAST16_g(long varValue) + { + H5T_NATIVE_UINT_FAST16_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST16_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1514,9 +1548,7 @@ private static class H5T_NATIVE_INT32_g$constants { * extern hid_t H5T_NATIVE_INT32_g * } */ - public static OfLong H5T_NATIVE_INT32_g$layout() { - return H5T_NATIVE_INT32_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT32_g$layout() { return H5T_NATIVE_INT32_g$constants.LAYOUT; } /** * Segment for variable: @@ -1524,9 +1556,7 @@ private static class H5T_NATIVE_INT32_g$constants { * extern hid_t H5T_NATIVE_INT32_g * } */ - public static MemorySegment H5T_NATIVE_INT32_g$segment() { - return H5T_NATIVE_INT32_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_INT32_g$segment() { return H5T_NATIVE_INT32_g$constants.SEGMENT; } /** * Getter for variable: @@ -1534,7 +1564,8 @@ private static class H5T_NATIVE_INT32_g$constants { * extern hid_t H5T_NATIVE_INT32_g * } */ - public static long H5T_NATIVE_INT32_g() { + public static long H5T_NATIVE_INT32_g() + { return H5T_NATIVE_INT32_g$constants.SEGMENT.get(H5T_NATIVE_INT32_g$constants.LAYOUT, 0L); } @@ -1544,13 +1575,15 @@ public static long H5T_NATIVE_INT32_g() { * extern hid_t H5T_NATIVE_INT32_g * } */ - public static void H5T_NATIVE_INT32_g(long varValue) { + public static void H5T_NATIVE_INT32_g(long varValue) + { H5T_NATIVE_INT32_g$constants.SEGMENT.set(H5T_NATIVE_INT32_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1559,9 +1592,7 @@ private static class H5T_NATIVE_UINT32_g$constants { * extern hid_t H5T_NATIVE_UINT32_g * } */ - public static OfLong H5T_NATIVE_UINT32_g$layout() { - return H5T_NATIVE_UINT32_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT32_g$layout() { return H5T_NATIVE_UINT32_g$constants.LAYOUT; } /** * Segment for variable: @@ -1569,7 +1600,8 @@ private static class H5T_NATIVE_UINT32_g$constants { * extern hid_t H5T_NATIVE_UINT32_g * } */ - public static MemorySegment H5T_NATIVE_UINT32_g$segment() { + public static MemorySegment H5T_NATIVE_UINT32_g$segment() + { return H5T_NATIVE_UINT32_g$constants.SEGMENT; } @@ -1579,7 +1611,8 @@ private static class H5T_NATIVE_UINT32_g$constants { * extern hid_t H5T_NATIVE_UINT32_g * } */ - public static long H5T_NATIVE_UINT32_g() { + public static long H5T_NATIVE_UINT32_g() + { return H5T_NATIVE_UINT32_g$constants.SEGMENT.get(H5T_NATIVE_UINT32_g$constants.LAYOUT, 0L); } @@ -1589,13 +1622,15 @@ public static long H5T_NATIVE_UINT32_g() { * extern hid_t H5T_NATIVE_UINT32_g * } */ - public static void H5T_NATIVE_UINT32_g(long varValue) { + public static void H5T_NATIVE_UINT32_g(long varValue) + { H5T_NATIVE_UINT32_g$constants.SEGMENT.set(H5T_NATIVE_UINT32_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT_LEAST32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1604,7 +1639,8 @@ private static class H5T_NATIVE_INT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST32_g * } */ - public static OfLong H5T_NATIVE_INT_LEAST32_g$layout() { + public static OfLong H5T_NATIVE_INT_LEAST32_g$layout() + { return H5T_NATIVE_INT_LEAST32_g$constants.LAYOUT; } @@ -1614,7 +1650,8 @@ private static class H5T_NATIVE_INT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST32_g * } */ - public static MemorySegment H5T_NATIVE_INT_LEAST32_g$segment() { + public static MemorySegment H5T_NATIVE_INT_LEAST32_g$segment() + { return H5T_NATIVE_INT_LEAST32_g$constants.SEGMENT; } @@ -1624,7 +1661,8 @@ private static class H5T_NATIVE_INT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST32_g * } */ - public static long H5T_NATIVE_INT_LEAST32_g() { + public static long H5T_NATIVE_INT_LEAST32_g() + { return H5T_NATIVE_INT_LEAST32_g$constants.SEGMENT.get(H5T_NATIVE_INT_LEAST32_g$constants.LAYOUT, 0L); } @@ -1634,13 +1672,16 @@ public static long H5T_NATIVE_INT_LEAST32_g() { * extern hid_t H5T_NATIVE_INT_LEAST32_g * } */ - public static void H5T_NATIVE_INT_LEAST32_g(long varValue) { - H5T_NATIVE_INT_LEAST32_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST32_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_INT_LEAST32_g(long varValue) + { + H5T_NATIVE_INT_LEAST32_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST32_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_UINT_LEAST32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1649,7 +1690,8 @@ private static class H5T_NATIVE_UINT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST32_g * } */ - public static OfLong H5T_NATIVE_UINT_LEAST32_g$layout() { + public static OfLong H5T_NATIVE_UINT_LEAST32_g$layout() + { return H5T_NATIVE_UINT_LEAST32_g$constants.LAYOUT; } @@ -1659,7 +1701,8 @@ private static class H5T_NATIVE_UINT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST32_g * } */ - public static MemorySegment H5T_NATIVE_UINT_LEAST32_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_LEAST32_g$segment() + { return H5T_NATIVE_UINT_LEAST32_g$constants.SEGMENT; } @@ -1669,8 +1712,10 @@ private static class H5T_NATIVE_UINT_LEAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST32_g * } */ - public static long H5T_NATIVE_UINT_LEAST32_g() { - return H5T_NATIVE_UINT_LEAST32_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST32_g$constants.LAYOUT, 0L); + public static long H5T_NATIVE_UINT_LEAST32_g() + { + return H5T_NATIVE_UINT_LEAST32_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST32_g$constants.LAYOUT, + 0L); } /** @@ -1679,13 +1724,16 @@ public static long H5T_NATIVE_UINT_LEAST32_g() { * extern hid_t H5T_NATIVE_UINT_LEAST32_g * } */ - public static void H5T_NATIVE_UINT_LEAST32_g(long varValue) { - H5T_NATIVE_UINT_LEAST32_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST32_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_LEAST32_g(long varValue) + { + H5T_NATIVE_UINT_LEAST32_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST32_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT_FAST32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1694,9 +1742,7 @@ private static class H5T_NATIVE_INT_FAST32_g$constants { * extern hid_t H5T_NATIVE_INT_FAST32_g * } */ - public static OfLong H5T_NATIVE_INT_FAST32_g$layout() { - return H5T_NATIVE_INT_FAST32_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_FAST32_g$layout() { return H5T_NATIVE_INT_FAST32_g$constants.LAYOUT; } /** * Segment for variable: @@ -1704,7 +1750,8 @@ private static class H5T_NATIVE_INT_FAST32_g$constants { * extern hid_t H5T_NATIVE_INT_FAST32_g * } */ - public static MemorySegment H5T_NATIVE_INT_FAST32_g$segment() { + public static MemorySegment H5T_NATIVE_INT_FAST32_g$segment() + { return H5T_NATIVE_INT_FAST32_g$constants.SEGMENT; } @@ -1714,7 +1761,8 @@ private static class H5T_NATIVE_INT_FAST32_g$constants { * extern hid_t H5T_NATIVE_INT_FAST32_g * } */ - public static long H5T_NATIVE_INT_FAST32_g() { + public static long H5T_NATIVE_INT_FAST32_g() + { return H5T_NATIVE_INT_FAST32_g$constants.SEGMENT.get(H5T_NATIVE_INT_FAST32_g$constants.LAYOUT, 0L); } @@ -1724,13 +1772,15 @@ public static long H5T_NATIVE_INT_FAST32_g() { * extern hid_t H5T_NATIVE_INT_FAST32_g * } */ - public static void H5T_NATIVE_INT_FAST32_g(long varValue) { + public static void H5T_NATIVE_INT_FAST32_g(long varValue) + { H5T_NATIVE_INT_FAST32_g$constants.SEGMENT.set(H5T_NATIVE_INT_FAST32_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_FAST32_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST32_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST32_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1739,7 +1789,8 @@ private static class H5T_NATIVE_UINT_FAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST32_g * } */ - public static OfLong H5T_NATIVE_UINT_FAST32_g$layout() { + public static OfLong H5T_NATIVE_UINT_FAST32_g$layout() + { return H5T_NATIVE_UINT_FAST32_g$constants.LAYOUT; } @@ -1749,7 +1800,8 @@ private static class H5T_NATIVE_UINT_FAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST32_g * } */ - public static MemorySegment H5T_NATIVE_UINT_FAST32_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_FAST32_g$segment() + { return H5T_NATIVE_UINT_FAST32_g$constants.SEGMENT; } @@ -1759,7 +1811,8 @@ private static class H5T_NATIVE_UINT_FAST32_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST32_g * } */ - public static long H5T_NATIVE_UINT_FAST32_g() { + public static long H5T_NATIVE_UINT_FAST32_g() + { return H5T_NATIVE_UINT_FAST32_g$constants.SEGMENT.get(H5T_NATIVE_UINT_FAST32_g$constants.LAYOUT, 0L); } @@ -1769,13 +1822,16 @@ public static long H5T_NATIVE_UINT_FAST32_g() { * extern hid_t H5T_NATIVE_UINT_FAST32_g * } */ - public static void H5T_NATIVE_UINT_FAST32_g(long varValue) { - H5T_NATIVE_UINT_FAST32_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST32_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_FAST32_g(long varValue) + { + H5T_NATIVE_UINT_FAST32_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST32_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1784,9 +1840,7 @@ private static class H5T_NATIVE_INT64_g$constants { * extern hid_t H5T_NATIVE_INT64_g * } */ - public static OfLong H5T_NATIVE_INT64_g$layout() { - return H5T_NATIVE_INT64_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT64_g$layout() { return H5T_NATIVE_INT64_g$constants.LAYOUT; } /** * Segment for variable: @@ -1794,9 +1848,7 @@ private static class H5T_NATIVE_INT64_g$constants { * extern hid_t H5T_NATIVE_INT64_g * } */ - public static MemorySegment H5T_NATIVE_INT64_g$segment() { - return H5T_NATIVE_INT64_g$constants.SEGMENT; - } + public static MemorySegment H5T_NATIVE_INT64_g$segment() { return H5T_NATIVE_INT64_g$constants.SEGMENT; } /** * Getter for variable: @@ -1804,7 +1856,8 @@ private static class H5T_NATIVE_INT64_g$constants { * extern hid_t H5T_NATIVE_INT64_g * } */ - public static long H5T_NATIVE_INT64_g() { + public static long H5T_NATIVE_INT64_g() + { return H5T_NATIVE_INT64_g$constants.SEGMENT.get(H5T_NATIVE_INT64_g$constants.LAYOUT, 0L); } @@ -1814,13 +1867,15 @@ public static long H5T_NATIVE_INT64_g() { * extern hid_t H5T_NATIVE_INT64_g * } */ - public static void H5T_NATIVE_INT64_g(long varValue) { + public static void H5T_NATIVE_INT64_g(long varValue) + { H5T_NATIVE_INT64_g$constants.SEGMENT.set(H5T_NATIVE_INT64_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1829,9 +1884,7 @@ private static class H5T_NATIVE_UINT64_g$constants { * extern hid_t H5T_NATIVE_UINT64_g * } */ - public static OfLong H5T_NATIVE_UINT64_g$layout() { - return H5T_NATIVE_UINT64_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_UINT64_g$layout() { return H5T_NATIVE_UINT64_g$constants.LAYOUT; } /** * Segment for variable: @@ -1839,7 +1892,8 @@ private static class H5T_NATIVE_UINT64_g$constants { * extern hid_t H5T_NATIVE_UINT64_g * } */ - public static MemorySegment H5T_NATIVE_UINT64_g$segment() { + public static MemorySegment H5T_NATIVE_UINT64_g$segment() + { return H5T_NATIVE_UINT64_g$constants.SEGMENT; } @@ -1849,7 +1903,8 @@ private static class H5T_NATIVE_UINT64_g$constants { * extern hid_t H5T_NATIVE_UINT64_g * } */ - public static long H5T_NATIVE_UINT64_g() { + public static long H5T_NATIVE_UINT64_g() + { return H5T_NATIVE_UINT64_g$constants.SEGMENT.get(H5T_NATIVE_UINT64_g$constants.LAYOUT, 0L); } @@ -1859,13 +1914,15 @@ public static long H5T_NATIVE_UINT64_g() { * extern hid_t H5T_NATIVE_UINT64_g * } */ - public static void H5T_NATIVE_UINT64_g(long varValue) { + public static void H5T_NATIVE_UINT64_g(long varValue) + { H5T_NATIVE_UINT64_g$constants.SEGMENT.set(H5T_NATIVE_UINT64_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_INT_LEAST64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_LEAST64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1874,7 +1931,8 @@ private static class H5T_NATIVE_INT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST64_g * } */ - public static OfLong H5T_NATIVE_INT_LEAST64_g$layout() { + public static OfLong H5T_NATIVE_INT_LEAST64_g$layout() + { return H5T_NATIVE_INT_LEAST64_g$constants.LAYOUT; } @@ -1884,7 +1942,8 @@ private static class H5T_NATIVE_INT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST64_g * } */ - public static MemorySegment H5T_NATIVE_INT_LEAST64_g$segment() { + public static MemorySegment H5T_NATIVE_INT_LEAST64_g$segment() + { return H5T_NATIVE_INT_LEAST64_g$constants.SEGMENT; } @@ -1894,7 +1953,8 @@ private static class H5T_NATIVE_INT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_INT_LEAST64_g * } */ - public static long H5T_NATIVE_INT_LEAST64_g() { + public static long H5T_NATIVE_INT_LEAST64_g() + { return H5T_NATIVE_INT_LEAST64_g$constants.SEGMENT.get(H5T_NATIVE_INT_LEAST64_g$constants.LAYOUT, 0L); } @@ -1904,13 +1964,16 @@ public static long H5T_NATIVE_INT_LEAST64_g() { * extern hid_t H5T_NATIVE_INT_LEAST64_g * } */ - public static void H5T_NATIVE_INT_LEAST64_g(long varValue) { - H5T_NATIVE_INT_LEAST64_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST64_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_INT_LEAST64_g(long varValue) + { + H5T_NATIVE_INT_LEAST64_g$constants.SEGMENT.set(H5T_NATIVE_INT_LEAST64_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_UINT_LEAST64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_LEAST64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1919,7 +1982,8 @@ private static class H5T_NATIVE_UINT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST64_g * } */ - public static OfLong H5T_NATIVE_UINT_LEAST64_g$layout() { + public static OfLong H5T_NATIVE_UINT_LEAST64_g$layout() + { return H5T_NATIVE_UINT_LEAST64_g$constants.LAYOUT; } @@ -1929,7 +1993,8 @@ private static class H5T_NATIVE_UINT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST64_g * } */ - public static MemorySegment H5T_NATIVE_UINT_LEAST64_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_LEAST64_g$segment() + { return H5T_NATIVE_UINT_LEAST64_g$constants.SEGMENT; } @@ -1939,8 +2004,10 @@ private static class H5T_NATIVE_UINT_LEAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_LEAST64_g * } */ - public static long H5T_NATIVE_UINT_LEAST64_g() { - return H5T_NATIVE_UINT_LEAST64_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST64_g$constants.LAYOUT, 0L); + public static long H5T_NATIVE_UINT_LEAST64_g() + { + return H5T_NATIVE_UINT_LEAST64_g$constants.SEGMENT.get(H5T_NATIVE_UINT_LEAST64_g$constants.LAYOUT, + 0L); } /** @@ -1949,13 +2016,16 @@ public static long H5T_NATIVE_UINT_LEAST64_g() { * extern hid_t H5T_NATIVE_UINT_LEAST64_g * } */ - public static void H5T_NATIVE_UINT_LEAST64_g(long varValue) { - H5T_NATIVE_UINT_LEAST64_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST64_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_LEAST64_g(long varValue) + { + H5T_NATIVE_UINT_LEAST64_g$constants.SEGMENT.set(H5T_NATIVE_UINT_LEAST64_g$constants.LAYOUT, 0L, + varValue); } private static class H5T_NATIVE_INT_FAST64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_INT_FAST64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -1964,9 +2034,7 @@ private static class H5T_NATIVE_INT_FAST64_g$constants { * extern hid_t H5T_NATIVE_INT_FAST64_g * } */ - public static OfLong H5T_NATIVE_INT_FAST64_g$layout() { - return H5T_NATIVE_INT_FAST64_g$constants.LAYOUT; - } + public static OfLong H5T_NATIVE_INT_FAST64_g$layout() { return H5T_NATIVE_INT_FAST64_g$constants.LAYOUT; } /** * Segment for variable: @@ -1974,7 +2042,8 @@ private static class H5T_NATIVE_INT_FAST64_g$constants { * extern hid_t H5T_NATIVE_INT_FAST64_g * } */ - public static MemorySegment H5T_NATIVE_INT_FAST64_g$segment() { + public static MemorySegment H5T_NATIVE_INT_FAST64_g$segment() + { return H5T_NATIVE_INT_FAST64_g$constants.SEGMENT; } @@ -1984,7 +2053,8 @@ private static class H5T_NATIVE_INT_FAST64_g$constants { * extern hid_t H5T_NATIVE_INT_FAST64_g * } */ - public static long H5T_NATIVE_INT_FAST64_g() { + public static long H5T_NATIVE_INT_FAST64_g() + { return H5T_NATIVE_INT_FAST64_g$constants.SEGMENT.get(H5T_NATIVE_INT_FAST64_g$constants.LAYOUT, 0L); } @@ -1994,13 +2064,15 @@ public static long H5T_NATIVE_INT_FAST64_g() { * extern hid_t H5T_NATIVE_INT_FAST64_g * } */ - public static void H5T_NATIVE_INT_FAST64_g(long varValue) { + public static void H5T_NATIVE_INT_FAST64_g(long varValue) + { H5T_NATIVE_INT_FAST64_g$constants.SEGMENT.set(H5T_NATIVE_INT_FAST64_g$constants.LAYOUT, 0L, varValue); } private static class H5T_NATIVE_UINT_FAST64_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST64_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5T_NATIVE_UINT_FAST64_g").reinterpret(LAYOUT.byteSize()); } /** @@ -2009,7 +2081,8 @@ private static class H5T_NATIVE_UINT_FAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST64_g * } */ - public static OfLong H5T_NATIVE_UINT_FAST64_g$layout() { + public static OfLong H5T_NATIVE_UINT_FAST64_g$layout() + { return H5T_NATIVE_UINT_FAST64_g$constants.LAYOUT; } @@ -2019,7 +2092,8 @@ private static class H5T_NATIVE_UINT_FAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST64_g * } */ - public static MemorySegment H5T_NATIVE_UINT_FAST64_g$segment() { + public static MemorySegment H5T_NATIVE_UINT_FAST64_g$segment() + { return H5T_NATIVE_UINT_FAST64_g$constants.SEGMENT; } @@ -2029,7 +2103,8 @@ private static class H5T_NATIVE_UINT_FAST64_g$constants { * extern hid_t H5T_NATIVE_UINT_FAST64_g * } */ - public static long H5T_NATIVE_UINT_FAST64_g() { + public static long H5T_NATIVE_UINT_FAST64_g() + { return H5T_NATIVE_UINT_FAST64_g$constants.SEGMENT.get(H5T_NATIVE_UINT_FAST64_g$constants.LAYOUT, 0L); } @@ -2039,16 +2114,15 @@ public static long H5T_NATIVE_UINT_FAST64_g() { * extern hid_t H5T_NATIVE_UINT_FAST64_g * } */ - public static void H5T_NATIVE_UINT_FAST64_g(long varValue) { - H5T_NATIVE_UINT_FAST64_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST64_g$constants.LAYOUT, 0L, varValue); + public static void H5T_NATIVE_UINT_FAST64_g(long varValue) + { + H5T_NATIVE_UINT_FAST64_g$constants.SEGMENT.set(H5T_NATIVE_UINT_FAST64_g$constants.LAYOUT, 0L, + varValue); } private static class H5Tcreate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcreate"); @@ -2061,9 +2135,7 @@ private static class H5Tcreate { * hid_t H5Tcreate(H5T_class_t type, size_t size) * } */ - public static FunctionDescriptor H5Tcreate$descriptor() { - return H5Tcreate.DESC; - } + public static FunctionDescriptor H5Tcreate$descriptor() { return H5Tcreate.DESC; } /** * Downcall method handle for: @@ -2071,9 +2143,7 @@ private static class H5Tcreate { * hid_t H5Tcreate(H5T_class_t type, size_t size) * } */ - public static MethodHandle H5Tcreate$handle() { - return H5Tcreate.HANDLE; - } + public static MethodHandle H5Tcreate$handle() { return H5Tcreate.HANDLE; } /** * Address for: @@ -2081,32 +2151,29 @@ private static class H5Tcreate { * hid_t H5Tcreate(H5T_class_t type, size_t size) * } */ - public static MemorySegment H5Tcreate$address() { - return H5Tcreate.ADDR; - } + public static MemorySegment H5Tcreate$address() { return H5Tcreate.ADDR; } /** * {@snippet lang=c : * hid_t H5Tcreate(H5T_class_t type, size_t size) * } */ - public static long H5Tcreate(int type, long size) { + public static long H5Tcreate(int type, long size) + { var mh$ = H5Tcreate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcreate", type, size); } return (long)mh$.invokeExact(type, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcopy"); @@ -2119,9 +2186,7 @@ private static class H5Tcopy { * hid_t H5Tcopy(hid_t type_id) * } */ - public static FunctionDescriptor H5Tcopy$descriptor() { - return H5Tcopy.DESC; - } + public static FunctionDescriptor H5Tcopy$descriptor() { return H5Tcopy.DESC; } /** * Downcall method handle for: @@ -2129,9 +2194,7 @@ private static class H5Tcopy { * hid_t H5Tcopy(hid_t type_id) * } */ - public static MethodHandle H5Tcopy$handle() { - return H5Tcopy.HANDLE; - } + public static MethodHandle H5Tcopy$handle() { return H5Tcopy.HANDLE; } /** * Address for: @@ -2139,32 +2202,29 @@ private static class H5Tcopy { * hid_t H5Tcopy(hid_t type_id) * } */ - public static MemorySegment H5Tcopy$address() { - return H5Tcopy.ADDR; - } + public static MemorySegment H5Tcopy$address() { return H5Tcopy.ADDR; } /** * {@snippet lang=c : * hid_t H5Tcopy(hid_t type_id) * } */ - public static long H5Tcopy(long type_id) { + public static long H5Tcopy(long type_id) + { var mh$ = H5Tcopy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcopy", type_id); } return (long)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tclose"); @@ -2177,9 +2237,7 @@ private static class H5Tclose { * herr_t H5Tclose(hid_t type_id) * } */ - public static FunctionDescriptor H5Tclose$descriptor() { - return H5Tclose.DESC; - } + public static FunctionDescriptor H5Tclose$descriptor() { return H5Tclose.DESC; } /** * Downcall method handle for: @@ -2187,9 +2245,7 @@ private static class H5Tclose { * herr_t H5Tclose(hid_t type_id) * } */ - public static MethodHandle H5Tclose$handle() { - return H5Tclose.HANDLE; - } + public static MethodHandle H5Tclose$handle() { return H5Tclose.HANDLE; } /** * Address for: @@ -2197,36 +2253,30 @@ private static class H5Tclose { * herr_t H5Tclose(hid_t type_id) * } */ - public static MemorySegment H5Tclose$address() { - return H5Tclose.ADDR; - } + public static MemorySegment H5Tclose$address() { return H5Tclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Tclose(hid_t type_id) * } */ - public static int H5Tclose(long type_id) { + public static int H5Tclose(long type_id) + { var mh$ = H5Tclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tclose", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tclose_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tclose_async"); @@ -2236,56 +2286,54 @@ private static class H5Tclose_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, hid_t es_id) + * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Tclose_async$descriptor() { - return H5Tclose_async.DESC; - } + public static FunctionDescriptor H5Tclose_async$descriptor() { return H5Tclose_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, hid_t es_id) + * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, + * hid_t es_id) * } */ - public static MethodHandle H5Tclose_async$handle() { - return H5Tclose_async.HANDLE; - } + public static MethodHandle H5Tclose_async$handle() { return H5Tclose_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, hid_t es_id) + * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, + * hid_t es_id) * } */ - public static MemorySegment H5Tclose_async$address() { - return H5Tclose_async.ADDR; - } + public static MemorySegment H5Tclose_async$address() { return H5Tclose_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, hid_t es_id) + * herr_t H5Tclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, + * hid_t es_id) * } */ - public static int H5Tclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, long type_id, long es_id) { + public static int H5Tclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long type_id, long es_id) + { var mh$ = H5Tclose_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tclose_async", app_file, app_func, app_line, type_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, type_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tequal { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tequal"); @@ -2298,9 +2346,7 @@ private static class H5Tequal { * htri_t H5Tequal(hid_t type1_id, hid_t type2_id) * } */ - public static FunctionDescriptor H5Tequal$descriptor() { - return H5Tequal.DESC; - } + public static FunctionDescriptor H5Tequal$descriptor() { return H5Tequal.DESC; } /** * Downcall method handle for: @@ -2308,9 +2354,7 @@ private static class H5Tequal { * htri_t H5Tequal(hid_t type1_id, hid_t type2_id) * } */ - public static MethodHandle H5Tequal$handle() { - return H5Tequal.HANDLE; - } + public static MethodHandle H5Tequal$handle() { return H5Tequal.HANDLE; } /** * Address for: @@ -2318,32 +2362,29 @@ private static class H5Tequal { * htri_t H5Tequal(hid_t type1_id, hid_t type2_id) * } */ - public static MemorySegment H5Tequal$address() { - return H5Tequal.ADDR; - } + public static MemorySegment H5Tequal$address() { return H5Tequal.ADDR; } /** * {@snippet lang=c : * htri_t H5Tequal(hid_t type1_id, hid_t type2_id) * } */ - public static int H5Tequal(long type1_id, long type2_id) { + public static int H5Tequal(long type1_id, long type2_id) + { var mh$ = H5Tequal.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tequal", type1_id, type2_id); } return (int)mh$.invokeExact(type1_id, type2_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tlock { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tlock"); @@ -2356,9 +2397,7 @@ private static class H5Tlock { * herr_t H5Tlock(hid_t type_id) * } */ - public static FunctionDescriptor H5Tlock$descriptor() { - return H5Tlock.DESC; - } + public static FunctionDescriptor H5Tlock$descriptor() { return H5Tlock.DESC; } /** * Downcall method handle for: @@ -2366,9 +2405,7 @@ private static class H5Tlock { * herr_t H5Tlock(hid_t type_id) * } */ - public static MethodHandle H5Tlock$handle() { - return H5Tlock.HANDLE; - } + public static MethodHandle H5Tlock$handle() { return H5Tlock.HANDLE; } /** * Address for: @@ -2376,37 +2413,31 @@ private static class H5Tlock { * herr_t H5Tlock(hid_t type_id) * } */ - public static MemorySegment H5Tlock$address() { - return H5Tlock.ADDR; - } + public static MemorySegment H5Tlock$address() { return H5Tlock.ADDR; } /** * {@snippet lang=c : * herr_t H5Tlock(hid_t type_id) * } */ - public static int H5Tlock(long type_id) { + public static int H5Tlock(long type_id) + { var mh$ = H5Tlock.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tlock", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcommit2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcommit2"); @@ -2416,64 +2447,55 @@ private static class H5Tcommit2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id) + * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t + * tapl_id) * } */ - public static FunctionDescriptor H5Tcommit2$descriptor() { - return H5Tcommit2.DESC; - } + public static FunctionDescriptor H5Tcommit2$descriptor() { return H5Tcommit2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id) + * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t + * tapl_id) * } */ - public static MethodHandle H5Tcommit2$handle() { - return H5Tcommit2.HANDLE; - } + public static MethodHandle H5Tcommit2$handle() { return H5Tcommit2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id) + * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t + * tapl_id) * } */ - public static MemorySegment H5Tcommit2$address() { - return H5Tcommit2.ADDR; - } + public static MemorySegment H5Tcommit2$address() { return H5Tcommit2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id) + * herr_t H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t + * tapl_id) * } */ - public static int H5Tcommit2(long loc_id, MemorySegment name, long type_id, long lcpl_id, long tcpl_id, long tapl_id) { + public static int H5Tcommit2(long loc_id, MemorySegment name, long type_id, long lcpl_id, long tcpl_id, + long tapl_id) + { var mh$ = H5Tcommit2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcommit2", loc_id, name, type_id, lcpl_id, tcpl_id, tapl_id); } return (int)mh$.invokeExact(loc_id, name, type_id, lcpl_id, tcpl_id, tapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcommit_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcommit_async"); @@ -2483,57 +2505,57 @@ private static class H5Tcommit_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) + * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Tcommit_async$descriptor() { - return H5Tcommit_async.DESC; - } + public static FunctionDescriptor H5Tcommit_async$descriptor() { return H5Tcommit_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) + * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) * } */ - public static MethodHandle H5Tcommit_async$handle() { - return H5Tcommit_async.HANDLE; - } + public static MethodHandle H5Tcommit_async$handle() { return H5Tcommit_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) + * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) * } */ - public static MemorySegment H5Tcommit_async$address() { - return H5Tcommit_async.ADDR; - } + public static MemorySegment H5Tcommit_async$address() { return H5Tcommit_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) + * herr_t H5Tcommit_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t es_id) * } */ - public static int H5Tcommit_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long type_id, long lcpl_id, long tcpl_id, long tapl_id, long es_id) { + public static int H5Tcommit_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long type_id, long lcpl_id, + long tcpl_id, long tapl_id, long es_id) + { var mh$ = H5Tcommit_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Tcommit_async", app_file, app_func, app_line, loc_id, name, type_id, lcpl_id, tcpl_id, tapl_id, es_id); + traceDowncall("H5Tcommit_async", app_file, app_func, app_line, loc_id, name, type_id, lcpl_id, + tcpl_id, tapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, type_id, lcpl_id, tcpl_id, tapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, type_id, lcpl_id, tcpl_id, + tapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Topen2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Topen2"); @@ -2546,9 +2568,7 @@ private static class H5Topen2 { * hid_t H5Topen2(hid_t loc_id, const char *name, hid_t tapl_id) * } */ - public static FunctionDescriptor H5Topen2$descriptor() { - return H5Topen2.DESC; - } + public static FunctionDescriptor H5Topen2$descriptor() { return H5Topen2.DESC; } /** * Downcall method handle for: @@ -2556,9 +2576,7 @@ private static class H5Topen2 { * hid_t H5Topen2(hid_t loc_id, const char *name, hid_t tapl_id) * } */ - public static MethodHandle H5Topen2$handle() { - return H5Topen2.HANDLE; - } + public static MethodHandle H5Topen2$handle() { return H5Topen2.HANDLE; } /** * Address for: @@ -2566,38 +2584,31 @@ private static class H5Topen2 { * hid_t H5Topen2(hid_t loc_id, const char *name, hid_t tapl_id) * } */ - public static MemorySegment H5Topen2$address() { - return H5Topen2.ADDR; - } + public static MemorySegment H5Topen2$address() { return H5Topen2.ADDR; } /** * {@snippet lang=c : * hid_t H5Topen2(hid_t loc_id, const char *name, hid_t tapl_id) * } */ - public static long H5Topen2(long loc_id, MemorySegment name, long tapl_id) { + public static long H5Topen2(long loc_id, MemorySegment name, long tapl_id) + { var mh$ = H5Topen2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Topen2", loc_id, name, tapl_id); } return (long)mh$.invokeExact(loc_id, name, tapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Topen_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Topen_async"); @@ -2607,58 +2618,54 @@ private static class H5Topen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id) + * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t tapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Topen_async$descriptor() { - return H5Topen_async.DESC; - } + public static FunctionDescriptor H5Topen_async$descriptor() { return H5Topen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id) + * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t tapl_id, hid_t es_id) * } */ - public static MethodHandle H5Topen_async$handle() { - return H5Topen_async.HANDLE; - } + public static MethodHandle H5Topen_async$handle() { return H5Topen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id) + * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t tapl_id, hid_t es_id) * } */ - public static MemorySegment H5Topen_async$address() { - return H5Topen_async.ADDR; - } + public static MemorySegment H5Topen_async$address() { return H5Topen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id) + * hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t tapl_id, hid_t es_id) * } */ - public static long H5Topen_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long tapl_id, long es_id) { + public static long H5Topen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long tapl_id, long es_id) + { var mh$ = H5Topen_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Topen_async", app_file, app_func, app_line, loc_id, name, tapl_id, es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, tapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcommit_anon { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcommit_anon"); @@ -2671,9 +2678,7 @@ private static class H5Tcommit_anon { * herr_t H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id) * } */ - public static FunctionDescriptor H5Tcommit_anon$descriptor() { - return H5Tcommit_anon.DESC; - } + public static FunctionDescriptor H5Tcommit_anon$descriptor() { return H5Tcommit_anon.DESC; } /** * Downcall method handle for: @@ -2681,9 +2686,7 @@ private static class H5Tcommit_anon { * herr_t H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id) * } */ - public static MethodHandle H5Tcommit_anon$handle() { - return H5Tcommit_anon.HANDLE; - } + public static MethodHandle H5Tcommit_anon$handle() { return H5Tcommit_anon.HANDLE; } /** * Address for: @@ -2691,32 +2694,29 @@ private static class H5Tcommit_anon { * herr_t H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id) * } */ - public static MemorySegment H5Tcommit_anon$address() { - return H5Tcommit_anon.ADDR; - } + public static MemorySegment H5Tcommit_anon$address() { return H5Tcommit_anon.ADDR; } /** * {@snippet lang=c : * herr_t H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id) * } */ - public static int H5Tcommit_anon(long loc_id, long type_id, long tcpl_id, long tapl_id) { + public static int H5Tcommit_anon(long loc_id, long type_id, long tcpl_id, long tapl_id) + { var mh$ = H5Tcommit_anon.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcommit_anon", loc_id, type_id, tcpl_id, tapl_id); } return (int)mh$.invokeExact(loc_id, type_id, tcpl_id, tapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_create_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_create_plist"); @@ -2729,9 +2729,7 @@ private static class H5Tget_create_plist { * hid_t H5Tget_create_plist(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_create_plist$descriptor() { - return H5Tget_create_plist.DESC; - } + public static FunctionDescriptor H5Tget_create_plist$descriptor() { return H5Tget_create_plist.DESC; } /** * Downcall method handle for: @@ -2739,9 +2737,7 @@ private static class H5Tget_create_plist { * hid_t H5Tget_create_plist(hid_t type_id) * } */ - public static MethodHandle H5Tget_create_plist$handle() { - return H5Tget_create_plist.HANDLE; - } + public static MethodHandle H5Tget_create_plist$handle() { return H5Tget_create_plist.HANDLE; } /** * Address for: @@ -2749,32 +2745,29 @@ private static class H5Tget_create_plist { * hid_t H5Tget_create_plist(hid_t type_id) * } */ - public static MemorySegment H5Tget_create_plist$address() { - return H5Tget_create_plist.ADDR; - } + public static MemorySegment H5Tget_create_plist$address() { return H5Tget_create_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Tget_create_plist(hid_t type_id) * } */ - public static long H5Tget_create_plist(long type_id) { + public static long H5Tget_create_plist(long type_id) + { var mh$ = H5Tget_create_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_create_plist", type_id); } return (long)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcommitted { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcommitted"); @@ -2787,9 +2780,7 @@ private static class H5Tcommitted { * htri_t H5Tcommitted(hid_t type_id) * } */ - public static FunctionDescriptor H5Tcommitted$descriptor() { - return H5Tcommitted.DESC; - } + public static FunctionDescriptor H5Tcommitted$descriptor() { return H5Tcommitted.DESC; } /** * Downcall method handle for: @@ -2797,9 +2788,7 @@ private static class H5Tcommitted { * htri_t H5Tcommitted(hid_t type_id) * } */ - public static MethodHandle H5Tcommitted$handle() { - return H5Tcommitted.HANDLE; - } + public static MethodHandle H5Tcommitted$handle() { return H5Tcommitted.HANDLE; } /** * Address for: @@ -2807,34 +2796,30 @@ private static class H5Tcommitted { * htri_t H5Tcommitted(hid_t type_id) * } */ - public static MemorySegment H5Tcommitted$address() { - return H5Tcommitted.ADDR; - } + public static MemorySegment H5Tcommitted$address() { return H5Tcommitted.ADDR; } /** * {@snippet lang=c : * htri_t H5Tcommitted(hid_t type_id) * } */ - public static int H5Tcommitted(long type_id) { + public static int H5Tcommitted(long type_id) + { var mh$ = H5Tcommitted.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcommitted", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tencode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tencode"); @@ -2847,9 +2832,7 @@ private static class H5Tencode { * herr_t H5Tencode(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static FunctionDescriptor H5Tencode$descriptor() { - return H5Tencode.DESC; - } + public static FunctionDescriptor H5Tencode$descriptor() { return H5Tencode.DESC; } /** * Downcall method handle for: @@ -2857,9 +2840,7 @@ private static class H5Tencode { * herr_t H5Tencode(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static MethodHandle H5Tencode$handle() { - return H5Tencode.HANDLE; - } + public static MethodHandle H5Tencode$handle() { return H5Tencode.HANDLE; } /** * Address for: @@ -2867,32 +2848,29 @@ private static class H5Tencode { * herr_t H5Tencode(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static MemorySegment H5Tencode$address() { - return H5Tencode.ADDR; - } + public static MemorySegment H5Tencode$address() { return H5Tencode.ADDR; } /** * {@snippet lang=c : * herr_t H5Tencode(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static int H5Tencode(long obj_id, MemorySegment buf, MemorySegment nalloc) { + public static int H5Tencode(long obj_id, MemorySegment buf, MemorySegment nalloc) + { var mh$ = H5Tencode.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tencode", obj_id, buf, nalloc); } return (int)mh$.invokeExact(obj_id, buf, nalloc); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tdecode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tdecode"); @@ -2905,9 +2883,7 @@ private static class H5Tdecode { * hid_t H5Tdecode(const void *buf) * } */ - public static FunctionDescriptor H5Tdecode$descriptor() { - return H5Tdecode.DESC; - } + public static FunctionDescriptor H5Tdecode$descriptor() { return H5Tdecode.DESC; } /** * Downcall method handle for: @@ -2915,9 +2891,7 @@ private static class H5Tdecode { * hid_t H5Tdecode(const void *buf) * } */ - public static MethodHandle H5Tdecode$handle() { - return H5Tdecode.HANDLE; - } + public static MethodHandle H5Tdecode$handle() { return H5Tdecode.HANDLE; } /** * Address for: @@ -2925,32 +2899,29 @@ private static class H5Tdecode { * hid_t H5Tdecode(const void *buf) * } */ - public static MemorySegment H5Tdecode$address() { - return H5Tdecode.ADDR; - } + public static MemorySegment H5Tdecode$address() { return H5Tdecode.ADDR; } /** * {@snippet lang=c : * hid_t H5Tdecode(const void *buf) * } */ - public static long H5Tdecode(MemorySegment buf) { + public static long H5Tdecode(MemorySegment buf) + { var mh$ = H5Tdecode.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tdecode", buf); } return (long)mh$.invokeExact(buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tflush"); @@ -2963,9 +2934,7 @@ private static class H5Tflush { * herr_t H5Tflush(hid_t type_id) * } */ - public static FunctionDescriptor H5Tflush$descriptor() { - return H5Tflush.DESC; - } + public static FunctionDescriptor H5Tflush$descriptor() { return H5Tflush.DESC; } /** * Downcall method handle for: @@ -2973,9 +2942,7 @@ private static class H5Tflush { * herr_t H5Tflush(hid_t type_id) * } */ - public static MethodHandle H5Tflush$handle() { - return H5Tflush.HANDLE; - } + public static MethodHandle H5Tflush$handle() { return H5Tflush.HANDLE; } /** * Address for: @@ -2983,32 +2950,29 @@ private static class H5Tflush { * herr_t H5Tflush(hid_t type_id) * } */ - public static MemorySegment H5Tflush$address() { - return H5Tflush.ADDR; - } + public static MemorySegment H5Tflush$address() { return H5Tflush.ADDR; } /** * {@snippet lang=c : * herr_t H5Tflush(hid_t type_id) * } */ - public static int H5Tflush(long type_id) { + public static int H5Tflush(long type_id) + { var mh$ = H5Tflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tflush", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Trefresh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Trefresh"); @@ -3021,9 +2985,7 @@ private static class H5Trefresh { * herr_t H5Trefresh(hid_t type_id) * } */ - public static FunctionDescriptor H5Trefresh$descriptor() { - return H5Trefresh.DESC; - } + public static FunctionDescriptor H5Trefresh$descriptor() { return H5Trefresh.DESC; } /** * Downcall method handle for: @@ -3031,9 +2993,7 @@ private static class H5Trefresh { * herr_t H5Trefresh(hid_t type_id) * } */ - public static MethodHandle H5Trefresh$handle() { - return H5Trefresh.HANDLE; - } + public static MethodHandle H5Trefresh$handle() { return H5Trefresh.HANDLE; } /** * Address for: @@ -3041,35 +3001,30 @@ private static class H5Trefresh { * herr_t H5Trefresh(hid_t type_id) * } */ - public static MemorySegment H5Trefresh$address() { - return H5Trefresh.ADDR; - } + public static MemorySegment H5Trefresh$address() { return H5Trefresh.ADDR; } /** * {@snippet lang=c : * herr_t H5Trefresh(hid_t type_id) * } */ - public static int H5Trefresh(long type_id) { + public static int H5Trefresh(long type_id) + { var mh$ = H5Trefresh.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Trefresh", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tinsert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tinsert"); @@ -3082,9 +3037,7 @@ private static class H5Tinsert { * herr_t H5Tinsert(hid_t parent_id, const char *name, size_t offset, hid_t member_id) * } */ - public static FunctionDescriptor H5Tinsert$descriptor() { - return H5Tinsert.DESC; - } + public static FunctionDescriptor H5Tinsert$descriptor() { return H5Tinsert.DESC; } /** * Downcall method handle for: @@ -3092,9 +3045,7 @@ private static class H5Tinsert { * herr_t H5Tinsert(hid_t parent_id, const char *name, size_t offset, hid_t member_id) * } */ - public static MethodHandle H5Tinsert$handle() { - return H5Tinsert.HANDLE; - } + public static MethodHandle H5Tinsert$handle() { return H5Tinsert.HANDLE; } /** * Address for: @@ -3102,32 +3053,29 @@ private static class H5Tinsert { * herr_t H5Tinsert(hid_t parent_id, const char *name, size_t offset, hid_t member_id) * } */ - public static MemorySegment H5Tinsert$address() { - return H5Tinsert.ADDR; - } + public static MemorySegment H5Tinsert$address() { return H5Tinsert.ADDR; } /** * {@snippet lang=c : * herr_t H5Tinsert(hid_t parent_id, const char *name, size_t offset, hid_t member_id) * } */ - public static int H5Tinsert(long parent_id, MemorySegment name, long offset, long member_id) { + public static int H5Tinsert(long parent_id, MemorySegment name, long offset, long member_id) + { var mh$ = H5Tinsert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tinsert", parent_id, name, offset, member_id); } return (int)mh$.invokeExact(parent_id, name, offset, member_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tpack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tpack"); @@ -3140,9 +3088,7 @@ private static class H5Tpack { * herr_t H5Tpack(hid_t type_id) * } */ - public static FunctionDescriptor H5Tpack$descriptor() { - return H5Tpack.DESC; - } + public static FunctionDescriptor H5Tpack$descriptor() { return H5Tpack.DESC; } /** * Downcall method handle for: @@ -3150,9 +3096,7 @@ private static class H5Tpack { * herr_t H5Tpack(hid_t type_id) * } */ - public static MethodHandle H5Tpack$handle() { - return H5Tpack.HANDLE; - } + public static MethodHandle H5Tpack$handle() { return H5Tpack.HANDLE; } /** * Address for: @@ -3160,32 +3104,29 @@ private static class H5Tpack { * herr_t H5Tpack(hid_t type_id) * } */ - public static MemorySegment H5Tpack$address() { - return H5Tpack.ADDR; - } + public static MemorySegment H5Tpack$address() { return H5Tpack.ADDR; } /** * {@snippet lang=c : * herr_t H5Tpack(hid_t type_id) * } */ - public static int H5Tpack(long type_id) { + public static int H5Tpack(long type_id) + { var mh$ = H5Tpack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tpack", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tenum_create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tenum_create"); @@ -3198,9 +3139,7 @@ private static class H5Tenum_create { * hid_t H5Tenum_create(hid_t base_id) * } */ - public static FunctionDescriptor H5Tenum_create$descriptor() { - return H5Tenum_create.DESC; - } + public static FunctionDescriptor H5Tenum_create$descriptor() { return H5Tenum_create.DESC; } /** * Downcall method handle for: @@ -3208,9 +3147,7 @@ private static class H5Tenum_create { * hid_t H5Tenum_create(hid_t base_id) * } */ - public static MethodHandle H5Tenum_create$handle() { - return H5Tenum_create.HANDLE; - } + public static MethodHandle H5Tenum_create$handle() { return H5Tenum_create.HANDLE; } /** * Address for: @@ -3218,34 +3155,30 @@ private static class H5Tenum_create { * hid_t H5Tenum_create(hid_t base_id) * } */ - public static MemorySegment H5Tenum_create$address() { - return H5Tenum_create.ADDR; - } + public static MemorySegment H5Tenum_create$address() { return H5Tenum_create.ADDR; } /** * {@snippet lang=c : * hid_t H5Tenum_create(hid_t base_id) * } */ - public static long H5Tenum_create(long base_id) { + public static long H5Tenum_create(long base_id) + { var mh$ = H5Tenum_create.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tenum_create", base_id); } return (long)mh$.invokeExact(base_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tenum_insert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tenum_insert"); @@ -3258,9 +3191,7 @@ private static class H5Tenum_insert { * herr_t H5Tenum_insert(hid_t type, const char *name, const void *value) * } */ - public static FunctionDescriptor H5Tenum_insert$descriptor() { - return H5Tenum_insert.DESC; - } + public static FunctionDescriptor H5Tenum_insert$descriptor() { return H5Tenum_insert.DESC; } /** * Downcall method handle for: @@ -3268,9 +3199,7 @@ private static class H5Tenum_insert { * herr_t H5Tenum_insert(hid_t type, const char *name, const void *value) * } */ - public static MethodHandle H5Tenum_insert$handle() { - return H5Tenum_insert.HANDLE; - } + public static MethodHandle H5Tenum_insert$handle() { return H5Tenum_insert.HANDLE; } /** * Address for: @@ -3278,35 +3207,30 @@ private static class H5Tenum_insert { * herr_t H5Tenum_insert(hid_t type, const char *name, const void *value) * } */ - public static MemorySegment H5Tenum_insert$address() { - return H5Tenum_insert.ADDR; - } + public static MemorySegment H5Tenum_insert$address() { return H5Tenum_insert.ADDR; } /** * {@snippet lang=c : * herr_t H5Tenum_insert(hid_t type, const char *name, const void *value) * } */ - public static int H5Tenum_insert(long type, MemorySegment name, MemorySegment value) { + public static int H5Tenum_insert(long type, MemorySegment name, MemorySegment value) + { var mh$ = H5Tenum_insert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tenum_insert", type, name, value); } return (int)mh$.invokeExact(type, name, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tenum_nameof { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tenum_nameof"); @@ -3319,9 +3243,7 @@ private static class H5Tenum_nameof { * herr_t H5Tenum_nameof(hid_t type, const void *value, char *name, size_t size) * } */ - public static FunctionDescriptor H5Tenum_nameof$descriptor() { - return H5Tenum_nameof.DESC; - } + public static FunctionDescriptor H5Tenum_nameof$descriptor() { return H5Tenum_nameof.DESC; } /** * Downcall method handle for: @@ -3329,9 +3251,7 @@ private static class H5Tenum_nameof { * herr_t H5Tenum_nameof(hid_t type, const void *value, char *name, size_t size) * } */ - public static MethodHandle H5Tenum_nameof$handle() { - return H5Tenum_nameof.HANDLE; - } + public static MethodHandle H5Tenum_nameof$handle() { return H5Tenum_nameof.HANDLE; } /** * Address for: @@ -3339,34 +3259,30 @@ private static class H5Tenum_nameof { * herr_t H5Tenum_nameof(hid_t type, const void *value, char *name, size_t size) * } */ - public static MemorySegment H5Tenum_nameof$address() { - return H5Tenum_nameof.ADDR; - } + public static MemorySegment H5Tenum_nameof$address() { return H5Tenum_nameof.ADDR; } /** * {@snippet lang=c : * herr_t H5Tenum_nameof(hid_t type, const void *value, char *name, size_t size) * } */ - public static int H5Tenum_nameof(long type, MemorySegment value, MemorySegment name, long size) { + public static int H5Tenum_nameof(long type, MemorySegment value, MemorySegment name, long size) + { var mh$ = H5Tenum_nameof.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tenum_nameof", type, value, name, size); } return (int)mh$.invokeExact(type, value, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tenum_valueof { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tenum_valueof"); @@ -3379,9 +3295,7 @@ private static class H5Tenum_valueof { * herr_t H5Tenum_valueof(hid_t type, const char *name, void *value) * } */ - public static FunctionDescriptor H5Tenum_valueof$descriptor() { - return H5Tenum_valueof.DESC; - } + public static FunctionDescriptor H5Tenum_valueof$descriptor() { return H5Tenum_valueof.DESC; } /** * Downcall method handle for: @@ -3389,9 +3303,7 @@ private static class H5Tenum_valueof { * herr_t H5Tenum_valueof(hid_t type, const char *name, void *value) * } */ - public static MethodHandle H5Tenum_valueof$handle() { - return H5Tenum_valueof.HANDLE; - } + public static MethodHandle H5Tenum_valueof$handle() { return H5Tenum_valueof.HANDLE; } /** * Address for: @@ -3399,32 +3311,29 @@ private static class H5Tenum_valueof { * herr_t H5Tenum_valueof(hid_t type, const char *name, void *value) * } */ - public static MemorySegment H5Tenum_valueof$address() { - return H5Tenum_valueof.ADDR; - } + public static MemorySegment H5Tenum_valueof$address() { return H5Tenum_valueof.ADDR; } /** * {@snippet lang=c : * herr_t H5Tenum_valueof(hid_t type, const char *name, void *value) * } */ - public static int H5Tenum_valueof(long type, MemorySegment name, MemorySegment value) { + public static int H5Tenum_valueof(long type, MemorySegment name, MemorySegment value) + { var mh$ = H5Tenum_valueof.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tenum_valueof", type, name, value); } return (int)mh$.invokeExact(type, name, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tvlen_create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tvlen_create"); @@ -3437,9 +3346,7 @@ private static class H5Tvlen_create { * hid_t H5Tvlen_create(hid_t base_id) * } */ - public static FunctionDescriptor H5Tvlen_create$descriptor() { - return H5Tvlen_create.DESC; - } + public static FunctionDescriptor H5Tvlen_create$descriptor() { return H5Tvlen_create.DESC; } /** * Downcall method handle for: @@ -3447,9 +3354,7 @@ private static class H5Tvlen_create { * hid_t H5Tvlen_create(hid_t base_id) * } */ - public static MethodHandle H5Tvlen_create$handle() { - return H5Tvlen_create.HANDLE; - } + public static MethodHandle H5Tvlen_create$handle() { return H5Tvlen_create.HANDLE; } /** * Address for: @@ -3457,34 +3362,30 @@ private static class H5Tvlen_create { * hid_t H5Tvlen_create(hid_t base_id) * } */ - public static MemorySegment H5Tvlen_create$address() { - return H5Tvlen_create.ADDR; - } + public static MemorySegment H5Tvlen_create$address() { return H5Tvlen_create.ADDR; } /** * {@snippet lang=c : * hid_t H5Tvlen_create(hid_t base_id) * } */ - public static long H5Tvlen_create(long base_id) { + public static long H5Tvlen_create(long base_id) + { var mh$ = H5Tvlen_create.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tvlen_create", base_id); } return (long)mh$.invokeExact(base_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tarray_create2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tarray_create2"); @@ -3497,9 +3398,7 @@ private static class H5Tarray_create2 { * hid_t H5Tarray_create2(hid_t base_id, unsigned int ndims, const hsize_t dim[]) * } */ - public static FunctionDescriptor H5Tarray_create2$descriptor() { - return H5Tarray_create2.DESC; - } + public static FunctionDescriptor H5Tarray_create2$descriptor() { return H5Tarray_create2.DESC; } /** * Downcall method handle for: @@ -3507,9 +3406,7 @@ private static class H5Tarray_create2 { * hid_t H5Tarray_create2(hid_t base_id, unsigned int ndims, const hsize_t dim[]) * } */ - public static MethodHandle H5Tarray_create2$handle() { - return H5Tarray_create2.HANDLE; - } + public static MethodHandle H5Tarray_create2$handle() { return H5Tarray_create2.HANDLE; } /** * Address for: @@ -3517,32 +3414,29 @@ private static class H5Tarray_create2 { * hid_t H5Tarray_create2(hid_t base_id, unsigned int ndims, const hsize_t dim[]) * } */ - public static MemorySegment H5Tarray_create2$address() { - return H5Tarray_create2.ADDR; - } + public static MemorySegment H5Tarray_create2$address() { return H5Tarray_create2.ADDR; } /** * {@snippet lang=c : * hid_t H5Tarray_create2(hid_t base_id, unsigned int ndims, const hsize_t dim[]) * } */ - public static long H5Tarray_create2(long base_id, int ndims, MemorySegment dim) { + public static long H5Tarray_create2(long base_id, int ndims, MemorySegment dim) + { var mh$ = H5Tarray_create2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tarray_create2", base_id, ndims, dim); } return (long)mh$.invokeExact(base_id, ndims, dim); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_array_ndims { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_array_ndims"); @@ -3555,9 +3449,7 @@ private static class H5Tget_array_ndims { * int H5Tget_array_ndims(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_array_ndims$descriptor() { - return H5Tget_array_ndims.DESC; - } + public static FunctionDescriptor H5Tget_array_ndims$descriptor() { return H5Tget_array_ndims.DESC; } /** * Downcall method handle for: @@ -3565,9 +3457,7 @@ private static class H5Tget_array_ndims { * int H5Tget_array_ndims(hid_t type_id) * } */ - public static MethodHandle H5Tget_array_ndims$handle() { - return H5Tget_array_ndims.HANDLE; - } + public static MethodHandle H5Tget_array_ndims$handle() { return H5Tget_array_ndims.HANDLE; } /** * Address for: @@ -3575,33 +3465,30 @@ private static class H5Tget_array_ndims { * int H5Tget_array_ndims(hid_t type_id) * } */ - public static MemorySegment H5Tget_array_ndims$address() { - return H5Tget_array_ndims.ADDR; - } + public static MemorySegment H5Tget_array_ndims$address() { return H5Tget_array_ndims.ADDR; } /** * {@snippet lang=c : * int H5Tget_array_ndims(hid_t type_id) * } */ - public static int H5Tget_array_ndims(long type_id) { + public static int H5Tget_array_ndims(long type_id) + { var mh$ = H5Tget_array_ndims.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_array_ndims", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_array_dims2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_array_dims2"); @@ -3614,9 +3501,7 @@ private static class H5Tget_array_dims2 { * int H5Tget_array_dims2(hid_t type_id, hsize_t dims[]) * } */ - public static FunctionDescriptor H5Tget_array_dims2$descriptor() { - return H5Tget_array_dims2.DESC; - } + public static FunctionDescriptor H5Tget_array_dims2$descriptor() { return H5Tget_array_dims2.DESC; } /** * Downcall method handle for: @@ -3624,9 +3509,7 @@ private static class H5Tget_array_dims2 { * int H5Tget_array_dims2(hid_t type_id, hsize_t dims[]) * } */ - public static MethodHandle H5Tget_array_dims2$handle() { - return H5Tget_array_dims2.HANDLE; - } + public static MethodHandle H5Tget_array_dims2$handle() { return H5Tget_array_dims2.HANDLE; } /** * Address for: @@ -3634,33 +3517,30 @@ private static class H5Tget_array_dims2 { * int H5Tget_array_dims2(hid_t type_id, hsize_t dims[]) * } */ - public static MemorySegment H5Tget_array_dims2$address() { - return H5Tget_array_dims2.ADDR; - } + public static MemorySegment H5Tget_array_dims2$address() { return H5Tget_array_dims2.ADDR; } /** * {@snippet lang=c : * int H5Tget_array_dims2(hid_t type_id, hsize_t dims[]) * } */ - public static int H5Tget_array_dims2(long type_id, MemorySegment dims) { + public static int H5Tget_array_dims2(long type_id, MemorySegment dims) + { var mh$ = H5Tget_array_dims2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_array_dims2", type_id, dims); } return (int)mh$.invokeExact(type_id, dims); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_tag { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_tag"); @@ -3673,9 +3553,7 @@ private static class H5Tset_tag { * herr_t H5Tset_tag(hid_t type, const char *tag) * } */ - public static FunctionDescriptor H5Tset_tag$descriptor() { - return H5Tset_tag.DESC; - } + public static FunctionDescriptor H5Tset_tag$descriptor() { return H5Tset_tag.DESC; } /** * Downcall method handle for: @@ -3683,9 +3561,7 @@ private static class H5Tset_tag { * herr_t H5Tset_tag(hid_t type, const char *tag) * } */ - public static MethodHandle H5Tset_tag$handle() { - return H5Tset_tag.HANDLE; - } + public static MethodHandle H5Tset_tag$handle() { return H5Tset_tag.HANDLE; } /** * Address for: @@ -3693,32 +3569,29 @@ private static class H5Tset_tag { * herr_t H5Tset_tag(hid_t type, const char *tag) * } */ - public static MemorySegment H5Tset_tag$address() { - return H5Tset_tag.ADDR; - } + public static MemorySegment H5Tset_tag$address() { return H5Tset_tag.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_tag(hid_t type, const char *tag) * } */ - public static int H5Tset_tag(long type, MemorySegment tag) { + public static int H5Tset_tag(long type, MemorySegment tag) + { var mh$ = H5Tset_tag.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_tag", type, tag); } return (int)mh$.invokeExact(type, tag); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_tag { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_tag"); @@ -3731,9 +3604,7 @@ private static class H5Tget_tag { * char *H5Tget_tag(hid_t type) * } */ - public static FunctionDescriptor H5Tget_tag$descriptor() { - return H5Tget_tag.DESC; - } + public static FunctionDescriptor H5Tget_tag$descriptor() { return H5Tget_tag.DESC; } /** * Downcall method handle for: @@ -3741,9 +3612,7 @@ private static class H5Tget_tag { * char *H5Tget_tag(hid_t type) * } */ - public static MethodHandle H5Tget_tag$handle() { - return H5Tget_tag.HANDLE; - } + public static MethodHandle H5Tget_tag$handle() { return H5Tget_tag.HANDLE; } /** * Address for: @@ -3751,32 +3620,29 @@ private static class H5Tget_tag { * char *H5Tget_tag(hid_t type) * } */ - public static MemorySegment H5Tget_tag$address() { - return H5Tget_tag.ADDR; - } + public static MemorySegment H5Tget_tag$address() { return H5Tget_tag.ADDR; } /** * {@snippet lang=c : * char *H5Tget_tag(hid_t type) * } */ - public static MemorySegment H5Tget_tag(long type) { + public static MemorySegment H5Tget_tag(long type) + { var mh$ = H5Tget_tag.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_tag", type); } return (MemorySegment)mh$.invokeExact(type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_super { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_super"); @@ -3789,9 +3655,7 @@ private static class H5Tget_super { * hid_t H5Tget_super(hid_t type) * } */ - public static FunctionDescriptor H5Tget_super$descriptor() { - return H5Tget_super.DESC; - } + public static FunctionDescriptor H5Tget_super$descriptor() { return H5Tget_super.DESC; } /** * Downcall method handle for: @@ -3799,9 +3663,7 @@ private static class H5Tget_super { * hid_t H5Tget_super(hid_t type) * } */ - public static MethodHandle H5Tget_super$handle() { - return H5Tget_super.HANDLE; - } + public static MethodHandle H5Tget_super$handle() { return H5Tget_super.HANDLE; } /** * Address for: @@ -3809,32 +3671,29 @@ private static class H5Tget_super { * hid_t H5Tget_super(hid_t type) * } */ - public static MemorySegment H5Tget_super$address() { - return H5Tget_super.ADDR; - } + public static MemorySegment H5Tget_super$address() { return H5Tget_super.ADDR; } /** * {@snippet lang=c : * hid_t H5Tget_super(hid_t type) * } */ - public static long H5Tget_super(long type) { + public static long H5Tget_super(long type) + { var mh$ = H5Tget_super.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_super", type); } return (long)mh$.invokeExact(type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_class"); @@ -3847,9 +3706,7 @@ private static class H5Tget_class { * H5T_class_t H5Tget_class(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_class$descriptor() { - return H5Tget_class.DESC; - } + public static FunctionDescriptor H5Tget_class$descriptor() { return H5Tget_class.DESC; } /** * Downcall method handle for: @@ -3857,9 +3714,7 @@ private static class H5Tget_class { * H5T_class_t H5Tget_class(hid_t type_id) * } */ - public static MethodHandle H5Tget_class$handle() { - return H5Tget_class.HANDLE; - } + public static MethodHandle H5Tget_class$handle() { return H5Tget_class.HANDLE; } /** * Address for: @@ -3867,33 +3722,30 @@ private static class H5Tget_class { * H5T_class_t H5Tget_class(hid_t type_id) * } */ - public static MemorySegment H5Tget_class$address() { - return H5Tget_class.ADDR; - } + public static MemorySegment H5Tget_class$address() { return H5Tget_class.ADDR; } /** * {@snippet lang=c : * H5T_class_t H5Tget_class(hid_t type_id) * } */ - public static int H5Tget_class(long type_id) { + public static int H5Tget_class(long type_id) + { var mh$ = H5Tget_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_class", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tdetect_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tdetect_class"); @@ -3906,9 +3758,7 @@ private static class H5Tdetect_class { * htri_t H5Tdetect_class(hid_t type_id, H5T_class_t cls) * } */ - public static FunctionDescriptor H5Tdetect_class$descriptor() { - return H5Tdetect_class.DESC; - } + public static FunctionDescriptor H5Tdetect_class$descriptor() { return H5Tdetect_class.DESC; } /** * Downcall method handle for: @@ -3916,9 +3766,7 @@ private static class H5Tdetect_class { * htri_t H5Tdetect_class(hid_t type_id, H5T_class_t cls) * } */ - public static MethodHandle H5Tdetect_class$handle() { - return H5Tdetect_class.HANDLE; - } + public static MethodHandle H5Tdetect_class$handle() { return H5Tdetect_class.HANDLE; } /** * Address for: @@ -3926,32 +3774,29 @@ private static class H5Tdetect_class { * htri_t H5Tdetect_class(hid_t type_id, H5T_class_t cls) * } */ - public static MemorySegment H5Tdetect_class$address() { - return H5Tdetect_class.ADDR; - } + public static MemorySegment H5Tdetect_class$address() { return H5Tdetect_class.ADDR; } /** * {@snippet lang=c : * htri_t H5Tdetect_class(hid_t type_id, H5T_class_t cls) * } */ - public static int H5Tdetect_class(long type_id, int cls) { + public static int H5Tdetect_class(long type_id, int cls) + { var mh$ = H5Tdetect_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tdetect_class", type_id, cls); } return (int)mh$.invokeExact(type_id, cls); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_size"); @@ -3964,9 +3809,7 @@ private static class H5Tget_size { * size_t H5Tget_size(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_size$descriptor() { - return H5Tget_size.DESC; - } + public static FunctionDescriptor H5Tget_size$descriptor() { return H5Tget_size.DESC; } /** * Downcall method handle for: @@ -3974,9 +3817,7 @@ private static class H5Tget_size { * size_t H5Tget_size(hid_t type_id) * } */ - public static MethodHandle H5Tget_size$handle() { - return H5Tget_size.HANDLE; - } + public static MethodHandle H5Tget_size$handle() { return H5Tget_size.HANDLE; } /** * Address for: @@ -3984,32 +3825,29 @@ private static class H5Tget_size { * size_t H5Tget_size(hid_t type_id) * } */ - public static MemorySegment H5Tget_size$address() { - return H5Tget_size.ADDR; - } + public static MemorySegment H5Tget_size$address() { return H5Tget_size.ADDR; } /** * {@snippet lang=c : * size_t H5Tget_size(hid_t type_id) * } */ - public static long H5Tget_size(long type_id) { + public static long H5Tget_size(long type_id) + { var mh$ = H5Tget_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_size", type_id); } return (long)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_order"); @@ -4022,9 +3860,7 @@ private static class H5Tget_order { * H5T_order_t H5Tget_order(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_order$descriptor() { - return H5Tget_order.DESC; - } + public static FunctionDescriptor H5Tget_order$descriptor() { return H5Tget_order.DESC; } /** * Downcall method handle for: @@ -4032,9 +3868,7 @@ private static class H5Tget_order { * H5T_order_t H5Tget_order(hid_t type_id) * } */ - public static MethodHandle H5Tget_order$handle() { - return H5Tget_order.HANDLE; - } + public static MethodHandle H5Tget_order$handle() { return H5Tget_order.HANDLE; } /** * Address for: @@ -4042,32 +3876,29 @@ private static class H5Tget_order { * H5T_order_t H5Tget_order(hid_t type_id) * } */ - public static MemorySegment H5Tget_order$address() { - return H5Tget_order.ADDR; - } + public static MemorySegment H5Tget_order$address() { return H5Tget_order.ADDR; } /** * {@snippet lang=c : * H5T_order_t H5Tget_order(hid_t type_id) * } */ - public static int H5Tget_order(long type_id) { + public static int H5Tget_order(long type_id) + { var mh$ = H5Tget_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_order", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_precision { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_precision"); @@ -4080,9 +3911,7 @@ private static class H5Tget_precision { * size_t H5Tget_precision(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_precision$descriptor() { - return H5Tget_precision.DESC; - } + public static FunctionDescriptor H5Tget_precision$descriptor() { return H5Tget_precision.DESC; } /** * Downcall method handle for: @@ -4090,9 +3919,7 @@ private static class H5Tget_precision { * size_t H5Tget_precision(hid_t type_id) * } */ - public static MethodHandle H5Tget_precision$handle() { - return H5Tget_precision.HANDLE; - } + public static MethodHandle H5Tget_precision$handle() { return H5Tget_precision.HANDLE; } /** * Address for: @@ -4100,32 +3927,29 @@ private static class H5Tget_precision { * size_t H5Tget_precision(hid_t type_id) * } */ - public static MemorySegment H5Tget_precision$address() { - return H5Tget_precision.ADDR; - } + public static MemorySegment H5Tget_precision$address() { return H5Tget_precision.ADDR; } /** * {@snippet lang=c : * size_t H5Tget_precision(hid_t type_id) * } */ - public static long H5Tget_precision(long type_id) { + public static long H5Tget_precision(long type_id) + { var mh$ = H5Tget_precision.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_precision", type_id); } return (long)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_offset"); @@ -4138,9 +3962,7 @@ private static class H5Tget_offset { * int H5Tget_offset(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_offset$descriptor() { - return H5Tget_offset.DESC; - } + public static FunctionDescriptor H5Tget_offset$descriptor() { return H5Tget_offset.DESC; } /** * Downcall method handle for: @@ -4148,9 +3970,7 @@ private static class H5Tget_offset { * int H5Tget_offset(hid_t type_id) * } */ - public static MethodHandle H5Tget_offset$handle() { - return H5Tget_offset.HANDLE; - } + public static MethodHandle H5Tget_offset$handle() { return H5Tget_offset.HANDLE; } /** * Address for: @@ -4158,34 +3978,30 @@ private static class H5Tget_offset { * int H5Tget_offset(hid_t type_id) * } */ - public static MemorySegment H5Tget_offset$address() { - return H5Tget_offset.ADDR; - } + public static MemorySegment H5Tget_offset$address() { return H5Tget_offset.ADDR; } /** * {@snippet lang=c : * int H5Tget_offset(hid_t type_id) * } */ - public static int H5Tget_offset(long type_id) { + public static int H5Tget_offset(long type_id) + { var mh$ = H5Tget_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_offset", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_pad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_pad"); @@ -4198,9 +4014,7 @@ private static class H5Tget_pad { * herr_t H5Tget_pad(hid_t type_id, H5T_pad_t *lsb, H5T_pad_t *msb) * } */ - public static FunctionDescriptor H5Tget_pad$descriptor() { - return H5Tget_pad.DESC; - } + public static FunctionDescriptor H5Tget_pad$descriptor() { return H5Tget_pad.DESC; } /** * Downcall method handle for: @@ -4208,9 +4022,7 @@ private static class H5Tget_pad { * herr_t H5Tget_pad(hid_t type_id, H5T_pad_t *lsb, H5T_pad_t *msb) * } */ - public static MethodHandle H5Tget_pad$handle() { - return H5Tget_pad.HANDLE; - } + public static MethodHandle H5Tget_pad$handle() { return H5Tget_pad.HANDLE; } /** * Address for: @@ -4218,32 +4030,29 @@ private static class H5Tget_pad { * herr_t H5Tget_pad(hid_t type_id, H5T_pad_t *lsb, H5T_pad_t *msb) * } */ - public static MemorySegment H5Tget_pad$address() { - return H5Tget_pad.ADDR; - } + public static MemorySegment H5Tget_pad$address() { return H5Tget_pad.ADDR; } /** * {@snippet lang=c : * herr_t H5Tget_pad(hid_t type_id, H5T_pad_t *lsb, H5T_pad_t *msb) * } */ - public static int H5Tget_pad(long type_id, MemorySegment lsb, MemorySegment msb) { + public static int H5Tget_pad(long type_id, MemorySegment lsb, MemorySegment msb) + { var mh$ = H5Tget_pad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_pad", type_id, lsb, msb); } return (int)mh$.invokeExact(type_id, lsb, msb); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_sign { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_sign"); @@ -4256,9 +4065,7 @@ private static class H5Tget_sign { * H5T_sign_t H5Tget_sign(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_sign$descriptor() { - return H5Tget_sign.DESC; - } + public static FunctionDescriptor H5Tget_sign$descriptor() { return H5Tget_sign.DESC; } /** * Downcall method handle for: @@ -4266,9 +4073,7 @@ private static class H5Tget_sign { * H5T_sign_t H5Tget_sign(hid_t type_id) * } */ - public static MethodHandle H5Tget_sign$handle() { - return H5Tget_sign.HANDLE; - } + public static MethodHandle H5Tget_sign$handle() { return H5Tget_sign.HANDLE; } /** * Address for: @@ -4276,37 +4081,31 @@ private static class H5Tget_sign { * H5T_sign_t H5Tget_sign(hid_t type_id) * } */ - public static MemorySegment H5Tget_sign$address() { - return H5Tget_sign.ADDR; - } + public static MemorySegment H5Tget_sign$address() { return H5Tget_sign.ADDR; } /** * {@snippet lang=c : * H5T_sign_t H5Tget_sign(hid_t type_id) * } */ - public static int H5Tget_sign(long type_id) { + public static int H5Tget_sign(long type_id) + { var mh$ = H5Tget_sign.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_sign", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_fields { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_fields"); @@ -4316,55 +4115,53 @@ private static class H5Tget_fields { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t *msize) + * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t + * *msize) * } */ - public static FunctionDescriptor H5Tget_fields$descriptor() { - return H5Tget_fields.DESC; - } + public static FunctionDescriptor H5Tget_fields$descriptor() { return H5Tget_fields.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t *msize) + * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t + * *msize) * } */ - public static MethodHandle H5Tget_fields$handle() { - return H5Tget_fields.HANDLE; - } + public static MethodHandle H5Tget_fields$handle() { return H5Tget_fields.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t *msize) + * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t + * *msize) * } */ - public static MemorySegment H5Tget_fields$address() { - return H5Tget_fields.ADDR; - } + public static MemorySegment H5Tget_fields$address() { return H5Tget_fields.ADDR; } /** * {@snippet lang=c : - * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t *msize) + * herr_t H5Tget_fields(hid_t type_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t + * *msize) * } */ - public static int H5Tget_fields(long type_id, MemorySegment spos, MemorySegment epos, MemorySegment esize, MemorySegment mpos, MemorySegment msize) { + public static int H5Tget_fields(long type_id, MemorySegment spos, MemorySegment epos, MemorySegment esize, + MemorySegment mpos, MemorySegment msize) + { var mh$ = H5Tget_fields.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_fields", type_id, spos, epos, esize, mpos, msize); } return (int)mh$.invokeExact(type_id, spos, epos, esize, mpos, msize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_ebias { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_ebias"); @@ -4377,9 +4174,7 @@ private static class H5Tget_ebias { * size_t H5Tget_ebias(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_ebias$descriptor() { - return H5Tget_ebias.DESC; - } + public static FunctionDescriptor H5Tget_ebias$descriptor() { return H5Tget_ebias.DESC; } /** * Downcall method handle for: @@ -4387,9 +4182,7 @@ private static class H5Tget_ebias { * size_t H5Tget_ebias(hid_t type_id) * } */ - public static MethodHandle H5Tget_ebias$handle() { - return H5Tget_ebias.HANDLE; - } + public static MethodHandle H5Tget_ebias$handle() { return H5Tget_ebias.HANDLE; } /** * Address for: @@ -4397,32 +4190,29 @@ private static class H5Tget_ebias { * size_t H5Tget_ebias(hid_t type_id) * } */ - public static MemorySegment H5Tget_ebias$address() { - return H5Tget_ebias.ADDR; - } + public static MemorySegment H5Tget_ebias$address() { return H5Tget_ebias.ADDR; } /** * {@snippet lang=c : * size_t H5Tget_ebias(hid_t type_id) * } */ - public static long H5Tget_ebias(long type_id) { + public static long H5Tget_ebias(long type_id) + { var mh$ = H5Tget_ebias.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_ebias", type_id); } return (long)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_norm { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_norm"); @@ -4435,9 +4225,7 @@ private static class H5Tget_norm { * H5T_norm_t H5Tget_norm(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_norm$descriptor() { - return H5Tget_norm.DESC; - } + public static FunctionDescriptor H5Tget_norm$descriptor() { return H5Tget_norm.DESC; } /** * Downcall method handle for: @@ -4445,9 +4233,7 @@ private static class H5Tget_norm { * H5T_norm_t H5Tget_norm(hid_t type_id) * } */ - public static MethodHandle H5Tget_norm$handle() { - return H5Tget_norm.HANDLE; - } + public static MethodHandle H5Tget_norm$handle() { return H5Tget_norm.HANDLE; } /** * Address for: @@ -4455,32 +4241,29 @@ private static class H5Tget_norm { * H5T_norm_t H5Tget_norm(hid_t type_id) * } */ - public static MemorySegment H5Tget_norm$address() { - return H5Tget_norm.ADDR; - } + public static MemorySegment H5Tget_norm$address() { return H5Tget_norm.ADDR; } /** * {@snippet lang=c : * H5T_norm_t H5Tget_norm(hid_t type_id) * } */ - public static int H5Tget_norm(long type_id) { + public static int H5Tget_norm(long type_id) + { var mh$ = H5Tget_norm.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_norm", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_inpad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_inpad"); @@ -4493,9 +4276,7 @@ private static class H5Tget_inpad { * H5T_pad_t H5Tget_inpad(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_inpad$descriptor() { - return H5Tget_inpad.DESC; - } + public static FunctionDescriptor H5Tget_inpad$descriptor() { return H5Tget_inpad.DESC; } /** * Downcall method handle for: @@ -4503,9 +4284,7 @@ private static class H5Tget_inpad { * H5T_pad_t H5Tget_inpad(hid_t type_id) * } */ - public static MethodHandle H5Tget_inpad$handle() { - return H5Tget_inpad.HANDLE; - } + public static MethodHandle H5Tget_inpad$handle() { return H5Tget_inpad.HANDLE; } /** * Address for: @@ -4513,32 +4292,29 @@ private static class H5Tget_inpad { * H5T_pad_t H5Tget_inpad(hid_t type_id) * } */ - public static MemorySegment H5Tget_inpad$address() { - return H5Tget_inpad.ADDR; - } + public static MemorySegment H5Tget_inpad$address() { return H5Tget_inpad.ADDR; } /** * {@snippet lang=c : * H5T_pad_t H5Tget_inpad(hid_t type_id) * } */ - public static int H5Tget_inpad(long type_id) { + public static int H5Tget_inpad(long type_id) + { var mh$ = H5Tget_inpad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_inpad", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_strpad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_strpad"); @@ -4551,9 +4327,7 @@ private static class H5Tget_strpad { * H5T_str_t H5Tget_strpad(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_strpad$descriptor() { - return H5Tget_strpad.DESC; - } + public static FunctionDescriptor H5Tget_strpad$descriptor() { return H5Tget_strpad.DESC; } /** * Downcall method handle for: @@ -4561,9 +4335,7 @@ private static class H5Tget_strpad { * H5T_str_t H5Tget_strpad(hid_t type_id) * } */ - public static MethodHandle H5Tget_strpad$handle() { - return H5Tget_strpad.HANDLE; - } + public static MethodHandle H5Tget_strpad$handle() { return H5Tget_strpad.HANDLE; } /** * Address for: @@ -4571,32 +4343,29 @@ private static class H5Tget_strpad { * H5T_str_t H5Tget_strpad(hid_t type_id) * } */ - public static MemorySegment H5Tget_strpad$address() { - return H5Tget_strpad.ADDR; - } + public static MemorySegment H5Tget_strpad$address() { return H5Tget_strpad.ADDR; } /** * {@snippet lang=c : * H5T_str_t H5Tget_strpad(hid_t type_id) * } */ - public static int H5Tget_strpad(long type_id) { + public static int H5Tget_strpad(long type_id) + { var mh$ = H5Tget_strpad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_strpad", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_nmembers { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_nmembers"); @@ -4609,9 +4378,7 @@ private static class H5Tget_nmembers { * int H5Tget_nmembers(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_nmembers$descriptor() { - return H5Tget_nmembers.DESC; - } + public static FunctionDescriptor H5Tget_nmembers$descriptor() { return H5Tget_nmembers.DESC; } /** * Downcall method handle for: @@ -4619,9 +4386,7 @@ private static class H5Tget_nmembers { * int H5Tget_nmembers(hid_t type_id) * } */ - public static MethodHandle H5Tget_nmembers$handle() { - return H5Tget_nmembers.HANDLE; - } + public static MethodHandle H5Tget_nmembers$handle() { return H5Tget_nmembers.HANDLE; } /** * Address for: @@ -4629,33 +4394,30 @@ private static class H5Tget_nmembers { * int H5Tget_nmembers(hid_t type_id) * } */ - public static MemorySegment H5Tget_nmembers$address() { - return H5Tget_nmembers.ADDR; - } + public static MemorySegment H5Tget_nmembers$address() { return H5Tget_nmembers.ADDR; } /** * {@snippet lang=c : * int H5Tget_nmembers(hid_t type_id) * } */ - public static int H5Tget_nmembers(long type_id) { + public static int H5Tget_nmembers(long type_id) + { var mh$ = H5Tget_nmembers.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_nmembers", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_name"); @@ -4668,9 +4430,7 @@ private static class H5Tget_member_name { * char *H5Tget_member_name(hid_t type_id, unsigned int membno) * } */ - public static FunctionDescriptor H5Tget_member_name$descriptor() { - return H5Tget_member_name.DESC; - } + public static FunctionDescriptor H5Tget_member_name$descriptor() { return H5Tget_member_name.DESC; } /** * Downcall method handle for: @@ -4678,9 +4438,7 @@ private static class H5Tget_member_name { * char *H5Tget_member_name(hid_t type_id, unsigned int membno) * } */ - public static MethodHandle H5Tget_member_name$handle() { - return H5Tget_member_name.HANDLE; - } + public static MethodHandle H5Tget_member_name$handle() { return H5Tget_member_name.HANDLE; } /** * Address for: @@ -4688,33 +4446,30 @@ private static class H5Tget_member_name { * char *H5Tget_member_name(hid_t type_id, unsigned int membno) * } */ - public static MemorySegment H5Tget_member_name$address() { - return H5Tget_member_name.ADDR; - } + public static MemorySegment H5Tget_member_name$address() { return H5Tget_member_name.ADDR; } /** * {@snippet lang=c : * char *H5Tget_member_name(hid_t type_id, unsigned int membno) * } */ - public static MemorySegment H5Tget_member_name(long type_id, int membno) { + public static MemorySegment H5Tget_member_name(long type_id, int membno) + { var mh$ = H5Tget_member_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_name", type_id, membno); } return (MemorySegment)mh$.invokeExact(type_id, membno); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_index { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_index"); @@ -4727,9 +4482,7 @@ private static class H5Tget_member_index { * int H5Tget_member_index(hid_t type_id, const char *name) * } */ - public static FunctionDescriptor H5Tget_member_index$descriptor() { - return H5Tget_member_index.DESC; - } + public static FunctionDescriptor H5Tget_member_index$descriptor() { return H5Tget_member_index.DESC; } /** * Downcall method handle for: @@ -4737,9 +4490,7 @@ private static class H5Tget_member_index { * int H5Tget_member_index(hid_t type_id, const char *name) * } */ - public static MethodHandle H5Tget_member_index$handle() { - return H5Tget_member_index.HANDLE; - } + public static MethodHandle H5Tget_member_index$handle() { return H5Tget_member_index.HANDLE; } /** * Address for: @@ -4747,33 +4498,30 @@ private static class H5Tget_member_index { * int H5Tget_member_index(hid_t type_id, const char *name) * } */ - public static MemorySegment H5Tget_member_index$address() { - return H5Tget_member_index.ADDR; - } + public static MemorySegment H5Tget_member_index$address() { return H5Tget_member_index.ADDR; } /** * {@snippet lang=c : * int H5Tget_member_index(hid_t type_id, const char *name) * } */ - public static int H5Tget_member_index(long type_id, MemorySegment name) { + public static int H5Tget_member_index(long type_id, MemorySegment name) + { var mh$ = H5Tget_member_index.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_index", type_id, name); } return (int)mh$.invokeExact(type_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_offset"); @@ -4786,9 +4534,7 @@ private static class H5Tget_member_offset { * size_t H5Tget_member_offset(hid_t type_id, unsigned int membno) * } */ - public static FunctionDescriptor H5Tget_member_offset$descriptor() { - return H5Tget_member_offset.DESC; - } + public static FunctionDescriptor H5Tget_member_offset$descriptor() { return H5Tget_member_offset.DESC; } /** * Downcall method handle for: @@ -4796,9 +4542,7 @@ private static class H5Tget_member_offset { * size_t H5Tget_member_offset(hid_t type_id, unsigned int membno) * } */ - public static MethodHandle H5Tget_member_offset$handle() { - return H5Tget_member_offset.HANDLE; - } + public static MethodHandle H5Tget_member_offset$handle() { return H5Tget_member_offset.HANDLE; } /** * Address for: @@ -4806,33 +4550,30 @@ private static class H5Tget_member_offset { * size_t H5Tget_member_offset(hid_t type_id, unsigned int membno) * } */ - public static MemorySegment H5Tget_member_offset$address() { - return H5Tget_member_offset.ADDR; - } + public static MemorySegment H5Tget_member_offset$address() { return H5Tget_member_offset.ADDR; } /** * {@snippet lang=c : * size_t H5Tget_member_offset(hid_t type_id, unsigned int membno) * } */ - public static long H5Tget_member_offset(long type_id, int membno) { + public static long H5Tget_member_offset(long type_id, int membno) + { var mh$ = H5Tget_member_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_offset", type_id, membno); } return (long)mh$.invokeExact(type_id, membno); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_class"); @@ -4845,9 +4586,7 @@ private static class H5Tget_member_class { * H5T_class_t H5Tget_member_class(hid_t type_id, unsigned int membno) * } */ - public static FunctionDescriptor H5Tget_member_class$descriptor() { - return H5Tget_member_class.DESC; - } + public static FunctionDescriptor H5Tget_member_class$descriptor() { return H5Tget_member_class.DESC; } /** * Downcall method handle for: @@ -4855,9 +4594,7 @@ private static class H5Tget_member_class { * H5T_class_t H5Tget_member_class(hid_t type_id, unsigned int membno) * } */ - public static MethodHandle H5Tget_member_class$handle() { - return H5Tget_member_class.HANDLE; - } + public static MethodHandle H5Tget_member_class$handle() { return H5Tget_member_class.HANDLE; } /** * Address for: @@ -4865,33 +4602,30 @@ private static class H5Tget_member_class { * H5T_class_t H5Tget_member_class(hid_t type_id, unsigned int membno) * } */ - public static MemorySegment H5Tget_member_class$address() { - return H5Tget_member_class.ADDR; - } + public static MemorySegment H5Tget_member_class$address() { return H5Tget_member_class.ADDR; } /** * {@snippet lang=c : * H5T_class_t H5Tget_member_class(hid_t type_id, unsigned int membno) * } */ - public static int H5Tget_member_class(long type_id, int membno) { + public static int H5Tget_member_class(long type_id, int membno) + { var mh$ = H5Tget_member_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_class", type_id, membno); } return (int)mh$.invokeExact(type_id, membno); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_type"); @@ -4904,9 +4638,7 @@ private static class H5Tget_member_type { * hid_t H5Tget_member_type(hid_t type_id, unsigned int membno) * } */ - public static FunctionDescriptor H5Tget_member_type$descriptor() { - return H5Tget_member_type.DESC; - } + public static FunctionDescriptor H5Tget_member_type$descriptor() { return H5Tget_member_type.DESC; } /** * Downcall method handle for: @@ -4914,9 +4646,7 @@ private static class H5Tget_member_type { * hid_t H5Tget_member_type(hid_t type_id, unsigned int membno) * } */ - public static MethodHandle H5Tget_member_type$handle() { - return H5Tget_member_type.HANDLE; - } + public static MethodHandle H5Tget_member_type$handle() { return H5Tget_member_type.HANDLE; } /** * Address for: @@ -4924,34 +4654,30 @@ private static class H5Tget_member_type { * hid_t H5Tget_member_type(hid_t type_id, unsigned int membno) * } */ - public static MemorySegment H5Tget_member_type$address() { - return H5Tget_member_type.ADDR; - } + public static MemorySegment H5Tget_member_type$address() { return H5Tget_member_type.ADDR; } /** * {@snippet lang=c : * hid_t H5Tget_member_type(hid_t type_id, unsigned int membno) * } */ - public static long H5Tget_member_type(long type_id, int membno) { + public static long H5Tget_member_type(long type_id, int membno) + { var mh$ = H5Tget_member_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_type", type_id, membno); } return (long)mh$.invokeExact(type_id, membno); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_member_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_member_value"); @@ -4964,9 +4690,7 @@ private static class H5Tget_member_value { * herr_t H5Tget_member_value(hid_t type_id, unsigned int membno, void *value) * } */ - public static FunctionDescriptor H5Tget_member_value$descriptor() { - return H5Tget_member_value.DESC; - } + public static FunctionDescriptor H5Tget_member_value$descriptor() { return H5Tget_member_value.DESC; } /** * Downcall method handle for: @@ -4974,9 +4698,7 @@ private static class H5Tget_member_value { * herr_t H5Tget_member_value(hid_t type_id, unsigned int membno, void *value) * } */ - public static MethodHandle H5Tget_member_value$handle() { - return H5Tget_member_value.HANDLE; - } + public static MethodHandle H5Tget_member_value$handle() { return H5Tget_member_value.HANDLE; } /** * Address for: @@ -4984,32 +4706,29 @@ private static class H5Tget_member_value { * herr_t H5Tget_member_value(hid_t type_id, unsigned int membno, void *value) * } */ - public static MemorySegment H5Tget_member_value$address() { - return H5Tget_member_value.ADDR; - } + public static MemorySegment H5Tget_member_value$address() { return H5Tget_member_value.ADDR; } /** * {@snippet lang=c : * herr_t H5Tget_member_value(hid_t type_id, unsigned int membno, void *value) * } */ - public static int H5Tget_member_value(long type_id, int membno, MemorySegment value) { + public static int H5Tget_member_value(long type_id, int membno, MemorySegment value) + { var mh$ = H5Tget_member_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_member_value", type_id, membno, value); } return (int)mh$.invokeExact(type_id, membno, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_cset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_cset"); @@ -5022,9 +4741,7 @@ private static class H5Tget_cset { * H5T_cset_t H5Tget_cset(hid_t type_id) * } */ - public static FunctionDescriptor H5Tget_cset$descriptor() { - return H5Tget_cset.DESC; - } + public static FunctionDescriptor H5Tget_cset$descriptor() { return H5Tget_cset.DESC; } /** * Downcall method handle for: @@ -5032,9 +4749,7 @@ private static class H5Tget_cset { * H5T_cset_t H5Tget_cset(hid_t type_id) * } */ - public static MethodHandle H5Tget_cset$handle() { - return H5Tget_cset.HANDLE; - } + public static MethodHandle H5Tget_cset$handle() { return H5Tget_cset.HANDLE; } /** * Address for: @@ -5042,32 +4757,29 @@ private static class H5Tget_cset { * H5T_cset_t H5Tget_cset(hid_t type_id) * } */ - public static MemorySegment H5Tget_cset$address() { - return H5Tget_cset.ADDR; - } + public static MemorySegment H5Tget_cset$address() { return H5Tget_cset.ADDR; } /** * {@snippet lang=c : * H5T_cset_t H5Tget_cset(hid_t type_id) * } */ - public static int H5Tget_cset(long type_id) { + public static int H5Tget_cset(long type_id) + { var mh$ = H5Tget_cset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_cset", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tis_variable_str { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tis_variable_str"); @@ -5080,9 +4792,7 @@ private static class H5Tis_variable_str { * htri_t H5Tis_variable_str(hid_t type_id) * } */ - public static FunctionDescriptor H5Tis_variable_str$descriptor() { - return H5Tis_variable_str.DESC; - } + public static FunctionDescriptor H5Tis_variable_str$descriptor() { return H5Tis_variable_str.DESC; } /** * Downcall method handle for: @@ -5090,9 +4800,7 @@ private static class H5Tis_variable_str { * htri_t H5Tis_variable_str(hid_t type_id) * } */ - public static MethodHandle H5Tis_variable_str$handle() { - return H5Tis_variable_str.HANDLE; - } + public static MethodHandle H5Tis_variable_str$handle() { return H5Tis_variable_str.HANDLE; } /** * Address for: @@ -5100,33 +4808,30 @@ private static class H5Tis_variable_str { * htri_t H5Tis_variable_str(hid_t type_id) * } */ - public static MemorySegment H5Tis_variable_str$address() { - return H5Tis_variable_str.ADDR; - } + public static MemorySegment H5Tis_variable_str$address() { return H5Tis_variable_str.ADDR; } /** * {@snippet lang=c : * htri_t H5Tis_variable_str(hid_t type_id) * } */ - public static int H5Tis_variable_str(long type_id) { + public static int H5Tis_variable_str(long type_id) + { var mh$ = H5Tis_variable_str.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tis_variable_str", type_id); } return (int)mh$.invokeExact(type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_native_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_native_type"); @@ -5139,9 +4844,7 @@ private static class H5Tget_native_type { * hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction) * } */ - public static FunctionDescriptor H5Tget_native_type$descriptor() { - return H5Tget_native_type.DESC; - } + public static FunctionDescriptor H5Tget_native_type$descriptor() { return H5Tget_native_type.DESC; } /** * Downcall method handle for: @@ -5149,9 +4852,7 @@ private static class H5Tget_native_type { * hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction) * } */ - public static MethodHandle H5Tget_native_type$handle() { - return H5Tget_native_type.HANDLE; - } + public static MethodHandle H5Tget_native_type$handle() { return H5Tget_native_type.HANDLE; } /** * Address for: @@ -5159,33 +4860,30 @@ private static class H5Tget_native_type { * hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction) * } */ - public static MemorySegment H5Tget_native_type$address() { - return H5Tget_native_type.ADDR; - } + public static MemorySegment H5Tget_native_type$address() { return H5Tget_native_type.ADDR; } /** * {@snippet lang=c : * hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction) * } */ - public static long H5Tget_native_type(long type_id, int direction) { + public static long H5Tget_native_type(long type_id, int direction) + { var mh$ = H5Tget_native_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_native_type", type_id, direction); } return (long)mh$.invokeExact(type_id, direction); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_size"); @@ -5198,9 +4896,7 @@ private static class H5Tset_size { * herr_t H5Tset_size(hid_t type_id, size_t size) * } */ - public static FunctionDescriptor H5Tset_size$descriptor() { - return H5Tset_size.DESC; - } + public static FunctionDescriptor H5Tset_size$descriptor() { return H5Tset_size.DESC; } /** * Downcall method handle for: @@ -5208,9 +4904,7 @@ private static class H5Tset_size { * herr_t H5Tset_size(hid_t type_id, size_t size) * } */ - public static MethodHandle H5Tset_size$handle() { - return H5Tset_size.HANDLE; - } + public static MethodHandle H5Tset_size$handle() { return H5Tset_size.HANDLE; } /** * Address for: @@ -5218,33 +4912,30 @@ private static class H5Tset_size { * herr_t H5Tset_size(hid_t type_id, size_t size) * } */ - public static MemorySegment H5Tset_size$address() { - return H5Tset_size.ADDR; - } + public static MemorySegment H5Tset_size$address() { return H5Tset_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_size(hid_t type_id, size_t size) * } */ - public static int H5Tset_size(long type_id, long size) { + public static int H5Tset_size(long type_id, long size) + { var mh$ = H5Tset_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_size", type_id, size); } return (int)mh$.invokeExact(type_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_order { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_order"); @@ -5257,9 +4948,7 @@ private static class H5Tset_order { * herr_t H5Tset_order(hid_t type_id, H5T_order_t order) * } */ - public static FunctionDescriptor H5Tset_order$descriptor() { - return H5Tset_order.DESC; - } + public static FunctionDescriptor H5Tset_order$descriptor() { return H5Tset_order.DESC; } /** * Downcall method handle for: @@ -5267,9 +4956,7 @@ private static class H5Tset_order { * herr_t H5Tset_order(hid_t type_id, H5T_order_t order) * } */ - public static MethodHandle H5Tset_order$handle() { - return H5Tset_order.HANDLE; - } + public static MethodHandle H5Tset_order$handle() { return H5Tset_order.HANDLE; } /** * Address for: @@ -5277,33 +4964,30 @@ private static class H5Tset_order { * herr_t H5Tset_order(hid_t type_id, H5T_order_t order) * } */ - public static MemorySegment H5Tset_order$address() { - return H5Tset_order.ADDR; - } + public static MemorySegment H5Tset_order$address() { return H5Tset_order.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_order(hid_t type_id, H5T_order_t order) * } */ - public static int H5Tset_order(long type_id, int order) { + public static int H5Tset_order(long type_id, int order) + { var mh$ = H5Tset_order.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_order", type_id, order); } return (int)mh$.invokeExact(type_id, order); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_precision { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_precision"); @@ -5316,9 +5000,7 @@ private static class H5Tset_precision { * herr_t H5Tset_precision(hid_t type_id, size_t prec) * } */ - public static FunctionDescriptor H5Tset_precision$descriptor() { - return H5Tset_precision.DESC; - } + public static FunctionDescriptor H5Tset_precision$descriptor() { return H5Tset_precision.DESC; } /** * Downcall method handle for: @@ -5326,9 +5008,7 @@ private static class H5Tset_precision { * herr_t H5Tset_precision(hid_t type_id, size_t prec) * } */ - public static MethodHandle H5Tset_precision$handle() { - return H5Tset_precision.HANDLE; - } + public static MethodHandle H5Tset_precision$handle() { return H5Tset_precision.HANDLE; } /** * Address for: @@ -5336,33 +5016,30 @@ private static class H5Tset_precision { * herr_t H5Tset_precision(hid_t type_id, size_t prec) * } */ - public static MemorySegment H5Tset_precision$address() { - return H5Tset_precision.ADDR; - } + public static MemorySegment H5Tset_precision$address() { return H5Tset_precision.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_precision(hid_t type_id, size_t prec) * } */ - public static int H5Tset_precision(long type_id, long prec) { + public static int H5Tset_precision(long type_id, long prec) + { var mh$ = H5Tset_precision.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_precision", type_id, prec); } return (int)mh$.invokeExact(type_id, prec); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_offset"); @@ -5375,9 +5052,7 @@ private static class H5Tset_offset { * herr_t H5Tset_offset(hid_t type_id, size_t offset) * } */ - public static FunctionDescriptor H5Tset_offset$descriptor() { - return H5Tset_offset.DESC; - } + public static FunctionDescriptor H5Tset_offset$descriptor() { return H5Tset_offset.DESC; } /** * Downcall method handle for: @@ -5385,9 +5060,7 @@ private static class H5Tset_offset { * herr_t H5Tset_offset(hid_t type_id, size_t offset) * } */ - public static MethodHandle H5Tset_offset$handle() { - return H5Tset_offset.HANDLE; - } + public static MethodHandle H5Tset_offset$handle() { return H5Tset_offset.HANDLE; } /** * Address for: @@ -5395,34 +5068,30 @@ private static class H5Tset_offset { * herr_t H5Tset_offset(hid_t type_id, size_t offset) * } */ - public static MemorySegment H5Tset_offset$address() { - return H5Tset_offset.ADDR; - } + public static MemorySegment H5Tset_offset$address() { return H5Tset_offset.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_offset(hid_t type_id, size_t offset) * } */ - public static int H5Tset_offset(long type_id, long offset) { + public static int H5Tset_offset(long type_id, long offset) + { var mh$ = H5Tset_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_offset", type_id, offset); } return (int)mh$.invokeExact(type_id, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_pad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_pad"); @@ -5435,9 +5104,7 @@ private static class H5Tset_pad { * herr_t H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb) * } */ - public static FunctionDescriptor H5Tset_pad$descriptor() { - return H5Tset_pad.DESC; - } + public static FunctionDescriptor H5Tset_pad$descriptor() { return H5Tset_pad.DESC; } /** * Downcall method handle for: @@ -5445,9 +5112,7 @@ private static class H5Tset_pad { * herr_t H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb) * } */ - public static MethodHandle H5Tset_pad$handle() { - return H5Tset_pad.HANDLE; - } + public static MethodHandle H5Tset_pad$handle() { return H5Tset_pad.HANDLE; } /** * Address for: @@ -5455,33 +5120,30 @@ private static class H5Tset_pad { * herr_t H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb) * } */ - public static MemorySegment H5Tset_pad$address() { - return H5Tset_pad.ADDR; - } + public static MemorySegment H5Tset_pad$address() { return H5Tset_pad.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb) * } */ - public static int H5Tset_pad(long type_id, int lsb, int msb) { + public static int H5Tset_pad(long type_id, int lsb, int msb) + { var mh$ = H5Tset_pad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_pad", type_id, lsb, msb); } return (int)mh$.invokeExact(type_id, lsb, msb); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_sign { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_sign"); @@ -5494,9 +5156,7 @@ private static class H5Tset_sign { * herr_t H5Tset_sign(hid_t type_id, H5T_sign_t sign) * } */ - public static FunctionDescriptor H5Tset_sign$descriptor() { - return H5Tset_sign.DESC; - } + public static FunctionDescriptor H5Tset_sign$descriptor() { return H5Tset_sign.DESC; } /** * Downcall method handle for: @@ -5504,9 +5164,7 @@ private static class H5Tset_sign { * herr_t H5Tset_sign(hid_t type_id, H5T_sign_t sign) * } */ - public static MethodHandle H5Tset_sign$handle() { - return H5Tset_sign.HANDLE; - } + public static MethodHandle H5Tset_sign$handle() { return H5Tset_sign.HANDLE; } /** * Address for: @@ -5514,37 +5172,31 @@ private static class H5Tset_sign { * herr_t H5Tset_sign(hid_t type_id, H5T_sign_t sign) * } */ - public static MemorySegment H5Tset_sign$address() { - return H5Tset_sign.ADDR; - } + public static MemorySegment H5Tset_sign$address() { return H5Tset_sign.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_sign(hid_t type_id, H5T_sign_t sign) * } */ - public static int H5Tset_sign(long type_id, int sign) { + public static int H5Tset_sign(long type_id, int sign) + { var mh$ = H5Tset_sign.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_sign", type_id, sign); } return (int)mh$.invokeExact(type_id, sign); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_fields { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_fields"); @@ -5557,9 +5209,7 @@ private static class H5Tset_fields { * herr_t H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize) * } */ - public static FunctionDescriptor H5Tset_fields$descriptor() { - return H5Tset_fields.DESC; - } + public static FunctionDescriptor H5Tset_fields$descriptor() { return H5Tset_fields.DESC; } /** * Downcall method handle for: @@ -5567,9 +5217,7 @@ private static class H5Tset_fields { * herr_t H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize) * } */ - public static MethodHandle H5Tset_fields$handle() { - return H5Tset_fields.HANDLE; - } + public static MethodHandle H5Tset_fields$handle() { return H5Tset_fields.HANDLE; } /** * Address for: @@ -5577,33 +5225,30 @@ private static class H5Tset_fields { * herr_t H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize) * } */ - public static MemorySegment H5Tset_fields$address() { - return H5Tset_fields.ADDR; - } + public static MemorySegment H5Tset_fields$address() { return H5Tset_fields.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize) * } */ - public static int H5Tset_fields(long type_id, long spos, long epos, long esize, long mpos, long msize) { + public static int H5Tset_fields(long type_id, long spos, long epos, long esize, long mpos, long msize) + { var mh$ = H5Tset_fields.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_fields", type_id, spos, epos, esize, mpos, msize); } return (int)mh$.invokeExact(type_id, spos, epos, esize, mpos, msize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_ebias { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_ebias"); @@ -5616,9 +5261,7 @@ private static class H5Tset_ebias { * herr_t H5Tset_ebias(hid_t type_id, size_t ebias) * } */ - public static FunctionDescriptor H5Tset_ebias$descriptor() { - return H5Tset_ebias.DESC; - } + public static FunctionDescriptor H5Tset_ebias$descriptor() { return H5Tset_ebias.DESC; } /** * Downcall method handle for: @@ -5626,9 +5269,7 @@ private static class H5Tset_ebias { * herr_t H5Tset_ebias(hid_t type_id, size_t ebias) * } */ - public static MethodHandle H5Tset_ebias$handle() { - return H5Tset_ebias.HANDLE; - } + public static MethodHandle H5Tset_ebias$handle() { return H5Tset_ebias.HANDLE; } /** * Address for: @@ -5636,33 +5277,30 @@ private static class H5Tset_ebias { * herr_t H5Tset_ebias(hid_t type_id, size_t ebias) * } */ - public static MemorySegment H5Tset_ebias$address() { - return H5Tset_ebias.ADDR; - } + public static MemorySegment H5Tset_ebias$address() { return H5Tset_ebias.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_ebias(hid_t type_id, size_t ebias) * } */ - public static int H5Tset_ebias(long type_id, long ebias) { + public static int H5Tset_ebias(long type_id, long ebias) + { var mh$ = H5Tset_ebias.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_ebias", type_id, ebias); } return (int)mh$.invokeExact(type_id, ebias); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_norm { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_norm"); @@ -5675,9 +5313,7 @@ private static class H5Tset_norm { * herr_t H5Tset_norm(hid_t type_id, H5T_norm_t norm) * } */ - public static FunctionDescriptor H5Tset_norm$descriptor() { - return H5Tset_norm.DESC; - } + public static FunctionDescriptor H5Tset_norm$descriptor() { return H5Tset_norm.DESC; } /** * Downcall method handle for: @@ -5685,9 +5321,7 @@ private static class H5Tset_norm { * herr_t H5Tset_norm(hid_t type_id, H5T_norm_t norm) * } */ - public static MethodHandle H5Tset_norm$handle() { - return H5Tset_norm.HANDLE; - } + public static MethodHandle H5Tset_norm$handle() { return H5Tset_norm.HANDLE; } /** * Address for: @@ -5695,33 +5329,30 @@ private static class H5Tset_norm { * herr_t H5Tset_norm(hid_t type_id, H5T_norm_t norm) * } */ - public static MemorySegment H5Tset_norm$address() { - return H5Tset_norm.ADDR; - } + public static MemorySegment H5Tset_norm$address() { return H5Tset_norm.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_norm(hid_t type_id, H5T_norm_t norm) * } */ - public static int H5Tset_norm(long type_id, int norm) { + public static int H5Tset_norm(long type_id, int norm) + { var mh$ = H5Tset_norm.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_norm", type_id, norm); } return (int)mh$.invokeExact(type_id, norm); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_inpad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_inpad"); @@ -5734,9 +5365,7 @@ private static class H5Tset_inpad { * herr_t H5Tset_inpad(hid_t type_id, H5T_pad_t pad) * } */ - public static FunctionDescriptor H5Tset_inpad$descriptor() { - return H5Tset_inpad.DESC; - } + public static FunctionDescriptor H5Tset_inpad$descriptor() { return H5Tset_inpad.DESC; } /** * Downcall method handle for: @@ -5744,9 +5373,7 @@ private static class H5Tset_inpad { * herr_t H5Tset_inpad(hid_t type_id, H5T_pad_t pad) * } */ - public static MethodHandle H5Tset_inpad$handle() { - return H5Tset_inpad.HANDLE; - } + public static MethodHandle H5Tset_inpad$handle() { return H5Tset_inpad.HANDLE; } /** * Address for: @@ -5754,33 +5381,30 @@ private static class H5Tset_inpad { * herr_t H5Tset_inpad(hid_t type_id, H5T_pad_t pad) * } */ - public static MemorySegment H5Tset_inpad$address() { - return H5Tset_inpad.ADDR; - } + public static MemorySegment H5Tset_inpad$address() { return H5Tset_inpad.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_inpad(hid_t type_id, H5T_pad_t pad) * } */ - public static int H5Tset_inpad(long type_id, int pad) { + public static int H5Tset_inpad(long type_id, int pad) + { var mh$ = H5Tset_inpad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_inpad", type_id, pad); } return (int)mh$.invokeExact(type_id, pad); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_cset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_cset"); @@ -5793,9 +5417,7 @@ private static class H5Tset_cset { * herr_t H5Tset_cset(hid_t type_id, H5T_cset_t cset) * } */ - public static FunctionDescriptor H5Tset_cset$descriptor() { - return H5Tset_cset.DESC; - } + public static FunctionDescriptor H5Tset_cset$descriptor() { return H5Tset_cset.DESC; } /** * Downcall method handle for: @@ -5803,9 +5425,7 @@ private static class H5Tset_cset { * herr_t H5Tset_cset(hid_t type_id, H5T_cset_t cset) * } */ - public static MethodHandle H5Tset_cset$handle() { - return H5Tset_cset.HANDLE; - } + public static MethodHandle H5Tset_cset$handle() { return H5Tset_cset.HANDLE; } /** * Address for: @@ -5813,33 +5433,30 @@ private static class H5Tset_cset { * herr_t H5Tset_cset(hid_t type_id, H5T_cset_t cset) * } */ - public static MemorySegment H5Tset_cset$address() { - return H5Tset_cset.ADDR; - } + public static MemorySegment H5Tset_cset$address() { return H5Tset_cset.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_cset(hid_t type_id, H5T_cset_t cset) * } */ - public static int H5Tset_cset(long type_id, int cset) { + public static int H5Tset_cset(long type_id, int cset) + { var mh$ = H5Tset_cset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_cset", type_id, cset); } return (int)mh$.invokeExact(type_id, cset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tset_strpad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tset_strpad"); @@ -5852,9 +5469,7 @@ private static class H5Tset_strpad { * herr_t H5Tset_strpad(hid_t type_id, H5T_str_t strpad) * } */ - public static FunctionDescriptor H5Tset_strpad$descriptor() { - return H5Tset_strpad.DESC; - } + public static FunctionDescriptor H5Tset_strpad$descriptor() { return H5Tset_strpad.DESC; } /** * Downcall method handle for: @@ -5862,9 +5477,7 @@ private static class H5Tset_strpad { * herr_t H5Tset_strpad(hid_t type_id, H5T_str_t strpad) * } */ - public static MethodHandle H5Tset_strpad$handle() { - return H5Tset_strpad.HANDLE; - } + public static MethodHandle H5Tset_strpad$handle() { return H5Tset_strpad.HANDLE; } /** * Address for: @@ -5872,37 +5485,31 @@ private static class H5Tset_strpad { * herr_t H5Tset_strpad(hid_t type_id, H5T_str_t strpad) * } */ - public static MemorySegment H5Tset_strpad$address() { - return H5Tset_strpad.ADDR; - } + public static MemorySegment H5Tset_strpad$address() { return H5Tset_strpad.ADDR; } /** * {@snippet lang=c : * herr_t H5Tset_strpad(hid_t type_id, H5T_str_t strpad) * } */ - public static int H5Tset_strpad(long type_id, int strpad) { + public static int H5Tset_strpad(long type_id, int strpad) + { var mh$ = H5Tset_strpad.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tset_strpad", type_id, strpad); } return (int)mh$.invokeExact(type_id, strpad); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tconvert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tconvert"); @@ -5912,58 +5519,54 @@ private static class H5Tconvert { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t plist_id) + * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t + * plist_id) * } */ - public static FunctionDescriptor H5Tconvert$descriptor() { - return H5Tconvert.DESC; - } + public static FunctionDescriptor H5Tconvert$descriptor() { return H5Tconvert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t plist_id) + * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t + * plist_id) * } */ - public static MethodHandle H5Tconvert$handle() { - return H5Tconvert.HANDLE; - } + public static MethodHandle H5Tconvert$handle() { return H5Tconvert.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t plist_id) + * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t + * plist_id) * } */ - public static MemorySegment H5Tconvert$address() { - return H5Tconvert.ADDR; - } + public static MemorySegment H5Tconvert$address() { return H5Tconvert.ADDR; } /** * {@snippet lang=c : - * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t plist_id) + * herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t + * plist_id) * } */ - public static int H5Tconvert(long src_id, long dst_id, long nelmts, MemorySegment buf, MemorySegment background, long plist_id) { + public static int H5Tconvert(long src_id, long dst_id, long nelmts, MemorySegment buf, + MemorySegment background, long plist_id) + { var mh$ = H5Tconvert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tconvert", src_id, dst_id, nelmts, buf, background, plist_id); } return (int)mh$.invokeExact(src_id, dst_id, nelmts, buf, background, plist_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Treclaim { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Treclaim"); @@ -5976,9 +5579,7 @@ private static class H5Treclaim { * herr_t H5Treclaim(hid_t type_id, hid_t space_id, hid_t plist_id, void *buf) * } */ - public static FunctionDescriptor H5Treclaim$descriptor() { - return H5Treclaim.DESC; - } + public static FunctionDescriptor H5Treclaim$descriptor() { return H5Treclaim.DESC; } /** * Downcall method handle for: @@ -5986,9 +5587,7 @@ private static class H5Treclaim { * herr_t H5Treclaim(hid_t type_id, hid_t space_id, hid_t plist_id, void *buf) * } */ - public static MethodHandle H5Treclaim$handle() { - return H5Treclaim.HANDLE; - } + public static MethodHandle H5Treclaim$handle() { return H5Treclaim.HANDLE; } /** * Address for: @@ -5996,34 +5595,30 @@ private static class H5Treclaim { * herr_t H5Treclaim(hid_t type_id, hid_t space_id, hid_t plist_id, void *buf) * } */ - public static MemorySegment H5Treclaim$address() { - return H5Treclaim.ADDR; - } + public static MemorySegment H5Treclaim$address() { return H5Treclaim.ADDR; } /** * {@snippet lang=c : * herr_t H5Treclaim(hid_t type_id, hid_t space_id, hid_t plist_id, void *buf) * } */ - public static int H5Treclaim(long type_id, long space_id, long plist_id, MemorySegment buf) { + public static int H5Treclaim(long type_id, long space_id, long plist_id, MemorySegment buf) + { var mh$ = H5Treclaim.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Treclaim", type_id, space_id, plist_id, buf); } return (int)mh$.invokeExact(type_id, space_id, plist_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tcommit1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tcommit1"); @@ -6036,9 +5631,7 @@ private static class H5Tcommit1 { * herr_t H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id) * } */ - public static FunctionDescriptor H5Tcommit1$descriptor() { - return H5Tcommit1.DESC; - } + public static FunctionDescriptor H5Tcommit1$descriptor() { return H5Tcommit1.DESC; } /** * Downcall method handle for: @@ -6046,9 +5639,7 @@ private static class H5Tcommit1 { * herr_t H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id) * } */ - public static MethodHandle H5Tcommit1$handle() { - return H5Tcommit1.HANDLE; - } + public static MethodHandle H5Tcommit1$handle() { return H5Tcommit1.HANDLE; } /** * Address for: @@ -6056,33 +5647,30 @@ private static class H5Tcommit1 { * herr_t H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id) * } */ - public static MemorySegment H5Tcommit1$address() { - return H5Tcommit1.ADDR; - } + public static MemorySegment H5Tcommit1$address() { return H5Tcommit1.ADDR; } /** * {@snippet lang=c : * herr_t H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id) * } */ - public static int H5Tcommit1(long loc_id, MemorySegment name, long type_id) { + public static int H5Tcommit1(long loc_id, MemorySegment name, long type_id) + { var mh$ = H5Tcommit1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tcommit1", loc_id, name, type_id); } return (int)mh$.invokeExact(loc_id, name, type_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Topen1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Topen1"); @@ -6095,9 +5683,7 @@ private static class H5Topen1 { * hid_t H5Topen1(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Topen1$descriptor() { - return H5Topen1.DESC; - } + public static FunctionDescriptor H5Topen1$descriptor() { return H5Topen1.DESC; } /** * Downcall method handle for: @@ -6105,9 +5691,7 @@ private static class H5Topen1 { * hid_t H5Topen1(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Topen1$handle() { - return H5Topen1.HANDLE; - } + public static MethodHandle H5Topen1$handle() { return H5Topen1.HANDLE; } /** * Address for: @@ -6115,35 +5699,30 @@ private static class H5Topen1 { * hid_t H5Topen1(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Topen1$address() { - return H5Topen1.ADDR; - } + public static MemorySegment H5Topen1$address() { return H5Topen1.ADDR; } /** * {@snippet lang=c : * hid_t H5Topen1(hid_t loc_id, const char *name) * } */ - public static long H5Topen1(long loc_id, MemorySegment name) { + public static long H5Topen1(long loc_id, MemorySegment name) + { var mh$ = H5Topen1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Topen1", loc_id, name); } return (long)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tarray_create1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tarray_create1"); @@ -6156,9 +5735,7 @@ private static class H5Tarray_create1 { * hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t dim[], const int perm[]) * } */ - public static FunctionDescriptor H5Tarray_create1$descriptor() { - return H5Tarray_create1.DESC; - } + public static FunctionDescriptor H5Tarray_create1$descriptor() { return H5Tarray_create1.DESC; } /** * Downcall method handle for: @@ -6166,9 +5743,7 @@ private static class H5Tarray_create1 { * hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t dim[], const int perm[]) * } */ - public static MethodHandle H5Tarray_create1$handle() { - return H5Tarray_create1.HANDLE; - } + public static MethodHandle H5Tarray_create1$handle() { return H5Tarray_create1.HANDLE; } /** * Address for: @@ -6176,34 +5751,30 @@ private static class H5Tarray_create1 { * hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t dim[], const int perm[]) * } */ - public static MemorySegment H5Tarray_create1$address() { - return H5Tarray_create1.ADDR; - } + public static MemorySegment H5Tarray_create1$address() { return H5Tarray_create1.ADDR; } /** * {@snippet lang=c : * hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t dim[], const int perm[]) * } */ - public static long H5Tarray_create1(long base_id, int ndims, MemorySegment dim, MemorySegment perm) { + public static long H5Tarray_create1(long base_id, int ndims, MemorySegment dim, MemorySegment perm) + { var mh$ = H5Tarray_create1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tarray_create1", base_id, ndims, dim, perm); } return (long)mh$.invokeExact(base_id, ndims, dim, perm); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Tget_array_dims1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Tget_array_dims1"); @@ -6216,9 +5787,7 @@ private static class H5Tget_array_dims1 { * int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]) * } */ - public static FunctionDescriptor H5Tget_array_dims1$descriptor() { - return H5Tget_array_dims1.DESC; - } + public static FunctionDescriptor H5Tget_array_dims1$descriptor() { return H5Tget_array_dims1.DESC; } /** * Downcall method handle for: @@ -6226,9 +5795,7 @@ private static class H5Tget_array_dims1 { * int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]) * } */ - public static MethodHandle H5Tget_array_dims1$handle() { - return H5Tget_array_dims1.HANDLE; - } + public static MethodHandle H5Tget_array_dims1$handle() { return H5Tget_array_dims1.HANDLE; } /** * Address for: @@ -6236,32 +5803,29 @@ private static class H5Tget_array_dims1 { * int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]) * } */ - public static MemorySegment H5Tget_array_dims1$address() { - return H5Tget_array_dims1.ADDR; - } + public static MemorySegment H5Tget_array_dims1$address() { return H5Tget_array_dims1.ADDR; } /** * {@snippet lang=c : * int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]) * } */ - public static int H5Tget_array_dims1(long type_id, MemorySegment dims, MemorySegment perm) { + public static int H5Tget_array_dims1(long type_id, MemorySegment dims, MemorySegment perm) + { var mh$ = H5Tget_array_dims1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Tget_array_dims1", type_id, dims, perm); } return (int)mh$.invokeExact(type_id, dims, perm); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aclose"); @@ -6274,9 +5838,7 @@ private static class H5Aclose { * herr_t H5Aclose(hid_t attr_id) * } */ - public static FunctionDescriptor H5Aclose$descriptor() { - return H5Aclose.DESC; - } + public static FunctionDescriptor H5Aclose$descriptor() { return H5Aclose.DESC; } /** * Downcall method handle for: @@ -6284,9 +5846,7 @@ private static class H5Aclose { * herr_t H5Aclose(hid_t attr_id) * } */ - public static MethodHandle H5Aclose$handle() { - return H5Aclose.HANDLE; - } + public static MethodHandle H5Aclose$handle() { return H5Aclose.HANDLE; } /** * Address for: @@ -6294,36 +5854,30 @@ private static class H5Aclose { * herr_t H5Aclose(hid_t attr_id) * } */ - public static MemorySegment H5Aclose$address() { - return H5Aclose.ADDR; - } + public static MemorySegment H5Aclose$address() { return H5Aclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Aclose(hid_t attr_id) * } */ - public static int H5Aclose(long attr_id) { + public static int H5Aclose(long attr_id) + { var mh$ = H5Aclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aclose", attr_id); } return (int)mh$.invokeExact(attr_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aclose_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aclose_async"); @@ -6333,60 +5887,55 @@ private static class H5Aclose_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t es_id) + * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Aclose_async$descriptor() { - return H5Aclose_async.DESC; - } + public static FunctionDescriptor H5Aclose_async$descriptor() { return H5Aclose_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t es_id) + * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t es_id) * } */ - public static MethodHandle H5Aclose_async$handle() { - return H5Aclose_async.HANDLE; - } + public static MethodHandle H5Aclose_async$handle() { return H5Aclose_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t es_id) + * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t es_id) * } */ - public static MemorySegment H5Aclose_async$address() { - return H5Aclose_async.ADDR; - } + public static MemorySegment H5Aclose_async$address() { return H5Aclose_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t es_id) + * herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t es_id) * } */ - public static int H5Aclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, long attr_id, long es_id) { + public static int H5Aclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long attr_id, long es_id) + { var mh$ = H5Aclose_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aclose_async", app_file, app_func, app_line, attr_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, attr_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Acreate2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Acreate2"); @@ -6396,64 +5945,55 @@ private static class H5Acreate2 { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id) + * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id) * } */ - public static FunctionDescriptor H5Acreate2$descriptor() { - return H5Acreate2.DESC; - } + public static FunctionDescriptor H5Acreate2$descriptor() { return H5Acreate2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id) + * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id) * } */ - public static MethodHandle H5Acreate2$handle() { - return H5Acreate2.HANDLE; - } + public static MethodHandle H5Acreate2$handle() { return H5Acreate2.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id) + * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id) * } */ - public static MemorySegment H5Acreate2$address() { - return H5Acreate2.ADDR; - } + public static MemorySegment H5Acreate2$address() { return H5Acreate2.ADDR; } /** * {@snippet lang=c : - * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id) + * hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id) * } */ - public static long H5Acreate2(long loc_id, MemorySegment attr_name, long type_id, long space_id, long acpl_id, long aapl_id) { + public static long H5Acreate2(long loc_id, MemorySegment attr_name, long type_id, long space_id, + long acpl_id, long aapl_id) + { var mh$ = H5Acreate2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Acreate2", loc_id, attr_name, type_id, space_id, acpl_id, aapl_id); } return (long)mh$.invokeExact(loc_id, attr_name, type_id, space_id, acpl_id, aapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Acreate_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Acreate_async"); @@ -6463,62 +6003,58 @@ private static class H5Acreate_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Acreate_async$descriptor() { - return H5Acreate_async.DESC; - } + public static FunctionDescriptor H5Acreate_async$descriptor() { return H5Acreate_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) * } */ - public static MethodHandle H5Acreate_async$handle() { - return H5Acreate_async.HANDLE; - } + public static MethodHandle H5Acreate_async$handle() { return H5Acreate_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) * } */ - public static MemorySegment H5Acreate_async$address() { - return H5Acreate_async.ADDR; - } + public static MemorySegment H5Acreate_async$address() { return H5Acreate_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t es_id) * } */ - public static long H5Acreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment attr_name, long type_id, long space_id, long acpl_id, long aapl_id, long es_id) { + public static long H5Acreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment attr_name, long type_id, long space_id, + long acpl_id, long aapl_id, long es_id) + { var mh$ = H5Acreate_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Acreate_async", app_file, app_func, app_line, loc_id, attr_name, type_id, space_id, acpl_id, aapl_id, es_id); + traceDowncall("H5Acreate_async", app_file, app_func, app_line, loc_id, attr_name, type_id, + space_id, acpl_id, aapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, attr_name, type_id, space_id, acpl_id, aapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, attr_name, type_id, space_id, + acpl_id, aapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Acreate_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Acreate_by_name"); @@ -6528,66 +6064,59 @@ private static class H5Acreate_by_name { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t + * space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Acreate_by_name$descriptor() { - return H5Acreate_by_name.DESC; - } + public static FunctionDescriptor H5Acreate_by_name$descriptor() { return H5Acreate_by_name.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t + * space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) * } */ - public static MethodHandle H5Acreate_by_name$handle() { - return H5Acreate_by_name.HANDLE; - } + public static MethodHandle H5Acreate_by_name$handle() { return H5Acreate_by_name.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t + * space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) * } */ - public static MemorySegment H5Acreate_by_name$address() { - return H5Acreate_by_name.ADDR; - } + public static MemorySegment H5Acreate_by_name$address() { return H5Acreate_by_name.ADDR; } /** * {@snippet lang=c : - * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t + * space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id) * } */ - public static long H5Acreate_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, long type_id, long space_id, long acpl_id, long aapl_id, long lapl_id) { + public static long H5Acreate_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, + long type_id, long space_id, long acpl_id, long aapl_id, + long lapl_id) + { var mh$ = H5Acreate_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Acreate_by_name", loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id); + traceDowncall("H5Acreate_by_name", loc_id, obj_name, attr_name, type_id, space_id, acpl_id, + aapl_id, lapl_id); } - return (long)mh$.invokeExact(loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, + lapl_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Acreate_by_name_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Acreate_by_name_async"); @@ -6597,56 +6126,65 @@ private static class H5Acreate_by_name_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Acreate_by_name_async$descriptor() { + public static FunctionDescriptor H5Acreate_by_name_async$descriptor() + { return H5Acreate_by_name_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Acreate_by_name_async$handle() { - return H5Acreate_by_name_async.HANDLE; - } + public static MethodHandle H5Acreate_by_name_async$handle() { return H5Acreate_by_name_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Acreate_by_name_async$address() { - return H5Acreate_by_name_async.ADDR; - } + public static MemorySegment H5Acreate_by_name_async$address() { return H5Acreate_by_name_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, + * hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static long H5Acreate_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment obj_name, MemorySegment attr_name, long type_id, long space_id, long acpl_id, long aapl_id, long lapl_id, long es_id) { + public static long H5Acreate_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment obj_name, MemorySegment attr_name, + long type_id, long space_id, long acpl_id, long aapl_id, + long lapl_id, long es_id) + { var mh$ = H5Acreate_by_name_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Acreate_by_name_async", app_file, app_func, app_line, loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id, es_id); + traceDowncall("H5Acreate_by_name_async", app_file, app_func, app_line, loc_id, obj_name, + attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, type_id, + space_id, acpl_id, aapl_id, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Adelete { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Adelete"); @@ -6659,9 +6197,7 @@ private static class H5Adelete { * herr_t H5Adelete(hid_t loc_id, const char *attr_name) * } */ - public static FunctionDescriptor H5Adelete$descriptor() { - return H5Adelete.DESC; - } + public static FunctionDescriptor H5Adelete$descriptor() { return H5Adelete.DESC; } /** * Downcall method handle for: @@ -6669,9 +6205,7 @@ private static class H5Adelete { * herr_t H5Adelete(hid_t loc_id, const char *attr_name) * } */ - public static MethodHandle H5Adelete$handle() { - return H5Adelete.HANDLE; - } + public static MethodHandle H5Adelete$handle() { return H5Adelete.HANDLE; } /** * Address for: @@ -6679,37 +6213,31 @@ private static class H5Adelete { * herr_t H5Adelete(hid_t loc_id, const char *attr_name) * } */ - public static MemorySegment H5Adelete$address() { - return H5Adelete.ADDR; - } + public static MemorySegment H5Adelete$address() { return H5Adelete.ADDR; } /** * {@snippet lang=c : * herr_t H5Adelete(hid_t loc_id, const char *attr_name) * } */ - public static int H5Adelete(long loc_id, MemorySegment attr_name) { + public static int H5Adelete(long loc_id, MemorySegment attr_name) + { var mh$ = H5Adelete.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Adelete", loc_id, attr_name); } return (int)mh$.invokeExact(loc_id, attr_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Adelete_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Adelete_by_idx"); @@ -6719,58 +6247,54 @@ private static class H5Adelete_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Adelete_by_idx$descriptor() { - return H5Adelete_by_idx.DESC; - } + public static FunctionDescriptor H5Adelete_by_idx$descriptor() { return H5Adelete_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t lapl_id) * } */ - public static MethodHandle H5Adelete_by_idx$handle() { - return H5Adelete_by_idx.HANDLE; - } + public static MethodHandle H5Adelete_by_idx$handle() { return H5Adelete_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t lapl_id) * } */ - public static MemorySegment H5Adelete_by_idx$address() { - return H5Adelete_by_idx.ADDR; - } + public static MemorySegment H5Adelete_by_idx$address() { return H5Adelete_by_idx.ADDR; } /** * {@snippet lang=c : - * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t lapl_id) * } */ - public static int H5Adelete_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, long lapl_id) { + public static int H5Adelete_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, + long lapl_id) + { var mh$ = H5Adelete_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Adelete_by_idx", loc_id, obj_name, idx_type, order, n, lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, idx_type, order, n, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Adelete_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Adelete_by_name"); @@ -6783,9 +6307,7 @@ private static class H5Adelete_by_name { * herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Adelete_by_name$descriptor() { - return H5Adelete_by_name.DESC; - } + public static FunctionDescriptor H5Adelete_by_name$descriptor() { return H5Adelete_by_name.DESC; } /** * Downcall method handle for: @@ -6793,9 +6315,7 @@ private static class H5Adelete_by_name { * herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static MethodHandle H5Adelete_by_name$handle() { - return H5Adelete_by_name.HANDLE; - } + public static MethodHandle H5Adelete_by_name$handle() { return H5Adelete_by_name.HANDLE; } /** * Address for: @@ -6803,33 +6323,31 @@ private static class H5Adelete_by_name { * herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static MemorySegment H5Adelete_by_name$address() { - return H5Adelete_by_name.ADDR; - } + public static MemorySegment H5Adelete_by_name$address() { return H5Adelete_by_name.ADDR; } /** * {@snippet lang=c : * herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static int H5Adelete_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, long lapl_id) { + public static int H5Adelete_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, + long lapl_id) + { var mh$ = H5Adelete_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Adelete_by_name", loc_id, obj_name, attr_name, lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, attr_name, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aexists { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aexists"); @@ -6842,9 +6360,7 @@ private static class H5Aexists { * htri_t H5Aexists(hid_t obj_id, const char *attr_name) * } */ - public static FunctionDescriptor H5Aexists$descriptor() { - return H5Aexists.DESC; - } + public static FunctionDescriptor H5Aexists$descriptor() { return H5Aexists.DESC; } /** * Downcall method handle for: @@ -6852,9 +6368,7 @@ private static class H5Aexists { * htri_t H5Aexists(hid_t obj_id, const char *attr_name) * } */ - public static MethodHandle H5Aexists$handle() { - return H5Aexists.HANDLE; - } + public static MethodHandle H5Aexists$handle() { return H5Aexists.HANDLE; } /** * Address for: @@ -6862,38 +6376,31 @@ private static class H5Aexists { * htri_t H5Aexists(hid_t obj_id, const char *attr_name) * } */ - public static MemorySegment H5Aexists$address() { - return H5Aexists.ADDR; - } + public static MemorySegment H5Aexists$address() { return H5Aexists.ADDR; } /** * {@snippet lang=c : * htri_t H5Aexists(hid_t obj_id, const char *attr_name) * } */ - public static int H5Aexists(long obj_id, MemorySegment attr_name) { + public static int H5Aexists(long obj_id, MemorySegment attr_name) + { var mh$ = H5Aexists.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aexists", obj_id, attr_name); } return (int)mh$.invokeExact(obj_id, attr_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aexists_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aexists_async"); @@ -6903,58 +6410,55 @@ private static class H5Aexists_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hbool_t *exists, hid_t es_id) + * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hbool_t *exists, hid_t es_id) * } */ - public static FunctionDescriptor H5Aexists_async$descriptor() { - return H5Aexists_async.DESC; - } + public static FunctionDescriptor H5Aexists_async$descriptor() { return H5Aexists_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hbool_t *exists, hid_t es_id) + * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hbool_t *exists, hid_t es_id) * } */ - public static MethodHandle H5Aexists_async$handle() { - return H5Aexists_async.HANDLE; - } + public static MethodHandle H5Aexists_async$handle() { return H5Aexists_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hbool_t *exists, hid_t es_id) + * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hbool_t *exists, hid_t es_id) * } */ - public static MemorySegment H5Aexists_async$address() { - return H5Aexists_async.ADDR; - } + public static MemorySegment H5Aexists_async$address() { return H5Aexists_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hbool_t *exists, hid_t es_id) + * herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hbool_t *exists, hid_t es_id) * } */ - public static int H5Aexists_async(MemorySegment app_file, MemorySegment app_func, int app_line, long obj_id, MemorySegment attr_name, MemorySegment exists, long es_id) { + public static int H5Aexists_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long obj_id, MemorySegment attr_name, MemorySegment exists, long es_id) + { var mh$ = H5Aexists_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aexists_async", app_file, app_func, app_line, obj_id, attr_name, exists, es_id); + traceDowncall("H5Aexists_async", app_file, app_func, app_line, obj_id, attr_name, exists, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, obj_id, attr_name, exists, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aexists_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aexists_by_name"); @@ -6967,9 +6471,7 @@ private static class H5Aexists_by_name { * htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aexists_by_name$descriptor() { - return H5Aexists_by_name.DESC; - } + public static FunctionDescriptor H5Aexists_by_name$descriptor() { return H5Aexists_by_name.DESC; } /** * Downcall method handle for: @@ -6977,9 +6479,7 @@ private static class H5Aexists_by_name { * htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static MethodHandle H5Aexists_by_name$handle() { - return H5Aexists_by_name.HANDLE; - } + public static MethodHandle H5Aexists_by_name$handle() { return H5Aexists_by_name.HANDLE; } /** * Address for: @@ -6987,40 +6487,32 @@ private static class H5Aexists_by_name { * htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static MemorySegment H5Aexists_by_name$address() { - return H5Aexists_by_name.ADDR; - } + public static MemorySegment H5Aexists_by_name$address() { return H5Aexists_by_name.ADDR; } /** * {@snippet lang=c : * htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *attr_name, hid_t lapl_id) * } */ - public static int H5Aexists_by_name(long obj_id, MemorySegment obj_name, MemorySegment attr_name, long lapl_id) { + public static int H5Aexists_by_name(long obj_id, MemorySegment obj_name, MemorySegment attr_name, + long lapl_id) + { var mh$ = H5Aexists_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aexists_by_name", obj_id, obj_name, attr_name, lapl_id); } return (int)mh$.invokeExact(obj_id, obj_name, attr_name, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aexists_by_name_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aexists_by_name_async"); @@ -7030,55 +6522,59 @@ private static class H5Aexists_by_name_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Aexists_by_name_async$descriptor() { + public static FunctionDescriptor H5Aexists_by_name_async$descriptor() + { return H5Aexists_by_name_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Aexists_by_name_async$handle() { - return H5Aexists_by_name_async.HANDLE; - } + public static MethodHandle H5Aexists_by_name_async$handle() { return H5Aexists_by_name_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Aexists_by_name_async$address() { - return H5Aexists_by_name_async.ADDR; - } + public static MemorySegment H5Aexists_by_name_async$address() { return H5Aexists_by_name_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Aexists_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment obj_name, MemorySegment attr_name, MemorySegment exists, long lapl_id, long es_id) { + public static int H5Aexists_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment obj_name, MemorySegment attr_name, + MemorySegment exists, long lapl_id, long es_id) + { var mh$ = H5Aexists_by_name_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aexists_by_name_async", app_file, app_func, app_line, loc_id, obj_name, attr_name, exists, lapl_id, es_id); + traceDowncall("H5Aexists_by_name_async", app_file, app_func, app_line, loc_id, obj_name, + attr_name, exists, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, exists, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, exists, + lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_create_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_create_plist"); @@ -7091,9 +6587,7 @@ private static class H5Aget_create_plist { * hid_t H5Aget_create_plist(hid_t attr_id) * } */ - public static FunctionDescriptor H5Aget_create_plist$descriptor() { - return H5Aget_create_plist.DESC; - } + public static FunctionDescriptor H5Aget_create_plist$descriptor() { return H5Aget_create_plist.DESC; } /** * Downcall method handle for: @@ -7101,9 +6595,7 @@ private static class H5Aget_create_plist { * hid_t H5Aget_create_plist(hid_t attr_id) * } */ - public static MethodHandle H5Aget_create_plist$handle() { - return H5Aget_create_plist.HANDLE; - } + public static MethodHandle H5Aget_create_plist$handle() { return H5Aget_create_plist.HANDLE; } /** * Address for: @@ -7111,33 +6603,30 @@ private static class H5Aget_create_plist { * hid_t H5Aget_create_plist(hid_t attr_id) * } */ - public static MemorySegment H5Aget_create_plist$address() { - return H5Aget_create_plist.ADDR; - } + public static MemorySegment H5Aget_create_plist$address() { return H5Aget_create_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Aget_create_plist(hid_t attr_id) * } */ - public static long H5Aget_create_plist(long attr_id) { + public static long H5Aget_create_plist(long attr_id) + { var mh$ = H5Aget_create_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_create_plist", attr_id); } return (long)mh$.invokeExact(attr_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_info"); @@ -7150,9 +6639,7 @@ private static class H5Aget_info { * herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo) * } */ - public static FunctionDescriptor H5Aget_info$descriptor() { - return H5Aget_info.DESC; - } + public static FunctionDescriptor H5Aget_info$descriptor() { return H5Aget_info.DESC; } /** * Downcall method handle for: @@ -7160,9 +6647,7 @@ private static class H5Aget_info { * herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo) * } */ - public static MethodHandle H5Aget_info$handle() { - return H5Aget_info.HANDLE; - } + public static MethodHandle H5Aget_info$handle() { return H5Aget_info.HANDLE; } /** * Address for: @@ -7170,38 +6655,31 @@ private static class H5Aget_info { * herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo) * } */ - public static MemorySegment H5Aget_info$address() { - return H5Aget_info.ADDR; - } + public static MemorySegment H5Aget_info$address() { return H5Aget_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo) * } */ - public static int H5Aget_info(long attr_id, MemorySegment ainfo) { + public static int H5Aget_info(long attr_id, MemorySegment ainfo) + { var mh$ = H5Aget_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_info", attr_id, ainfo); } return (int)mh$.invokeExact(attr_id, ainfo); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_info_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_info_by_idx"); @@ -7211,59 +6689,54 @@ private static class H5Aget_info_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aget_info_by_idx$descriptor() { - return H5Aget_info_by_idx.DESC; - } + public static FunctionDescriptor H5Aget_info_by_idx$descriptor() { return H5Aget_info_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) * } */ - public static MethodHandle H5Aget_info_by_idx$handle() { - return H5Aget_info_by_idx.HANDLE; - } + public static MethodHandle H5Aget_info_by_idx$handle() { return H5Aget_info_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) * } */ - public static MemorySegment H5Aget_info_by_idx$address() { - return H5Aget_info_by_idx.ADDR; - } + public static MemorySegment H5Aget_info_by_idx$address() { return H5Aget_info_by_idx.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id) * } */ - public static int H5Aget_info_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, MemorySegment ainfo, long lapl_id) { + public static int H5Aget_info_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, + MemorySegment ainfo, long lapl_id) + { var mh$ = H5Aget_info_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_info_by_idx", loc_id, obj_name, idx_type, order, n, ainfo, lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, idx_type, order, n, ainfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_info_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_info_by_name"); @@ -7273,57 +6746,54 @@ private static class H5Aget_info_by_name { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t + * *ainfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aget_info_by_name$descriptor() { - return H5Aget_info_by_name.DESC; - } + public static FunctionDescriptor H5Aget_info_by_name$descriptor() { return H5Aget_info_by_name.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t + * *ainfo, hid_t lapl_id) * } */ - public static MethodHandle H5Aget_info_by_name$handle() { - return H5Aget_info_by_name.HANDLE; - } + public static MethodHandle H5Aget_info_by_name$handle() { return H5Aget_info_by_name.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t + * *ainfo, hid_t lapl_id) * } */ - public static MemorySegment H5Aget_info_by_name$address() { - return H5Aget_info_by_name.ADDR; - } + public static MemorySegment H5Aget_info_by_name$address() { return H5Aget_info_by_name.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t *ainfo, hid_t lapl_id) + * herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t + * *ainfo, hid_t lapl_id) * } */ - public static int H5Aget_info_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, MemorySegment ainfo, long lapl_id) { + public static int H5Aget_info_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, + MemorySegment ainfo, long lapl_id) + { var mh$ = H5Aget_info_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_info_by_name", loc_id, obj_name, attr_name, ainfo, lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, attr_name, ainfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_name"); @@ -7336,9 +6806,7 @@ private static class H5Aget_name { * ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf) * } */ - public static FunctionDescriptor H5Aget_name$descriptor() { - return H5Aget_name.DESC; - } + public static FunctionDescriptor H5Aget_name$descriptor() { return H5Aget_name.DESC; } /** * Downcall method handle for: @@ -7346,9 +6814,7 @@ private static class H5Aget_name { * ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf) * } */ - public static MethodHandle H5Aget_name$handle() { - return H5Aget_name.HANDLE; - } + public static MethodHandle H5Aget_name$handle() { return H5Aget_name.HANDLE; } /** * Address for: @@ -7356,39 +6822,31 @@ private static class H5Aget_name { * ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf) * } */ - public static MemorySegment H5Aget_name$address() { - return H5Aget_name.ADDR; - } + public static MemorySegment H5Aget_name$address() { return H5Aget_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf) * } */ - public static long H5Aget_name(long attr_id, long buf_size, MemorySegment buf) { + public static long H5Aget_name(long attr_id, long buf_size, MemorySegment buf) + { var mh$ = H5Aget_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_name", attr_id, buf_size, buf); } return (long)mh$.invokeExact(attr_id, buf_size, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_name_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_name_by_idx"); @@ -7398,55 +6856,54 @@ private static class H5Aget_name_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aget_name_by_idx$descriptor() { - return H5Aget_name_by_idx.DESC; - } + public static FunctionDescriptor H5Aget_name_by_idx$descriptor() { return H5Aget_name_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static MethodHandle H5Aget_name_by_idx$handle() { - return H5Aget_name_by_idx.HANDLE; - } + public static MethodHandle H5Aget_name_by_idx$handle() { return H5Aget_name_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static MemorySegment H5Aget_name_by_idx$address() { - return H5Aget_name_by_idx.ADDR; - } + public static MemorySegment H5Aget_name_by_idx$address() { return H5Aget_name_by_idx.ADDR; } /** * {@snippet lang=c : - * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static long H5Aget_name_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, MemorySegment name, long size, long lapl_id) { + public static long H5Aget_name_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, + long n, MemorySegment name, long size, long lapl_id) + { var mh$ = H5Aget_name_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aget_name_by_idx", loc_id, obj_name, idx_type, order, n, name, size, lapl_id); + traceDowncall("H5Aget_name_by_idx", loc_id, obj_name, idx_type, order, n, name, size, + lapl_id); } return (long)mh$.invokeExact(loc_id, obj_name, idx_type, order, n, name, size, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_space { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_space"); @@ -7459,9 +6916,7 @@ private static class H5Aget_space { * hid_t H5Aget_space(hid_t attr_id) * } */ - public static FunctionDescriptor H5Aget_space$descriptor() { - return H5Aget_space.DESC; - } + public static FunctionDescriptor H5Aget_space$descriptor() { return H5Aget_space.DESC; } /** * Downcall method handle for: @@ -7469,9 +6924,7 @@ private static class H5Aget_space { * hid_t H5Aget_space(hid_t attr_id) * } */ - public static MethodHandle H5Aget_space$handle() { - return H5Aget_space.HANDLE; - } + public static MethodHandle H5Aget_space$handle() { return H5Aget_space.HANDLE; } /** * Address for: @@ -7479,32 +6932,29 @@ private static class H5Aget_space { * hid_t H5Aget_space(hid_t attr_id) * } */ - public static MemorySegment H5Aget_space$address() { - return H5Aget_space.ADDR; - } + public static MemorySegment H5Aget_space$address() { return H5Aget_space.ADDR; } /** * {@snippet lang=c : * hid_t H5Aget_space(hid_t attr_id) * } */ - public static long H5Aget_space(long attr_id) { + public static long H5Aget_space(long attr_id) + { var mh$ = H5Aget_space.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_space", attr_id); } return (long)mh$.invokeExact(attr_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_storage_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_storage_size"); @@ -7517,9 +6967,7 @@ private static class H5Aget_storage_size { * hsize_t H5Aget_storage_size(hid_t attr_id) * } */ - public static FunctionDescriptor H5Aget_storage_size$descriptor() { - return H5Aget_storage_size.DESC; - } + public static FunctionDescriptor H5Aget_storage_size$descriptor() { return H5Aget_storage_size.DESC; } /** * Downcall method handle for: @@ -7527,9 +6975,7 @@ private static class H5Aget_storage_size { * hsize_t H5Aget_storage_size(hid_t attr_id) * } */ - public static MethodHandle H5Aget_storage_size$handle() { - return H5Aget_storage_size.HANDLE; - } + public static MethodHandle H5Aget_storage_size$handle() { return H5Aget_storage_size.HANDLE; } /** * Address for: @@ -7537,32 +6983,29 @@ private static class H5Aget_storage_size { * hsize_t H5Aget_storage_size(hid_t attr_id) * } */ - public static MemorySegment H5Aget_storage_size$address() { - return H5Aget_storage_size.ADDR; - } + public static MemorySegment H5Aget_storage_size$address() { return H5Aget_storage_size.ADDR; } /** * {@snippet lang=c : * hsize_t H5Aget_storage_size(hid_t attr_id) * } */ - public static long H5Aget_storage_size(long attr_id) { + public static long H5Aget_storage_size(long attr_id) + { var mh$ = H5Aget_storage_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_storage_size", attr_id); } return (long)mh$.invokeExact(attr_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_type"); @@ -7575,9 +7018,7 @@ private static class H5Aget_type { * hid_t H5Aget_type(hid_t attr_id) * } */ - public static FunctionDescriptor H5Aget_type$descriptor() { - return H5Aget_type.DESC; - } + public static FunctionDescriptor H5Aget_type$descriptor() { return H5Aget_type.DESC; } /** * Downcall method handle for: @@ -7585,9 +7026,7 @@ private static class H5Aget_type { * hid_t H5Aget_type(hid_t attr_id) * } */ - public static MethodHandle H5Aget_type$handle() { - return H5Aget_type.HANDLE; - } + public static MethodHandle H5Aget_type$handle() { return H5Aget_type.HANDLE; } /** * Address for: @@ -7595,37 +7034,31 @@ private static class H5Aget_type { * hid_t H5Aget_type(hid_t attr_id) * } */ - public static MemorySegment H5Aget_type$address() { - return H5Aget_type.ADDR; - } + public static MemorySegment H5Aget_type$address() { return H5Aget_type.ADDR; } /** * {@snippet lang=c : * hid_t H5Aget_type(hid_t attr_id) * } */ - public static long H5Aget_type(long attr_id) { + public static long H5Aget_type(long attr_id) + { var mh$ = H5Aget_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_type", attr_id); } return (long)mh$.invokeExact(attr_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aiterate2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aiterate2"); @@ -7635,62 +7068,55 @@ private static class H5Aiterate2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data) + * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5A_operator2_t op, void *op_data) * } */ - public static FunctionDescriptor H5Aiterate2$descriptor() { - return H5Aiterate2.DESC; - } + public static FunctionDescriptor H5Aiterate2$descriptor() { return H5Aiterate2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data) + * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5A_operator2_t op, void *op_data) * } */ - public static MethodHandle H5Aiterate2$handle() { - return H5Aiterate2.HANDLE; - } + public static MethodHandle H5Aiterate2$handle() { return H5Aiterate2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data) + * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5A_operator2_t op, void *op_data) * } */ - public static MemorySegment H5Aiterate2$address() { - return H5Aiterate2.ADDR; - } + public static MemorySegment H5Aiterate2$address() { return H5Aiterate2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data) + * herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5A_operator2_t op, void *op_data) * } */ - public static int H5Aiterate2(long loc_id, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data) { + public static int H5Aiterate2(long loc_id, int idx_type, int order, MemorySegment idx, MemorySegment op, + MemorySegment op_data) + { var mh$ = H5Aiterate2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aiterate2", loc_id, idx_type, order, idx, op, op_data); } return (int)mh$.invokeExact(loc_id, idx_type, order, idx, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aiterate_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aiterate_by_name"); @@ -7700,57 +7126,56 @@ private static class H5Aiterate_by_name { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aiterate_by_name$descriptor() { - return H5Aiterate_by_name.DESC; - } + public static FunctionDescriptor H5Aiterate_by_name$descriptor() { return H5Aiterate_by_name.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) * } */ - public static MethodHandle H5Aiterate_by_name$handle() { - return H5Aiterate_by_name.HANDLE; - } + public static MethodHandle H5Aiterate_by_name$handle() { return H5Aiterate_by_name.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) * } */ - public static MemorySegment H5Aiterate_by_name$address() { - return H5Aiterate_by_name.ADDR; - } + public static MemorySegment H5Aiterate_by_name$address() { return H5Aiterate_by_name.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapl_id) * } */ - public static int H5Aiterate_by_name(long loc_id, MemorySegment obj_name, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data, long lapl_id) { + public static int H5Aiterate_by_name(long loc_id, MemorySegment obj_name, int idx_type, int order, + MemorySegment idx, MemorySegment op, MemorySegment op_data, + long lapl_id) + { var mh$ = H5Aiterate_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aiterate_by_name", loc_id, obj_name, idx_type, order, idx, op, op_data, lapl_id); + traceDowncall("H5Aiterate_by_name", loc_id, obj_name, idx_type, order, idx, op, op_data, + lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, idx_type, order, idx, op, op_data, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen"); @@ -7763,9 +7188,7 @@ private static class H5Aopen { * hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id) * } */ - public static FunctionDescriptor H5Aopen$descriptor() { - return H5Aopen.DESC; - } + public static FunctionDescriptor H5Aopen$descriptor() { return H5Aopen.DESC; } /** * Downcall method handle for: @@ -7773,9 +7196,7 @@ private static class H5Aopen { * hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id) * } */ - public static MethodHandle H5Aopen$handle() { - return H5Aopen.HANDLE; - } + public static MethodHandle H5Aopen$handle() { return H5Aopen.HANDLE; } /** * Address for: @@ -7783,38 +7204,31 @@ private static class H5Aopen { * hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id) * } */ - public static MemorySegment H5Aopen$address() { - return H5Aopen.ADDR; - } + public static MemorySegment H5Aopen$address() { return H5Aopen.ADDR; } /** * {@snippet lang=c : * hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id) * } */ - public static long H5Aopen(long obj_id, MemorySegment attr_name, long aapl_id) { + public static long H5Aopen(long obj_id, MemorySegment attr_name, long aapl_id) + { var mh$ = H5Aopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aopen", obj_id, attr_name, aapl_id); } return (long)mh$.invokeExact(obj_id, attr_name, aapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_async"); @@ -7824,61 +7238,56 @@ private static class H5Aopen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id) + * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hid_t aapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Aopen_async$descriptor() { - return H5Aopen_async.DESC; - } + public static FunctionDescriptor H5Aopen_async$descriptor() { return H5Aopen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id) + * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hid_t aapl_id, hid_t es_id) * } */ - public static MethodHandle H5Aopen_async$handle() { - return H5Aopen_async.HANDLE; - } + public static MethodHandle H5Aopen_async$handle() { return H5Aopen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id) + * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hid_t aapl_id, hid_t es_id) * } */ - public static MemorySegment H5Aopen_async$address() { - return H5Aopen_async.ADDR; - } + public static MemorySegment H5Aopen_async$address() { return H5Aopen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id) + * hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t obj_id, + * const char *attr_name, hid_t aapl_id, hid_t es_id) * } */ - public static long H5Aopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, long obj_id, MemorySegment attr_name, long aapl_id, long es_id) { + public static long H5Aopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long obj_id, MemorySegment attr_name, long aapl_id, long es_id) + { var mh$ = H5Aopen_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aopen_async", app_file, app_func, app_line, obj_id, attr_name, aapl_id, es_id); + traceDowncall("H5Aopen_async", app_file, app_func, app_line, obj_id, attr_name, aapl_id, + es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, obj_id, attr_name, aapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_by_idx"); @@ -7888,65 +7297,55 @@ private static class H5Aopen_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t aapl_id, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Aopen_by_idx$descriptor() { - return H5Aopen_by_idx.DESC; - } + public static FunctionDescriptor H5Aopen_by_idx$descriptor() { return H5Aopen_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t aapl_id, hid_t lapl_id) * } */ - public static MethodHandle H5Aopen_by_idx$handle() { - return H5Aopen_by_idx.HANDLE; - } + public static MethodHandle H5Aopen_by_idx$handle() { return H5Aopen_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t aapl_id, hid_t lapl_id) * } */ - public static MemorySegment H5Aopen_by_idx$address() { - return H5Aopen_by_idx.ADDR; - } + public static MemorySegment H5Aopen_by_idx$address() { return H5Aopen_by_idx.ADDR; } /** * {@snippet lang=c : - * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, + * hsize_t n, hid_t aapl_id, hid_t lapl_id) * } */ - public static long H5Aopen_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, long aapl_id, long lapl_id) { + public static long H5Aopen_by_idx(long loc_id, MemorySegment obj_name, int idx_type, int order, long n, + long aapl_id, long lapl_id) + { var mh$ = H5Aopen_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aopen_by_idx", loc_id, obj_name, idx_type, order, n, aapl_id, lapl_id); } return (long)mh$.invokeExact(loc_id, obj_name, idx_type, order, n, aapl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_by_idx_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_by_idx_async"); @@ -7956,59 +7355,61 @@ private static class H5Aopen_by_idx_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, + * hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Aopen_by_idx_async$descriptor() { - return H5Aopen_by_idx_async.DESC; - } + public static FunctionDescriptor H5Aopen_by_idx_async$descriptor() { return H5Aopen_by_idx_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, + * hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Aopen_by_idx_async$handle() { - return H5Aopen_by_idx_async.HANDLE; - } + public static MethodHandle H5Aopen_by_idx_async$handle() { return H5Aopen_by_idx_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, + * hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Aopen_by_idx_async$address() { - return H5Aopen_by_idx_async.ADDR; - } + public static MemorySegment H5Aopen_by_idx_async$address() { return H5Aopen_by_idx_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, + * hid_t lapl_id, hid_t es_id) * } */ - public static long H5Aopen_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment obj_name, int idx_type, int order, long n, long aapl_id, long lapl_id, long es_id) { + public static long H5Aopen_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment obj_name, int idx_type, int order, + long n, long aapl_id, long lapl_id, long es_id) + { var mh$ = H5Aopen_by_idx_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aopen_by_idx_async", app_file, app_func, app_line, loc_id, obj_name, idx_type, order, n, aapl_id, lapl_id, es_id); + traceDowncall("H5Aopen_by_idx_async", app_file, app_func, app_line, loc_id, obj_name, + idx_type, order, n, aapl_id, lapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, idx_type, order, n, aapl_id, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, idx_type, order, n, + aapl_id, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_by_name"); @@ -8018,63 +7419,55 @@ private static class H5Aopen_by_name { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t + * lapl_id) * } */ - public static FunctionDescriptor H5Aopen_by_name$descriptor() { - return H5Aopen_by_name.DESC; - } + public static FunctionDescriptor H5Aopen_by_name$descriptor() { return H5Aopen_by_name.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t + * lapl_id) * } */ - public static MethodHandle H5Aopen_by_name$handle() { - return H5Aopen_by_name.HANDLE; - } + public static MethodHandle H5Aopen_by_name$handle() { return H5Aopen_by_name.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t + * lapl_id) * } */ - public static MemorySegment H5Aopen_by_name$address() { - return H5Aopen_by_name.ADDR; - } + public static MemorySegment H5Aopen_by_name$address() { return H5Aopen_by_name.ADDR; } /** * {@snippet lang=c : - * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id) + * hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t + * lapl_id) * } */ - public static long H5Aopen_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, long aapl_id, long lapl_id) { + public static long H5Aopen_by_name(long loc_id, MemorySegment obj_name, MemorySegment attr_name, + long aapl_id, long lapl_id) + { var mh$ = H5Aopen_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aopen_by_name", loc_id, obj_name, attr_name, aapl_id, lapl_id); } return (long)mh$.invokeExact(loc_id, obj_name, attr_name, aapl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_by_name_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_by_name_async"); @@ -8084,57 +7477,57 @@ private static class H5Aopen_by_name_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Aopen_by_name_async$descriptor() { - return H5Aopen_by_name_async.DESC; - } + public static FunctionDescriptor H5Aopen_by_name_async$descriptor() { return H5Aopen_by_name_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Aopen_by_name_async$handle() { - return H5Aopen_by_name_async.HANDLE; - } + public static MethodHandle H5Aopen_by_name_async$handle() { return H5Aopen_by_name_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Aopen_by_name_async$address() { - return H5Aopen_by_name_async.ADDR; - } + public static MemorySegment H5Aopen_by_name_async$address() { return H5Aopen_by_name_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) + * hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id) * } */ - public static long H5Aopen_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment obj_name, MemorySegment attr_name, long aapl_id, long lapl_id, long es_id) { + public static long H5Aopen_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment obj_name, MemorySegment attr_name, + long aapl_id, long lapl_id, long es_id) + { var mh$ = H5Aopen_by_name_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Aopen_by_name_async", app_file, app_func, app_line, loc_id, obj_name, attr_name, aapl_id, lapl_id, es_id); + traceDowncall("H5Aopen_by_name_async", app_file, app_func, app_line, loc_id, obj_name, + attr_name, aapl_id, lapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, aapl_id, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, attr_name, aapl_id, + lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aread { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aread"); @@ -8147,9 +7540,7 @@ private static class H5Aread { * herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf) * } */ - public static FunctionDescriptor H5Aread$descriptor() { - return H5Aread.DESC; - } + public static FunctionDescriptor H5Aread$descriptor() { return H5Aread.DESC; } /** * Downcall method handle for: @@ -8157,9 +7548,7 @@ private static class H5Aread { * herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf) * } */ - public static MethodHandle H5Aread$handle() { - return H5Aread.HANDLE; - } + public static MethodHandle H5Aread$handle() { return H5Aread.HANDLE; } /** * Address for: @@ -8167,38 +7556,31 @@ private static class H5Aread { * herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf) * } */ - public static MemorySegment H5Aread$address() { - return H5Aread.ADDR; - } + public static MemorySegment H5Aread$address() { return H5Aread.ADDR; } /** * {@snippet lang=c : * herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf) * } */ - public static int H5Aread(long attr_id, long type_id, MemorySegment buf) { + public static int H5Aread(long attr_id, long type_id, MemorySegment buf) + { var mh$ = H5Aread.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aread", attr_id, type_id, buf); } return (int)mh$.invokeExact(attr_id, type_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aread_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aread_async"); @@ -8208,57 +7590,54 @@ private static class H5Aread_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t dtype_id, void *buf, hid_t es_id) + * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t dtype_id, void *buf, hid_t es_id) * } */ - public static FunctionDescriptor H5Aread_async$descriptor() { - return H5Aread_async.DESC; - } + public static FunctionDescriptor H5Aread_async$descriptor() { return H5Aread_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t dtype_id, void *buf, hid_t es_id) + * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t dtype_id, void *buf, hid_t es_id) * } */ - public static MethodHandle H5Aread_async$handle() { - return H5Aread_async.HANDLE; - } + public static MethodHandle H5Aread_async$handle() { return H5Aread_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t dtype_id, void *buf, hid_t es_id) + * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t dtype_id, void *buf, hid_t es_id) * } */ - public static MemorySegment H5Aread_async$address() { - return H5Aread_async.ADDR; - } + public static MemorySegment H5Aread_async$address() { return H5Aread_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t dtype_id, void *buf, hid_t es_id) + * herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t dtype_id, void *buf, hid_t es_id) * } */ - public static int H5Aread_async(MemorySegment app_file, MemorySegment app_func, int app_line, long attr_id, long dtype_id, MemorySegment buf, long es_id) { + public static int H5Aread_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long attr_id, long dtype_id, MemorySegment buf, long es_id) + { var mh$ = H5Aread_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aread_async", app_file, app_func, app_line, attr_id, dtype_id, buf, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, attr_id, dtype_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Arename { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Arename"); @@ -8271,9 +7650,7 @@ private static class H5Arename { * herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name) * } */ - public static FunctionDescriptor H5Arename$descriptor() { - return H5Arename.DESC; - } + public static FunctionDescriptor H5Arename$descriptor() { return H5Arename.DESC; } /** * Downcall method handle for: @@ -8281,9 +7658,7 @@ private static class H5Arename { * herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name) * } */ - public static MethodHandle H5Arename$handle() { - return H5Arename.HANDLE; - } + public static MethodHandle H5Arename$handle() { return H5Arename.HANDLE; } /** * Address for: @@ -8291,38 +7666,31 @@ private static class H5Arename { * herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name) * } */ - public static MemorySegment H5Arename$address() { - return H5Arename.ADDR; - } + public static MemorySegment H5Arename$address() { return H5Arename.ADDR; } /** * {@snippet lang=c : * herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name) * } */ - public static int H5Arename(long loc_id, MemorySegment old_name, MemorySegment new_name) { + public static int H5Arename(long loc_id, MemorySegment old_name, MemorySegment new_name) + { var mh$ = H5Arename.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Arename", loc_id, old_name, new_name); } return (int)mh$.invokeExact(loc_id, old_name, new_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Arename_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Arename_async"); @@ -8332,63 +7700,56 @@ private static class H5Arename_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *old_name, const char *new_name, hid_t es_id) + * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *old_name, const char *new_name, hid_t es_id) * } */ - public static FunctionDescriptor H5Arename_async$descriptor() { - return H5Arename_async.DESC; - } + public static FunctionDescriptor H5Arename_async$descriptor() { return H5Arename_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *old_name, const char *new_name, hid_t es_id) + * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *old_name, const char *new_name, hid_t es_id) * } */ - public static MethodHandle H5Arename_async$handle() { - return H5Arename_async.HANDLE; - } + public static MethodHandle H5Arename_async$handle() { return H5Arename_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *old_name, const char *new_name, hid_t es_id) + * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *old_name, const char *new_name, hid_t es_id) * } */ - public static MemorySegment H5Arename_async$address() { - return H5Arename_async.ADDR; - } + public static MemorySegment H5Arename_async$address() { return H5Arename_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *old_name, const char *new_name, hid_t es_id) + * herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *old_name, const char *new_name, hid_t es_id) * } */ - public static int H5Arename_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment old_name, MemorySegment new_name, long es_id) { + public static int H5Arename_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment old_name, MemorySegment new_name, long es_id) + { var mh$ = H5Arename_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Arename_async", app_file, app_func, app_line, loc_id, old_name, new_name, es_id); + traceDowncall("H5Arename_async", app_file, app_func, app_line, loc_id, old_name, new_name, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, old_name, new_name, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Arename_by_name_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Arename_by_name_async"); @@ -8398,57 +7759,65 @@ private static class H5Arename_by_name_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, hid_t es_id) + * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Arename_by_name_async$descriptor() { + public static FunctionDescriptor H5Arename_by_name_async$descriptor() + { return H5Arename_by_name_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, hid_t es_id) + * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, + * hid_t es_id) * } */ - public static MethodHandle H5Arename_by_name_async$handle() { - return H5Arename_by_name_async.HANDLE; - } + public static MethodHandle H5Arename_by_name_async$handle() { return H5Arename_by_name_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, hid_t es_id) + * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, + * hid_t es_id) * } */ - public static MemorySegment H5Arename_by_name_async$address() { - return H5Arename_by_name_async.ADDR; - } + public static MemorySegment H5Arename_by_name_async$address() { return H5Arename_by_name_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, hid_t es_id) + * herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id, + * hid_t es_id) * } */ - public static int H5Arename_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment obj_name, MemorySegment old_attr_name, MemorySegment new_attr_name, long lapl_id, long es_id) { + public static int H5Arename_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment obj_name, + MemorySegment old_attr_name, MemorySegment new_attr_name, + long lapl_id, long es_id) + { var mh$ = H5Arename_by_name_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Arename_by_name_async", app_file, app_func, app_line, loc_id, obj_name, old_attr_name, new_attr_name, lapl_id, es_id); + traceDowncall("H5Arename_by_name_async", app_file, app_func, app_line, loc_id, obj_name, + old_attr_name, new_attr_name, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, old_attr_name, new_attr_name, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, obj_name, old_attr_name, + new_attr_name, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Awrite { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Awrite"); @@ -8461,9 +7830,7 @@ private static class H5Awrite { * herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf) * } */ - public static FunctionDescriptor H5Awrite$descriptor() { - return H5Awrite.DESC; - } + public static FunctionDescriptor H5Awrite$descriptor() { return H5Awrite.DESC; } /** * Downcall method handle for: @@ -8471,9 +7838,7 @@ private static class H5Awrite { * herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf) * } */ - public static MethodHandle H5Awrite$handle() { - return H5Awrite.HANDLE; - } + public static MethodHandle H5Awrite$handle() { return H5Awrite.HANDLE; } /** * Address for: @@ -8481,38 +7846,31 @@ private static class H5Awrite { * herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf) * } */ - public static MemorySegment H5Awrite$address() { - return H5Awrite.ADDR; - } + public static MemorySegment H5Awrite$address() { return H5Awrite.ADDR; } /** * {@snippet lang=c : * herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf) * } */ - public static int H5Awrite(long attr_id, long type_id, MemorySegment buf) { + public static int H5Awrite(long attr_id, long type_id, MemorySegment buf) + { var mh$ = H5Awrite.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Awrite", attr_id, type_id, buf); } return (int)mh$.invokeExact(attr_id, type_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Awrite_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Awrite_async"); @@ -8522,59 +7880,54 @@ private static class H5Awrite_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t type_id, const void *buf, hid_t es_id) + * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t type_id, const void *buf, hid_t es_id) * } */ - public static FunctionDescriptor H5Awrite_async$descriptor() { - return H5Awrite_async.DESC; - } + public static FunctionDescriptor H5Awrite_async$descriptor() { return H5Awrite_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t type_id, const void *buf, hid_t es_id) + * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t type_id, const void *buf, hid_t es_id) * } */ - public static MethodHandle H5Awrite_async$handle() { - return H5Awrite_async.HANDLE; - } + public static MethodHandle H5Awrite_async$handle() { return H5Awrite_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t type_id, const void *buf, hid_t es_id) + * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t type_id, const void *buf, hid_t es_id) * } */ - public static MemorySegment H5Awrite_async$address() { - return H5Awrite_async.ADDR; - } + public static MemorySegment H5Awrite_async$address() { return H5Awrite_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, hid_t type_id, const void *buf, hid_t es_id) + * herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, + * hid_t type_id, const void *buf, hid_t es_id) * } */ - public static int H5Awrite_async(MemorySegment app_file, MemorySegment app_func, int app_line, long attr_id, long type_id, MemorySegment buf, long es_id) { + public static int H5Awrite_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long attr_id, long type_id, MemorySegment buf, long es_id) + { var mh$ = H5Awrite_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Awrite_async", app_file, app_func, app_line, attr_id, type_id, buf, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, attr_id, type_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Arename_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Arename_by_name"); @@ -8584,59 +7937,54 @@ private static class H5Arename_by_name { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id) + * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char + * *new_attr_name, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Arename_by_name$descriptor() { - return H5Arename_by_name.DESC; - } + public static FunctionDescriptor H5Arename_by_name$descriptor() { return H5Arename_by_name.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id) + * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char + * *new_attr_name, hid_t lapl_id) * } */ - public static MethodHandle H5Arename_by_name$handle() { - return H5Arename_by_name.HANDLE; - } + public static MethodHandle H5Arename_by_name$handle() { return H5Arename_by_name.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id) + * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char + * *new_attr_name, hid_t lapl_id) * } */ - public static MemorySegment H5Arename_by_name$address() { - return H5Arename_by_name.ADDR; - } + public static MemorySegment H5Arename_by_name$address() { return H5Arename_by_name.ADDR; } /** * {@snippet lang=c : - * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id) + * herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char + * *new_attr_name, hid_t lapl_id) * } */ - public static int H5Arename_by_name(long loc_id, MemorySegment obj_name, MemorySegment old_attr_name, MemorySegment new_attr_name, long lapl_id) { + public static int H5Arename_by_name(long loc_id, MemorySegment obj_name, MemorySegment old_attr_name, + MemorySegment new_attr_name, long lapl_id) + { var mh$ = H5Arename_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Arename_by_name", loc_id, obj_name, old_attr_name, new_attr_name, lapl_id); } return (int)mh$.invokeExact(loc_id, obj_name, old_attr_name, new_attr_name, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Acreate1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Acreate1"); @@ -8649,9 +7997,7 @@ private static class H5Acreate1 { * hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id) * } */ - public static FunctionDescriptor H5Acreate1$descriptor() { - return H5Acreate1.DESC; - } + public static FunctionDescriptor H5Acreate1$descriptor() { return H5Acreate1.DESC; } /** * Downcall method handle for: @@ -8659,9 +8005,7 @@ private static class H5Acreate1 { * hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id) * } */ - public static MethodHandle H5Acreate1$handle() { - return H5Acreate1.HANDLE; - } + public static MethodHandle H5Acreate1$handle() { return H5Acreate1.HANDLE; } /** * Address for: @@ -8669,32 +8013,29 @@ private static class H5Acreate1 { * hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id) * } */ - public static MemorySegment H5Acreate1$address() { - return H5Acreate1.ADDR; - } + public static MemorySegment H5Acreate1$address() { return H5Acreate1.ADDR; } /** * {@snippet lang=c : * hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id) * } */ - public static long H5Acreate1(long loc_id, MemorySegment name, long type_id, long space_id, long acpl_id) { + public static long H5Acreate1(long loc_id, MemorySegment name, long type_id, long space_id, long acpl_id) + { var mh$ = H5Acreate1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Acreate1", loc_id, name, type_id, space_id, acpl_id); } return (long)mh$.invokeExact(loc_id, name, type_id, space_id, acpl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aget_num_attrs { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aget_num_attrs"); @@ -8707,9 +8048,7 @@ private static class H5Aget_num_attrs { * int H5Aget_num_attrs(hid_t loc_id) * } */ - public static FunctionDescriptor H5Aget_num_attrs$descriptor() { - return H5Aget_num_attrs.DESC; - } + public static FunctionDescriptor H5Aget_num_attrs$descriptor() { return H5Aget_num_attrs.DESC; } /** * Downcall method handle for: @@ -8717,9 +8056,7 @@ private static class H5Aget_num_attrs { * int H5Aget_num_attrs(hid_t loc_id) * } */ - public static MethodHandle H5Aget_num_attrs$handle() { - return H5Aget_num_attrs.HANDLE; - } + public static MethodHandle H5Aget_num_attrs$handle() { return H5Aget_num_attrs.HANDLE; } /** * Address for: @@ -8727,35 +8064,30 @@ private static class H5Aget_num_attrs { * int H5Aget_num_attrs(hid_t loc_id) * } */ - public static MemorySegment H5Aget_num_attrs$address() { - return H5Aget_num_attrs.ADDR; - } + public static MemorySegment H5Aget_num_attrs$address() { return H5Aget_num_attrs.ADDR; } /** * {@snippet lang=c : * int H5Aget_num_attrs(hid_t loc_id) * } */ - public static int H5Aget_num_attrs(long loc_id) { + public static int H5Aget_num_attrs(long loc_id) + { var mh$ = H5Aget_num_attrs.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aget_num_attrs", loc_id); } return (int)mh$.invokeExact(loc_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aiterate1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aiterate1"); @@ -8768,9 +8100,7 @@ private static class H5Aiterate1 { * herr_t H5Aiterate1(hid_t loc_id, unsigned int *idx, H5A_operator1_t op, void *op_data) * } */ - public static FunctionDescriptor H5Aiterate1$descriptor() { - return H5Aiterate1.DESC; - } + public static FunctionDescriptor H5Aiterate1$descriptor() { return H5Aiterate1.DESC; } /** * Downcall method handle for: @@ -8778,9 +8108,7 @@ private static class H5Aiterate1 { * herr_t H5Aiterate1(hid_t loc_id, unsigned int *idx, H5A_operator1_t op, void *op_data) * } */ - public static MethodHandle H5Aiterate1$handle() { - return H5Aiterate1.HANDLE; - } + public static MethodHandle H5Aiterate1$handle() { return H5Aiterate1.HANDLE; } /** * Address for: @@ -8788,33 +8116,30 @@ private static class H5Aiterate1 { * herr_t H5Aiterate1(hid_t loc_id, unsigned int *idx, H5A_operator1_t op, void *op_data) * } */ - public static MemorySegment H5Aiterate1$address() { - return H5Aiterate1.ADDR; - } + public static MemorySegment H5Aiterate1$address() { return H5Aiterate1.ADDR; } /** * {@snippet lang=c : * herr_t H5Aiterate1(hid_t loc_id, unsigned int *idx, H5A_operator1_t op, void *op_data) * } */ - public static int H5Aiterate1(long loc_id, MemorySegment idx, MemorySegment op, MemorySegment op_data) { + public static int H5Aiterate1(long loc_id, MemorySegment idx, MemorySegment op, MemorySegment op_data) + { var mh$ = H5Aiterate1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aiterate1", loc_id, idx, op, op_data); } return (int)mh$.invokeExact(loc_id, idx, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_idx"); @@ -8827,9 +8152,7 @@ private static class H5Aopen_idx { * hid_t H5Aopen_idx(hid_t loc_id, unsigned int idx) * } */ - public static FunctionDescriptor H5Aopen_idx$descriptor() { - return H5Aopen_idx.DESC; - } + public static FunctionDescriptor H5Aopen_idx$descriptor() { return H5Aopen_idx.DESC; } /** * Downcall method handle for: @@ -8837,9 +8160,7 @@ private static class H5Aopen_idx { * hid_t H5Aopen_idx(hid_t loc_id, unsigned int idx) * } */ - public static MethodHandle H5Aopen_idx$handle() { - return H5Aopen_idx.HANDLE; - } + public static MethodHandle H5Aopen_idx$handle() { return H5Aopen_idx.HANDLE; } /** * Address for: @@ -8847,33 +8168,30 @@ private static class H5Aopen_idx { * hid_t H5Aopen_idx(hid_t loc_id, unsigned int idx) * } */ - public static MemorySegment H5Aopen_idx$address() { - return H5Aopen_idx.ADDR; - } + public static MemorySegment H5Aopen_idx$address() { return H5Aopen_idx.ADDR; } /** * {@snippet lang=c : * hid_t H5Aopen_idx(hid_t loc_id, unsigned int idx) * } */ - public static long H5Aopen_idx(long loc_id, int idx) { + public static long H5Aopen_idx(long loc_id, int idx) + { var mh$ = H5Aopen_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aopen_idx", loc_id, idx); } return (long)mh$.invokeExact(loc_id, idx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Aopen_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Aopen_name"); @@ -8886,9 +8204,7 @@ private static class H5Aopen_name { * hid_t H5Aopen_name(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Aopen_name$descriptor() { - return H5Aopen_name.DESC; - } + public static FunctionDescriptor H5Aopen_name$descriptor() { return H5Aopen_name.DESC; } /** * Downcall method handle for: @@ -8896,9 +8212,7 @@ private static class H5Aopen_name { * hid_t H5Aopen_name(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Aopen_name$handle() { - return H5Aopen_name.HANDLE; - } + public static MethodHandle H5Aopen_name$handle() { return H5Aopen_name.HANDLE; } /** * Address for: @@ -8906,24 +8220,24 @@ private static class H5Aopen_name { * hid_t H5Aopen_name(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Aopen_name$address() { - return H5Aopen_name.ADDR; - } + public static MemorySegment H5Aopen_name$address() { return H5Aopen_name.ADDR; } /** * {@snippet lang=c : * hid_t H5Aopen_name(hid_t loc_id, const char *name) * } */ - public static long H5Aopen_name(long loc_id, MemorySegment name) { + public static long H5Aopen_name(long loc_id, MemorySegment name) + { var mh$ = H5Aopen_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Aopen_name", loc_id, name); } return (long)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5C_incr__off = (int)0L; @@ -8932,381 +8246,292 @@ public static long H5Aopen_name(long loc_id, MemorySegment name) { * enum H5C_cache_incr_mode.H5C_incr__off = 0 * } */ - public static int H5C_incr__off() { - return H5C_incr__off; - } + public static int H5C_incr__off() { return H5C_incr__off; } private static final int H5C_incr__threshold = (int)1L; /** * {@snippet lang=c : * enum H5C_cache_incr_mode.H5C_incr__threshold = 1 * } */ - public static int H5C_incr__threshold() { - return H5C_incr__threshold; - } + public static int H5C_incr__threshold() { return H5C_incr__threshold; } private static final int H5C_flash_incr__off = (int)0L; /** * {@snippet lang=c : * enum H5C_cache_flash_incr_mode.H5C_flash_incr__off = 0 * } */ - public static int H5C_flash_incr__off() { - return H5C_flash_incr__off; - } + public static int H5C_flash_incr__off() { return H5C_flash_incr__off; } private static final int H5C_flash_incr__add_space = (int)1L; /** * {@snippet lang=c : * enum H5C_cache_flash_incr_mode.H5C_flash_incr__add_space = 1 * } */ - public static int H5C_flash_incr__add_space() { - return H5C_flash_incr__add_space; - } + public static int H5C_flash_incr__add_space() { return H5C_flash_incr__add_space; } private static final int H5C_decr__off = (int)0L; /** * {@snippet lang=c : * enum H5C_cache_decr_mode.H5C_decr__off = 0 * } */ - public static int H5C_decr__off() { - return H5C_decr__off; - } + public static int H5C_decr__off() { return H5C_decr__off; } private static final int H5C_decr__threshold = (int)1L; /** * {@snippet lang=c : * enum H5C_cache_decr_mode.H5C_decr__threshold = 1 * } */ - public static int H5C_decr__threshold() { - return H5C_decr__threshold; - } + public static int H5C_decr__threshold() { return H5C_decr__threshold; } private static final int H5C_decr__age_out = (int)2L; /** * {@snippet lang=c : * enum H5C_cache_decr_mode.H5C_decr__age_out = 2 * } */ - public static int H5C_decr__age_out() { - return H5C_decr__age_out; - } + public static int H5C_decr__age_out() { return H5C_decr__age_out; } private static final int H5C_decr__age_out_with_threshold = (int)3L; /** * {@snippet lang=c : * enum H5C_cache_decr_mode.H5C_decr__age_out_with_threshold = 3 * } */ - public static int H5C_decr__age_out_with_threshold() { - return H5C_decr__age_out_with_threshold; - } + public static int H5C_decr__age_out_with_threshold() { return H5C_decr__age_out_with_threshold; } private static final int H5D_LAYOUT_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_LAYOUT_ERROR = -1 * } */ - public static int H5D_LAYOUT_ERROR() { - return H5D_LAYOUT_ERROR; - } + public static int H5D_LAYOUT_ERROR() { return H5D_LAYOUT_ERROR; } private static final int H5D_COMPACT = (int)0L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_COMPACT = 0 * } */ - public static int H5D_COMPACT() { - return H5D_COMPACT; - } + public static int H5D_COMPACT() { return H5D_COMPACT; } private static final int H5D_CONTIGUOUS = (int)1L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_CONTIGUOUS = 1 * } */ - public static int H5D_CONTIGUOUS() { - return H5D_CONTIGUOUS; - } + public static int H5D_CONTIGUOUS() { return H5D_CONTIGUOUS; } private static final int H5D_CHUNKED = (int)2L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_CHUNKED = 2 * } */ - public static int H5D_CHUNKED() { - return H5D_CHUNKED; - } + public static int H5D_CHUNKED() { return H5D_CHUNKED; } private static final int H5D_VIRTUAL = (int)3L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_VIRTUAL = 3 * } */ - public static int H5D_VIRTUAL() { - return H5D_VIRTUAL; - } + public static int H5D_VIRTUAL() { return H5D_VIRTUAL; } private static final int H5D_NLAYOUTS = (int)4L; /** * {@snippet lang=c : * enum H5D_layout_t.H5D_NLAYOUTS = 4 * } */ - public static int H5D_NLAYOUTS() { - return H5D_NLAYOUTS; - } + public static int H5D_NLAYOUTS() { return H5D_NLAYOUTS; } private static final int H5D_CHUNK_IDX_BTREE = (int)0L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_BTREE = 0 * } */ - public static int H5D_CHUNK_IDX_BTREE() { - return H5D_CHUNK_IDX_BTREE; - } + public static int H5D_CHUNK_IDX_BTREE() { return H5D_CHUNK_IDX_BTREE; } private static final int H5D_CHUNK_IDX_SINGLE = (int)1L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_SINGLE = 1 * } */ - public static int H5D_CHUNK_IDX_SINGLE() { - return H5D_CHUNK_IDX_SINGLE; - } + public static int H5D_CHUNK_IDX_SINGLE() { return H5D_CHUNK_IDX_SINGLE; } private static final int H5D_CHUNK_IDX_NONE = (int)2L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_NONE = 2 * } */ - public static int H5D_CHUNK_IDX_NONE() { - return H5D_CHUNK_IDX_NONE; - } + public static int H5D_CHUNK_IDX_NONE() { return H5D_CHUNK_IDX_NONE; } private static final int H5D_CHUNK_IDX_FARRAY = (int)3L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_FARRAY = 3 * } */ - public static int H5D_CHUNK_IDX_FARRAY() { - return H5D_CHUNK_IDX_FARRAY; - } + public static int H5D_CHUNK_IDX_FARRAY() { return H5D_CHUNK_IDX_FARRAY; } private static final int H5D_CHUNK_IDX_EARRAY = (int)4L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_EARRAY = 4 * } */ - public static int H5D_CHUNK_IDX_EARRAY() { - return H5D_CHUNK_IDX_EARRAY; - } + public static int H5D_CHUNK_IDX_EARRAY() { return H5D_CHUNK_IDX_EARRAY; } private static final int H5D_CHUNK_IDX_BT2 = (int)5L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_BT2 = 5 * } */ - public static int H5D_CHUNK_IDX_BT2() { - return H5D_CHUNK_IDX_BT2; - } + public static int H5D_CHUNK_IDX_BT2() { return H5D_CHUNK_IDX_BT2; } private static final int H5D_CHUNK_IDX_NTYPES = (int)6L; /** * {@snippet lang=c : * enum H5D_chunk_index_t.H5D_CHUNK_IDX_NTYPES = 6 * } */ - public static int H5D_CHUNK_IDX_NTYPES() { - return H5D_CHUNK_IDX_NTYPES; - } + public static int H5D_CHUNK_IDX_NTYPES() { return H5D_CHUNK_IDX_NTYPES; } private static final int H5D_ALLOC_TIME_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_alloc_time_t.H5D_ALLOC_TIME_ERROR = -1 * } */ - public static int H5D_ALLOC_TIME_ERROR() { - return H5D_ALLOC_TIME_ERROR; - } + public static int H5D_ALLOC_TIME_ERROR() { return H5D_ALLOC_TIME_ERROR; } private static final int H5D_ALLOC_TIME_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5D_alloc_time_t.H5D_ALLOC_TIME_DEFAULT = 0 * } */ - public static int H5D_ALLOC_TIME_DEFAULT() { - return H5D_ALLOC_TIME_DEFAULT; - } + public static int H5D_ALLOC_TIME_DEFAULT() { return H5D_ALLOC_TIME_DEFAULT; } private static final int H5D_ALLOC_TIME_EARLY = (int)1L; /** * {@snippet lang=c : * enum H5D_alloc_time_t.H5D_ALLOC_TIME_EARLY = 1 * } */ - public static int H5D_ALLOC_TIME_EARLY() { - return H5D_ALLOC_TIME_EARLY; - } + public static int H5D_ALLOC_TIME_EARLY() { return H5D_ALLOC_TIME_EARLY; } private static final int H5D_ALLOC_TIME_LATE = (int)2L; /** * {@snippet lang=c : * enum H5D_alloc_time_t.H5D_ALLOC_TIME_LATE = 2 * } */ - public static int H5D_ALLOC_TIME_LATE() { - return H5D_ALLOC_TIME_LATE; - } + public static int H5D_ALLOC_TIME_LATE() { return H5D_ALLOC_TIME_LATE; } private static final int H5D_ALLOC_TIME_INCR = (int)3L; /** * {@snippet lang=c : * enum H5D_alloc_time_t.H5D_ALLOC_TIME_INCR = 3 * } */ - public static int H5D_ALLOC_TIME_INCR() { - return H5D_ALLOC_TIME_INCR; - } + public static int H5D_ALLOC_TIME_INCR() { return H5D_ALLOC_TIME_INCR; } private static final int H5D_SPACE_STATUS_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_space_status_t.H5D_SPACE_STATUS_ERROR = -1 * } */ - public static int H5D_SPACE_STATUS_ERROR() { - return H5D_SPACE_STATUS_ERROR; - } + public static int H5D_SPACE_STATUS_ERROR() { return H5D_SPACE_STATUS_ERROR; } private static final int H5D_SPACE_STATUS_NOT_ALLOCATED = (int)0L; /** * {@snippet lang=c : * enum H5D_space_status_t.H5D_SPACE_STATUS_NOT_ALLOCATED = 0 * } */ - public static int H5D_SPACE_STATUS_NOT_ALLOCATED() { - return H5D_SPACE_STATUS_NOT_ALLOCATED; - } + public static int H5D_SPACE_STATUS_NOT_ALLOCATED() { return H5D_SPACE_STATUS_NOT_ALLOCATED; } private static final int H5D_SPACE_STATUS_PART_ALLOCATED = (int)1L; /** * {@snippet lang=c : * enum H5D_space_status_t.H5D_SPACE_STATUS_PART_ALLOCATED = 1 * } */ - public static int H5D_SPACE_STATUS_PART_ALLOCATED() { - return H5D_SPACE_STATUS_PART_ALLOCATED; - } + public static int H5D_SPACE_STATUS_PART_ALLOCATED() { return H5D_SPACE_STATUS_PART_ALLOCATED; } private static final int H5D_SPACE_STATUS_ALLOCATED = (int)2L; /** * {@snippet lang=c : * enum H5D_space_status_t.H5D_SPACE_STATUS_ALLOCATED = 2 * } */ - public static int H5D_SPACE_STATUS_ALLOCATED() { - return H5D_SPACE_STATUS_ALLOCATED; - } + public static int H5D_SPACE_STATUS_ALLOCATED() { return H5D_SPACE_STATUS_ALLOCATED; } private static final int H5D_FILL_TIME_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_fill_time_t.H5D_FILL_TIME_ERROR = -1 * } */ - public static int H5D_FILL_TIME_ERROR() { - return H5D_FILL_TIME_ERROR; - } + public static int H5D_FILL_TIME_ERROR() { return H5D_FILL_TIME_ERROR; } private static final int H5D_FILL_TIME_ALLOC = (int)0L; /** * {@snippet lang=c : * enum H5D_fill_time_t.H5D_FILL_TIME_ALLOC = 0 * } */ - public static int H5D_FILL_TIME_ALLOC() { - return H5D_FILL_TIME_ALLOC; - } + public static int H5D_FILL_TIME_ALLOC() { return H5D_FILL_TIME_ALLOC; } private static final int H5D_FILL_TIME_NEVER = (int)1L; /** * {@snippet lang=c : * enum H5D_fill_time_t.H5D_FILL_TIME_NEVER = 1 * } */ - public static int H5D_FILL_TIME_NEVER() { - return H5D_FILL_TIME_NEVER; - } + public static int H5D_FILL_TIME_NEVER() { return H5D_FILL_TIME_NEVER; } private static final int H5D_FILL_TIME_IFSET = (int)2L; /** * {@snippet lang=c : * enum H5D_fill_time_t.H5D_FILL_TIME_IFSET = 2 * } */ - public static int H5D_FILL_TIME_IFSET() { - return H5D_FILL_TIME_IFSET; - } + public static int H5D_FILL_TIME_IFSET() { return H5D_FILL_TIME_IFSET; } private static final int H5D_FILL_VALUE_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_fill_value_t.H5D_FILL_VALUE_ERROR = -1 * } */ - public static int H5D_FILL_VALUE_ERROR() { - return H5D_FILL_VALUE_ERROR; - } + public static int H5D_FILL_VALUE_ERROR() { return H5D_FILL_VALUE_ERROR; } private static final int H5D_FILL_VALUE_UNDEFINED = (int)0L; /** * {@snippet lang=c : * enum H5D_fill_value_t.H5D_FILL_VALUE_UNDEFINED = 0 * } */ - public static int H5D_FILL_VALUE_UNDEFINED() { - return H5D_FILL_VALUE_UNDEFINED; - } + public static int H5D_FILL_VALUE_UNDEFINED() { return H5D_FILL_VALUE_UNDEFINED; } private static final int H5D_FILL_VALUE_DEFAULT = (int)1L; /** * {@snippet lang=c : * enum H5D_fill_value_t.H5D_FILL_VALUE_DEFAULT = 1 * } */ - public static int H5D_FILL_VALUE_DEFAULT() { - return H5D_FILL_VALUE_DEFAULT; - } + public static int H5D_FILL_VALUE_DEFAULT() { return H5D_FILL_VALUE_DEFAULT; } private static final int H5D_FILL_VALUE_USER_DEFINED = (int)2L; /** * {@snippet lang=c : * enum H5D_fill_value_t.H5D_FILL_VALUE_USER_DEFINED = 2 * } */ - public static int H5D_FILL_VALUE_USER_DEFINED() { - return H5D_FILL_VALUE_USER_DEFINED; - } + public static int H5D_FILL_VALUE_USER_DEFINED() { return H5D_FILL_VALUE_USER_DEFINED; } private static final int H5D_VDS_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5D_vds_view_t.H5D_VDS_ERROR = -1 * } */ - public static int H5D_VDS_ERROR() { - return H5D_VDS_ERROR; - } + public static int H5D_VDS_ERROR() { return H5D_VDS_ERROR; } private static final int H5D_VDS_FIRST_MISSING = (int)0L; /** * {@snippet lang=c : * enum H5D_vds_view_t.H5D_VDS_FIRST_MISSING = 0 * } */ - public static int H5D_VDS_FIRST_MISSING() { - return H5D_VDS_FIRST_MISSING; - } + public static int H5D_VDS_FIRST_MISSING() { return H5D_VDS_FIRST_MISSING; } private static final int H5D_VDS_LAST_AVAILABLE = (int)1L; /** * {@snippet lang=c : * enum H5D_vds_view_t.H5D_VDS_LAST_AVAILABLE = 1 * } */ - public static int H5D_VDS_LAST_AVAILABLE() { - return H5D_VDS_LAST_AVAILABLE; - } + public static int H5D_VDS_LAST_AVAILABLE() { return H5D_VDS_LAST_AVAILABLE; } private static class H5Dcreate2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dcreate2"); @@ -9316,65 +8541,55 @@ private static class H5Dcreate2 { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id) + * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t + * dcpl_id, hid_t dapl_id) * } */ - public static FunctionDescriptor H5Dcreate2$descriptor() { - return H5Dcreate2.DESC; - } + public static FunctionDescriptor H5Dcreate2$descriptor() { return H5Dcreate2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id) + * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t + * dcpl_id, hid_t dapl_id) * } */ - public static MethodHandle H5Dcreate2$handle() { - return H5Dcreate2.HANDLE; - } + public static MethodHandle H5Dcreate2$handle() { return H5Dcreate2.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id) + * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t + * dcpl_id, hid_t dapl_id) * } */ - public static MemorySegment H5Dcreate2$address() { - return H5Dcreate2.ADDR; - } + public static MemorySegment H5Dcreate2$address() { return H5Dcreate2.ADDR; } /** * {@snippet lang=c : - * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id) + * hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t + * dcpl_id, hid_t dapl_id) * } */ - public static long H5Dcreate2(long loc_id, MemorySegment name, long type_id, long space_id, long lcpl_id, long dcpl_id, long dapl_id) { + public static long H5Dcreate2(long loc_id, MemorySegment name, long type_id, long space_id, long lcpl_id, + long dcpl_id, long dapl_id) + { var mh$ = H5Dcreate2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dcreate2", loc_id, name, type_id, space_id, lcpl_id, dcpl_id, dapl_id); } return (long)mh$.invokeExact(loc_id, name, type_id, space_id, lcpl_id, dcpl_id, dapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dcreate_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dcreate_async"); @@ -9384,59 +8599,61 @@ private static class H5Dcreate_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t es_id) + * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t + * es_id) * } */ - public static FunctionDescriptor H5Dcreate_async$descriptor() { - return H5Dcreate_async.DESC; - } + public static FunctionDescriptor H5Dcreate_async$descriptor() { return H5Dcreate_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t es_id) + * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t + * es_id) * } */ - public static MethodHandle H5Dcreate_async$handle() { - return H5Dcreate_async.HANDLE; - } + public static MethodHandle H5Dcreate_async$handle() { return H5Dcreate_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t es_id) + * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t + * es_id) * } */ - public static MemorySegment H5Dcreate_async$address() { - return H5Dcreate_async.ADDR; - } + public static MemorySegment H5Dcreate_async$address() { return H5Dcreate_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t es_id) + * hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id, hid_t + * es_id) * } */ - public static long H5Dcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long type_id, long space_id, long lcpl_id, long dcpl_id, long dapl_id, long es_id) { + public static long H5Dcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long type_id, long space_id, + long lcpl_id, long dcpl_id, long dapl_id, long es_id) + { var mh$ = H5Dcreate_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dcreate_async", app_file, app_func, app_line, loc_id, name, type_id, space_id, lcpl_id, dcpl_id, dapl_id, es_id); + traceDowncall("H5Dcreate_async", app_file, app_func, app_line, loc_id, name, type_id, + space_id, lcpl_id, dcpl_id, dapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, type_id, space_id, lcpl_id, dcpl_id, dapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, type_id, space_id, + lcpl_id, dcpl_id, dapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dcreate_anon { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dcreate_anon"); @@ -9449,9 +8666,7 @@ private static class H5Dcreate_anon { * hid_t H5Dcreate_anon(hid_t loc_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id) * } */ - public static FunctionDescriptor H5Dcreate_anon$descriptor() { - return H5Dcreate_anon.DESC; - } + public static FunctionDescriptor H5Dcreate_anon$descriptor() { return H5Dcreate_anon.DESC; } /** * Downcall method handle for: @@ -9459,9 +8674,7 @@ private static class H5Dcreate_anon { * hid_t H5Dcreate_anon(hid_t loc_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id) * } */ - public static MethodHandle H5Dcreate_anon$handle() { - return H5Dcreate_anon.HANDLE; - } + public static MethodHandle H5Dcreate_anon$handle() { return H5Dcreate_anon.HANDLE; } /** * Address for: @@ -9469,34 +8682,30 @@ private static class H5Dcreate_anon { * hid_t H5Dcreate_anon(hid_t loc_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id) * } */ - public static MemorySegment H5Dcreate_anon$address() { - return H5Dcreate_anon.ADDR; - } + public static MemorySegment H5Dcreate_anon$address() { return H5Dcreate_anon.ADDR; } /** * {@snippet lang=c : * hid_t H5Dcreate_anon(hid_t loc_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id) * } */ - public static long H5Dcreate_anon(long loc_id, long type_id, long space_id, long dcpl_id, long dapl_id) { + public static long H5Dcreate_anon(long loc_id, long type_id, long space_id, long dcpl_id, long dapl_id) + { var mh$ = H5Dcreate_anon.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dcreate_anon", loc_id, type_id, space_id, dcpl_id, dapl_id); } return (long)mh$.invokeExact(loc_id, type_id, space_id, dcpl_id, dapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dopen2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dopen2"); @@ -9509,9 +8718,7 @@ private static class H5Dopen2 { * hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id) * } */ - public static FunctionDescriptor H5Dopen2$descriptor() { - return H5Dopen2.DESC; - } + public static FunctionDescriptor H5Dopen2$descriptor() { return H5Dopen2.DESC; } /** * Downcall method handle for: @@ -9519,9 +8726,7 @@ private static class H5Dopen2 { * hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id) * } */ - public static MethodHandle H5Dopen2$handle() { - return H5Dopen2.HANDLE; - } + public static MethodHandle H5Dopen2$handle() { return H5Dopen2.HANDLE; } /** * Address for: @@ -9529,38 +8734,31 @@ private static class H5Dopen2 { * hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id) * } */ - public static MemorySegment H5Dopen2$address() { - return H5Dopen2.ADDR; - } + public static MemorySegment H5Dopen2$address() { return H5Dopen2.ADDR; } /** * {@snippet lang=c : * hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id) * } */ - public static long H5Dopen2(long loc_id, MemorySegment name, long dapl_id) { + public static long H5Dopen2(long loc_id, MemorySegment name, long dapl_id) + { var mh$ = H5Dopen2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dopen2", loc_id, name, dapl_id); } return (long)mh$.invokeExact(loc_id, name, dapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dopen_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dopen_async"); @@ -9570,55 +8768,53 @@ private static class H5Dopen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id) + * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t dapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Dopen_async$descriptor() { - return H5Dopen_async.DESC; - } + public static FunctionDescriptor H5Dopen_async$descriptor() { return H5Dopen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id) + * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t dapl_id, hid_t es_id) * } */ - public static MethodHandle H5Dopen_async$handle() { - return H5Dopen_async.HANDLE; - } + public static MethodHandle H5Dopen_async$handle() { return H5Dopen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id) + * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t dapl_id, hid_t es_id) * } */ - public static MemorySegment H5Dopen_async$address() { - return H5Dopen_async.ADDR; - } + public static MemorySegment H5Dopen_async$address() { return H5Dopen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id) + * hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t dapl_id, hid_t es_id) * } */ - public static long H5Dopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long dapl_id, long es_id) { + public static long H5Dopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long dapl_id, long es_id) + { var mh$ = H5Dopen_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dopen_async", app_file, app_func, app_line, loc_id, name, dapl_id, es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, dapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_space { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_space"); @@ -9631,9 +8827,7 @@ private static class H5Dget_space { * hid_t H5Dget_space(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_space$descriptor() { - return H5Dget_space.DESC; - } + public static FunctionDescriptor H5Dget_space$descriptor() { return H5Dget_space.DESC; } /** * Downcall method handle for: @@ -9641,9 +8835,7 @@ private static class H5Dget_space { * hid_t H5Dget_space(hid_t dset_id) * } */ - public static MethodHandle H5Dget_space$handle() { - return H5Dget_space.HANDLE; - } + public static MethodHandle H5Dget_space$handle() { return H5Dget_space.HANDLE; } /** * Address for: @@ -9651,36 +8843,30 @@ private static class H5Dget_space { * hid_t H5Dget_space(hid_t dset_id) * } */ - public static MemorySegment H5Dget_space$address() { - return H5Dget_space.ADDR; - } + public static MemorySegment H5Dget_space$address() { return H5Dget_space.ADDR; } /** * {@snippet lang=c : * hid_t H5Dget_space(hid_t dset_id) * } */ - public static long H5Dget_space(long dset_id) { + public static long H5Dget_space(long dset_id) + { var mh$ = H5Dget_space.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_space", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_space_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_space_async"); @@ -9690,56 +8876,54 @@ private static class H5Dget_space_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Dget_space_async$descriptor() { - return H5Dget_space_async.DESC; - } + public static FunctionDescriptor H5Dget_space_async$descriptor() { return H5Dget_space_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, hid_t es_id) * } */ - public static MethodHandle H5Dget_space_async$handle() { - return H5Dget_space_async.HANDLE; - } + public static MethodHandle H5Dget_space_async$handle() { return H5Dget_space_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, hid_t es_id) * } */ - public static MemorySegment H5Dget_space_async$address() { - return H5Dget_space_async.ADDR; - } + public static MemorySegment H5Dget_space_async$address() { return H5Dget_space_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, hid_t es_id) * } */ - public static long H5Dget_space_async(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, long es_id) { + public static long H5Dget_space_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, long es_id) + { var mh$ = H5Dget_space_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_space_async", app_file, app_func, app_line, dset_id, es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, dset_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_space_status { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_space_status"); @@ -9752,9 +8936,7 @@ private static class H5Dget_space_status { * herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t *allocation) * } */ - public static FunctionDescriptor H5Dget_space_status$descriptor() { - return H5Dget_space_status.DESC; - } + public static FunctionDescriptor H5Dget_space_status$descriptor() { return H5Dget_space_status.DESC; } /** * Downcall method handle for: @@ -9762,9 +8944,7 @@ private static class H5Dget_space_status { * herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t *allocation) * } */ - public static MethodHandle H5Dget_space_status$handle() { - return H5Dget_space_status.HANDLE; - } + public static MethodHandle H5Dget_space_status$handle() { return H5Dget_space_status.HANDLE; } /** * Address for: @@ -9772,32 +8952,29 @@ private static class H5Dget_space_status { * herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t *allocation) * } */ - public static MemorySegment H5Dget_space_status$address() { - return H5Dget_space_status.ADDR; - } + public static MemorySegment H5Dget_space_status$address() { return H5Dget_space_status.ADDR; } /** * {@snippet lang=c : * herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t *allocation) * } */ - public static int H5Dget_space_status(long dset_id, MemorySegment allocation) { + public static int H5Dget_space_status(long dset_id, MemorySegment allocation) + { var mh$ = H5Dget_space_status.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_space_status", dset_id, allocation); } return (int)mh$.invokeExact(dset_id, allocation); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_type"); @@ -9810,9 +8987,7 @@ private static class H5Dget_type { * hid_t H5Dget_type(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_type$descriptor() { - return H5Dget_type.DESC; - } + public static FunctionDescriptor H5Dget_type$descriptor() { return H5Dget_type.DESC; } /** * Downcall method handle for: @@ -9820,9 +8995,7 @@ private static class H5Dget_type { * hid_t H5Dget_type(hid_t dset_id) * } */ - public static MethodHandle H5Dget_type$handle() { - return H5Dget_type.HANDLE; - } + public static MethodHandle H5Dget_type$handle() { return H5Dget_type.HANDLE; } /** * Address for: @@ -9830,32 +9003,29 @@ private static class H5Dget_type { * hid_t H5Dget_type(hid_t dset_id) * } */ - public static MemorySegment H5Dget_type$address() { - return H5Dget_type.ADDR; - } + public static MemorySegment H5Dget_type$address() { return H5Dget_type.ADDR; } /** * {@snippet lang=c : * hid_t H5Dget_type(hid_t dset_id) * } */ - public static long H5Dget_type(long dset_id) { + public static long H5Dget_type(long dset_id) + { var mh$ = H5Dget_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_type", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_create_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_create_plist"); @@ -9868,9 +9038,7 @@ private static class H5Dget_create_plist { * hid_t H5Dget_create_plist(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_create_plist$descriptor() { - return H5Dget_create_plist.DESC; - } + public static FunctionDescriptor H5Dget_create_plist$descriptor() { return H5Dget_create_plist.DESC; } /** * Downcall method handle for: @@ -9878,9 +9046,7 @@ private static class H5Dget_create_plist { * hid_t H5Dget_create_plist(hid_t dset_id) * } */ - public static MethodHandle H5Dget_create_plist$handle() { - return H5Dget_create_plist.HANDLE; - } + public static MethodHandle H5Dget_create_plist$handle() { return H5Dget_create_plist.HANDLE; } /** * Address for: @@ -9888,32 +9054,29 @@ private static class H5Dget_create_plist { * hid_t H5Dget_create_plist(hid_t dset_id) * } */ - public static MemorySegment H5Dget_create_plist$address() { - return H5Dget_create_plist.ADDR; - } + public static MemorySegment H5Dget_create_plist$address() { return H5Dget_create_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Dget_create_plist(hid_t dset_id) * } */ - public static long H5Dget_create_plist(long dset_id) { + public static long H5Dget_create_plist(long dset_id) + { var mh$ = H5Dget_create_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_create_plist", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_access_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_access_plist"); @@ -9926,9 +9089,7 @@ private static class H5Dget_access_plist { * hid_t H5Dget_access_plist(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_access_plist$descriptor() { - return H5Dget_access_plist.DESC; - } + public static FunctionDescriptor H5Dget_access_plist$descriptor() { return H5Dget_access_plist.DESC; } /** * Downcall method handle for: @@ -9936,9 +9097,7 @@ private static class H5Dget_access_plist { * hid_t H5Dget_access_plist(hid_t dset_id) * } */ - public static MethodHandle H5Dget_access_plist$handle() { - return H5Dget_access_plist.HANDLE; - } + public static MethodHandle H5Dget_access_plist$handle() { return H5Dget_access_plist.HANDLE; } /** * Address for: @@ -9946,32 +9105,29 @@ private static class H5Dget_access_plist { * hid_t H5Dget_access_plist(hid_t dset_id) * } */ - public static MemorySegment H5Dget_access_plist$address() { - return H5Dget_access_plist.ADDR; - } + public static MemorySegment H5Dget_access_plist$address() { return H5Dget_access_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Dget_access_plist(hid_t dset_id) * } */ - public static long H5Dget_access_plist(long dset_id) { + public static long H5Dget_access_plist(long dset_id) + { var mh$ = H5Dget_access_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_access_plist", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_storage_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_storage_size"); @@ -9984,9 +9140,7 @@ private static class H5Dget_storage_size { * hsize_t H5Dget_storage_size(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_storage_size$descriptor() { - return H5Dget_storage_size.DESC; - } + public static FunctionDescriptor H5Dget_storage_size$descriptor() { return H5Dget_storage_size.DESC; } /** * Downcall method handle for: @@ -9994,9 +9148,7 @@ private static class H5Dget_storage_size { * hsize_t H5Dget_storage_size(hid_t dset_id) * } */ - public static MethodHandle H5Dget_storage_size$handle() { - return H5Dget_storage_size.HANDLE; - } + public static MethodHandle H5Dget_storage_size$handle() { return H5Dget_storage_size.HANDLE; } /** * Address for: @@ -10004,34 +9156,30 @@ private static class H5Dget_storage_size { * hsize_t H5Dget_storage_size(hid_t dset_id) * } */ - public static MemorySegment H5Dget_storage_size$address() { - return H5Dget_storage_size.ADDR; - } + public static MemorySegment H5Dget_storage_size$address() { return H5Dget_storage_size.ADDR; } /** * {@snippet lang=c : * hsize_t H5Dget_storage_size(hid_t dset_id) * } */ - public static long H5Dget_storage_size(long dset_id) { + public static long H5Dget_storage_size(long dset_id) + { var mh$ = H5Dget_storage_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_storage_size", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_chunk_storage_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_chunk_storage_size"); @@ -10044,7 +9192,8 @@ private static class H5Dget_chunk_storage_size { * herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t *offset, hsize_t *chunk_bytes) * } */ - public static FunctionDescriptor H5Dget_chunk_storage_size$descriptor() { + public static FunctionDescriptor H5Dget_chunk_storage_size$descriptor() + { return H5Dget_chunk_storage_size.DESC; } @@ -10054,9 +9203,7 @@ private static class H5Dget_chunk_storage_size { * herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t *offset, hsize_t *chunk_bytes) * } */ - public static MethodHandle H5Dget_chunk_storage_size$handle() { - return H5Dget_chunk_storage_size.HANDLE; - } + public static MethodHandle H5Dget_chunk_storage_size$handle() { return H5Dget_chunk_storage_size.HANDLE; } /** * Address for: @@ -10064,34 +9211,30 @@ private static class H5Dget_chunk_storage_size { * herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t *offset, hsize_t *chunk_bytes) * } */ - public static MemorySegment H5Dget_chunk_storage_size$address() { - return H5Dget_chunk_storage_size.ADDR; - } + public static MemorySegment H5Dget_chunk_storage_size$address() { return H5Dget_chunk_storage_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t *offset, hsize_t *chunk_bytes) * } */ - public static int H5Dget_chunk_storage_size(long dset_id, MemorySegment offset, MemorySegment chunk_bytes) { + public static int H5Dget_chunk_storage_size(long dset_id, MemorySegment offset, MemorySegment chunk_bytes) + { var mh$ = H5Dget_chunk_storage_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_chunk_storage_size", dset_id, offset, chunk_bytes); } return (int)mh$.invokeExact(dset_id, offset, chunk_bytes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_num_chunks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_num_chunks"); @@ -10104,9 +9247,7 @@ private static class H5Dget_num_chunks { * herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t *nchunks) * } */ - public static FunctionDescriptor H5Dget_num_chunks$descriptor() { - return H5Dget_num_chunks.DESC; - } + public static FunctionDescriptor H5Dget_num_chunks$descriptor() { return H5Dget_num_chunks.DESC; } /** * Downcall method handle for: @@ -10114,9 +9255,7 @@ private static class H5Dget_num_chunks { * herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t *nchunks) * } */ - public static MethodHandle H5Dget_num_chunks$handle() { - return H5Dget_num_chunks.HANDLE; - } + public static MethodHandle H5Dget_num_chunks$handle() { return H5Dget_num_chunks.HANDLE; } /** * Address for: @@ -10124,36 +9263,31 @@ private static class H5Dget_num_chunks { * herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t *nchunks) * } */ - public static MemorySegment H5Dget_num_chunks$address() { - return H5Dget_num_chunks.ADDR; - } + public static MemorySegment H5Dget_num_chunks$address() { return H5Dget_num_chunks.ADDR; } /** * {@snippet lang=c : * herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t *nchunks) * } */ - public static int H5Dget_num_chunks(long dset_id, long fspace_id, MemorySegment nchunks) { + public static int H5Dget_num_chunks(long dset_id, long fspace_id, MemorySegment nchunks) + { var mh$ = H5Dget_num_chunks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_num_chunks", dset_id, fspace_id, nchunks); } return (int)mh$.invokeExact(dset_id, fspace_id, nchunks); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_chunk_info_by_coord { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_chunk_info_by_coord"); @@ -10163,58 +9297,64 @@ private static class H5Dget_chunk_info_by_coord { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, + * haddr_t *addr, hsize_t *size) * } */ - public static FunctionDescriptor H5Dget_chunk_info_by_coord$descriptor() { + public static FunctionDescriptor H5Dget_chunk_info_by_coord$descriptor() + { return H5Dget_chunk_info_by_coord.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, + * haddr_t *addr, hsize_t *size) * } */ - public static MethodHandle H5Dget_chunk_info_by_coord$handle() { + public static MethodHandle H5Dget_chunk_info_by_coord$handle() + { return H5Dget_chunk_info_by_coord.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, + * haddr_t *addr, hsize_t *size) * } */ - public static MemorySegment H5Dget_chunk_info_by_coord$address() { + public static MemorySegment H5Dget_chunk_info_by_coord$address() + { return H5Dget_chunk_info_by_coord.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *offset, unsigned int *filter_mask, + * haddr_t *addr, hsize_t *size) * } */ - public static int H5Dget_chunk_info_by_coord(long dset_id, MemorySegment offset, MemorySegment filter_mask, MemorySegment addr, MemorySegment size) { + public static int H5Dget_chunk_info_by_coord(long dset_id, MemorySegment offset, + MemorySegment filter_mask, MemorySegment addr, + MemorySegment size) + { var mh$ = H5Dget_chunk_info_by_coord.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_chunk_info_by_coord", dset_id, offset, filter_mask, addr, size); } return (int)mh$.invokeExact(dset_id, offset, filter_mask, addr, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dchunk_iter { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dchunk_iter"); @@ -10227,9 +9367,7 @@ private static class H5Dchunk_iter { * herr_t H5Dchunk_iter(hid_t dset_id, hid_t dxpl_id, H5D_chunk_iter_op_t cb, void *op_data) * } */ - public static FunctionDescriptor H5Dchunk_iter$descriptor() { - return H5Dchunk_iter.DESC; - } + public static FunctionDescriptor H5Dchunk_iter$descriptor() { return H5Dchunk_iter.DESC; } /** * Downcall method handle for: @@ -10237,9 +9375,7 @@ private static class H5Dchunk_iter { * herr_t H5Dchunk_iter(hid_t dset_id, hid_t dxpl_id, H5D_chunk_iter_op_t cb, void *op_data) * } */ - public static MethodHandle H5Dchunk_iter$handle() { - return H5Dchunk_iter.HANDLE; - } + public static MethodHandle H5Dchunk_iter$handle() { return H5Dchunk_iter.HANDLE; } /** * Address for: @@ -10247,38 +9383,31 @@ private static class H5Dchunk_iter { * herr_t H5Dchunk_iter(hid_t dset_id, hid_t dxpl_id, H5D_chunk_iter_op_t cb, void *op_data) * } */ - public static MemorySegment H5Dchunk_iter$address() { - return H5Dchunk_iter.ADDR; - } + public static MemorySegment H5Dchunk_iter$address() { return H5Dchunk_iter.ADDR; } /** * {@snippet lang=c : * herr_t H5Dchunk_iter(hid_t dset_id, hid_t dxpl_id, H5D_chunk_iter_op_t cb, void *op_data) * } */ - public static int H5Dchunk_iter(long dset_id, long dxpl_id, MemorySegment cb, MemorySegment op_data) { + public static int H5Dchunk_iter(long dset_id, long dxpl_id, MemorySegment cb, MemorySegment op_data) + { var mh$ = H5Dchunk_iter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dchunk_iter", dset_id, dxpl_id, cb, op_data); } return (int)mh$.invokeExact(dset_id, dxpl_id, cb, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_chunk_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_chunk_info"); @@ -10288,55 +9417,54 @@ private static class H5Dget_chunk_info { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int + * *filter_mask, haddr_t *addr, hsize_t *size) * } */ - public static FunctionDescriptor H5Dget_chunk_info$descriptor() { - return H5Dget_chunk_info.DESC; - } + public static FunctionDescriptor H5Dget_chunk_info$descriptor() { return H5Dget_chunk_info.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int + * *filter_mask, haddr_t *addr, hsize_t *size) * } */ - public static MethodHandle H5Dget_chunk_info$handle() { - return H5Dget_chunk_info.HANDLE; - } + public static MethodHandle H5Dget_chunk_info$handle() { return H5Dget_chunk_info.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int + * *filter_mask, haddr_t *addr, hsize_t *size) * } */ - public static MemorySegment H5Dget_chunk_info$address() { - return H5Dget_chunk_info.ADDR; - } + public static MemorySegment H5Dget_chunk_info$address() { return H5Dget_chunk_info.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int *filter_mask, haddr_t *addr, hsize_t *size) + * herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx, hsize_t *offset, unsigned int + * *filter_mask, haddr_t *addr, hsize_t *size) * } */ - public static int H5Dget_chunk_info(long dset_id, long fspace_id, long chk_idx, MemorySegment offset, MemorySegment filter_mask, MemorySegment addr, MemorySegment size) { + public static int H5Dget_chunk_info(long dset_id, long fspace_id, long chk_idx, MemorySegment offset, + MemorySegment filter_mask, MemorySegment addr, MemorySegment size) + { var mh$ = H5Dget_chunk_info.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dget_chunk_info", dset_id, fspace_id, chk_idx, offset, filter_mask, addr, size); + traceDowncall("H5Dget_chunk_info", dset_id, fspace_id, chk_idx, offset, filter_mask, addr, + size); } return (int)mh$.invokeExact(dset_id, fspace_id, chk_idx, offset, filter_mask, addr, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_offset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_offset"); @@ -10349,9 +9477,7 @@ private static class H5Dget_offset { * haddr_t H5Dget_offset(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dget_offset$descriptor() { - return H5Dget_offset.DESC; - } + public static FunctionDescriptor H5Dget_offset$descriptor() { return H5Dget_offset.DESC; } /** * Downcall method handle for: @@ -10359,9 +9485,7 @@ private static class H5Dget_offset { * haddr_t H5Dget_offset(hid_t dset_id) * } */ - public static MethodHandle H5Dget_offset$handle() { - return H5Dget_offset.HANDLE; - } + public static MethodHandle H5Dget_offset$handle() { return H5Dget_offset.HANDLE; } /** * Address for: @@ -10369,37 +9493,31 @@ private static class H5Dget_offset { * haddr_t H5Dget_offset(hid_t dset_id) * } */ - public static MemorySegment H5Dget_offset$address() { - return H5Dget_offset.ADDR; - } + public static MemorySegment H5Dget_offset$address() { return H5Dget_offset.ADDR; } /** * {@snippet lang=c : * haddr_t H5Dget_offset(hid_t dset_id) * } */ - public static long H5Dget_offset(long dset_id) { + public static long H5Dget_offset(long dset_id) + { var mh$ = H5Dget_offset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_offset", dset_id); } return (long)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dread { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dread"); @@ -10409,61 +9527,55 @@ private static class H5Dread { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf) + * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, void *buf) * } */ - public static FunctionDescriptor H5Dread$descriptor() { - return H5Dread.DESC; - } + public static FunctionDescriptor H5Dread$descriptor() { return H5Dread.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf) + * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, void *buf) * } */ - public static MethodHandle H5Dread$handle() { - return H5Dread.HANDLE; - } + public static MethodHandle H5Dread$handle() { return H5Dread.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf) + * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, void *buf) * } */ - public static MemorySegment H5Dread$address() { - return H5Dread.ADDR; - } + public static MemorySegment H5Dread$address() { return H5Dread.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf) + * herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, void *buf) * } */ - public static int H5Dread(long dset_id, long mem_type_id, long mem_space_id, long file_space_id, long dxpl_id, MemorySegment buf) { + public static int H5Dread(long dset_id, long mem_type_id, long mem_space_id, long file_space_id, + long dxpl_id, MemorySegment buf) + { var mh$ = H5Dread.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dread", dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); } return (int)mh$.invokeExact(dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dread_multi { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dread_multi"); @@ -10473,64 +9585,58 @@ private static class H5Dread_multi { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[]) + * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, void *buf[]) * } */ - public static FunctionDescriptor H5Dread_multi$descriptor() { - return H5Dread_multi.DESC; - } + public static FunctionDescriptor H5Dread_multi$descriptor() { return H5Dread_multi.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[]) + * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, void *buf[]) * } */ - public static MethodHandle H5Dread_multi$handle() { - return H5Dread_multi.HANDLE; - } + public static MethodHandle H5Dread_multi$handle() { return H5Dread_multi.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[]) + * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, void *buf[]) * } */ - public static MemorySegment H5Dread_multi$address() { - return H5Dread_multi.ADDR; - } + public static MemorySegment H5Dread_multi$address() { return H5Dread_multi.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[]) + * herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, void *buf[]) * } */ - public static int H5Dread_multi(long count, MemorySegment dset_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, MemorySegment buf) { + public static int H5Dread_multi(long count, MemorySegment dset_id, MemorySegment mem_type_id, + MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, + MemorySegment buf) + { var mh$ = H5Dread_multi.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dread_multi", count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); + traceDowncall("H5Dread_multi", count, dset_id, mem_type_id, mem_space_id, file_space_id, + dxpl_id, buf); } - return (int)mh$.invokeExact(count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, + buf); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dread_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dread_async"); @@ -10540,65 +9646,59 @@ private static class H5Dread_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) + * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) * } */ - public static FunctionDescriptor H5Dread_async$descriptor() { - return H5Dread_async.DESC; - } + public static FunctionDescriptor H5Dread_async$descriptor() { return H5Dread_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) + * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) * } */ - public static MethodHandle H5Dread_async$handle() { - return H5Dread_async.HANDLE; - } + public static MethodHandle H5Dread_async$handle() { return H5Dread_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) + * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) * } */ - public static MemorySegment H5Dread_async$address() { - return H5Dread_async.ADDR; - } + public static MemorySegment H5Dread_async$address() { return H5Dread_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) + * herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, hid_t es_id) * } */ - public static int H5Dread_async(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, long mem_type_id, long mem_space_id, long file_space_id, long dxpl_id, MemorySegment buf, long es_id) { + public static int H5Dread_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, long mem_type_id, long mem_space_id, long file_space_id, + long dxpl_id, MemorySegment buf, long es_id) + { var mh$ = H5Dread_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dread_async", app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); + traceDowncall("H5Dread_async", app_file, app_func, app_line, dset_id, mem_type_id, + mem_space_id, file_space_id, dxpl_id, buf, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, + file_space_id, dxpl_id, buf, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dread_multi_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dread_multi_async"); @@ -10608,60 +9708,63 @@ private static class H5Dread_multi_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[], hid_t es_id) + * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, void *buf[], hid_t es_id) * } */ - public static FunctionDescriptor H5Dread_multi_async$descriptor() { - return H5Dread_multi_async.DESC; - } + public static FunctionDescriptor H5Dread_multi_async$descriptor() { return H5Dread_multi_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[], hid_t es_id) + * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, void *buf[], hid_t es_id) * } */ - public static MethodHandle H5Dread_multi_async$handle() { - return H5Dread_multi_async.HANDLE; - } + public static MethodHandle H5Dread_multi_async$handle() { return H5Dread_multi_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[], hid_t es_id) + * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, void *buf[], hid_t es_id) * } */ - public static MemorySegment H5Dread_multi_async$address() { - return H5Dread_multi_async.ADDR; - } + public static MemorySegment H5Dread_multi_async$address() { return H5Dread_multi_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, void *buf[], hid_t es_id) + * herr_t H5Dread_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, void *buf[], hid_t es_id) * } */ - public static int H5Dread_multi_async(MemorySegment app_file, MemorySegment app_func, int app_line, long count, MemorySegment dset_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, MemorySegment buf, long es_id) { + public static int H5Dread_multi_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long count, MemorySegment dset_id, MemorySegment mem_type_id, + MemorySegment mem_space_id, MemorySegment file_space_id, + long dxpl_id, MemorySegment buf, long es_id) + { var mh$ = H5Dread_multi_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dread_multi_async", app_file, app_func, app_line, count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); + traceDowncall("H5Dread_multi_async", app_file, app_func, app_line, count, dset_id, + mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, count, dset_id, mem_type_id, + mem_space_id, file_space_id, dxpl_id, buf, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dwrite { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dwrite"); @@ -10671,61 +9774,55 @@ private static class H5Dwrite { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf) + * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, const void *buf) * } */ - public static FunctionDescriptor H5Dwrite$descriptor() { - return H5Dwrite.DESC; - } + public static FunctionDescriptor H5Dwrite$descriptor() { return H5Dwrite.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf) + * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, const void *buf) * } */ - public static MethodHandle H5Dwrite$handle() { - return H5Dwrite.HANDLE; - } + public static MethodHandle H5Dwrite$handle() { return H5Dwrite.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf) + * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, const void *buf) * } */ - public static MemorySegment H5Dwrite$address() { - return H5Dwrite.ADDR; - } + public static MemorySegment H5Dwrite$address() { return H5Dwrite.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf) + * herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t + * dxpl_id, const void *buf) * } */ - public static int H5Dwrite(long dset_id, long mem_type_id, long mem_space_id, long file_space_id, long dxpl_id, MemorySegment buf) { + public static int H5Dwrite(long dset_id, long mem_type_id, long mem_space_id, long file_space_id, + long dxpl_id, MemorySegment buf) + { var mh$ = H5Dwrite.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dwrite", dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); } return (int)mh$.invokeExact(dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dwrite_multi { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dwrite_multi"); @@ -10735,64 +9832,58 @@ private static class H5Dwrite_multi { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[]) + * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, const void *buf[]) * } */ - public static FunctionDescriptor H5Dwrite_multi$descriptor() { - return H5Dwrite_multi.DESC; - } + public static FunctionDescriptor H5Dwrite_multi$descriptor() { return H5Dwrite_multi.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[]) + * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, const void *buf[]) * } */ - public static MethodHandle H5Dwrite_multi$handle() { - return H5Dwrite_multi.HANDLE; - } + public static MethodHandle H5Dwrite_multi$handle() { return H5Dwrite_multi.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[]) + * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, const void *buf[]) * } */ - public static MemorySegment H5Dwrite_multi$address() { - return H5Dwrite_multi.ADDR; - } + public static MemorySegment H5Dwrite_multi$address() { return H5Dwrite_multi.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[]) + * herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t + * file_space_id[], hid_t dxpl_id, const void *buf[]) * } */ - public static int H5Dwrite_multi(long count, MemorySegment dset_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, MemorySegment buf) { + public static int H5Dwrite_multi(long count, MemorySegment dset_id, MemorySegment mem_type_id, + MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, + MemorySegment buf) + { var mh$ = H5Dwrite_multi.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dwrite_multi", count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); + traceDowncall("H5Dwrite_multi", count, dset_id, mem_type_id, mem_space_id, file_space_id, + dxpl_id, buf); } - return (int)mh$.invokeExact(count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, + buf); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dwrite_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dwrite_async"); @@ -10802,65 +9893,63 @@ private static class H5Dwrite_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t es_id) + * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t + * es_id) * } */ - public static FunctionDescriptor H5Dwrite_async$descriptor() { - return H5Dwrite_async.DESC; - } + public static FunctionDescriptor H5Dwrite_async$descriptor() { return H5Dwrite_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t es_id) + * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t + * es_id) * } */ - public static MethodHandle H5Dwrite_async$handle() { - return H5Dwrite_async.HANDLE; - } + public static MethodHandle H5Dwrite_async$handle() { return H5Dwrite_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t es_id) + * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t + * es_id) * } */ - public static MemorySegment H5Dwrite_async$address() { - return H5Dwrite_async.ADDR; - } + public static MemorySegment H5Dwrite_async$address() { return H5Dwrite_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t es_id) + * herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, hid_t + * es_id) * } */ - public static int H5Dwrite_async(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, long mem_type_id, long mem_space_id, long file_space_id, long dxpl_id, MemorySegment buf, long es_id) { + public static int H5Dwrite_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, long mem_type_id, long mem_space_id, long file_space_id, + long dxpl_id, MemorySegment buf, long es_id) + { var mh$ = H5Dwrite_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dwrite_async", app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); + traceDowncall("H5Dwrite_async", app_file, app_func, app_line, dset_id, mem_type_id, + mem_space_id, file_space_id, dxpl_id, buf, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, mem_type_id, mem_space_id, + file_space_id, dxpl_id, buf, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dwrite_multi_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dwrite_multi_async"); @@ -10870,60 +9959,63 @@ private static class H5Dwrite_multi_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[], hid_t es_id) + * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, const void *buf[], hid_t es_id) * } */ - public static FunctionDescriptor H5Dwrite_multi_async$descriptor() { - return H5Dwrite_multi_async.DESC; - } + public static FunctionDescriptor H5Dwrite_multi_async$descriptor() { return H5Dwrite_multi_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[], hid_t es_id) + * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, const void *buf[], hid_t es_id) * } */ - public static MethodHandle H5Dwrite_multi_async$handle() { - return H5Dwrite_multi_async.HANDLE; - } + public static MethodHandle H5Dwrite_multi_async$handle() { return H5Dwrite_multi_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[], hid_t es_id) + * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, const void *buf[], hid_t es_id) * } */ - public static MemorySegment H5Dwrite_multi_async$address() { - return H5Dwrite_multi_async.ADDR; - } + public static MemorySegment H5Dwrite_multi_async$address() { return H5Dwrite_multi_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t dxpl_id, const void *buf[], hid_t es_id) + * herr_t H5Dwrite_multi_async(const char *app_file, const char *app_func, unsigned int app_line, size_t + * count, hid_t dset_id[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[], hid_t + * dxpl_id, const void *buf[], hid_t es_id) * } */ - public static int H5Dwrite_multi_async(MemorySegment app_file, MemorySegment app_func, int app_line, long count, MemorySegment dset_id, MemorySegment mem_type_id, MemorySegment mem_space_id, MemorySegment file_space_id, long dxpl_id, MemorySegment buf, long es_id) { + public static int H5Dwrite_multi_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long count, MemorySegment dset_id, MemorySegment mem_type_id, + MemorySegment mem_space_id, MemorySegment file_space_id, + long dxpl_id, MemorySegment buf, long es_id) + { var mh$ = H5Dwrite_multi_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dwrite_multi_async", app_file, app_func, app_line, count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); + traceDowncall("H5Dwrite_multi_async", app_file, app_func, app_line, count, dset_id, + mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, count, dset_id, mem_type_id, mem_space_id, file_space_id, dxpl_id, buf, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, count, dset_id, mem_type_id, + mem_space_id, file_space_id, dxpl_id, buf, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dwrite_chunk { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dwrite_chunk"); @@ -10933,59 +10025,54 @@ private static class H5Dwrite_chunk { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t data_size, const void *buf) + * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t + * data_size, const void *buf) * } */ - public static FunctionDescriptor H5Dwrite_chunk$descriptor() { - return H5Dwrite_chunk.DESC; - } + public static FunctionDescriptor H5Dwrite_chunk$descriptor() { return H5Dwrite_chunk.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t data_size, const void *buf) + * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t + * data_size, const void *buf) * } */ - public static MethodHandle H5Dwrite_chunk$handle() { - return H5Dwrite_chunk.HANDLE; - } + public static MethodHandle H5Dwrite_chunk$handle() { return H5Dwrite_chunk.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t data_size, const void *buf) + * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t + * data_size, const void *buf) * } */ - public static MemorySegment H5Dwrite_chunk$address() { - return H5Dwrite_chunk.ADDR; - } + public static MemorySegment H5Dwrite_chunk$address() { return H5Dwrite_chunk.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t data_size, const void *buf) + * herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint32_t filters, const hsize_t *offset, size_t + * data_size, const void *buf) * } */ - public static int H5Dwrite_chunk(long dset_id, long dxpl_id, int filters, MemorySegment offset, long data_size, MemorySegment buf) { + public static int H5Dwrite_chunk(long dset_id, long dxpl_id, int filters, MemorySegment offset, + long data_size, MemorySegment buf) + { var mh$ = H5Dwrite_chunk.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dwrite_chunk", dset_id, dxpl_id, filters, offset, data_size, buf); } return (int)mh$.invokeExact(dset_id, dxpl_id, filters, offset, data_size, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dread_chunk { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dread_chunk"); @@ -10998,9 +10085,7 @@ private static class H5Dread_chunk { * herr_t H5Dread_chunk(hid_t dset_id, hid_t dxpl_id, const hsize_t *offset, uint32_t *filters, void *buf) * } */ - public static FunctionDescriptor H5Dread_chunk$descriptor() { - return H5Dread_chunk.DESC; - } + public static FunctionDescriptor H5Dread_chunk$descriptor() { return H5Dread_chunk.DESC; } /** * Downcall method handle for: @@ -11008,9 +10093,7 @@ private static class H5Dread_chunk { * herr_t H5Dread_chunk(hid_t dset_id, hid_t dxpl_id, const hsize_t *offset, uint32_t *filters, void *buf) * } */ - public static MethodHandle H5Dread_chunk$handle() { - return H5Dread_chunk.HANDLE; - } + public static MethodHandle H5Dread_chunk$handle() { return H5Dread_chunk.HANDLE; } /** * Address for: @@ -11018,36 +10101,31 @@ private static class H5Dread_chunk { * herr_t H5Dread_chunk(hid_t dset_id, hid_t dxpl_id, const hsize_t *offset, uint32_t *filters, void *buf) * } */ - public static MemorySegment H5Dread_chunk$address() { - return H5Dread_chunk.ADDR; - } + public static MemorySegment H5Dread_chunk$address() { return H5Dread_chunk.ADDR; } /** * {@snippet lang=c : * herr_t H5Dread_chunk(hid_t dset_id, hid_t dxpl_id, const hsize_t *offset, uint32_t *filters, void *buf) * } */ - public static int H5Dread_chunk(long dset_id, long dxpl_id, MemorySegment offset, MemorySegment filters, MemorySegment buf) { + public static int H5Dread_chunk(long dset_id, long dxpl_id, MemorySegment offset, MemorySegment filters, + MemorySegment buf) + { var mh$ = H5Dread_chunk.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dread_chunk", dset_id, dxpl_id, offset, filters, buf); } return (int)mh$.invokeExact(dset_id, dxpl_id, offset, filters, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Diterate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Diterate"); @@ -11060,9 +10138,7 @@ private static class H5Diterate { * herr_t H5Diterate(void *buf, hid_t type_id, hid_t space_id, H5D_operator_t op, void *operator_data) * } */ - public static FunctionDescriptor H5Diterate$descriptor() { - return H5Diterate.DESC; - } + public static FunctionDescriptor H5Diterate$descriptor() { return H5Diterate.DESC; } /** * Downcall method handle for: @@ -11070,9 +10146,7 @@ private static class H5Diterate { * herr_t H5Diterate(void *buf, hid_t type_id, hid_t space_id, H5D_operator_t op, void *operator_data) * } */ - public static MethodHandle H5Diterate$handle() { - return H5Diterate.HANDLE; - } + public static MethodHandle H5Diterate$handle() { return H5Diterate.HANDLE; } /** * Address for: @@ -11080,35 +10154,31 @@ private static class H5Diterate { * herr_t H5Diterate(void *buf, hid_t type_id, hid_t space_id, H5D_operator_t op, void *operator_data) * } */ - public static MemorySegment H5Diterate$address() { - return H5Diterate.ADDR; - } + public static MemorySegment H5Diterate$address() { return H5Diterate.ADDR; } /** * {@snippet lang=c : * herr_t H5Diterate(void *buf, hid_t type_id, hid_t space_id, H5D_operator_t op, void *operator_data) * } */ - public static int H5Diterate(MemorySegment buf, long type_id, long space_id, MemorySegment op, MemorySegment operator_data) { + public static int H5Diterate(MemorySegment buf, long type_id, long space_id, MemorySegment op, + MemorySegment operator_data) + { var mh$ = H5Diterate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Diterate", buf, type_id, space_id, op, operator_data); } return (int)mh$.invokeExact(buf, type_id, space_id, op, operator_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dvlen_get_buf_size { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dvlen_get_buf_size"); @@ -11121,9 +10191,7 @@ private static class H5Dvlen_get_buf_size { * herr_t H5Dvlen_get_buf_size(hid_t dset_id, hid_t type_id, hid_t space_id, hsize_t *size) * } */ - public static FunctionDescriptor H5Dvlen_get_buf_size$descriptor() { - return H5Dvlen_get_buf_size.DESC; - } + public static FunctionDescriptor H5Dvlen_get_buf_size$descriptor() { return H5Dvlen_get_buf_size.DESC; } /** * Downcall method handle for: @@ -11131,9 +10199,7 @@ private static class H5Dvlen_get_buf_size { * herr_t H5Dvlen_get_buf_size(hid_t dset_id, hid_t type_id, hid_t space_id, hsize_t *size) * } */ - public static MethodHandle H5Dvlen_get_buf_size$handle() { - return H5Dvlen_get_buf_size.HANDLE; - } + public static MethodHandle H5Dvlen_get_buf_size$handle() { return H5Dvlen_get_buf_size.HANDLE; } /** * Address for: @@ -11141,36 +10207,30 @@ private static class H5Dvlen_get_buf_size { * herr_t H5Dvlen_get_buf_size(hid_t dset_id, hid_t type_id, hid_t space_id, hsize_t *size) * } */ - public static MemorySegment H5Dvlen_get_buf_size$address() { - return H5Dvlen_get_buf_size.ADDR; - } + public static MemorySegment H5Dvlen_get_buf_size$address() { return H5Dvlen_get_buf_size.ADDR; } /** * {@snippet lang=c : * herr_t H5Dvlen_get_buf_size(hid_t dset_id, hid_t type_id, hid_t space_id, hsize_t *size) * } */ - public static int H5Dvlen_get_buf_size(long dset_id, long type_id, long space_id, MemorySegment size) { + public static int H5Dvlen_get_buf_size(long dset_id, long type_id, long space_id, MemorySegment size) + { var mh$ = H5Dvlen_get_buf_size.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dvlen_get_buf_size", dset_id, type_id, space_id, size); } return (int)mh$.invokeExact(dset_id, type_id, space_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dfill { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dfill"); @@ -11183,9 +10243,7 @@ private static class H5Dfill { * herr_t H5Dfill(const void *fill, hid_t fill_type_id, void *buf, hid_t buf_type_id, hid_t space_id) * } */ - public static FunctionDescriptor H5Dfill$descriptor() { - return H5Dfill.DESC; - } + public static FunctionDescriptor H5Dfill$descriptor() { return H5Dfill.DESC; } /** * Downcall method handle for: @@ -11193,9 +10251,7 @@ private static class H5Dfill { * herr_t H5Dfill(const void *fill, hid_t fill_type_id, void *buf, hid_t buf_type_id, hid_t space_id) * } */ - public static MethodHandle H5Dfill$handle() { - return H5Dfill.HANDLE; - } + public static MethodHandle H5Dfill$handle() { return H5Dfill.HANDLE; } /** * Address for: @@ -11203,33 +10259,31 @@ private static class H5Dfill { * herr_t H5Dfill(const void *fill, hid_t fill_type_id, void *buf, hid_t buf_type_id, hid_t space_id) * } */ - public static MemorySegment H5Dfill$address() { - return H5Dfill.ADDR; - } + public static MemorySegment H5Dfill$address() { return H5Dfill.ADDR; } /** * {@snippet lang=c : * herr_t H5Dfill(const void *fill, hid_t fill_type_id, void *buf, hid_t buf_type_id, hid_t space_id) * } */ - public static int H5Dfill(MemorySegment fill, long fill_type_id, MemorySegment buf, long buf_type_id, long space_id) { + public static int H5Dfill(MemorySegment fill, long fill_type_id, MemorySegment buf, long buf_type_id, + long space_id) + { var mh$ = H5Dfill.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dfill", fill, fill_type_id, buf, buf_type_id, space_id); } return (int)mh$.invokeExact(fill, fill_type_id, buf, buf_type_id, space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dset_extent { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dset_extent"); @@ -11242,9 +10296,7 @@ private static class H5Dset_extent { * herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]) * } */ - public static FunctionDescriptor H5Dset_extent$descriptor() { - return H5Dset_extent.DESC; - } + public static FunctionDescriptor H5Dset_extent$descriptor() { return H5Dset_extent.DESC; } /** * Downcall method handle for: @@ -11252,9 +10304,7 @@ private static class H5Dset_extent { * herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]) * } */ - public static MethodHandle H5Dset_extent$handle() { - return H5Dset_extent.HANDLE; - } + public static MethodHandle H5Dset_extent$handle() { return H5Dset_extent.HANDLE; } /** * Address for: @@ -11262,37 +10312,31 @@ private static class H5Dset_extent { * herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]) * } */ - public static MemorySegment H5Dset_extent$address() { - return H5Dset_extent.ADDR; - } + public static MemorySegment H5Dset_extent$address() { return H5Dset_extent.ADDR; } /** * {@snippet lang=c : * herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]) * } */ - public static int H5Dset_extent(long dset_id, MemorySegment size) { + public static int H5Dset_extent(long dset_id, MemorySegment size) + { var mh$ = H5Dset_extent.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dset_extent", dset_id, size); } return (int)mh$.invokeExact(dset_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dset_extent_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dset_extent_async"); @@ -11302,55 +10346,53 @@ private static class H5Dset_extent_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, const hsize_t size[], hid_t es_id) + * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, const hsize_t size[], hid_t es_id) * } */ - public static FunctionDescriptor H5Dset_extent_async$descriptor() { - return H5Dset_extent_async.DESC; - } + public static FunctionDescriptor H5Dset_extent_async$descriptor() { return H5Dset_extent_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, const hsize_t size[], hid_t es_id) + * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, const hsize_t size[], hid_t es_id) * } */ - public static MethodHandle H5Dset_extent_async$handle() { - return H5Dset_extent_async.HANDLE; - } + public static MethodHandle H5Dset_extent_async$handle() { return H5Dset_extent_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, const hsize_t size[], hid_t es_id) + * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, const hsize_t size[], hid_t es_id) * } */ - public static MemorySegment H5Dset_extent_async$address() { - return H5Dset_extent_async.ADDR; - } + public static MemorySegment H5Dset_extent_async$address() { return H5Dset_extent_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, const hsize_t size[], hid_t es_id) + * herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, const hsize_t size[], hid_t es_id) * } */ - public static int H5Dset_extent_async(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, MemorySegment size, long es_id) { + public static int H5Dset_extent_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, MemorySegment size, long es_id) + { var mh$ = H5Dset_extent_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dset_extent_async", app_file, app_func, app_line, dset_id, size, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, size, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dflush"); @@ -11363,9 +10405,7 @@ private static class H5Dflush { * herr_t H5Dflush(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dflush$descriptor() { - return H5Dflush.DESC; - } + public static FunctionDescriptor H5Dflush$descriptor() { return H5Dflush.DESC; } /** * Downcall method handle for: @@ -11373,9 +10413,7 @@ private static class H5Dflush { * herr_t H5Dflush(hid_t dset_id) * } */ - public static MethodHandle H5Dflush$handle() { - return H5Dflush.HANDLE; - } + public static MethodHandle H5Dflush$handle() { return H5Dflush.HANDLE; } /** * Address for: @@ -11383,32 +10421,29 @@ private static class H5Dflush { * herr_t H5Dflush(hid_t dset_id) * } */ - public static MemorySegment H5Dflush$address() { - return H5Dflush.ADDR; - } + public static MemorySegment H5Dflush$address() { return H5Dflush.ADDR; } /** * {@snippet lang=c : * herr_t H5Dflush(hid_t dset_id) * } */ - public static int H5Dflush(long dset_id) { + public static int H5Dflush(long dset_id) + { var mh$ = H5Dflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dflush", dset_id); } return (int)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Drefresh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Drefresh"); @@ -11421,9 +10456,7 @@ private static class H5Drefresh { * herr_t H5Drefresh(hid_t dset_id) * } */ - public static FunctionDescriptor H5Drefresh$descriptor() { - return H5Drefresh.DESC; - } + public static FunctionDescriptor H5Drefresh$descriptor() { return H5Drefresh.DESC; } /** * Downcall method handle for: @@ -11431,9 +10464,7 @@ private static class H5Drefresh { * herr_t H5Drefresh(hid_t dset_id) * } */ - public static MethodHandle H5Drefresh$handle() { - return H5Drefresh.HANDLE; - } + public static MethodHandle H5Drefresh$handle() { return H5Drefresh.HANDLE; } /** * Address for: @@ -11441,36 +10472,30 @@ private static class H5Drefresh { * herr_t H5Drefresh(hid_t dset_id) * } */ - public static MemorySegment H5Drefresh$address() { - return H5Drefresh.ADDR; - } + public static MemorySegment H5Drefresh$address() { return H5Drefresh.ADDR; } /** * {@snippet lang=c : * herr_t H5Drefresh(hid_t dset_id) * } */ - public static int H5Drefresh(long dset_id) { + public static int H5Drefresh(long dset_id) + { var mh$ = H5Drefresh.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Drefresh", dset_id); } return (int)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dscatter { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dscatter"); @@ -11480,61 +10505,55 @@ private static class H5Dscatter { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void *dst_buf) + * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void + * *dst_buf) * } */ - public static FunctionDescriptor H5Dscatter$descriptor() { - return H5Dscatter.DESC; - } + public static FunctionDescriptor H5Dscatter$descriptor() { return H5Dscatter.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void *dst_buf) + * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void + * *dst_buf) * } */ - public static MethodHandle H5Dscatter$handle() { - return H5Dscatter.HANDLE; - } + public static MethodHandle H5Dscatter$handle() { return H5Dscatter.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void *dst_buf) + * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void + * *dst_buf) * } */ - public static MemorySegment H5Dscatter$address() { - return H5Dscatter.ADDR; - } + public static MemorySegment H5Dscatter$address() { return H5Dscatter.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void *dst_buf) + * herr_t H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id, hid_t dst_space_id, void + * *dst_buf) * } */ - public static int H5Dscatter(MemorySegment op, MemorySegment op_data, long type_id, long dst_space_id, MemorySegment dst_buf) { + public static int H5Dscatter(MemorySegment op, MemorySegment op_data, long type_id, long dst_space_id, + MemorySegment dst_buf) + { var mh$ = H5Dscatter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dscatter", op, op_data, type_id, dst_space_id, dst_buf); } return (int)mh$.invokeExact(op, op_data, type_id, dst_space_id, dst_buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dgather { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dgather"); @@ -11544,55 +10563,54 @@ private static class H5Dgather { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void *dst_buf, H5D_gather_func_t op, void *op_data) + * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void + * *dst_buf, H5D_gather_func_t op, void *op_data) * } */ - public static FunctionDescriptor H5Dgather$descriptor() { - return H5Dgather.DESC; - } + public static FunctionDescriptor H5Dgather$descriptor() { return H5Dgather.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void *dst_buf, H5D_gather_func_t op, void *op_data) + * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void + * *dst_buf, H5D_gather_func_t op, void *op_data) * } */ - public static MethodHandle H5Dgather$handle() { - return H5Dgather.HANDLE; - } + public static MethodHandle H5Dgather$handle() { return H5Dgather.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void *dst_buf, H5D_gather_func_t op, void *op_data) + * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void + * *dst_buf, H5D_gather_func_t op, void *op_data) * } */ - public static MemorySegment H5Dgather$address() { - return H5Dgather.ADDR; - } + public static MemorySegment H5Dgather$address() { return H5Dgather.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void *dst_buf, H5D_gather_func_t op, void *op_data) + * herr_t H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id, size_t dst_buf_size, void + * *dst_buf, H5D_gather_func_t op, void *op_data) * } */ - public static int H5Dgather(long src_space_id, MemorySegment src_buf, long type_id, long dst_buf_size, MemorySegment dst_buf, MemorySegment op, MemorySegment op_data) { + public static int H5Dgather(long src_space_id, MemorySegment src_buf, long type_id, long dst_buf_size, + MemorySegment dst_buf, MemorySegment op, MemorySegment op_data) + { var mh$ = H5Dgather.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Dgather", src_space_id, src_buf, type_id, dst_buf_size, dst_buf, op, op_data); + traceDowncall("H5Dgather", src_space_id, src_buf, type_id, dst_buf_size, dst_buf, op, + op_data); } return (int)mh$.invokeExact(src_space_id, src_buf, type_id, dst_buf_size, dst_buf, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dclose"); @@ -11605,9 +10623,7 @@ private static class H5Dclose { * herr_t H5Dclose(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dclose$descriptor() { - return H5Dclose.DESC; - } + public static FunctionDescriptor H5Dclose$descriptor() { return H5Dclose.DESC; } /** * Downcall method handle for: @@ -11615,9 +10631,7 @@ private static class H5Dclose { * herr_t H5Dclose(hid_t dset_id) * } */ - public static MethodHandle H5Dclose$handle() { - return H5Dclose.HANDLE; - } + public static MethodHandle H5Dclose$handle() { return H5Dclose.HANDLE; } /** * Address for: @@ -11625,36 +10639,30 @@ private static class H5Dclose { * herr_t H5Dclose(hid_t dset_id) * } */ - public static MemorySegment H5Dclose$address() { - return H5Dclose.ADDR; - } + public static MemorySegment H5Dclose$address() { return H5Dclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Dclose(hid_t dset_id) * } */ - public static int H5Dclose(long dset_id) { + public static int H5Dclose(long dset_id) + { var mh$ = H5Dclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dclose", dset_id); } return (int)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dclose_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dclose_async"); @@ -11664,55 +10672,53 @@ private static class H5Dclose_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Dclose_async$descriptor() { - return H5Dclose_async.DESC; - } + public static FunctionDescriptor H5Dclose_async$descriptor() { return H5Dclose_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t es_id) * } */ - public static MethodHandle H5Dclose_async$handle() { - return H5Dclose_async.HANDLE; - } + public static MethodHandle H5Dclose_async$handle() { return H5Dclose_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t es_id) * } */ - public static MemorySegment H5Dclose_async$address() { - return H5Dclose_async.ADDR; - } + public static MemorySegment H5Dclose_async$address() { return H5Dclose_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, hid_t es_id) + * herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, + * hid_t es_id) * } */ - public static int H5Dclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, long es_id) { + public static int H5Dclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, long es_id) + { var mh$ = H5Dclose_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dclose_async", app_file, app_func, app_line, dset_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ddebug { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ddebug"); @@ -11725,9 +10731,7 @@ private static class H5Ddebug { * herr_t H5Ddebug(hid_t dset_id) * } */ - public static FunctionDescriptor H5Ddebug$descriptor() { - return H5Ddebug.DESC; - } + public static FunctionDescriptor H5Ddebug$descriptor() { return H5Ddebug.DESC; } /** * Downcall method handle for: @@ -11735,9 +10739,7 @@ private static class H5Ddebug { * herr_t H5Ddebug(hid_t dset_id) * } */ - public static MethodHandle H5Ddebug$handle() { - return H5Ddebug.HANDLE; - } + public static MethodHandle H5Ddebug$handle() { return H5Ddebug.HANDLE; } /** * Address for: @@ -11745,32 +10747,29 @@ private static class H5Ddebug { * herr_t H5Ddebug(hid_t dset_id) * } */ - public static MemorySegment H5Ddebug$address() { - return H5Ddebug.ADDR; - } + public static MemorySegment H5Ddebug$address() { return H5Ddebug.ADDR; } /** * {@snippet lang=c : * herr_t H5Ddebug(hid_t dset_id) * } */ - public static int H5Ddebug(long dset_id) { + public static int H5Ddebug(long dset_id) + { var mh$ = H5Ddebug.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ddebug", dset_id); } return (int)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dformat_convert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dformat_convert"); @@ -11783,9 +10782,7 @@ private static class H5Dformat_convert { * herr_t H5Dformat_convert(hid_t dset_id) * } */ - public static FunctionDescriptor H5Dformat_convert$descriptor() { - return H5Dformat_convert.DESC; - } + public static FunctionDescriptor H5Dformat_convert$descriptor() { return H5Dformat_convert.DESC; } /** * Downcall method handle for: @@ -11793,9 +10790,7 @@ private static class H5Dformat_convert { * herr_t H5Dformat_convert(hid_t dset_id) * } */ - public static MethodHandle H5Dformat_convert$handle() { - return H5Dformat_convert.HANDLE; - } + public static MethodHandle H5Dformat_convert$handle() { return H5Dformat_convert.HANDLE; } /** * Address for: @@ -11803,33 +10798,30 @@ private static class H5Dformat_convert { * herr_t H5Dformat_convert(hid_t dset_id) * } */ - public static MemorySegment H5Dformat_convert$address() { - return H5Dformat_convert.ADDR; - } + public static MemorySegment H5Dformat_convert$address() { return H5Dformat_convert.ADDR; } /** * {@snippet lang=c : * herr_t H5Dformat_convert(hid_t dset_id) * } */ - public static int H5Dformat_convert(long dset_id) { + public static int H5Dformat_convert(long dset_id) + { var mh$ = H5Dformat_convert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dformat_convert", dset_id); } return (int)mh$.invokeExact(dset_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dget_chunk_index_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dget_chunk_index_type"); @@ -11842,7 +10834,8 @@ private static class H5Dget_chunk_index_type { * herr_t H5Dget_chunk_index_type(hid_t did, H5D_chunk_index_t *idx_type) * } */ - public static FunctionDescriptor H5Dget_chunk_index_type$descriptor() { + public static FunctionDescriptor H5Dget_chunk_index_type$descriptor() + { return H5Dget_chunk_index_type.DESC; } @@ -11852,9 +10845,7 @@ private static class H5Dget_chunk_index_type { * herr_t H5Dget_chunk_index_type(hid_t did, H5D_chunk_index_t *idx_type) * } */ - public static MethodHandle H5Dget_chunk_index_type$handle() { - return H5Dget_chunk_index_type.HANDLE; - } + public static MethodHandle H5Dget_chunk_index_type$handle() { return H5Dget_chunk_index_type.HANDLE; } /** * Address for: @@ -11862,36 +10853,30 @@ private static class H5Dget_chunk_index_type { * herr_t H5Dget_chunk_index_type(hid_t did, H5D_chunk_index_t *idx_type) * } */ - public static MemorySegment H5Dget_chunk_index_type$address() { - return H5Dget_chunk_index_type.ADDR; - } + public static MemorySegment H5Dget_chunk_index_type$address() { return H5Dget_chunk_index_type.ADDR; } /** * {@snippet lang=c : * herr_t H5Dget_chunk_index_type(hid_t did, H5D_chunk_index_t *idx_type) * } */ - public static int H5Dget_chunk_index_type(long did, MemorySegment idx_type) { + public static int H5Dget_chunk_index_type(long did, MemorySegment idx_type) + { var mh$ = H5Dget_chunk_index_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dget_chunk_index_type", did, idx_type); } return (int)mh$.invokeExact(did, idx_type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dcreate1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dcreate1"); @@ -11904,9 +10889,7 @@ private static class H5Dcreate1 { * hid_t H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t dcpl_id) * } */ - public static FunctionDescriptor H5Dcreate1$descriptor() { - return H5Dcreate1.DESC; - } + public static FunctionDescriptor H5Dcreate1$descriptor() { return H5Dcreate1.DESC; } /** * Downcall method handle for: @@ -11914,9 +10897,7 @@ private static class H5Dcreate1 { * hid_t H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t dcpl_id) * } */ - public static MethodHandle H5Dcreate1$handle() { - return H5Dcreate1.HANDLE; - } + public static MethodHandle H5Dcreate1$handle() { return H5Dcreate1.HANDLE; } /** * Address for: @@ -11924,33 +10905,30 @@ private static class H5Dcreate1 { * hid_t H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t dcpl_id) * } */ - public static MemorySegment H5Dcreate1$address() { - return H5Dcreate1.ADDR; - } + public static MemorySegment H5Dcreate1$address() { return H5Dcreate1.ADDR; } /** * {@snippet lang=c : * hid_t H5Dcreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t dcpl_id) * } */ - public static long H5Dcreate1(long loc_id, MemorySegment name, long type_id, long space_id, long dcpl_id) { + public static long H5Dcreate1(long loc_id, MemorySegment name, long type_id, long space_id, long dcpl_id) + { var mh$ = H5Dcreate1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dcreate1", loc_id, name, type_id, space_id, dcpl_id); } return (long)mh$.invokeExact(loc_id, name, type_id, space_id, dcpl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dopen1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dopen1"); @@ -11963,9 +10941,7 @@ private static class H5Dopen1 { * hid_t H5Dopen1(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Dopen1$descriptor() { - return H5Dopen1.DESC; - } + public static FunctionDescriptor H5Dopen1$descriptor() { return H5Dopen1.DESC; } /** * Downcall method handle for: @@ -11973,9 +10949,7 @@ private static class H5Dopen1 { * hid_t H5Dopen1(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Dopen1$handle() { - return H5Dopen1.HANDLE; - } + public static MethodHandle H5Dopen1$handle() { return H5Dopen1.HANDLE; } /** * Address for: @@ -11983,33 +10957,30 @@ private static class H5Dopen1 { * hid_t H5Dopen1(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Dopen1$address() { - return H5Dopen1.ADDR; - } + public static MemorySegment H5Dopen1$address() { return H5Dopen1.ADDR; } /** * {@snippet lang=c : * hid_t H5Dopen1(hid_t loc_id, const char *name) * } */ - public static long H5Dopen1(long loc_id, MemorySegment name) { + public static long H5Dopen1(long loc_id, MemorySegment name) + { var mh$ = H5Dopen1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dopen1", loc_id, name); } return (long)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dextend { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dextend"); @@ -12022,9 +10993,7 @@ private static class H5Dextend { * herr_t H5Dextend(hid_t dset_id, const hsize_t size[]) * } */ - public static FunctionDescriptor H5Dextend$descriptor() { - return H5Dextend.DESC; - } + public static FunctionDescriptor H5Dextend$descriptor() { return H5Dextend.DESC; } /** * Downcall method handle for: @@ -12032,9 +11001,7 @@ private static class H5Dextend { * herr_t H5Dextend(hid_t dset_id, const hsize_t size[]) * } */ - public static MethodHandle H5Dextend$handle() { - return H5Dextend.HANDLE; - } + public static MethodHandle H5Dextend$handle() { return H5Dextend.HANDLE; } /** * Address for: @@ -12042,35 +11009,30 @@ private static class H5Dextend { * herr_t H5Dextend(hid_t dset_id, const hsize_t size[]) * } */ - public static MemorySegment H5Dextend$address() { - return H5Dextend.ADDR; - } + public static MemorySegment H5Dextend$address() { return H5Dextend.ADDR; } /** * {@snippet lang=c : * herr_t H5Dextend(hid_t dset_id, const hsize_t size[]) * } */ - public static int H5Dextend(long dset_id, MemorySegment size) { + public static int H5Dextend(long dset_id, MemorySegment size) + { var mh$ = H5Dextend.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dextend", dset_id, size); } return (int)mh$.invokeExact(dset_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Dvlen_reclaim { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Dvlen_reclaim"); @@ -12083,9 +11045,7 @@ private static class H5Dvlen_reclaim { * herr_t H5Dvlen_reclaim(hid_t type_id, hid_t space_id, hid_t dxpl_id, void *buf) * } */ - public static FunctionDescriptor H5Dvlen_reclaim$descriptor() { - return H5Dvlen_reclaim.DESC; - } + public static FunctionDescriptor H5Dvlen_reclaim$descriptor() { return H5Dvlen_reclaim.DESC; } /** * Downcall method handle for: @@ -12093,9 +11053,7 @@ private static class H5Dvlen_reclaim { * herr_t H5Dvlen_reclaim(hid_t type_id, hid_t space_id, hid_t dxpl_id, void *buf) * } */ - public static MethodHandle H5Dvlen_reclaim$handle() { - return H5Dvlen_reclaim.HANDLE; - } + public static MethodHandle H5Dvlen_reclaim$handle() { return H5Dvlen_reclaim.HANDLE; } /** * Address for: @@ -12103,30 +11061,31 @@ private static class H5Dvlen_reclaim { * herr_t H5Dvlen_reclaim(hid_t type_id, hid_t space_id, hid_t dxpl_id, void *buf) * } */ - public static MemorySegment H5Dvlen_reclaim$address() { - return H5Dvlen_reclaim.ADDR; - } + public static MemorySegment H5Dvlen_reclaim$address() { return H5Dvlen_reclaim.ADDR; } /** * {@snippet lang=c : * herr_t H5Dvlen_reclaim(hid_t type_id, hid_t space_id, hid_t dxpl_id, void *buf) * } */ - public static int H5Dvlen_reclaim(long type_id, long space_id, long dxpl_id, MemorySegment buf) { + public static int H5Dvlen_reclaim(long type_id, long space_id, long dxpl_id, MemorySegment buf) + { var mh$ = H5Dvlen_reclaim.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Dvlen_reclaim", type_id, space_id, dxpl_id, buf); } return (int)mh$.invokeExact(type_id, space_id, dxpl_id, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class stdin$constants { public static final AddressLayout LAYOUT = hdf5_h.C_POINTER; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("stdin").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("stdin").reinterpret(LAYOUT.byteSize()); } /** @@ -12135,9 +11094,7 @@ private static class stdin$constants { * extern FILE *stdin * } */ - public static AddressLayout stdin$layout() { - return stdin$constants.LAYOUT; - } + public static AddressLayout stdin$layout() { return stdin$constants.LAYOUT; } /** * Segment for variable: @@ -12145,9 +11102,7 @@ private static class stdin$constants { * extern FILE *stdin * } */ - public static MemorySegment stdin$segment() { - return stdin$constants.SEGMENT; - } + public static MemorySegment stdin$segment() { return stdin$constants.SEGMENT; } /** * Getter for variable: @@ -12155,9 +11110,7 @@ private static class stdin$constants { * extern FILE *stdin * } */ - public static MemorySegment stdin() { - return stdin$constants.SEGMENT.get(stdin$constants.LAYOUT, 0L); - } + public static MemorySegment stdin() { return stdin$constants.SEGMENT.get(stdin$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -12165,13 +11118,15 @@ public static MemorySegment stdin() { * extern FILE *stdin * } */ - public static void stdin(MemorySegment varValue) { + public static void stdin(MemorySegment varValue) + { stdin$constants.SEGMENT.set(stdin$constants.LAYOUT, 0L, varValue); } private static class stdout$constants { public static final AddressLayout LAYOUT = hdf5_h.C_POINTER; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("stdout").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("stdout").reinterpret(LAYOUT.byteSize()); } /** @@ -12180,9 +11135,7 @@ private static class stdout$constants { * extern FILE *stdout * } */ - public static AddressLayout stdout$layout() { - return stdout$constants.LAYOUT; - } + public static AddressLayout stdout$layout() { return stdout$constants.LAYOUT; } /** * Segment for variable: @@ -12190,9 +11143,7 @@ private static class stdout$constants { * extern FILE *stdout * } */ - public static MemorySegment stdout$segment() { - return stdout$constants.SEGMENT; - } + public static MemorySegment stdout$segment() { return stdout$constants.SEGMENT; } /** * Getter for variable: @@ -12200,9 +11151,7 @@ private static class stdout$constants { * extern FILE *stdout * } */ - public static MemorySegment stdout() { - return stdout$constants.SEGMENT.get(stdout$constants.LAYOUT, 0L); - } + public static MemorySegment stdout() { return stdout$constants.SEGMENT.get(stdout$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -12210,13 +11159,15 @@ public static MemorySegment stdout() { * extern FILE *stdout * } */ - public static void stdout(MemorySegment varValue) { + public static void stdout(MemorySegment varValue) + { stdout$constants.SEGMENT.set(stdout$constants.LAYOUT, 0L, varValue); } private static class stderr$constants { public static final AddressLayout LAYOUT = hdf5_h.C_POINTER; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("stderr").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("stderr").reinterpret(LAYOUT.byteSize()); } /** @@ -12225,9 +11176,7 @@ private static class stderr$constants { * extern FILE *stderr * } */ - public static AddressLayout stderr$layout() { - return stderr$constants.LAYOUT; - } + public static AddressLayout stderr$layout() { return stderr$constants.LAYOUT; } /** * Segment for variable: @@ -12235,9 +11184,7 @@ private static class stderr$constants { * extern FILE *stderr * } */ - public static MemorySegment stderr$segment() { - return stderr$constants.SEGMENT; - } + public static MemorySegment stderr$segment() { return stderr$constants.SEGMENT; } /** * Getter for variable: @@ -12245,9 +11192,7 @@ private static class stderr$constants { * extern FILE *stderr * } */ - public static MemorySegment stderr() { - return stderr$constants.SEGMENT.get(stderr$constants.LAYOUT, 0L); - } + public static MemorySegment stderr() { return stderr$constants.SEGMENT.get(stderr$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -12255,15 +11200,13 @@ public static MemorySegment stderr() { * extern FILE *stderr * } */ - public static void stderr(MemorySegment varValue) { + public static void stderr(MemorySegment varValue) + { stderr$constants.SEGMENT.set(stderr$constants.LAYOUT, 0L, varValue); } private static class remove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("remove"); @@ -12276,9 +11219,7 @@ private static class remove { * extern int remove(const char *__filename) * } */ - public static FunctionDescriptor remove$descriptor() { - return remove.DESC; - } + public static FunctionDescriptor remove$descriptor() { return remove.DESC; } /** * Downcall method handle for: @@ -12286,9 +11227,7 @@ private static class remove { * extern int remove(const char *__filename) * } */ - public static MethodHandle remove$handle() { - return remove.HANDLE; - } + public static MethodHandle remove$handle() { return remove.HANDLE; } /** * Address for: @@ -12296,33 +11235,30 @@ private static class remove { * extern int remove(const char *__filename) * } */ - public static MemorySegment remove$address() { - return remove.ADDR; - } + public static MemorySegment remove$address() { return remove.ADDR; } /** * {@snippet lang=c : * extern int remove(const char *__filename) * } */ - public static int remove(MemorySegment __filename) { + public static int remove(MemorySegment __filename) + { var mh$ = remove.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("remove", __filename); } return (int)mh$.invokeExact(__filename); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class rename { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("rename"); @@ -12335,9 +11271,7 @@ private static class rename { * extern int rename(const char *__old, const char *__new) * } */ - public static FunctionDescriptor rename$descriptor() { - return rename.DESC; - } + public static FunctionDescriptor rename$descriptor() { return rename.DESC; } /** * Downcall method handle for: @@ -12345,9 +11279,7 @@ private static class rename { * extern int rename(const char *__old, const char *__new) * } */ - public static MethodHandle rename$handle() { - return rename.HANDLE; - } + public static MethodHandle rename$handle() { return rename.HANDLE; } /** * Address for: @@ -12355,35 +11287,30 @@ private static class rename { * extern int rename(const char *__old, const char *__new) * } */ - public static MemorySegment rename$address() { - return rename.ADDR; - } + public static MemorySegment rename$address() { return rename.ADDR; } /** * {@snippet lang=c : * extern int rename(const char *__old, const char *__new) * } */ - public static int rename(MemorySegment __old, MemorySegment __new) { + public static int rename(MemorySegment __old, MemorySegment __new) + { var mh$ = rename.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("rename", __old, __new); } return (int)mh$.invokeExact(__old, __new); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class renameat { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("renameat"); @@ -12396,9 +11323,7 @@ private static class renameat { * extern int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) * } */ - public static FunctionDescriptor renameat$descriptor() { - return renameat.DESC; - } + public static FunctionDescriptor renameat$descriptor() { return renameat.DESC; } /** * Downcall method handle for: @@ -12406,9 +11331,7 @@ private static class renameat { * extern int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) * } */ - public static MethodHandle renameat$handle() { - return renameat.HANDLE; - } + public static MethodHandle renameat$handle() { return renameat.HANDLE; } /** * Address for: @@ -12416,32 +11339,29 @@ private static class renameat { * extern int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) * } */ - public static MemorySegment renameat$address() { - return renameat.ADDR; - } + public static MemorySegment renameat$address() { return renameat.ADDR; } /** * {@snippet lang=c : * extern int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) * } */ - public static int renameat(int __oldfd, MemorySegment __old, int __newfd, MemorySegment __new) { + public static int renameat(int __oldfd, MemorySegment __old, int __newfd, MemorySegment __new) + { var mh$ = renameat.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("renameat", __oldfd, __old, __newfd, __new); } return (int)mh$.invokeExact(__oldfd, __old, __newfd, __new); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fclose"); @@ -12454,9 +11374,7 @@ private static class fclose { * extern int fclose(FILE *__stream) * } */ - public static FunctionDescriptor fclose$descriptor() { - return fclose.DESC; - } + public static FunctionDescriptor fclose$descriptor() { return fclose.DESC; } /** * Downcall method handle for: @@ -12464,9 +11382,7 @@ private static class fclose { * extern int fclose(FILE *__stream) * } */ - public static MethodHandle fclose$handle() { - return fclose.HANDLE; - } + public static MethodHandle fclose$handle() { return fclose.HANDLE; } /** * Address for: @@ -12474,30 +11390,29 @@ private static class fclose { * extern int fclose(FILE *__stream) * } */ - public static MemorySegment fclose$address() { - return fclose.ADDR; - } + public static MemorySegment fclose$address() { return fclose.ADDR; } /** * {@snippet lang=c : * extern int fclose(FILE *__stream) * } */ - public static int fclose(MemorySegment __stream) { + public static int fclose(MemorySegment __stream) + { var mh$ = fclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fclose", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class tmpfile { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("tmpfile"); @@ -12510,9 +11425,7 @@ private static class tmpfile { * extern FILE *tmpfile() * } */ - public static FunctionDescriptor tmpfile$descriptor() { - return tmpfile.DESC; - } + public static FunctionDescriptor tmpfile$descriptor() { return tmpfile.DESC; } /** * Downcall method handle for: @@ -12520,9 +11433,7 @@ private static class tmpfile { * extern FILE *tmpfile() * } */ - public static MethodHandle tmpfile$handle() { - return tmpfile.HANDLE; - } + public static MethodHandle tmpfile$handle() { return tmpfile.HANDLE; } /** * Address for: @@ -12530,32 +11441,30 @@ private static class tmpfile { * extern FILE *tmpfile() * } */ - public static MemorySegment tmpfile$address() { - return tmpfile.ADDR; - } + public static MemorySegment tmpfile$address() { return tmpfile.ADDR; } /** * {@snippet lang=c : * extern FILE *tmpfile() * } */ - public static MemorySegment tmpfile() { + public static MemorySegment tmpfile() + { var mh$ = tmpfile.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("tmpfile"); } return (MemorySegment)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class tmpnam { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("tmpnam"); @@ -12568,9 +11477,7 @@ private static class tmpnam { * extern char *tmpnam(char [20]) * } */ - public static FunctionDescriptor tmpnam$descriptor() { - return tmpnam.DESC; - } + public static FunctionDescriptor tmpnam$descriptor() { return tmpnam.DESC; } /** * Downcall method handle for: @@ -12578,9 +11485,7 @@ private static class tmpnam { * extern char *tmpnam(char [20]) * } */ - public static MethodHandle tmpnam$handle() { - return tmpnam.HANDLE; - } + public static MethodHandle tmpnam$handle() { return tmpnam.HANDLE; } /** * Address for: @@ -12588,32 +11493,30 @@ private static class tmpnam { * extern char *tmpnam(char [20]) * } */ - public static MemorySegment tmpnam$address() { - return tmpnam.ADDR; - } + public static MemorySegment tmpnam$address() { return tmpnam.ADDR; } /** * {@snippet lang=c : * extern char *tmpnam(char [20]) * } */ - public static MemorySegment tmpnam(MemorySegment x0) { + public static MemorySegment tmpnam(MemorySegment x0) + { var mh$ = tmpnam.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("tmpnam", x0); } return (MemorySegment)mh$.invokeExact(x0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class tmpnam_r { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("tmpnam_r"); @@ -12626,9 +11529,7 @@ private static class tmpnam_r { * extern char *tmpnam_r(char __s[20]) * } */ - public static FunctionDescriptor tmpnam_r$descriptor() { - return tmpnam_r.DESC; - } + public static FunctionDescriptor tmpnam_r$descriptor() { return tmpnam_r.DESC; } /** * Downcall method handle for: @@ -12636,9 +11537,7 @@ private static class tmpnam_r { * extern char *tmpnam_r(char __s[20]) * } */ - public static MethodHandle tmpnam_r$handle() { - return tmpnam_r.HANDLE; - } + public static MethodHandle tmpnam_r$handle() { return tmpnam_r.HANDLE; } /** * Address for: @@ -12646,33 +11545,30 @@ private static class tmpnam_r { * extern char *tmpnam_r(char __s[20]) * } */ - public static MemorySegment tmpnam_r$address() { - return tmpnam_r.ADDR; - } + public static MemorySegment tmpnam_r$address() { return tmpnam_r.ADDR; } /** * {@snippet lang=c : * extern char *tmpnam_r(char __s[20]) * } */ - public static MemorySegment tmpnam_r(MemorySegment __s) { + public static MemorySegment tmpnam_r(MemorySegment __s) + { var mh$ = tmpnam_r.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("tmpnam_r", __s); } return (MemorySegment)mh$.invokeExact(__s); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class tempnam { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("tempnam"); @@ -12685,9 +11581,7 @@ private static class tempnam { * extern char *tempnam(const char *__dir, const char *__pfx) * } */ - public static FunctionDescriptor tempnam$descriptor() { - return tempnam.DESC; - } + public static FunctionDescriptor tempnam$descriptor() { return tempnam.DESC; } /** * Downcall method handle for: @@ -12695,9 +11589,7 @@ private static class tempnam { * extern char *tempnam(const char *__dir, const char *__pfx) * } */ - public static MethodHandle tempnam$handle() { - return tempnam.HANDLE; - } + public static MethodHandle tempnam$handle() { return tempnam.HANDLE; } /** * Address for: @@ -12705,32 +11597,29 @@ private static class tempnam { * extern char *tempnam(const char *__dir, const char *__pfx) * } */ - public static MemorySegment tempnam$address() { - return tempnam.ADDR; - } + public static MemorySegment tempnam$address() { return tempnam.ADDR; } /** * {@snippet lang=c : * extern char *tempnam(const char *__dir, const char *__pfx) * } */ - public static MemorySegment tempnam(MemorySegment __dir, MemorySegment __pfx) { + public static MemorySegment tempnam(MemorySegment __dir, MemorySegment __pfx) + { var mh$ = tempnam.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("tempnam", __dir, __pfx); } return (MemorySegment)mh$.invokeExact(__dir, __pfx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fflush"); @@ -12743,9 +11632,7 @@ private static class fflush { * extern int fflush(FILE *__stream) * } */ - public static FunctionDescriptor fflush$descriptor() { - return fflush.DESC; - } + public static FunctionDescriptor fflush$descriptor() { return fflush.DESC; } /** * Downcall method handle for: @@ -12753,9 +11640,7 @@ private static class fflush { * extern int fflush(FILE *__stream) * } */ - public static MethodHandle fflush$handle() { - return fflush.HANDLE; - } + public static MethodHandle fflush$handle() { return fflush.HANDLE; } /** * Address for: @@ -12763,32 +11648,29 @@ private static class fflush { * extern int fflush(FILE *__stream) * } */ - public static MemorySegment fflush$address() { - return fflush.ADDR; - } + public static MemorySegment fflush$address() { return fflush.ADDR; } /** * {@snippet lang=c : * extern int fflush(FILE *__stream) * } */ - public static int fflush(MemorySegment __stream) { + public static int fflush(MemorySegment __stream) + { var mh$ = fflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fflush", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fflush_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fflush_unlocked"); @@ -12801,9 +11683,7 @@ private static class fflush_unlocked { * extern int fflush_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor fflush_unlocked$descriptor() { - return fflush_unlocked.DESC; - } + public static FunctionDescriptor fflush_unlocked$descriptor() { return fflush_unlocked.DESC; } /** * Downcall method handle for: @@ -12811,9 +11691,7 @@ private static class fflush_unlocked { * extern int fflush_unlocked(FILE *__stream) * } */ - public static MethodHandle fflush_unlocked$handle() { - return fflush_unlocked.HANDLE; - } + public static MethodHandle fflush_unlocked$handle() { return fflush_unlocked.HANDLE; } /** * Address for: @@ -12821,33 +11699,30 @@ private static class fflush_unlocked { * extern int fflush_unlocked(FILE *__stream) * } */ - public static MemorySegment fflush_unlocked$address() { - return fflush_unlocked.ADDR; - } + public static MemorySegment fflush_unlocked$address() { return fflush_unlocked.ADDR; } /** * {@snippet lang=c : * extern int fflush_unlocked(FILE *__stream) * } */ - public static int fflush_unlocked(MemorySegment __stream) { + public static int fflush_unlocked(MemorySegment __stream) + { var mh$ = fflush_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fflush_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fopen"); @@ -12860,9 +11735,7 @@ private static class fopen { * extern FILE *fopen(const char *restrict __filename, const char *restrict __modes) * } */ - public static FunctionDescriptor fopen$descriptor() { - return fopen.DESC; - } + public static FunctionDescriptor fopen$descriptor() { return fopen.DESC; } /** * Downcall method handle for: @@ -12870,9 +11743,7 @@ private static class fopen { * extern FILE *fopen(const char *restrict __filename, const char *restrict __modes) * } */ - public static MethodHandle fopen$handle() { - return fopen.HANDLE; - } + public static MethodHandle fopen$handle() { return fopen.HANDLE; } /** * Address for: @@ -12880,34 +11751,30 @@ private static class fopen { * extern FILE *fopen(const char *restrict __filename, const char *restrict __modes) * } */ - public static MemorySegment fopen$address() { - return fopen.ADDR; - } + public static MemorySegment fopen$address() { return fopen.ADDR; } /** * {@snippet lang=c : * extern FILE *fopen(const char *restrict __filename, const char *restrict __modes) * } */ - public static MemorySegment fopen(MemorySegment __filename, MemorySegment __modes) { + public static MemorySegment fopen(MemorySegment __filename, MemorySegment __modes) + { var mh$ = fopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fopen", __filename, __modes); } return (MemorySegment)mh$.invokeExact(__filename, __modes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class freopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("freopen"); @@ -12917,56 +11784,54 @@ private static class freopen { /** * Function descriptor for: * {@snippet lang=c : - * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict __stream) + * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict + * __stream) * } */ - public static FunctionDescriptor freopen$descriptor() { - return freopen.DESC; - } + public static FunctionDescriptor freopen$descriptor() { return freopen.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict __stream) + * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict + * __stream) * } */ - public static MethodHandle freopen$handle() { - return freopen.HANDLE; - } + public static MethodHandle freopen$handle() { return freopen.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict __stream) + * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict + * __stream) * } */ - public static MemorySegment freopen$address() { - return freopen.ADDR; - } + public static MemorySegment freopen$address() { return freopen.ADDR; } /** * {@snippet lang=c : - * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict __stream) + * extern FILE *freopen(const char *restrict __filename, const char *restrict __modes, FILE *restrict + * __stream) * } */ - public static MemorySegment freopen(MemorySegment __filename, MemorySegment __modes, MemorySegment __stream) { + public static MemorySegment freopen(MemorySegment __filename, MemorySegment __modes, + MemorySegment __stream) + { var mh$ = freopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("freopen", __filename, __modes, __stream); } return (MemorySegment)mh$.invokeExact(__filename, __modes, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fdopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fdopen"); @@ -12979,9 +11844,7 @@ private static class fdopen { * extern FILE *fdopen(int __fd, const char *__modes) * } */ - public static FunctionDescriptor fdopen$descriptor() { - return fdopen.DESC; - } + public static FunctionDescriptor fdopen$descriptor() { return fdopen.DESC; } /** * Downcall method handle for: @@ -12989,9 +11852,7 @@ private static class fdopen { * extern FILE *fdopen(int __fd, const char *__modes) * } */ - public static MethodHandle fdopen$handle() { - return fdopen.HANDLE; - } + public static MethodHandle fdopen$handle() { return fdopen.HANDLE; } /** * Address for: @@ -12999,34 +11860,30 @@ private static class fdopen { * extern FILE *fdopen(int __fd, const char *__modes) * } */ - public static MemorySegment fdopen$address() { - return fdopen.ADDR; - } + public static MemorySegment fdopen$address() { return fdopen.ADDR; } /** * {@snippet lang=c : * extern FILE *fdopen(int __fd, const char *__modes) * } */ - public static MemorySegment fdopen(int __fd, MemorySegment __modes) { + public static MemorySegment fdopen(int __fd, MemorySegment __modes) + { var mh$ = fdopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fdopen", __fd, __modes); } return (MemorySegment)mh$.invokeExact(__fd, __modes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fopencookie { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - _IO_cookie_io_functions_t.layout() - ); + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, _IO_cookie_io_functions_t.layout()); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fopencookie"); @@ -13036,57 +11893,54 @@ private static class fopencookie { /** * Function descriptor for: * {@snippet lang=c : - * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, cookie_io_functions_t __io_funcs) + * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, + * cookie_io_functions_t __io_funcs) * } */ - public static FunctionDescriptor fopencookie$descriptor() { - return fopencookie.DESC; - } + public static FunctionDescriptor fopencookie$descriptor() { return fopencookie.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, cookie_io_functions_t __io_funcs) + * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, + * cookie_io_functions_t __io_funcs) * } */ - public static MethodHandle fopencookie$handle() { - return fopencookie.HANDLE; - } + public static MethodHandle fopencookie$handle() { return fopencookie.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, cookie_io_functions_t __io_funcs) + * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, + * cookie_io_functions_t __io_funcs) * } */ - public static MemorySegment fopencookie$address() { - return fopencookie.ADDR; - } + public static MemorySegment fopencookie$address() { return fopencookie.ADDR; } /** * {@snippet lang=c : - * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, cookie_io_functions_t __io_funcs) + * extern FILE *fopencookie(void *restrict __magic_cookie, const char *restrict __modes, + * cookie_io_functions_t __io_funcs) * } */ - public static MemorySegment fopencookie(MemorySegment __magic_cookie, MemorySegment __modes, MemorySegment __io_funcs) { + public static MemorySegment fopencookie(MemorySegment __magic_cookie, MemorySegment __modes, + MemorySegment __io_funcs) + { var mh$ = fopencookie.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fopencookie", __magic_cookie, __modes, __io_funcs); } return (MemorySegment)mh$.invokeExact(__magic_cookie, __modes, __io_funcs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fmemopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fmemopen"); @@ -13099,9 +11953,7 @@ private static class fmemopen { * extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) * } */ - public static FunctionDescriptor fmemopen$descriptor() { - return fmemopen.DESC; - } + public static FunctionDescriptor fmemopen$descriptor() { return fmemopen.DESC; } /** * Downcall method handle for: @@ -13109,9 +11961,7 @@ private static class fmemopen { * extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) * } */ - public static MethodHandle fmemopen$handle() { - return fmemopen.HANDLE; - } + public static MethodHandle fmemopen$handle() { return fmemopen.HANDLE; } /** * Address for: @@ -13119,33 +11969,30 @@ private static class fmemopen { * extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) * } */ - public static MemorySegment fmemopen$address() { - return fmemopen.ADDR; - } + public static MemorySegment fmemopen$address() { return fmemopen.ADDR; } /** * {@snippet lang=c : * extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) * } */ - public static MemorySegment fmemopen(MemorySegment __s, long __len, MemorySegment __modes) { + public static MemorySegment fmemopen(MemorySegment __s, long __len, MemorySegment __modes) + { var mh$ = fmemopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fmemopen", __s, __len, __modes); } return (MemorySegment)mh$.invokeExact(__s, __len, __modes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class open_memstream { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("open_memstream"); @@ -13158,9 +12005,7 @@ private static class open_memstream { * extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) * } */ - public static FunctionDescriptor open_memstream$descriptor() { - return open_memstream.DESC; - } + public static FunctionDescriptor open_memstream$descriptor() { return open_memstream.DESC; } /** * Downcall method handle for: @@ -13168,9 +12013,7 @@ private static class open_memstream { * extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) * } */ - public static MethodHandle open_memstream$handle() { - return open_memstream.HANDLE; - } + public static MethodHandle open_memstream$handle() { return open_memstream.HANDLE; } /** * Address for: @@ -13178,32 +12021,30 @@ private static class open_memstream { * extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) * } */ - public static MemorySegment open_memstream$address() { - return open_memstream.ADDR; - } + public static MemorySegment open_memstream$address() { return open_memstream.ADDR; } /** * {@snippet lang=c : * extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) * } */ - public static MemorySegment open_memstream(MemorySegment __bufloc, MemorySegment __sizeloc) { + public static MemorySegment open_memstream(MemorySegment __bufloc, MemorySegment __sizeloc) + { var mh$ = open_memstream.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("open_memstream", __bufloc, __sizeloc); } return (MemorySegment)mh$.invokeExact(__bufloc, __sizeloc); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class setbuf { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.ofVoid(hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("setbuf"); @@ -13216,9 +12057,7 @@ private static class setbuf { * extern void setbuf(FILE *restrict __stream, char *restrict __buf) * } */ - public static FunctionDescriptor setbuf$descriptor() { - return setbuf.DESC; - } + public static FunctionDescriptor setbuf$descriptor() { return setbuf.DESC; } /** * Downcall method handle for: @@ -13226,9 +12065,7 @@ private static class setbuf { * extern void setbuf(FILE *restrict __stream, char *restrict __buf) * } */ - public static MethodHandle setbuf$handle() { - return setbuf.HANDLE; - } + public static MethodHandle setbuf$handle() { return setbuf.HANDLE; } /** * Address for: @@ -13236,35 +12073,30 @@ private static class setbuf { * extern void setbuf(FILE *restrict __stream, char *restrict __buf) * } */ - public static MemorySegment setbuf$address() { - return setbuf.ADDR; - } + public static MemorySegment setbuf$address() { return setbuf.ADDR; } /** * {@snippet lang=c : * extern void setbuf(FILE *restrict __stream, char *restrict __buf) * } */ - public static void setbuf(MemorySegment __stream, MemorySegment __buf) { + public static void setbuf(MemorySegment __stream, MemorySegment __buf) + { var mh$ = setbuf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("setbuf", __stream, __buf); } mh$.invokeExact(__stream, __buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class setvbuf { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("setvbuf"); @@ -13277,9 +12109,7 @@ private static class setvbuf { * extern int setvbuf(FILE *restrict __stream, char *restrict __buf, int __modes, size_t __n) * } */ - public static FunctionDescriptor setvbuf$descriptor() { - return setvbuf.DESC; - } + public static FunctionDescriptor setvbuf$descriptor() { return setvbuf.DESC; } /** * Downcall method handle for: @@ -13287,9 +12117,7 @@ private static class setvbuf { * extern int setvbuf(FILE *restrict __stream, char *restrict __buf, int __modes, size_t __n) * } */ - public static MethodHandle setvbuf$handle() { - return setvbuf.HANDLE; - } + public static MethodHandle setvbuf$handle() { return setvbuf.HANDLE; } /** * Address for: @@ -13297,33 +12125,30 @@ private static class setvbuf { * extern int setvbuf(FILE *restrict __stream, char *restrict __buf, int __modes, size_t __n) * } */ - public static MemorySegment setvbuf$address() { - return setvbuf.ADDR; - } + public static MemorySegment setvbuf$address() { return setvbuf.ADDR; } /** * {@snippet lang=c : * extern int setvbuf(FILE *restrict __stream, char *restrict __buf, int __modes, size_t __n) * } */ - public static int setvbuf(MemorySegment __stream, MemorySegment __buf, int __modes, long __n) { + public static int setvbuf(MemorySegment __stream, MemorySegment __buf, int __modes, long __n) + { var mh$ = setvbuf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("setvbuf", __stream, __buf, __modes, __n); } return (int)mh$.invokeExact(__stream, __buf, __modes, __n); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class setbuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.ofVoid(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("setbuffer"); @@ -13336,9 +12161,7 @@ private static class setbuffer { * extern void setbuffer(FILE *restrict __stream, char *restrict __buf, size_t __size) * } */ - public static FunctionDescriptor setbuffer$descriptor() { - return setbuffer.DESC; - } + public static FunctionDescriptor setbuffer$descriptor() { return setbuffer.DESC; } /** * Downcall method handle for: @@ -13346,9 +12169,7 @@ private static class setbuffer { * extern void setbuffer(FILE *restrict __stream, char *restrict __buf, size_t __size) * } */ - public static MethodHandle setbuffer$handle() { - return setbuffer.HANDLE; - } + public static MethodHandle setbuffer$handle() { return setbuffer.HANDLE; } /** * Address for: @@ -13356,31 +12177,29 @@ private static class setbuffer { * extern void setbuffer(FILE *restrict __stream, char *restrict __buf, size_t __size) * } */ - public static MemorySegment setbuffer$address() { - return setbuffer.ADDR; - } + public static MemorySegment setbuffer$address() { return setbuffer.ADDR; } /** * {@snippet lang=c : * extern void setbuffer(FILE *restrict __stream, char *restrict __buf, size_t __size) * } */ - public static void setbuffer(MemorySegment __stream, MemorySegment __buf, long __size) { + public static void setbuffer(MemorySegment __stream, MemorySegment __buf, long __size) + { var mh$ = setbuffer.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("setbuffer", __stream, __buf, __size); } mh$.invokeExact(__stream, __buf, __size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class setlinebuf { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("setlinebuf"); @@ -13393,9 +12212,7 @@ private static class setlinebuf { * extern void setlinebuf(FILE *__stream) * } */ - public static FunctionDescriptor setlinebuf$descriptor() { - return setlinebuf.DESC; - } + public static FunctionDescriptor setlinebuf$descriptor() { return setlinebuf.DESC; } /** * Downcall method handle for: @@ -13403,9 +12220,7 @@ private static class setlinebuf { * extern void setlinebuf(FILE *__stream) * } */ - public static MethodHandle setlinebuf$handle() { - return setlinebuf.HANDLE; - } + public static MethodHandle setlinebuf$handle() { return setlinebuf.HANDLE; } /** * Address for: @@ -13413,24 +12228,24 @@ private static class setlinebuf { * extern void setlinebuf(FILE *__stream) * } */ - public static MemorySegment setlinebuf$address() { - return setlinebuf.ADDR; - } + public static MemorySegment setlinebuf$address() { return setlinebuf.ADDR; } /** * {@snippet lang=c : * extern void setlinebuf(FILE *__stream) * } */ - public static void setlinebuf(MemorySegment __stream) { + public static void setlinebuf(MemorySegment __stream) + { var mh$ = setlinebuf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("setlinebuf", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } @@ -13441,21 +12256,19 @@ public static void setlinebuf(MemorySegment __stream) { * } */ public static class fprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("fprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private fprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private fprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -13464,45 +12277,43 @@ private fprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int fprintf(FILE *restrict __stream, const char *restrict __format, ...) * } */ - public static fprintf makeInvoker(MemoryLayout... layouts) { + public static fprintf 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); + 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 fprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) { + public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("fprintf", __stream, __format, x2); } return (int)spreader.invokeExact(__stream, __format, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -13514,20 +12325,19 @@ public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) { * } */ public static class printf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.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; + private printf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -13536,45 +12346,43 @@ private printf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int printf(const char *restrict __format, ...) * } */ - public static printf makeInvoker(MemoryLayout... layouts) { + 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); + 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; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __format, Object... x1) { + public int apply(MemorySegment __format, Object... x1) + { try { if (TRACE_DOWNCALLS) { traceDowncall("printf", __format, x1); } return (int)spreader.invokeExact(__format, x1); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -13586,21 +12394,19 @@ public int apply(MemorySegment __format, Object... x1) { * } */ public static class sprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("sprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private sprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private sprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -13609,56 +12415,50 @@ private sprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int sprintf(char *restrict __s, const char *restrict __format, ...) * } */ - public static sprintf makeInvoker(MemoryLayout... layouts) { + public static sprintf 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); + 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 sprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __s, MemorySegment __format, Object... x2) { + public int apply(MemorySegment __s, MemorySegment __format, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("sprintf", __s, __format, x2); } return (int)spreader.invokeExact(__s, __format, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } private static class vfprintf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vfprintf"); @@ -13671,9 +12471,7 @@ private static class vfprintf { * extern int vfprintf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vfprintf$descriptor() { - return vfprintf.DESC; - } + public static FunctionDescriptor vfprintf$descriptor() { return vfprintf.DESC; } /** * Downcall method handle for: @@ -13681,9 +12479,7 @@ private static class vfprintf { * extern int vfprintf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vfprintf$handle() { - return vfprintf.HANDLE; - } + public static MethodHandle vfprintf$handle() { return vfprintf.HANDLE; } /** * Address for: @@ -13691,33 +12487,30 @@ private static class vfprintf { * extern int vfprintf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vfprintf$address() { - return vfprintf.ADDR; - } + public static MemorySegment vfprintf$address() { return vfprintf.ADDR; } /** * {@snippet lang=c : * extern int vfprintf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vfprintf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) { + public static int vfprintf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) + { var mh$ = vfprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vfprintf", __s, __format, __arg); } return (int)mh$.invokeExact(__s, __format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class vprintf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vprintf"); @@ -13730,9 +12523,7 @@ private static class vprintf { * extern int vprintf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vprintf$descriptor() { - return vprintf.DESC; - } + public static FunctionDescriptor vprintf$descriptor() { return vprintf.DESC; } /** * Downcall method handle for: @@ -13740,9 +12531,7 @@ private static class vprintf { * extern int vprintf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vprintf$handle() { - return vprintf.HANDLE; - } + public static MethodHandle vprintf$handle() { return vprintf.HANDLE; } /** * Address for: @@ -13750,34 +12539,30 @@ private static class vprintf { * extern int vprintf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vprintf$address() { - return vprintf.ADDR; - } + public static MemorySegment vprintf$address() { return vprintf.ADDR; } /** * {@snippet lang=c : * extern int vprintf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vprintf(MemorySegment __format, MemorySegment __arg) { + public static int vprintf(MemorySegment __format, MemorySegment __arg) + { var mh$ = vprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vprintf", __format, __arg); } return (int)mh$.invokeExact(__format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class vsprintf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vsprintf"); @@ -13790,9 +12575,7 @@ private static class vsprintf { * extern int vsprintf(char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vsprintf$descriptor() { - return vsprintf.DESC; - } + public static FunctionDescriptor vsprintf$descriptor() { return vsprintf.DESC; } /** * Downcall method handle for: @@ -13800,9 +12583,7 @@ private static class vsprintf { * extern int vsprintf(char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vsprintf$handle() { - return vsprintf.HANDLE; - } + public static MethodHandle vsprintf$handle() { return vsprintf.HANDLE; } /** * Address for: @@ -13810,24 +12591,24 @@ private static class vsprintf { * extern int vsprintf(char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vsprintf$address() { - return vsprintf.ADDR; - } + public static MemorySegment vsprintf$address() { return vsprintf.ADDR; } /** * {@snippet lang=c : * extern int vsprintf(char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vsprintf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) { + public static int vsprintf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) + { var mh$ = vsprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vsprintf", __s, __format, __arg); } return (int)mh$.invokeExact(__s, __format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } @@ -13838,22 +12619,19 @@ public static int vsprintf(MemorySegment __s, MemorySegment __format, MemorySegm * } */ public static class snprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("snprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private snprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private snprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -13862,57 +12640,50 @@ private snprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandl * extern int snprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, ...) * } */ - public static snprintf makeInvoker(MemoryLayout... layouts) { + public static snprintf 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); + 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 snprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __s, long __maxlen, MemorySegment __format, Object... x3) { + public int apply(MemorySegment __s, long __maxlen, MemorySegment __format, Object... x3) + { try { if (TRACE_DOWNCALLS) { traceDowncall("snprintf", __s, __maxlen, __format, x3); } return (int)spreader.invokeExact(__s, __maxlen, __format, x3); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } private static class vsnprintf { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vsnprintf"); @@ -13922,57 +12693,53 @@ private static class vsnprintf { /** * Function descriptor for: * {@snippet lang=c : - * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list __arg) + * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list + * __arg) * } */ - public static FunctionDescriptor vsnprintf$descriptor() { - return vsnprintf.DESC; - } + public static FunctionDescriptor vsnprintf$descriptor() { return vsnprintf.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list __arg) + * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list + * __arg) * } */ - public static MethodHandle vsnprintf$handle() { - return vsnprintf.HANDLE; - } + public static MethodHandle vsnprintf$handle() { return vsnprintf.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list __arg) + * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list + * __arg) * } */ - public static MemorySegment vsnprintf$address() { - return vsnprintf.ADDR; - } + public static MemorySegment vsnprintf$address() { return vsnprintf.ADDR; } /** * {@snippet lang=c : - * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list __arg) + * extern int vsnprintf(char *restrict __s, size_t __maxlen, const char *restrict __format, __gnuc_va_list + * __arg) * } */ - public static int vsnprintf(MemorySegment __s, long __maxlen, MemorySegment __format, MemorySegment __arg) { + public static int vsnprintf(MemorySegment __s, long __maxlen, MemorySegment __format, MemorySegment __arg) + { var mh$ = vsnprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vsnprintf", __s, __maxlen, __format, __arg); } return (int)mh$.invokeExact(__s, __maxlen, __format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class vasprintf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vasprintf"); @@ -13985,9 +12752,7 @@ private static class vasprintf { * extern int vasprintf(char **restrict __ptr, const char *restrict __f, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vasprintf$descriptor() { - return vasprintf.DESC; - } + public static FunctionDescriptor vasprintf$descriptor() { return vasprintf.DESC; } /** * Downcall method handle for: @@ -13995,9 +12760,7 @@ private static class vasprintf { * extern int vasprintf(char **restrict __ptr, const char *restrict __f, __gnuc_va_list __arg) * } */ - public static MethodHandle vasprintf$handle() { - return vasprintf.HANDLE; - } + public static MethodHandle vasprintf$handle() { return vasprintf.HANDLE; } /** * Address for: @@ -14005,24 +12768,24 @@ private static class vasprintf { * extern int vasprintf(char **restrict __ptr, const char *restrict __f, __gnuc_va_list __arg) * } */ - public static MemorySegment vasprintf$address() { - return vasprintf.ADDR; - } + public static MemorySegment vasprintf$address() { return vasprintf.ADDR; } /** * {@snippet lang=c : * extern int vasprintf(char **restrict __ptr, const char *restrict __f, __gnuc_va_list __arg) * } */ - public static int vasprintf(MemorySegment __ptr, MemorySegment __f, MemorySegment __arg) { + public static int vasprintf(MemorySegment __ptr, MemorySegment __f, MemorySegment __arg) + { var mh$ = vasprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vasprintf", __ptr, __f, __arg); } return (int)mh$.invokeExact(__ptr, __f, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } @@ -14033,21 +12796,19 @@ public static int vasprintf(MemorySegment __ptr, MemorySegment __f, MemorySegmen * } */ public static class __asprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("__asprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private __asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private __asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14056,45 +12817,43 @@ private __asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHan * extern int __asprintf(char **restrict __ptr, const char *restrict __fmt, ...) * } */ - public static __asprintf makeInvoker(MemoryLayout... layouts) { + public static __asprintf 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); + 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 __asprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __ptr, MemorySegment __fmt, Object... x2) { + public int apply(MemorySegment __ptr, MemorySegment __fmt, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("__asprintf", __ptr, __fmt, x2); } return (int)spreader.invokeExact(__ptr, __fmt, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -14106,21 +12865,19 @@ public int apply(MemorySegment __ptr, MemorySegment __fmt, Object... x2) { * } */ public static class asprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("asprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14129,56 +12886,50 @@ private asprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandl * extern int asprintf(char **restrict __ptr, const char *restrict __fmt, ...) * } */ - public static asprintf makeInvoker(MemoryLayout... layouts) { + public static asprintf 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); + 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 asprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __ptr, MemorySegment __fmt, Object... x2) { + public int apply(MemorySegment __ptr, MemorySegment __fmt, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("asprintf", __ptr, __fmt, x2); } return (int)spreader.invokeExact(__ptr, __fmt, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } private static class vdprintf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vdprintf"); @@ -14191,9 +12942,7 @@ private static class vdprintf { * extern int vdprintf(int __fd, const char *restrict __fmt, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vdprintf$descriptor() { - return vdprintf.DESC; - } + public static FunctionDescriptor vdprintf$descriptor() { return vdprintf.DESC; } /** * Downcall method handle for: @@ -14201,9 +12950,7 @@ private static class vdprintf { * extern int vdprintf(int __fd, const char *restrict __fmt, __gnuc_va_list __arg) * } */ - public static MethodHandle vdprintf$handle() { - return vdprintf.HANDLE; - } + public static MethodHandle vdprintf$handle() { return vdprintf.HANDLE; } /** * Address for: @@ -14211,24 +12958,24 @@ private static class vdprintf { * extern int vdprintf(int __fd, const char *restrict __fmt, __gnuc_va_list __arg) * } */ - public static MemorySegment vdprintf$address() { - return vdprintf.ADDR; - } + public static MemorySegment vdprintf$address() { return vdprintf.ADDR; } /** * {@snippet lang=c : * extern int vdprintf(int __fd, const char *restrict __fmt, __gnuc_va_list __arg) * } */ - public static int vdprintf(int __fd, MemorySegment __fmt, MemorySegment __arg) { + public static int vdprintf(int __fd, MemorySegment __fmt, MemorySegment __arg) + { var mh$ = vdprintf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vdprintf", __fd, __fmt, __arg); } return (int)mh$.invokeExact(__fd, __fmt, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } @@ -14239,21 +12986,19 @@ public static int vdprintf(int __fd, MemorySegment __fmt, MemorySegment __arg) { * } */ public static class dprintf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("dprintf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private dprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private dprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14262,45 +13007,43 @@ private dprintf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int dprintf(int __fd, const char *restrict __fmt, ...) * } */ - public static dprintf makeInvoker(MemoryLayout... layouts) { + public static dprintf 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); + 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 dprintf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(int __fd, MemorySegment __fmt, Object... x2) { + public int apply(int __fd, MemorySegment __fmt, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("dprintf", __fd, __fmt, x2); } return (int)spreader.invokeExact(__fd, __fmt, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -14312,21 +13055,19 @@ public int apply(int __fd, MemorySegment __fmt, Object... x2) { * } */ public static class fscanf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("fscanf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private fscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private fscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14335,45 +13076,43 @@ private fscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int fscanf(FILE *restrict __stream, const char *restrict __format, ...) * } */ - public static fscanf makeInvoker(MemoryLayout... layouts) { + public static fscanf 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); + 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 fscanf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) { + public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("fscanf", __stream, __format, x2); } return (int)spreader.invokeExact(__stream, __format, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -14385,20 +13124,19 @@ public int apply(MemorySegment __stream, MemorySegment __format, Object... x2) { * } */ public static class scanf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("scanf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private scanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private scanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14407,45 +13145,43 @@ private scanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle s * extern int scanf(const char *restrict __format, ...) * } */ - public static scanf makeInvoker(MemoryLayout... layouts) { + public static scanf 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); + 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 scanf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __format, Object... x1) { + public int apply(MemorySegment __format, Object... x1) + { try { if (TRACE_DOWNCALLS) { traceDowncall("scanf", __format, x1); } return (int)spreader.invokeExact(__format, x1); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -14457,21 +13193,19 @@ public int apply(MemorySegment __format, Object... x1) { * } */ public static class sscanf { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + private static final FunctionDescriptor BASE_DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("sscanf"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private sscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private sscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** @@ -14480,45 +13214,43 @@ private sscanf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle * extern int sscanf(const char *restrict __s, const char *restrict __format, ...) * } */ - public static sscanf makeInvoker(MemoryLayout... layouts) { + public static sscanf 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); + 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 sscanf(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(MemorySegment __s, MemorySegment __format, Object... x2) { + public int apply(MemorySegment __s, MemorySegment __format, Object... x2) + { try { if (TRACE_DOWNCALLS) { traceDowncall("sscanf", __s, __format, x2); } return (int)spreader.invokeExact(__s, __format, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } @@ -14542,12 +13274,8 @@ public int apply(MemorySegment __s, MemorySegment __format, Object... x2) { public static final OfDouble _Float32x = hdf5_h.C_DOUBLE; private static class vfscanf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vfscanf"); @@ -14560,9 +13288,7 @@ private static class vfscanf { * extern int vfscanf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vfscanf$descriptor() { - return vfscanf.DESC; - } + public static FunctionDescriptor vfscanf$descriptor() { return vfscanf.DESC; } /** * Downcall method handle for: @@ -14570,9 +13296,7 @@ private static class vfscanf { * extern int vfscanf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vfscanf$handle() { - return vfscanf.HANDLE; - } + public static MethodHandle vfscanf$handle() { return vfscanf.HANDLE; } /** * Address for: @@ -14580,33 +13304,30 @@ private static class vfscanf { * extern int vfscanf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vfscanf$address() { - return vfscanf.ADDR; - } + public static MemorySegment vfscanf$address() { return vfscanf.ADDR; } /** * {@snippet lang=c : * extern int vfscanf(FILE *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vfscanf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) { + public static int vfscanf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) + { var mh$ = vfscanf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vfscanf", __s, __format, __arg); } return (int)mh$.invokeExact(__s, __format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class vscanf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vscanf"); @@ -14619,9 +13340,7 @@ private static class vscanf { * extern int vscanf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vscanf$descriptor() { - return vscanf.DESC; - } + public static FunctionDescriptor vscanf$descriptor() { return vscanf.DESC; } /** * Downcall method handle for: @@ -14629,9 +13348,7 @@ private static class vscanf { * extern int vscanf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vscanf$handle() { - return vscanf.HANDLE; - } + public static MethodHandle vscanf$handle() { return vscanf.HANDLE; } /** * Address for: @@ -14639,34 +13356,30 @@ private static class vscanf { * extern int vscanf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vscanf$address() { - return vscanf.ADDR; - } + public static MemorySegment vscanf$address() { return vscanf.ADDR; } /** * {@snippet lang=c : * extern int vscanf(const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vscanf(MemorySegment __format, MemorySegment __arg) { + public static int vscanf(MemorySegment __format, MemorySegment __arg) + { var mh$ = vscanf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vscanf", __format, __arg); } return (int)mh$.invokeExact(__format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class vsscanf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("vsscanf"); @@ -14679,9 +13392,7 @@ private static class vsscanf { * extern int vsscanf(const char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static FunctionDescriptor vsscanf$descriptor() { - return vsscanf.DESC; - } + public static FunctionDescriptor vsscanf$descriptor() { return vsscanf.DESC; } /** * Downcall method handle for: @@ -14689,9 +13400,7 @@ private static class vsscanf { * extern int vsscanf(const char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MethodHandle vsscanf$handle() { - return vsscanf.HANDLE; - } + public static MethodHandle vsscanf$handle() { return vsscanf.HANDLE; } /** * Address for: @@ -14699,32 +13408,29 @@ private static class vsscanf { * extern int vsscanf(const char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static MemorySegment vsscanf$address() { - return vsscanf.ADDR; - } + public static MemorySegment vsscanf$address() { return vsscanf.ADDR; } /** * {@snippet lang=c : * extern int vsscanf(const char *restrict __s, const char *restrict __format, __gnuc_va_list __arg) * } */ - public static int vsscanf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) { + public static int vsscanf(MemorySegment __s, MemorySegment __format, MemorySegment __arg) + { var mh$ = vsscanf.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("vsscanf", __s, __format, __arg); } return (int)mh$.invokeExact(__s, __format, __arg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fgetc { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fgetc"); @@ -14737,9 +13443,7 @@ private static class fgetc { * extern int fgetc(FILE *__stream) * } */ - public static FunctionDescriptor fgetc$descriptor() { - return fgetc.DESC; - } + public static FunctionDescriptor fgetc$descriptor() { return fgetc.DESC; } /** * Downcall method handle for: @@ -14747,9 +13451,7 @@ private static class fgetc { * extern int fgetc(FILE *__stream) * } */ - public static MethodHandle fgetc$handle() { - return fgetc.HANDLE; - } + public static MethodHandle fgetc$handle() { return fgetc.HANDLE; } /** * Address for: @@ -14757,32 +13459,29 @@ private static class fgetc { * extern int fgetc(FILE *__stream) * } */ - public static MemorySegment fgetc$address() { - return fgetc.ADDR; - } + public static MemorySegment fgetc$address() { return fgetc.ADDR; } /** * {@snippet lang=c : * extern int fgetc(FILE *__stream) * } */ - public static int fgetc(MemorySegment __stream) { + public static int fgetc(MemorySegment __stream) + { var mh$ = fgetc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fgetc", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getc { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getc"); @@ -14795,9 +13494,7 @@ private static class getc { * extern int getc(FILE *__stream) * } */ - public static FunctionDescriptor getc$descriptor() { - return getc.DESC; - } + public static FunctionDescriptor getc$descriptor() { return getc.DESC; } /** * Downcall method handle for: @@ -14805,9 +13502,7 @@ private static class getc { * extern int getc(FILE *__stream) * } */ - public static MethodHandle getc$handle() { - return getc.HANDLE; - } + public static MethodHandle getc$handle() { return getc.HANDLE; } /** * Address for: @@ -14815,30 +13510,29 @@ private static class getc { * extern int getc(FILE *__stream) * } */ - public static MemorySegment getc$address() { - return getc.ADDR; - } + public static MemorySegment getc$address() { return getc.ADDR; } /** * {@snippet lang=c : * extern int getc(FILE *__stream) * } */ - public static int getc(MemorySegment __stream) { + public static int getc(MemorySegment __stream) + { var mh$ = getc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getc", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getchar { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getchar"); @@ -14851,9 +13545,7 @@ private static class getchar { * extern int getchar() * } */ - public static FunctionDescriptor getchar$descriptor() { - return getchar.DESC; - } + public static FunctionDescriptor getchar$descriptor() { return getchar.DESC; } /** * Downcall method handle for: @@ -14861,9 +13553,7 @@ private static class getchar { * extern int getchar() * } */ - public static MethodHandle getchar$handle() { - return getchar.HANDLE; - } + public static MethodHandle getchar$handle() { return getchar.HANDLE; } /** * Address for: @@ -14871,32 +13561,29 @@ private static class getchar { * extern int getchar() * } */ - public static MemorySegment getchar$address() { - return getchar.ADDR; - } + public static MemorySegment getchar$address() { return getchar.ADDR; } /** * {@snippet lang=c : * extern int getchar() * } */ - public static int getchar() { + public static int getchar() + { var mh$ = getchar.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getchar"); } return (int)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getc_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getc_unlocked"); @@ -14909,9 +13596,7 @@ private static class getc_unlocked { * extern int getc_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor getc_unlocked$descriptor() { - return getc_unlocked.DESC; - } + public static FunctionDescriptor getc_unlocked$descriptor() { return getc_unlocked.DESC; } /** * Downcall method handle for: @@ -14919,9 +13604,7 @@ private static class getc_unlocked { * extern int getc_unlocked(FILE *__stream) * } */ - public static MethodHandle getc_unlocked$handle() { - return getc_unlocked.HANDLE; - } + public static MethodHandle getc_unlocked$handle() { return getc_unlocked.HANDLE; } /** * Address for: @@ -14929,30 +13612,29 @@ private static class getc_unlocked { * extern int getc_unlocked(FILE *__stream) * } */ - public static MemorySegment getc_unlocked$address() { - return getc_unlocked.ADDR; - } + public static MemorySegment getc_unlocked$address() { return getc_unlocked.ADDR; } /** * {@snippet lang=c : * extern int getc_unlocked(FILE *__stream) * } */ - public static int getc_unlocked(MemorySegment __stream) { + public static int getc_unlocked(MemorySegment __stream) + { var mh$ = getc_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getc_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getchar_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getchar_unlocked"); @@ -14965,9 +13647,7 @@ private static class getchar_unlocked { * extern int getchar_unlocked() * } */ - public static FunctionDescriptor getchar_unlocked$descriptor() { - return getchar_unlocked.DESC; - } + public static FunctionDescriptor getchar_unlocked$descriptor() { return getchar_unlocked.DESC; } /** * Downcall method handle for: @@ -14975,9 +13655,7 @@ private static class getchar_unlocked { * extern int getchar_unlocked() * } */ - public static MethodHandle getchar_unlocked$handle() { - return getchar_unlocked.HANDLE; - } + public static MethodHandle getchar_unlocked$handle() { return getchar_unlocked.HANDLE; } /** * Address for: @@ -14985,32 +13663,29 @@ private static class getchar_unlocked { * extern int getchar_unlocked() * } */ - public static MemorySegment getchar_unlocked$address() { - return getchar_unlocked.ADDR; - } + public static MemorySegment getchar_unlocked$address() { return getchar_unlocked.ADDR; } /** * {@snippet lang=c : * extern int getchar_unlocked() * } */ - public static int getchar_unlocked() { + public static int getchar_unlocked() + { var mh$ = getchar_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getchar_unlocked"); } return (int)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fgetc_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fgetc_unlocked"); @@ -15023,9 +13698,7 @@ private static class fgetc_unlocked { * extern int fgetc_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor fgetc_unlocked$descriptor() { - return fgetc_unlocked.DESC; - } + public static FunctionDescriptor fgetc_unlocked$descriptor() { return fgetc_unlocked.DESC; } /** * Downcall method handle for: @@ -15033,9 +13706,7 @@ private static class fgetc_unlocked { * extern int fgetc_unlocked(FILE *__stream) * } */ - public static MethodHandle fgetc_unlocked$handle() { - return fgetc_unlocked.HANDLE; - } + public static MethodHandle fgetc_unlocked$handle() { return fgetc_unlocked.HANDLE; } /** * Address for: @@ -15043,33 +13714,30 @@ private static class fgetc_unlocked { * extern int fgetc_unlocked(FILE *__stream) * } */ - public static MemorySegment fgetc_unlocked$address() { - return fgetc_unlocked.ADDR; - } + public static MemorySegment fgetc_unlocked$address() { return fgetc_unlocked.ADDR; } /** * {@snippet lang=c : * extern int fgetc_unlocked(FILE *__stream) * } */ - public static int fgetc_unlocked(MemorySegment __stream) { + public static int fgetc_unlocked(MemorySegment __stream) + { var mh$ = fgetc_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fgetc_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fputc { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fputc"); @@ -15082,9 +13750,7 @@ private static class fputc { * extern int fputc(int __c, FILE *__stream) * } */ - public static FunctionDescriptor fputc$descriptor() { - return fputc.DESC; - } + public static FunctionDescriptor fputc$descriptor() { return fputc.DESC; } /** * Downcall method handle for: @@ -15092,9 +13758,7 @@ private static class fputc { * extern int fputc(int __c, FILE *__stream) * } */ - public static MethodHandle fputc$handle() { - return fputc.HANDLE; - } + public static MethodHandle fputc$handle() { return fputc.HANDLE; } /** * Address for: @@ -15102,33 +13766,30 @@ private static class fputc { * extern int fputc(int __c, FILE *__stream) * } */ - public static MemorySegment fputc$address() { - return fputc.ADDR; - } + public static MemorySegment fputc$address() { return fputc.ADDR; } /** * {@snippet lang=c : * extern int fputc(int __c, FILE *__stream) * } */ - public static int fputc(int __c, MemorySegment __stream) { + public static int fputc(int __c, MemorySegment __stream) + { var mh$ = fputc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fputc", __c, __stream); } return (int)mh$.invokeExact(__c, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class putc { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("putc"); @@ -15141,9 +13802,7 @@ private static class putc { * extern int putc(int __c, FILE *__stream) * } */ - public static FunctionDescriptor putc$descriptor() { - return putc.DESC; - } + public static FunctionDescriptor putc$descriptor() { return putc.DESC; } /** * Downcall method handle for: @@ -15151,9 +13810,7 @@ private static class putc { * extern int putc(int __c, FILE *__stream) * } */ - public static MethodHandle putc$handle() { - return putc.HANDLE; - } + public static MethodHandle putc$handle() { return putc.HANDLE; } /** * Address for: @@ -15161,32 +13818,29 @@ private static class putc { * extern int putc(int __c, FILE *__stream) * } */ - public static MemorySegment putc$address() { - return putc.ADDR; - } + public static MemorySegment putc$address() { return putc.ADDR; } /** * {@snippet lang=c : * extern int putc(int __c, FILE *__stream) * } */ - public static int putc(int __c, MemorySegment __stream) { + public static int putc(int __c, MemorySegment __stream) + { var mh$ = putc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("putc", __c, __stream); } return (int)mh$.invokeExact(__c, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class putchar { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("putchar"); @@ -15199,9 +13853,7 @@ private static class putchar { * extern int putchar(int __c) * } */ - public static FunctionDescriptor putchar$descriptor() { - return putchar.DESC; - } + public static FunctionDescriptor putchar$descriptor() { return putchar.DESC; } /** * Downcall method handle for: @@ -15209,9 +13861,7 @@ private static class putchar { * extern int putchar(int __c) * } */ - public static MethodHandle putchar$handle() { - return putchar.HANDLE; - } + public static MethodHandle putchar$handle() { return putchar.HANDLE; } /** * Address for: @@ -15219,33 +13869,30 @@ private static class putchar { * extern int putchar(int __c) * } */ - public static MemorySegment putchar$address() { - return putchar.ADDR; - } + public static MemorySegment putchar$address() { return putchar.ADDR; } /** * {@snippet lang=c : * extern int putchar(int __c) * } */ - public static int putchar(int __c) { + public static int putchar(int __c) + { var mh$ = putchar.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("putchar", __c); } return (int)mh$.invokeExact(__c); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fputc_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fputc_unlocked"); @@ -15258,9 +13905,7 @@ private static class fputc_unlocked { * extern int fputc_unlocked(int __c, FILE *__stream) * } */ - public static FunctionDescriptor fputc_unlocked$descriptor() { - return fputc_unlocked.DESC; - } + public static FunctionDescriptor fputc_unlocked$descriptor() { return fputc_unlocked.DESC; } /** * Downcall method handle for: @@ -15268,9 +13913,7 @@ private static class fputc_unlocked { * extern int fputc_unlocked(int __c, FILE *__stream) * } */ - public static MethodHandle fputc_unlocked$handle() { - return fputc_unlocked.HANDLE; - } + public static MethodHandle fputc_unlocked$handle() { return fputc_unlocked.HANDLE; } /** * Address for: @@ -15278,33 +13921,30 @@ private static class fputc_unlocked { * extern int fputc_unlocked(int __c, FILE *__stream) * } */ - public static MemorySegment fputc_unlocked$address() { - return fputc_unlocked.ADDR; - } + public static MemorySegment fputc_unlocked$address() { return fputc_unlocked.ADDR; } /** * {@snippet lang=c : * extern int fputc_unlocked(int __c, FILE *__stream) * } */ - public static int fputc_unlocked(int __c, MemorySegment __stream) { + public static int fputc_unlocked(int __c, MemorySegment __stream) + { var mh$ = fputc_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fputc_unlocked", __c, __stream); } return (int)mh$.invokeExact(__c, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class putc_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("putc_unlocked"); @@ -15317,9 +13957,7 @@ private static class putc_unlocked { * extern int putc_unlocked(int __c, FILE *__stream) * } */ - public static FunctionDescriptor putc_unlocked$descriptor() { - return putc_unlocked.DESC; - } + public static FunctionDescriptor putc_unlocked$descriptor() { return putc_unlocked.DESC; } /** * Downcall method handle for: @@ -15327,9 +13965,7 @@ private static class putc_unlocked { * extern int putc_unlocked(int __c, FILE *__stream) * } */ - public static MethodHandle putc_unlocked$handle() { - return putc_unlocked.HANDLE; - } + public static MethodHandle putc_unlocked$handle() { return putc_unlocked.HANDLE; } /** * Address for: @@ -15337,32 +13973,29 @@ private static class putc_unlocked { * extern int putc_unlocked(int __c, FILE *__stream) * } */ - public static MemorySegment putc_unlocked$address() { - return putc_unlocked.ADDR; - } + public static MemorySegment putc_unlocked$address() { return putc_unlocked.ADDR; } /** * {@snippet lang=c : * extern int putc_unlocked(int __c, FILE *__stream) * } */ - public static int putc_unlocked(int __c, MemorySegment __stream) { + public static int putc_unlocked(int __c, MemorySegment __stream) + { var mh$ = putc_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("putc_unlocked", __c, __stream); } return (int)mh$.invokeExact(__c, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class putchar_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("putchar_unlocked"); @@ -15375,9 +14008,7 @@ private static class putchar_unlocked { * extern int putchar_unlocked(int __c) * } */ - public static FunctionDescriptor putchar_unlocked$descriptor() { - return putchar_unlocked.DESC; - } + public static FunctionDescriptor putchar_unlocked$descriptor() { return putchar_unlocked.DESC; } /** * Downcall method handle for: @@ -15385,9 +14016,7 @@ private static class putchar_unlocked { * extern int putchar_unlocked(int __c) * } */ - public static MethodHandle putchar_unlocked$handle() { - return putchar_unlocked.HANDLE; - } + public static MethodHandle putchar_unlocked$handle() { return putchar_unlocked.HANDLE; } /** * Address for: @@ -15395,32 +14024,29 @@ private static class putchar_unlocked { * extern int putchar_unlocked(int __c) * } */ - public static MemorySegment putchar_unlocked$address() { - return putchar_unlocked.ADDR; - } + public static MemorySegment putchar_unlocked$address() { return putchar_unlocked.ADDR; } /** * {@snippet lang=c : * extern int putchar_unlocked(int __c) * } */ - public static int putchar_unlocked(int __c) { + public static int putchar_unlocked(int __c) + { var mh$ = putchar_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("putchar_unlocked", __c); } return (int)mh$.invokeExact(__c); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getw { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getw"); @@ -15433,9 +14059,7 @@ private static class getw { * extern int getw(FILE *__stream) * } */ - public static FunctionDescriptor getw$descriptor() { - return getw.DESC; - } + public static FunctionDescriptor getw$descriptor() { return getw.DESC; } /** * Downcall method handle for: @@ -15443,9 +14067,7 @@ private static class getw { * extern int getw(FILE *__stream) * } */ - public static MethodHandle getw$handle() { - return getw.HANDLE; - } + public static MethodHandle getw$handle() { return getw.HANDLE; } /** * Address for: @@ -15453,33 +14075,30 @@ private static class getw { * extern int getw(FILE *__stream) * } */ - public static MemorySegment getw$address() { - return getw.ADDR; - } + public static MemorySegment getw$address() { return getw.ADDR; } /** * {@snippet lang=c : * extern int getw(FILE *__stream) * } */ - public static int getw(MemorySegment __stream) { + public static int getw(MemorySegment __stream) + { var mh$ = getw.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getw", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class putw { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("putw"); @@ -15492,9 +14111,7 @@ private static class putw { * extern int putw(int __w, FILE *__stream) * } */ - public static FunctionDescriptor putw$descriptor() { - return putw.DESC; - } + public static FunctionDescriptor putw$descriptor() { return putw.DESC; } /** * Downcall method handle for: @@ -15502,9 +14119,7 @@ private static class putw { * extern int putw(int __w, FILE *__stream) * } */ - public static MethodHandle putw$handle() { - return putw.HANDLE; - } + public static MethodHandle putw$handle() { return putw.HANDLE; } /** * Address for: @@ -15512,34 +14127,30 @@ private static class putw { * extern int putw(int __w, FILE *__stream) * } */ - public static MemorySegment putw$address() { - return putw.ADDR; - } + public static MemorySegment putw$address() { return putw.ADDR; } /** * {@snippet lang=c : * extern int putw(int __w, FILE *__stream) * } */ - public static int putw(int __w, MemorySegment __stream) { + public static int putw(int __w, MemorySegment __stream) + { var mh$ = putw.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("putw", __w, __stream); } return (int)mh$.invokeExact(__w, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fgets { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fgets"); @@ -15552,9 +14163,7 @@ private static class fgets { * extern char *fgets(char *restrict __s, int __n, FILE *restrict __stream) * } */ - public static FunctionDescriptor fgets$descriptor() { - return fgets.DESC; - } + public static FunctionDescriptor fgets$descriptor() { return fgets.DESC; } /** * Downcall method handle for: @@ -15562,9 +14171,7 @@ private static class fgets { * extern char *fgets(char *restrict __s, int __n, FILE *restrict __stream) * } */ - public static MethodHandle fgets$handle() { - return fgets.HANDLE; - } + public static MethodHandle fgets$handle() { return fgets.HANDLE; } /** * Address for: @@ -15572,35 +14179,30 @@ private static class fgets { * extern char *fgets(char *restrict __s, int __n, FILE *restrict __stream) * } */ - public static MemorySegment fgets$address() { - return fgets.ADDR; - } + public static MemorySegment fgets$address() { return fgets.ADDR; } /** * {@snippet lang=c : * extern char *fgets(char *restrict __s, int __n, FILE *restrict __stream) * } */ - public static MemorySegment fgets(MemorySegment __s, int __n, MemorySegment __stream) { + public static MemorySegment fgets(MemorySegment __s, int __n, MemorySegment __stream) + { var mh$ = fgets.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fgets", __s, __n, __stream); } return (MemorySegment)mh$.invokeExact(__s, __n, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class __getdelim { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("__getdelim"); @@ -15610,58 +14212,54 @@ private static class __getdelim { /** * Function descriptor for: * {@snippet lang=c : - * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static FunctionDescriptor __getdelim$descriptor() { - return __getdelim.DESC; - } + public static FunctionDescriptor __getdelim$descriptor() { return __getdelim.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static MethodHandle __getdelim$handle() { - return __getdelim.HANDLE; - } + public static MethodHandle __getdelim$handle() { return __getdelim.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static MemorySegment __getdelim$address() { - return __getdelim.ADDR; - } + public static MemorySegment __getdelim$address() { return __getdelim.ADDR; } /** * {@snippet lang=c : - * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t __getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static long __getdelim(MemorySegment __lineptr, MemorySegment __n, int __delimiter, MemorySegment __stream) { + public static long __getdelim(MemorySegment __lineptr, MemorySegment __n, int __delimiter, + MemorySegment __stream) + { var mh$ = __getdelim.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("__getdelim", __lineptr, __n, __delimiter, __stream); } return (long)mh$.invokeExact(__lineptr, __n, __delimiter, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getdelim { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getdelim"); @@ -15671,57 +14269,54 @@ private static class getdelim { /** * Function descriptor for: * {@snippet lang=c : - * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static FunctionDescriptor getdelim$descriptor() { - return getdelim.DESC; - } + public static FunctionDescriptor getdelim$descriptor() { return getdelim.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static MethodHandle getdelim$handle() { - return getdelim.HANDLE; - } + public static MethodHandle getdelim$handle() { return getdelim.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static MemorySegment getdelim$address() { - return getdelim.ADDR; - } + public static MemorySegment getdelim$address() { return getdelim.ADDR; } /** * {@snippet lang=c : - * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE *restrict __stream) + * extern __ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delimiter, FILE + * *restrict __stream) * } */ - public static long getdelim(MemorySegment __lineptr, MemorySegment __n, int __delimiter, MemorySegment __stream) { + public static long getdelim(MemorySegment __lineptr, MemorySegment __n, int __delimiter, + MemorySegment __stream) + { var mh$ = getdelim.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getdelim", __lineptr, __n, __delimiter, __stream); } return (long)mh$.invokeExact(__lineptr, __n, __delimiter, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class getline { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("getline"); @@ -15734,9 +14329,7 @@ private static class getline { * extern __ssize_t getline(char **restrict __lineptr, size_t *restrict __n, FILE *restrict __stream) * } */ - public static FunctionDescriptor getline$descriptor() { - return getline.DESC; - } + public static FunctionDescriptor getline$descriptor() { return getline.DESC; } /** * Downcall method handle for: @@ -15744,9 +14337,7 @@ private static class getline { * extern __ssize_t getline(char **restrict __lineptr, size_t *restrict __n, FILE *restrict __stream) * } */ - public static MethodHandle getline$handle() { - return getline.HANDLE; - } + public static MethodHandle getline$handle() { return getline.HANDLE; } /** * Address for: @@ -15754,33 +14345,30 @@ private static class getline { * extern __ssize_t getline(char **restrict __lineptr, size_t *restrict __n, FILE *restrict __stream) * } */ - public static MemorySegment getline$address() { - return getline.ADDR; - } + public static MemorySegment getline$address() { return getline.ADDR; } /** * {@snippet lang=c : * extern __ssize_t getline(char **restrict __lineptr, size_t *restrict __n, FILE *restrict __stream) * } */ - public static long getline(MemorySegment __lineptr, MemorySegment __n, MemorySegment __stream) { + public static long getline(MemorySegment __lineptr, MemorySegment __n, MemorySegment __stream) + { var mh$ = getline.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("getline", __lineptr, __n, __stream); } return (long)mh$.invokeExact(__lineptr, __n, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fputs { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fputs"); @@ -15793,9 +14381,7 @@ private static class fputs { * extern int fputs(const char *restrict __s, FILE *restrict __stream) * } */ - public static FunctionDescriptor fputs$descriptor() { - return fputs.DESC; - } + public static FunctionDescriptor fputs$descriptor() { return fputs.DESC; } /** * Downcall method handle for: @@ -15803,9 +14389,7 @@ private static class fputs { * extern int fputs(const char *restrict __s, FILE *restrict __stream) * } */ - public static MethodHandle fputs$handle() { - return fputs.HANDLE; - } + public static MethodHandle fputs$handle() { return fputs.HANDLE; } /** * Address for: @@ -15813,32 +14397,29 @@ private static class fputs { * extern int fputs(const char *restrict __s, FILE *restrict __stream) * } */ - public static MemorySegment fputs$address() { - return fputs.ADDR; - } + public static MemorySegment fputs$address() { return fputs.ADDR; } /** * {@snippet lang=c : * extern int fputs(const char *restrict __s, FILE *restrict __stream) * } */ - public static int fputs(MemorySegment __s, MemorySegment __stream) { + public static int fputs(MemorySegment __s, MemorySegment __stream) + { var mh$ = fputs.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fputs", __s, __stream); } return (int)mh$.invokeExact(__s, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class puts { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("puts"); @@ -15851,9 +14432,7 @@ private static class puts { * extern int puts(const char *__s) * } */ - public static FunctionDescriptor puts$descriptor() { - return puts.DESC; - } + public static FunctionDescriptor puts$descriptor() { return puts.DESC; } /** * Downcall method handle for: @@ -15861,9 +14440,7 @@ private static class puts { * extern int puts(const char *__s) * } */ - public static MethodHandle puts$handle() { - return puts.HANDLE; - } + public static MethodHandle puts$handle() { return puts.HANDLE; } /** * Address for: @@ -15871,33 +14448,30 @@ private static class puts { * extern int puts(const char *__s) * } */ - public static MemorySegment puts$address() { - return puts.ADDR; - } + public static MemorySegment puts$address() { return puts.ADDR; } /** * {@snippet lang=c : * extern int puts(const char *__s) * } */ - public static int puts(MemorySegment __s) { + public static int puts(MemorySegment __s) + { var mh$ = puts.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("puts", __s); } return (int)mh$.invokeExact(__s); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ungetc { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ungetc"); @@ -15910,9 +14484,7 @@ private static class ungetc { * extern int ungetc(int __c, FILE *__stream) * } */ - public static FunctionDescriptor ungetc$descriptor() { - return ungetc.DESC; - } + public static FunctionDescriptor ungetc$descriptor() { return ungetc.DESC; } /** * Downcall method handle for: @@ -15920,9 +14492,7 @@ private static class ungetc { * extern int ungetc(int __c, FILE *__stream) * } */ - public static MethodHandle ungetc$handle() { - return ungetc.HANDLE; - } + public static MethodHandle ungetc$handle() { return ungetc.HANDLE; } /** * Address for: @@ -15930,35 +14500,30 @@ private static class ungetc { * extern int ungetc(int __c, FILE *__stream) * } */ - public static MemorySegment ungetc$address() { - return ungetc.ADDR; - } + public static MemorySegment ungetc$address() { return ungetc.ADDR; } /** * {@snippet lang=c : * extern int ungetc(int __c, FILE *__stream) * } */ - public static int ungetc(int __c, MemorySegment __stream) { + public static int ungetc(int __c, MemorySegment __stream) + { var mh$ = ungetc.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ungetc", __c, __stream); } return (int)mh$.invokeExact(__c, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fread { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fread"); @@ -15971,9 +14536,7 @@ private static class fread { * extern unsigned long fread(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static FunctionDescriptor fread$descriptor() { - return fread.DESC; - } + public static FunctionDescriptor fread$descriptor() { return fread.DESC; } /** * Downcall method handle for: @@ -15981,9 +14544,7 @@ private static class fread { * extern unsigned long fread(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static MethodHandle fread$handle() { - return fread.HANDLE; - } + public static MethodHandle fread$handle() { return fread.HANDLE; } /** * Address for: @@ -15991,35 +14552,30 @@ private static class fread { * extern unsigned long fread(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static MemorySegment fread$address() { - return fread.ADDR; - } + public static MemorySegment fread$address() { return fread.ADDR; } /** * {@snippet lang=c : * extern unsigned long fread(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static long fread(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) { + public static long fread(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) + { var mh$ = fread.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fread", __ptr, __size, __n, __stream); } return (long)mh$.invokeExact(__ptr, __size, __n, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fwrite { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fwrite"); @@ -16032,9 +14588,7 @@ private static class fwrite { * extern unsigned long fwrite(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __s) * } */ - public static FunctionDescriptor fwrite$descriptor() { - return fwrite.DESC; - } + public static FunctionDescriptor fwrite$descriptor() { return fwrite.DESC; } /** * Downcall method handle for: @@ -16042,9 +14596,7 @@ private static class fwrite { * extern unsigned long fwrite(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __s) * } */ - public static MethodHandle fwrite$handle() { - return fwrite.HANDLE; - } + public static MethodHandle fwrite$handle() { return fwrite.HANDLE; } /** * Address for: @@ -16052,35 +14604,30 @@ private static class fwrite { * extern unsigned long fwrite(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __s) * } */ - public static MemorySegment fwrite$address() { - return fwrite.ADDR; - } + public static MemorySegment fwrite$address() { return fwrite.ADDR; } /** * {@snippet lang=c : * extern unsigned long fwrite(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __s) * } */ - public static long fwrite(MemorySegment __ptr, long __size, long __n, MemorySegment __s) { + public static long fwrite(MemorySegment __ptr, long __size, long __n, MemorySegment __s) + { var mh$ = fwrite.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fwrite", __ptr, __size, __n, __s); } return (long)mh$.invokeExact(__ptr, __size, __n, __s); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fread_unlocked { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fread_unlocked"); @@ -16093,9 +14640,7 @@ private static class fread_unlocked { * extern size_t fread_unlocked(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static FunctionDescriptor fread_unlocked$descriptor() { - return fread_unlocked.DESC; - } + public static FunctionDescriptor fread_unlocked$descriptor() { return fread_unlocked.DESC; } /** * Downcall method handle for: @@ -16103,9 +14648,7 @@ private static class fread_unlocked { * extern size_t fread_unlocked(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static MethodHandle fread_unlocked$handle() { - return fread_unlocked.HANDLE; - } + public static MethodHandle fread_unlocked$handle() { return fread_unlocked.HANDLE; } /** * Address for: @@ -16113,35 +14656,30 @@ private static class fread_unlocked { * extern size_t fread_unlocked(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static MemorySegment fread_unlocked$address() { - return fread_unlocked.ADDR; - } + public static MemorySegment fread_unlocked$address() { return fread_unlocked.ADDR; } /** * {@snippet lang=c : * extern size_t fread_unlocked(void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) * } */ - public static long fread_unlocked(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) { + public static long fread_unlocked(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) + { var mh$ = fread_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fread_unlocked", __ptr, __size, __n, __stream); } return (long)mh$.invokeExact(__ptr, __size, __n, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fwrite_unlocked { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fwrite_unlocked"); @@ -16151,57 +14689,53 @@ private static class fwrite_unlocked { /** * Function descriptor for: * {@snippet lang=c : - * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) + * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict + * __stream) * } */ - public static FunctionDescriptor fwrite_unlocked$descriptor() { - return fwrite_unlocked.DESC; - } + public static FunctionDescriptor fwrite_unlocked$descriptor() { return fwrite_unlocked.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) + * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict + * __stream) * } */ - public static MethodHandle fwrite_unlocked$handle() { - return fwrite_unlocked.HANDLE; - } + public static MethodHandle fwrite_unlocked$handle() { return fwrite_unlocked.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) + * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict + * __stream) * } */ - public static MemorySegment fwrite_unlocked$address() { - return fwrite_unlocked.ADDR; - } + public static MemorySegment fwrite_unlocked$address() { return fwrite_unlocked.ADDR; } /** * {@snippet lang=c : - * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict __stream) + * extern size_t fwrite_unlocked(const void *restrict __ptr, size_t __size, size_t __n, FILE *restrict + * __stream) * } */ - public static long fwrite_unlocked(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) { + public static long fwrite_unlocked(MemorySegment __ptr, long __size, long __n, MemorySegment __stream) + { var mh$ = fwrite_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fwrite_unlocked", __ptr, __size, __n, __stream); } return (long)mh$.invokeExact(__ptr, __size, __n, __stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fseek { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fseek"); @@ -16214,9 +14748,7 @@ private static class fseek { * extern int fseek(FILE *__stream, long __off, int __whence) * } */ - public static FunctionDescriptor fseek$descriptor() { - return fseek.DESC; - } + public static FunctionDescriptor fseek$descriptor() { return fseek.DESC; } /** * Downcall method handle for: @@ -16224,9 +14756,7 @@ private static class fseek { * extern int fseek(FILE *__stream, long __off, int __whence) * } */ - public static MethodHandle fseek$handle() { - return fseek.HANDLE; - } + public static MethodHandle fseek$handle() { return fseek.HANDLE; } /** * Address for: @@ -16234,32 +14764,29 @@ private static class fseek { * extern int fseek(FILE *__stream, long __off, int __whence) * } */ - public static MemorySegment fseek$address() { - return fseek.ADDR; - } + public static MemorySegment fseek$address() { return fseek.ADDR; } /** * {@snippet lang=c : * extern int fseek(FILE *__stream, long __off, int __whence) * } */ - public static int fseek(MemorySegment __stream, long __off, int __whence) { + public static int fseek(MemorySegment __stream, long __off, int __whence) + { var mh$ = fseek.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fseek", __stream, __off, __whence); } return (int)mh$.invokeExact(__stream, __off, __whence); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ftell { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ftell"); @@ -16272,9 +14799,7 @@ private static class ftell { * extern long ftell(FILE *__stream) * } */ - public static FunctionDescriptor ftell$descriptor() { - return ftell.DESC; - } + public static FunctionDescriptor ftell$descriptor() { return ftell.DESC; } /** * Downcall method handle for: @@ -16282,9 +14807,7 @@ private static class ftell { * extern long ftell(FILE *__stream) * } */ - public static MethodHandle ftell$handle() { - return ftell.HANDLE; - } + public static MethodHandle ftell$handle() { return ftell.HANDLE; } /** * Address for: @@ -16292,31 +14815,29 @@ private static class ftell { * extern long ftell(FILE *__stream) * } */ - public static MemorySegment ftell$address() { - return ftell.ADDR; - } + public static MemorySegment ftell$address() { return ftell.ADDR; } /** * {@snippet lang=c : * extern long ftell(FILE *__stream) * } */ - public static long ftell(MemorySegment __stream) { + public static long ftell(MemorySegment __stream) + { var mh$ = ftell.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ftell", __stream); } return (long)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class rewind { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("rewind"); @@ -16329,9 +14850,7 @@ private static class rewind { * extern void rewind(FILE *__stream) * } */ - public static FunctionDescriptor rewind$descriptor() { - return rewind.DESC; - } + public static FunctionDescriptor rewind$descriptor() { return rewind.DESC; } /** * Downcall method handle for: @@ -16339,9 +14858,7 @@ private static class rewind { * extern void rewind(FILE *__stream) * } */ - public static MethodHandle rewind$handle() { - return rewind.HANDLE; - } + public static MethodHandle rewind$handle() { return rewind.HANDLE; } /** * Address for: @@ -16349,34 +14866,30 @@ private static class rewind { * extern void rewind(FILE *__stream) * } */ - public static MemorySegment rewind$address() { - return rewind.ADDR; - } + public static MemorySegment rewind$address() { return rewind.ADDR; } /** * {@snippet lang=c : * extern void rewind(FILE *__stream) * } */ - public static void rewind(MemorySegment __stream) { + public static void rewind(MemorySegment __stream) + { var mh$ = rewind.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("rewind", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fseeko { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fseeko"); @@ -16389,9 +14902,7 @@ private static class fseeko { * extern int fseeko(FILE *__stream, __off_t __off, int __whence) * } */ - public static FunctionDescriptor fseeko$descriptor() { - return fseeko.DESC; - } + public static FunctionDescriptor fseeko$descriptor() { return fseeko.DESC; } /** * Downcall method handle for: @@ -16399,9 +14910,7 @@ private static class fseeko { * extern int fseeko(FILE *__stream, __off_t __off, int __whence) * } */ - public static MethodHandle fseeko$handle() { - return fseeko.HANDLE; - } + public static MethodHandle fseeko$handle() { return fseeko.HANDLE; } /** * Address for: @@ -16409,32 +14918,29 @@ private static class fseeko { * extern int fseeko(FILE *__stream, __off_t __off, int __whence) * } */ - public static MemorySegment fseeko$address() { - return fseeko.ADDR; - } + public static MemorySegment fseeko$address() { return fseeko.ADDR; } /** * {@snippet lang=c : * extern int fseeko(FILE *__stream, __off_t __off, int __whence) * } */ - public static int fseeko(MemorySegment __stream, long __off, int __whence) { + public static int fseeko(MemorySegment __stream, long __off, int __whence) + { var mh$ = fseeko.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fseeko", __stream, __off, __whence); } return (int)mh$.invokeExact(__stream, __off, __whence); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ftello { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ftello"); @@ -16447,9 +14953,7 @@ private static class ftello { * extern __off_t ftello(FILE *__stream) * } */ - public static FunctionDescriptor ftello$descriptor() { - return ftello.DESC; - } + public static FunctionDescriptor ftello$descriptor() { return ftello.DESC; } /** * Downcall method handle for: @@ -16457,9 +14961,7 @@ private static class ftello { * extern __off_t ftello(FILE *__stream) * } */ - public static MethodHandle ftello$handle() { - return ftello.HANDLE; - } + public static MethodHandle ftello$handle() { return ftello.HANDLE; } /** * Address for: @@ -16467,33 +14969,30 @@ private static class ftello { * extern __off_t ftello(FILE *__stream) * } */ - public static MemorySegment ftello$address() { - return ftello.ADDR; - } + public static MemorySegment ftello$address() { return ftello.ADDR; } /** * {@snippet lang=c : * extern __off_t ftello(FILE *__stream) * } */ - public static long ftello(MemorySegment __stream) { + public static long ftello(MemorySegment __stream) + { var mh$ = ftello.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ftello", __stream); } return (long)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fgetpos { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fgetpos"); @@ -16506,9 +15005,7 @@ private static class fgetpos { * extern int fgetpos(FILE *restrict __stream, fpos_t *restrict __pos) * } */ - public static FunctionDescriptor fgetpos$descriptor() { - return fgetpos.DESC; - } + public static FunctionDescriptor fgetpos$descriptor() { return fgetpos.DESC; } /** * Downcall method handle for: @@ -16516,9 +15013,7 @@ private static class fgetpos { * extern int fgetpos(FILE *restrict __stream, fpos_t *restrict __pos) * } */ - public static MethodHandle fgetpos$handle() { - return fgetpos.HANDLE; - } + public static MethodHandle fgetpos$handle() { return fgetpos.HANDLE; } /** * Address for: @@ -16526,33 +15021,30 @@ private static class fgetpos { * extern int fgetpos(FILE *restrict __stream, fpos_t *restrict __pos) * } */ - public static MemorySegment fgetpos$address() { - return fgetpos.ADDR; - } + public static MemorySegment fgetpos$address() { return fgetpos.ADDR; } /** * {@snippet lang=c : * extern int fgetpos(FILE *restrict __stream, fpos_t *restrict __pos) * } */ - public static int fgetpos(MemorySegment __stream, MemorySegment __pos) { + public static int fgetpos(MemorySegment __stream, MemorySegment __pos) + { var mh$ = fgetpos.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fgetpos", __stream, __pos); } return (int)mh$.invokeExact(__stream, __pos); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fsetpos { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fsetpos"); @@ -16565,9 +15057,7 @@ private static class fsetpos { * extern int fsetpos(FILE *__stream, const fpos_t *__pos) * } */ - public static FunctionDescriptor fsetpos$descriptor() { - return fsetpos.DESC; - } + public static FunctionDescriptor fsetpos$descriptor() { return fsetpos.DESC; } /** * Downcall method handle for: @@ -16575,9 +15065,7 @@ private static class fsetpos { * extern int fsetpos(FILE *__stream, const fpos_t *__pos) * } */ - public static MethodHandle fsetpos$handle() { - return fsetpos.HANDLE; - } + public static MethodHandle fsetpos$handle() { return fsetpos.HANDLE; } /** * Address for: @@ -16585,31 +15073,29 @@ private static class fsetpos { * extern int fsetpos(FILE *__stream, const fpos_t *__pos) * } */ - public static MemorySegment fsetpos$address() { - return fsetpos.ADDR; - } + public static MemorySegment fsetpos$address() { return fsetpos.ADDR; } /** * {@snippet lang=c : * extern int fsetpos(FILE *__stream, const fpos_t *__pos) * } */ - public static int fsetpos(MemorySegment __stream, MemorySegment __pos) { + public static int fsetpos(MemorySegment __stream, MemorySegment __pos) + { var mh$ = fsetpos.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fsetpos", __stream, __pos); } return (int)mh$.invokeExact(__stream, __pos); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class clearerr { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("clearerr"); @@ -16622,9 +15108,7 @@ private static class clearerr { * extern void clearerr(FILE *__stream) * } */ - public static FunctionDescriptor clearerr$descriptor() { - return clearerr.DESC; - } + public static FunctionDescriptor clearerr$descriptor() { return clearerr.DESC; } /** * Downcall method handle for: @@ -16632,9 +15116,7 @@ private static class clearerr { * extern void clearerr(FILE *__stream) * } */ - public static MethodHandle clearerr$handle() { - return clearerr.HANDLE; - } + public static MethodHandle clearerr$handle() { return clearerr.HANDLE; } /** * Address for: @@ -16642,32 +15124,29 @@ private static class clearerr { * extern void clearerr(FILE *__stream) * } */ - public static MemorySegment clearerr$address() { - return clearerr.ADDR; - } + public static MemorySegment clearerr$address() { return clearerr.ADDR; } /** * {@snippet lang=c : * extern void clearerr(FILE *__stream) * } */ - public static void clearerr(MemorySegment __stream) { + public static void clearerr(MemorySegment __stream) + { var mh$ = clearerr.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("clearerr", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class feof { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("feof"); @@ -16680,9 +15159,7 @@ private static class feof { * extern int feof(FILE *__stream) * } */ - public static FunctionDescriptor feof$descriptor() { - return feof.DESC; - } + public static FunctionDescriptor feof$descriptor() { return feof.DESC; } /** * Downcall method handle for: @@ -16690,9 +15167,7 @@ private static class feof { * extern int feof(FILE *__stream) * } */ - public static MethodHandle feof$handle() { - return feof.HANDLE; - } + public static MethodHandle feof$handle() { return feof.HANDLE; } /** * Address for: @@ -16700,32 +15175,29 @@ private static class feof { * extern int feof(FILE *__stream) * } */ - public static MemorySegment feof$address() { - return feof.ADDR; - } + public static MemorySegment feof$address() { return feof.ADDR; } /** * {@snippet lang=c : * extern int feof(FILE *__stream) * } */ - public static int feof(MemorySegment __stream) { + public static int feof(MemorySegment __stream) + { var mh$ = feof.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("feof", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ferror { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ferror"); @@ -16738,9 +15210,7 @@ private static class ferror { * extern int ferror(FILE *__stream) * } */ - public static FunctionDescriptor ferror$descriptor() { - return ferror.DESC; - } + public static FunctionDescriptor ferror$descriptor() { return ferror.DESC; } /** * Downcall method handle for: @@ -16748,9 +15218,7 @@ private static class ferror { * extern int ferror(FILE *__stream) * } */ - public static MethodHandle ferror$handle() { - return ferror.HANDLE; - } + public static MethodHandle ferror$handle() { return ferror.HANDLE; } /** * Address for: @@ -16758,31 +15226,29 @@ private static class ferror { * extern int ferror(FILE *__stream) * } */ - public static MemorySegment ferror$address() { - return ferror.ADDR; - } + public static MemorySegment ferror$address() { return ferror.ADDR; } /** * {@snippet lang=c : * extern int ferror(FILE *__stream) * } */ - public static int ferror(MemorySegment __stream) { + public static int ferror(MemorySegment __stream) + { var mh$ = ferror.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ferror", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class clearerr_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("clearerr_unlocked"); @@ -16795,9 +15261,7 @@ private static class clearerr_unlocked { * extern void clearerr_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor clearerr_unlocked$descriptor() { - return clearerr_unlocked.DESC; - } + public static FunctionDescriptor clearerr_unlocked$descriptor() { return clearerr_unlocked.DESC; } /** * Downcall method handle for: @@ -16805,9 +15269,7 @@ private static class clearerr_unlocked { * extern void clearerr_unlocked(FILE *__stream) * } */ - public static MethodHandle clearerr_unlocked$handle() { - return clearerr_unlocked.HANDLE; - } + public static MethodHandle clearerr_unlocked$handle() { return clearerr_unlocked.HANDLE; } /** * Address for: @@ -16815,32 +15277,29 @@ private static class clearerr_unlocked { * extern void clearerr_unlocked(FILE *__stream) * } */ - public static MemorySegment clearerr_unlocked$address() { - return clearerr_unlocked.ADDR; - } + public static MemorySegment clearerr_unlocked$address() { return clearerr_unlocked.ADDR; } /** * {@snippet lang=c : * extern void clearerr_unlocked(FILE *__stream) * } */ - public static void clearerr_unlocked(MemorySegment __stream) { + public static void clearerr_unlocked(MemorySegment __stream) + { var mh$ = clearerr_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("clearerr_unlocked", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class feof_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("feof_unlocked"); @@ -16853,9 +15312,7 @@ private static class feof_unlocked { * extern int feof_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor feof_unlocked$descriptor() { - return feof_unlocked.DESC; - } + public static FunctionDescriptor feof_unlocked$descriptor() { return feof_unlocked.DESC; } /** * Downcall method handle for: @@ -16863,9 +15320,7 @@ private static class feof_unlocked { * extern int feof_unlocked(FILE *__stream) * } */ - public static MethodHandle feof_unlocked$handle() { - return feof_unlocked.HANDLE; - } + public static MethodHandle feof_unlocked$handle() { return feof_unlocked.HANDLE; } /** * Address for: @@ -16873,32 +15328,29 @@ private static class feof_unlocked { * extern int feof_unlocked(FILE *__stream) * } */ - public static MemorySegment feof_unlocked$address() { - return feof_unlocked.ADDR; - } + public static MemorySegment feof_unlocked$address() { return feof_unlocked.ADDR; } /** * {@snippet lang=c : * extern int feof_unlocked(FILE *__stream) * } */ - public static int feof_unlocked(MemorySegment __stream) { + public static int feof_unlocked(MemorySegment __stream) + { var mh$ = feof_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("feof_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ferror_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ferror_unlocked"); @@ -16911,9 +15363,7 @@ private static class ferror_unlocked { * extern int ferror_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor ferror_unlocked$descriptor() { - return ferror_unlocked.DESC; - } + public static FunctionDescriptor ferror_unlocked$descriptor() { return ferror_unlocked.DESC; } /** * Downcall method handle for: @@ -16921,9 +15371,7 @@ private static class ferror_unlocked { * extern int ferror_unlocked(FILE *__stream) * } */ - public static MethodHandle ferror_unlocked$handle() { - return ferror_unlocked.HANDLE; - } + public static MethodHandle ferror_unlocked$handle() { return ferror_unlocked.HANDLE; } /** * Address for: @@ -16931,31 +15379,29 @@ private static class ferror_unlocked { * extern int ferror_unlocked(FILE *__stream) * } */ - public static MemorySegment ferror_unlocked$address() { - return ferror_unlocked.ADDR; - } + public static MemorySegment ferror_unlocked$address() { return ferror_unlocked.ADDR; } /** * {@snippet lang=c : * extern int ferror_unlocked(FILE *__stream) * } */ - public static int ferror_unlocked(MemorySegment __stream) { + public static int ferror_unlocked(MemorySegment __stream) + { var mh$ = ferror_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ferror_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class perror { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("perror"); @@ -16968,9 +15414,7 @@ private static class perror { * extern void perror(const char *__s) * } */ - public static FunctionDescriptor perror$descriptor() { - return perror.DESC; - } + public static FunctionDescriptor perror$descriptor() { return perror.DESC; } /** * Downcall method handle for: @@ -16978,9 +15422,7 @@ private static class perror { * extern void perror(const char *__s) * } */ - public static MethodHandle perror$handle() { - return perror.HANDLE; - } + public static MethodHandle perror$handle() { return perror.HANDLE; } /** * Address for: @@ -16988,32 +15430,29 @@ private static class perror { * extern void perror(const char *__s) * } */ - public static MemorySegment perror$address() { - return perror.ADDR; - } + public static MemorySegment perror$address() { return perror.ADDR; } /** * {@snippet lang=c : * extern void perror(const char *__s) * } */ - public static void perror(MemorySegment __s) { + public static void perror(MemorySegment __s) + { var mh$ = perror.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("perror", __s); } mh$.invokeExact(__s); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fileno { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fileno"); @@ -17026,9 +15465,7 @@ private static class fileno { * extern int fileno(FILE *__stream) * } */ - public static FunctionDescriptor fileno$descriptor() { - return fileno.DESC; - } + public static FunctionDescriptor fileno$descriptor() { return fileno.DESC; } /** * Downcall method handle for: @@ -17036,9 +15473,7 @@ private static class fileno { * extern int fileno(FILE *__stream) * } */ - public static MethodHandle fileno$handle() { - return fileno.HANDLE; - } + public static MethodHandle fileno$handle() { return fileno.HANDLE; } /** * Address for: @@ -17046,32 +15481,29 @@ private static class fileno { * extern int fileno(FILE *__stream) * } */ - public static MemorySegment fileno$address() { - return fileno.ADDR; - } + public static MemorySegment fileno$address() { return fileno.ADDR; } /** * {@snippet lang=c : * extern int fileno(FILE *__stream) * } */ - public static int fileno(MemorySegment __stream) { + public static int fileno(MemorySegment __stream) + { var mh$ = fileno.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fileno", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class fileno_unlocked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("fileno_unlocked"); @@ -17084,9 +15516,7 @@ private static class fileno_unlocked { * extern int fileno_unlocked(FILE *__stream) * } */ - public static FunctionDescriptor fileno_unlocked$descriptor() { - return fileno_unlocked.DESC; - } + public static FunctionDescriptor fileno_unlocked$descriptor() { return fileno_unlocked.DESC; } /** * Downcall method handle for: @@ -17094,9 +15524,7 @@ private static class fileno_unlocked { * extern int fileno_unlocked(FILE *__stream) * } */ - public static MethodHandle fileno_unlocked$handle() { - return fileno_unlocked.HANDLE; - } + public static MethodHandle fileno_unlocked$handle() { return fileno_unlocked.HANDLE; } /** * Address for: @@ -17104,32 +15532,29 @@ private static class fileno_unlocked { * extern int fileno_unlocked(FILE *__stream) * } */ - public static MemorySegment fileno_unlocked$address() { - return fileno_unlocked.ADDR; - } + public static MemorySegment fileno_unlocked$address() { return fileno_unlocked.ADDR; } /** * {@snippet lang=c : * extern int fileno_unlocked(FILE *__stream) * } */ - public static int fileno_unlocked(MemorySegment __stream) { + public static int fileno_unlocked(MemorySegment __stream) + { var mh$ = fileno_unlocked.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("fileno_unlocked", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class pclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("pclose"); @@ -17142,9 +15567,7 @@ private static class pclose { * extern int pclose(FILE *__stream) * } */ - public static FunctionDescriptor pclose$descriptor() { - return pclose.DESC; - } + public static FunctionDescriptor pclose$descriptor() { return pclose.DESC; } /** * Downcall method handle for: @@ -17152,9 +15575,7 @@ private static class pclose { * extern int pclose(FILE *__stream) * } */ - public static MethodHandle pclose$handle() { - return pclose.HANDLE; - } + public static MethodHandle pclose$handle() { return pclose.HANDLE; } /** * Address for: @@ -17162,33 +15583,30 @@ private static class pclose { * extern int pclose(FILE *__stream) * } */ - public static MemorySegment pclose$address() { - return pclose.ADDR; - } + public static MemorySegment pclose$address() { return pclose.ADDR; } /** * {@snippet lang=c : * extern int pclose(FILE *__stream) * } */ - public static int pclose(MemorySegment __stream) { + public static int pclose(MemorySegment __stream) + { var mh$ = pclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("pclose", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class popen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("popen"); @@ -17201,9 +15619,7 @@ private static class popen { * extern FILE *popen(const char *__command, const char *__modes) * } */ - public static FunctionDescriptor popen$descriptor() { - return popen.DESC; - } + public static FunctionDescriptor popen$descriptor() { return popen.DESC; } /** * Downcall method handle for: @@ -17211,9 +15627,7 @@ private static class popen { * extern FILE *popen(const char *__command, const char *__modes) * } */ - public static MethodHandle popen$handle() { - return popen.HANDLE; - } + public static MethodHandle popen$handle() { return popen.HANDLE; } /** * Address for: @@ -17221,32 +15635,30 @@ private static class popen { * extern FILE *popen(const char *__command, const char *__modes) * } */ - public static MemorySegment popen$address() { - return popen.ADDR; - } + public static MemorySegment popen$address() { return popen.ADDR; } /** * {@snippet lang=c : * extern FILE *popen(const char *__command, const char *__modes) * } */ - public static MemorySegment popen(MemorySegment __command, MemorySegment __modes) { + public static MemorySegment popen(MemorySegment __command, MemorySegment __modes) + { var mh$ = popen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("popen", __command, __modes); } return (MemorySegment)mh$.invokeExact(__command, __modes); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ctermid { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ctermid"); @@ -17259,9 +15671,7 @@ private static class ctermid { * extern char *ctermid(char *__s) * } */ - public static FunctionDescriptor ctermid$descriptor() { - return ctermid.DESC; - } + public static FunctionDescriptor ctermid$descriptor() { return ctermid.DESC; } /** * Downcall method handle for: @@ -17269,9 +15679,7 @@ private static class ctermid { * extern char *ctermid(char *__s) * } */ - public static MethodHandle ctermid$handle() { - return ctermid.HANDLE; - } + public static MethodHandle ctermid$handle() { return ctermid.HANDLE; } /** * Address for: @@ -17279,31 +15687,29 @@ private static class ctermid { * extern char *ctermid(char *__s) * } */ - public static MemorySegment ctermid$address() { - return ctermid.ADDR; - } + public static MemorySegment ctermid$address() { return ctermid.ADDR; } /** * {@snippet lang=c : * extern char *ctermid(char *__s) * } */ - public static MemorySegment ctermid(MemorySegment __s) { + public static MemorySegment ctermid(MemorySegment __s) + { var mh$ = ctermid.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ctermid", __s); } return (MemorySegment)mh$.invokeExact(__s); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class flockfile { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("flockfile"); @@ -17316,9 +15722,7 @@ private static class flockfile { * extern void flockfile(FILE *__stream) * } */ - public static FunctionDescriptor flockfile$descriptor() { - return flockfile.DESC; - } + public static FunctionDescriptor flockfile$descriptor() { return flockfile.DESC; } /** * Downcall method handle for: @@ -17326,9 +15730,7 @@ private static class flockfile { * extern void flockfile(FILE *__stream) * } */ - public static MethodHandle flockfile$handle() { - return flockfile.HANDLE; - } + public static MethodHandle flockfile$handle() { return flockfile.HANDLE; } /** * Address for: @@ -17336,32 +15738,29 @@ private static class flockfile { * extern void flockfile(FILE *__stream) * } */ - public static MemorySegment flockfile$address() { - return flockfile.ADDR; - } + public static MemorySegment flockfile$address() { return flockfile.ADDR; } /** * {@snippet lang=c : * extern void flockfile(FILE *__stream) * } */ - public static void flockfile(MemorySegment __stream) { + public static void flockfile(MemorySegment __stream) + { var mh$ = flockfile.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("flockfile", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class ftrylockfile { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("ftrylockfile"); @@ -17374,9 +15773,7 @@ private static class ftrylockfile { * extern int ftrylockfile(FILE *__stream) * } */ - public static FunctionDescriptor ftrylockfile$descriptor() { - return ftrylockfile.DESC; - } + public static FunctionDescriptor ftrylockfile$descriptor() { return ftrylockfile.DESC; } /** * Downcall method handle for: @@ -17384,9 +15781,7 @@ private static class ftrylockfile { * extern int ftrylockfile(FILE *__stream) * } */ - public static MethodHandle ftrylockfile$handle() { - return ftrylockfile.HANDLE; - } + public static MethodHandle ftrylockfile$handle() { return ftrylockfile.HANDLE; } /** * Address for: @@ -17394,31 +15789,29 @@ private static class ftrylockfile { * extern int ftrylockfile(FILE *__stream) * } */ - public static MemorySegment ftrylockfile$address() { - return ftrylockfile.ADDR; - } + public static MemorySegment ftrylockfile$address() { return ftrylockfile.ADDR; } /** * {@snippet lang=c : * extern int ftrylockfile(FILE *__stream) * } */ - public static int ftrylockfile(MemorySegment __stream) { + public static int ftrylockfile(MemorySegment __stream) + { var mh$ = ftrylockfile.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("ftrylockfile", __stream); } return (int)mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class funlockfile { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("funlockfile"); @@ -17431,9 +15824,7 @@ private static class funlockfile { * extern void funlockfile(FILE *__stream) * } */ - public static FunctionDescriptor funlockfile$descriptor() { - return funlockfile.DESC; - } + public static FunctionDescriptor funlockfile$descriptor() { return funlockfile.DESC; } /** * Downcall method handle for: @@ -17441,9 +15832,7 @@ private static class funlockfile { * extern void funlockfile(FILE *__stream) * } */ - public static MethodHandle funlockfile$handle() { - return funlockfile.HANDLE; - } + public static MethodHandle funlockfile$handle() { return funlockfile.HANDLE; } /** * Address for: @@ -17451,32 +15840,29 @@ private static class funlockfile { * extern void funlockfile(FILE *__stream) * } */ - public static MemorySegment funlockfile$address() { - return funlockfile.ADDR; - } + public static MemorySegment funlockfile$address() { return funlockfile.ADDR; } /** * {@snippet lang=c : * extern void funlockfile(FILE *__stream) * } */ - public static void funlockfile(MemorySegment __stream) { + public static void funlockfile(MemorySegment __stream) + { var mh$ = funlockfile.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("funlockfile", __stream); } mh$.invokeExact(__stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class __uflow { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("__uflow"); @@ -17489,9 +15875,7 @@ private static class __uflow { * extern int __uflow(FILE *) * } */ - public static FunctionDescriptor __uflow$descriptor() { - return __uflow.DESC; - } + public static FunctionDescriptor __uflow$descriptor() { return __uflow.DESC; } /** * Downcall method handle for: @@ -17499,9 +15883,7 @@ private static class __uflow { * extern int __uflow(FILE *) * } */ - public static MethodHandle __uflow$handle() { - return __uflow.HANDLE; - } + public static MethodHandle __uflow$handle() { return __uflow.HANDLE; } /** * Address for: @@ -17509,33 +15891,30 @@ private static class __uflow { * extern int __uflow(FILE *) * } */ - public static MemorySegment __uflow$address() { - return __uflow.ADDR; - } + public static MemorySegment __uflow$address() { return __uflow.ADDR; } /** * {@snippet lang=c : * extern int __uflow(FILE *) * } */ - public static int __uflow(MemorySegment x0) { + public static int __uflow(MemorySegment x0) + { var mh$ = __uflow.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("__uflow", x0); } return (int)mh$.invokeExact(x0); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class __overflow { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("__overflow"); @@ -17548,9 +15927,7 @@ private static class __overflow { * extern int __overflow(FILE *, int) * } */ - public static FunctionDescriptor __overflow$descriptor() { - return __overflow.DESC; - } + public static FunctionDescriptor __overflow$descriptor() { return __overflow.DESC; } /** * Downcall method handle for: @@ -17558,9 +15935,7 @@ private static class __overflow { * extern int __overflow(FILE *, int) * } */ - public static MethodHandle __overflow$handle() { - return __overflow.HANDLE; - } + public static MethodHandle __overflow$handle() { return __overflow.HANDLE; } /** * Address for: @@ -17568,24 +15943,24 @@ private static class __overflow { * extern int __overflow(FILE *, int) * } */ - public static MemorySegment __overflow$address() { - return __overflow.ADDR; - } + public static MemorySegment __overflow$address() { return __overflow.ADDR; } /** * {@snippet lang=c : * extern int __overflow(FILE *, int) * } */ - public static int __overflow(MemorySegment x0, int x1) { + public static int __overflow(MemorySegment x0, int x1) + { var mh$ = __overflow.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("__overflow", x0, x1); } return (int)mh$.invokeExact(x0, x1); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5E_MAJOR = (int)0L; @@ -17594,22 +15969,19 @@ public static int __overflow(MemorySegment x0, int x1) { * enum H5E_type_t.H5E_MAJOR = 0 * } */ - public static int H5E_MAJOR() { - return H5E_MAJOR; - } + public static int H5E_MAJOR() { return H5E_MAJOR; } private static final int H5E_MINOR = (int)1L; /** * {@snippet lang=c : * enum H5E_type_t.H5E_MINOR = 1 * } */ - public static int H5E_MINOR() { - return H5E_MINOR; - } + public static int H5E_MINOR() { return H5E_MINOR; } private static class H5E_ERR_CLS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ERR_CLS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ERR_CLS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17618,9 +15990,7 @@ private static class H5E_ERR_CLS_g$constants { * extern hid_t H5E_ERR_CLS_g * } */ - public static OfLong H5E_ERR_CLS_g$layout() { - return H5E_ERR_CLS_g$constants.LAYOUT; - } + public static OfLong H5E_ERR_CLS_g$layout() { return H5E_ERR_CLS_g$constants.LAYOUT; } /** * Segment for variable: @@ -17628,9 +15998,7 @@ private static class H5E_ERR_CLS_g$constants { * extern hid_t H5E_ERR_CLS_g * } */ - public static MemorySegment H5E_ERR_CLS_g$segment() { - return H5E_ERR_CLS_g$constants.SEGMENT; - } + public static MemorySegment H5E_ERR_CLS_g$segment() { return H5E_ERR_CLS_g$constants.SEGMENT; } /** * Getter for variable: @@ -17638,7 +16006,8 @@ private static class H5E_ERR_CLS_g$constants { * extern hid_t H5E_ERR_CLS_g * } */ - public static long H5E_ERR_CLS_g() { + public static long H5E_ERR_CLS_g() + { return H5E_ERR_CLS_g$constants.SEGMENT.get(H5E_ERR_CLS_g$constants.LAYOUT, 0L); } @@ -17648,13 +16017,15 @@ public static long H5E_ERR_CLS_g() { * extern hid_t H5E_ERR_CLS_g * } */ - public static void H5E_ERR_CLS_g(long varValue) { + public static void H5E_ERR_CLS_g(long varValue) + { H5E_ERR_CLS_g$constants.SEGMENT.set(H5E_ERR_CLS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ARGS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ARGS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ARGS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17663,9 +16034,7 @@ private static class H5E_ARGS_g$constants { * extern hid_t H5E_ARGS_g * } */ - public static OfLong H5E_ARGS_g$layout() { - return H5E_ARGS_g$constants.LAYOUT; - } + public static OfLong H5E_ARGS_g$layout() { return H5E_ARGS_g$constants.LAYOUT; } /** * Segment for variable: @@ -17673,9 +16042,7 @@ private static class H5E_ARGS_g$constants { * extern hid_t H5E_ARGS_g * } */ - public static MemorySegment H5E_ARGS_g$segment() { - return H5E_ARGS_g$constants.SEGMENT; - } + public static MemorySegment H5E_ARGS_g$segment() { return H5E_ARGS_g$constants.SEGMENT; } /** * Getter for variable: @@ -17683,7 +16050,8 @@ private static class H5E_ARGS_g$constants { * extern hid_t H5E_ARGS_g * } */ - public static long H5E_ARGS_g() { + public static long H5E_ARGS_g() + { return H5E_ARGS_g$constants.SEGMENT.get(H5E_ARGS_g$constants.LAYOUT, 0L); } @@ -17693,13 +16061,15 @@ public static long H5E_ARGS_g() { * extern hid_t H5E_ARGS_g * } */ - public static void H5E_ARGS_g(long varValue) { + public static void H5E_ARGS_g(long varValue) + { H5E_ARGS_g$constants.SEGMENT.set(H5E_ARGS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ATTR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ATTR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ATTR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17708,9 +16078,7 @@ private static class H5E_ATTR_g$constants { * extern hid_t H5E_ATTR_g * } */ - public static OfLong H5E_ATTR_g$layout() { - return H5E_ATTR_g$constants.LAYOUT; - } + public static OfLong H5E_ATTR_g$layout() { return H5E_ATTR_g$constants.LAYOUT; } /** * Segment for variable: @@ -17718,9 +16086,7 @@ private static class H5E_ATTR_g$constants { * extern hid_t H5E_ATTR_g * } */ - public static MemorySegment H5E_ATTR_g$segment() { - return H5E_ATTR_g$constants.SEGMENT; - } + public static MemorySegment H5E_ATTR_g$segment() { return H5E_ATTR_g$constants.SEGMENT; } /** * Getter for variable: @@ -17728,7 +16094,8 @@ private static class H5E_ATTR_g$constants { * extern hid_t H5E_ATTR_g * } */ - public static long H5E_ATTR_g() { + public static long H5E_ATTR_g() + { return H5E_ATTR_g$constants.SEGMENT.get(H5E_ATTR_g$constants.LAYOUT, 0L); } @@ -17738,13 +16105,15 @@ public static long H5E_ATTR_g() { * extern hid_t H5E_ATTR_g * } */ - public static void H5E_ATTR_g(long varValue) { + public static void H5E_ATTR_g(long varValue) + { H5E_ATTR_g$constants.SEGMENT.set(H5E_ATTR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BTREE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BTREE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BTREE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17753,9 +16122,7 @@ private static class H5E_BTREE_g$constants { * extern hid_t H5E_BTREE_g * } */ - public static OfLong H5E_BTREE_g$layout() { - return H5E_BTREE_g$constants.LAYOUT; - } + public static OfLong H5E_BTREE_g$layout() { return H5E_BTREE_g$constants.LAYOUT; } /** * Segment for variable: @@ -17763,9 +16130,7 @@ private static class H5E_BTREE_g$constants { * extern hid_t H5E_BTREE_g * } */ - public static MemorySegment H5E_BTREE_g$segment() { - return H5E_BTREE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BTREE_g$segment() { return H5E_BTREE_g$constants.SEGMENT; } /** * Getter for variable: @@ -17773,7 +16138,8 @@ private static class H5E_BTREE_g$constants { * extern hid_t H5E_BTREE_g * } */ - public static long H5E_BTREE_g() { + public static long H5E_BTREE_g() + { return H5E_BTREE_g$constants.SEGMENT.get(H5E_BTREE_g$constants.LAYOUT, 0L); } @@ -17783,13 +16149,15 @@ public static long H5E_BTREE_g() { * extern hid_t H5E_BTREE_g * } */ - public static void H5E_BTREE_g(long varValue) { + public static void H5E_BTREE_g(long varValue) + { H5E_BTREE_g$constants.SEGMENT.set(H5E_BTREE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CACHE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CACHE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CACHE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17798,9 +16166,7 @@ private static class H5E_CACHE_g$constants { * extern hid_t H5E_CACHE_g * } */ - public static OfLong H5E_CACHE_g$layout() { - return H5E_CACHE_g$constants.LAYOUT; - } + public static OfLong H5E_CACHE_g$layout() { return H5E_CACHE_g$constants.LAYOUT; } /** * Segment for variable: @@ -17808,9 +16174,7 @@ private static class H5E_CACHE_g$constants { * extern hid_t H5E_CACHE_g * } */ - public static MemorySegment H5E_CACHE_g$segment() { - return H5E_CACHE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CACHE_g$segment() { return H5E_CACHE_g$constants.SEGMENT; } /** * Getter for variable: @@ -17818,7 +16182,8 @@ private static class H5E_CACHE_g$constants { * extern hid_t H5E_CACHE_g * } */ - public static long H5E_CACHE_g() { + public static long H5E_CACHE_g() + { return H5E_CACHE_g$constants.SEGMENT.get(H5E_CACHE_g$constants.LAYOUT, 0L); } @@ -17828,13 +16193,15 @@ public static long H5E_CACHE_g() { * extern hid_t H5E_CACHE_g * } */ - public static void H5E_CACHE_g(long varValue) { + public static void H5E_CACHE_g(long varValue) + { H5E_CACHE_g$constants.SEGMENT.set(H5E_CACHE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CONTEXT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CONTEXT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CONTEXT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17843,9 +16210,7 @@ private static class H5E_CONTEXT_g$constants { * extern hid_t H5E_CONTEXT_g * } */ - public static OfLong H5E_CONTEXT_g$layout() { - return H5E_CONTEXT_g$constants.LAYOUT; - } + public static OfLong H5E_CONTEXT_g$layout() { return H5E_CONTEXT_g$constants.LAYOUT; } /** * Segment for variable: @@ -17853,9 +16218,7 @@ private static class H5E_CONTEXT_g$constants { * extern hid_t H5E_CONTEXT_g * } */ - public static MemorySegment H5E_CONTEXT_g$segment() { - return H5E_CONTEXT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CONTEXT_g$segment() { return H5E_CONTEXT_g$constants.SEGMENT; } /** * Getter for variable: @@ -17863,7 +16226,8 @@ private static class H5E_CONTEXT_g$constants { * extern hid_t H5E_CONTEXT_g * } */ - public static long H5E_CONTEXT_g() { + public static long H5E_CONTEXT_g() + { return H5E_CONTEXT_g$constants.SEGMENT.get(H5E_CONTEXT_g$constants.LAYOUT, 0L); } @@ -17873,13 +16237,15 @@ public static long H5E_CONTEXT_g() { * extern hid_t H5E_CONTEXT_g * } */ - public static void H5E_CONTEXT_g(long varValue) { + public static void H5E_CONTEXT_g(long varValue) + { H5E_CONTEXT_g$constants.SEGMENT.set(H5E_CONTEXT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_DATASET_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_DATASET_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_DATASET_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17888,9 +16254,7 @@ private static class H5E_DATASET_g$constants { * extern hid_t H5E_DATASET_g * } */ - public static OfLong H5E_DATASET_g$layout() { - return H5E_DATASET_g$constants.LAYOUT; - } + public static OfLong H5E_DATASET_g$layout() { return H5E_DATASET_g$constants.LAYOUT; } /** * Segment for variable: @@ -17898,9 +16262,7 @@ private static class H5E_DATASET_g$constants { * extern hid_t H5E_DATASET_g * } */ - public static MemorySegment H5E_DATASET_g$segment() { - return H5E_DATASET_g$constants.SEGMENT; - } + public static MemorySegment H5E_DATASET_g$segment() { return H5E_DATASET_g$constants.SEGMENT; } /** * Getter for variable: @@ -17908,7 +16270,8 @@ private static class H5E_DATASET_g$constants { * extern hid_t H5E_DATASET_g * } */ - public static long H5E_DATASET_g() { + public static long H5E_DATASET_g() + { return H5E_DATASET_g$constants.SEGMENT.get(H5E_DATASET_g$constants.LAYOUT, 0L); } @@ -17918,13 +16281,15 @@ public static long H5E_DATASET_g() { * extern hid_t H5E_DATASET_g * } */ - public static void H5E_DATASET_g(long varValue) { + public static void H5E_DATASET_g(long varValue) + { H5E_DATASET_g$constants.SEGMENT.set(H5E_DATASET_g$constants.LAYOUT, 0L, varValue); } private static class H5E_DATASPACE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_DATASPACE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_DATASPACE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17933,9 +16298,7 @@ private static class H5E_DATASPACE_g$constants { * extern hid_t H5E_DATASPACE_g * } */ - public static OfLong H5E_DATASPACE_g$layout() { - return H5E_DATASPACE_g$constants.LAYOUT; - } + public static OfLong H5E_DATASPACE_g$layout() { return H5E_DATASPACE_g$constants.LAYOUT; } /** * Segment for variable: @@ -17943,9 +16306,7 @@ private static class H5E_DATASPACE_g$constants { * extern hid_t H5E_DATASPACE_g * } */ - public static MemorySegment H5E_DATASPACE_g$segment() { - return H5E_DATASPACE_g$constants.SEGMENT; - } + public static MemorySegment H5E_DATASPACE_g$segment() { return H5E_DATASPACE_g$constants.SEGMENT; } /** * Getter for variable: @@ -17953,7 +16314,8 @@ private static class H5E_DATASPACE_g$constants { * extern hid_t H5E_DATASPACE_g * } */ - public static long H5E_DATASPACE_g() { + public static long H5E_DATASPACE_g() + { return H5E_DATASPACE_g$constants.SEGMENT.get(H5E_DATASPACE_g$constants.LAYOUT, 0L); } @@ -17963,13 +16325,15 @@ public static long H5E_DATASPACE_g() { * extern hid_t H5E_DATASPACE_g * } */ - public static void H5E_DATASPACE_g(long varValue) { + public static void H5E_DATASPACE_g(long varValue) + { H5E_DATASPACE_g$constants.SEGMENT.set(H5E_DATASPACE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_DATATYPE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_DATATYPE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_DATATYPE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -17978,9 +16342,7 @@ private static class H5E_DATATYPE_g$constants { * extern hid_t H5E_DATATYPE_g * } */ - public static OfLong H5E_DATATYPE_g$layout() { - return H5E_DATATYPE_g$constants.LAYOUT; - } + public static OfLong H5E_DATATYPE_g$layout() { return H5E_DATATYPE_g$constants.LAYOUT; } /** * Segment for variable: @@ -17988,9 +16350,7 @@ private static class H5E_DATATYPE_g$constants { * extern hid_t H5E_DATATYPE_g * } */ - public static MemorySegment H5E_DATATYPE_g$segment() { - return H5E_DATATYPE_g$constants.SEGMENT; - } + public static MemorySegment H5E_DATATYPE_g$segment() { return H5E_DATATYPE_g$constants.SEGMENT; } /** * Getter for variable: @@ -17998,7 +16358,8 @@ private static class H5E_DATATYPE_g$constants { * extern hid_t H5E_DATATYPE_g * } */ - public static long H5E_DATATYPE_g() { + public static long H5E_DATATYPE_g() + { return H5E_DATATYPE_g$constants.SEGMENT.get(H5E_DATATYPE_g$constants.LAYOUT, 0L); } @@ -18008,13 +16369,15 @@ public static long H5E_DATATYPE_g() { * extern hid_t H5E_DATATYPE_g * } */ - public static void H5E_DATATYPE_g(long varValue) { + public static void H5E_DATATYPE_g(long varValue) + { H5E_DATATYPE_g$constants.SEGMENT.set(H5E_DATATYPE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_EARRAY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_EARRAY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_EARRAY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18023,9 +16386,7 @@ private static class H5E_EARRAY_g$constants { * extern hid_t H5E_EARRAY_g * } */ - public static OfLong H5E_EARRAY_g$layout() { - return H5E_EARRAY_g$constants.LAYOUT; - } + public static OfLong H5E_EARRAY_g$layout() { return H5E_EARRAY_g$constants.LAYOUT; } /** * Segment for variable: @@ -18033,9 +16394,7 @@ private static class H5E_EARRAY_g$constants { * extern hid_t H5E_EARRAY_g * } */ - public static MemorySegment H5E_EARRAY_g$segment() { - return H5E_EARRAY_g$constants.SEGMENT; - } + public static MemorySegment H5E_EARRAY_g$segment() { return H5E_EARRAY_g$constants.SEGMENT; } /** * Getter for variable: @@ -18043,7 +16402,8 @@ private static class H5E_EARRAY_g$constants { * extern hid_t H5E_EARRAY_g * } */ - public static long H5E_EARRAY_g() { + public static long H5E_EARRAY_g() + { return H5E_EARRAY_g$constants.SEGMENT.get(H5E_EARRAY_g$constants.LAYOUT, 0L); } @@ -18053,13 +16413,15 @@ public static long H5E_EARRAY_g() { * extern hid_t H5E_EARRAY_g * } */ - public static void H5E_EARRAY_g(long varValue) { + public static void H5E_EARRAY_g(long varValue) + { H5E_EARRAY_g$constants.SEGMENT.set(H5E_EARRAY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_EFL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_EFL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_EFL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18068,9 +16430,7 @@ private static class H5E_EFL_g$constants { * extern hid_t H5E_EFL_g * } */ - public static OfLong H5E_EFL_g$layout() { - return H5E_EFL_g$constants.LAYOUT; - } + public static OfLong H5E_EFL_g$layout() { return H5E_EFL_g$constants.LAYOUT; } /** * Segment for variable: @@ -18078,9 +16438,7 @@ private static class H5E_EFL_g$constants { * extern hid_t H5E_EFL_g * } */ - public static MemorySegment H5E_EFL_g$segment() { - return H5E_EFL_g$constants.SEGMENT; - } + public static MemorySegment H5E_EFL_g$segment() { return H5E_EFL_g$constants.SEGMENT; } /** * Getter for variable: @@ -18088,9 +16446,7 @@ private static class H5E_EFL_g$constants { * extern hid_t H5E_EFL_g * } */ - public static long H5E_EFL_g() { - return H5E_EFL_g$constants.SEGMENT.get(H5E_EFL_g$constants.LAYOUT, 0L); - } + public static long H5E_EFL_g() { return H5E_EFL_g$constants.SEGMENT.get(H5E_EFL_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -18098,13 +16454,15 @@ public static long H5E_EFL_g() { * extern hid_t H5E_EFL_g * } */ - public static void H5E_EFL_g(long varValue) { + public static void H5E_EFL_g(long varValue) + { H5E_EFL_g$constants.SEGMENT.set(H5E_EFL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18113,9 +16471,7 @@ private static class H5E_ERROR_g$constants { * extern hid_t H5E_ERROR_g * } */ - public static OfLong H5E_ERROR_g$layout() { - return H5E_ERROR_g$constants.LAYOUT; - } + public static OfLong H5E_ERROR_g$layout() { return H5E_ERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -18123,9 +16479,7 @@ private static class H5E_ERROR_g$constants { * extern hid_t H5E_ERROR_g * } */ - public static MemorySegment H5E_ERROR_g$segment() { - return H5E_ERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_ERROR_g$segment() { return H5E_ERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -18133,7 +16487,8 @@ private static class H5E_ERROR_g$constants { * extern hid_t H5E_ERROR_g * } */ - public static long H5E_ERROR_g() { + public static long H5E_ERROR_g() + { return H5E_ERROR_g$constants.SEGMENT.get(H5E_ERROR_g$constants.LAYOUT, 0L); } @@ -18143,13 +16498,15 @@ public static long H5E_ERROR_g() { * extern hid_t H5E_ERROR_g * } */ - public static void H5E_ERROR_g(long varValue) { + public static void H5E_ERROR_g(long varValue) + { H5E_ERROR_g$constants.SEGMENT.set(H5E_ERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_EVENTSET_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_EVENTSET_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_EVENTSET_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18158,9 +16515,7 @@ private static class H5E_EVENTSET_g$constants { * extern hid_t H5E_EVENTSET_g * } */ - public static OfLong H5E_EVENTSET_g$layout() { - return H5E_EVENTSET_g$constants.LAYOUT; - } + public static OfLong H5E_EVENTSET_g$layout() { return H5E_EVENTSET_g$constants.LAYOUT; } /** * Segment for variable: @@ -18168,9 +16523,7 @@ private static class H5E_EVENTSET_g$constants { * extern hid_t H5E_EVENTSET_g * } */ - public static MemorySegment H5E_EVENTSET_g$segment() { - return H5E_EVENTSET_g$constants.SEGMENT; - } + public static MemorySegment H5E_EVENTSET_g$segment() { return H5E_EVENTSET_g$constants.SEGMENT; } /** * Getter for variable: @@ -18178,7 +16531,8 @@ private static class H5E_EVENTSET_g$constants { * extern hid_t H5E_EVENTSET_g * } */ - public static long H5E_EVENTSET_g() { + public static long H5E_EVENTSET_g() + { return H5E_EVENTSET_g$constants.SEGMENT.get(H5E_EVENTSET_g$constants.LAYOUT, 0L); } @@ -18188,13 +16542,15 @@ public static long H5E_EVENTSET_g() { * extern hid_t H5E_EVENTSET_g * } */ - public static void H5E_EVENTSET_g(long varValue) { + public static void H5E_EVENTSET_g(long varValue) + { H5E_EVENTSET_g$constants.SEGMENT.set(H5E_EVENTSET_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FARRAY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FARRAY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FARRAY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18203,9 +16559,7 @@ private static class H5E_FARRAY_g$constants { * extern hid_t H5E_FARRAY_g * } */ - public static OfLong H5E_FARRAY_g$layout() { - return H5E_FARRAY_g$constants.LAYOUT; - } + public static OfLong H5E_FARRAY_g$layout() { return H5E_FARRAY_g$constants.LAYOUT; } /** * Segment for variable: @@ -18213,9 +16567,7 @@ private static class H5E_FARRAY_g$constants { * extern hid_t H5E_FARRAY_g * } */ - public static MemorySegment H5E_FARRAY_g$segment() { - return H5E_FARRAY_g$constants.SEGMENT; - } + public static MemorySegment H5E_FARRAY_g$segment() { return H5E_FARRAY_g$constants.SEGMENT; } /** * Getter for variable: @@ -18223,7 +16575,8 @@ private static class H5E_FARRAY_g$constants { * extern hid_t H5E_FARRAY_g * } */ - public static long H5E_FARRAY_g() { + public static long H5E_FARRAY_g() + { return H5E_FARRAY_g$constants.SEGMENT.get(H5E_FARRAY_g$constants.LAYOUT, 0L); } @@ -18233,13 +16586,15 @@ public static long H5E_FARRAY_g() { * extern hid_t H5E_FARRAY_g * } */ - public static void H5E_FARRAY_g(long varValue) { + public static void H5E_FARRAY_g(long varValue) + { H5E_FARRAY_g$constants.SEGMENT.set(H5E_FARRAY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18248,9 +16603,7 @@ private static class H5E_FILE_g$constants { * extern hid_t H5E_FILE_g * } */ - public static OfLong H5E_FILE_g$layout() { - return H5E_FILE_g$constants.LAYOUT; - } + public static OfLong H5E_FILE_g$layout() { return H5E_FILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -18258,9 +16611,7 @@ private static class H5E_FILE_g$constants { * extern hid_t H5E_FILE_g * } */ - public static MemorySegment H5E_FILE_g$segment() { - return H5E_FILE_g$constants.SEGMENT; - } + public static MemorySegment H5E_FILE_g$segment() { return H5E_FILE_g$constants.SEGMENT; } /** * Getter for variable: @@ -18268,7 +16619,8 @@ private static class H5E_FILE_g$constants { * extern hid_t H5E_FILE_g * } */ - public static long H5E_FILE_g() { + public static long H5E_FILE_g() + { return H5E_FILE_g$constants.SEGMENT.get(H5E_FILE_g$constants.LAYOUT, 0L); } @@ -18278,13 +16630,15 @@ public static long H5E_FILE_g() { * extern hid_t H5E_FILE_g * } */ - public static void H5E_FILE_g(long varValue) { + public static void H5E_FILE_g(long varValue) + { H5E_FILE_g$constants.SEGMENT.set(H5E_FILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FSPACE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FSPACE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FSPACE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18293,9 +16647,7 @@ private static class H5E_FSPACE_g$constants { * extern hid_t H5E_FSPACE_g * } */ - public static OfLong H5E_FSPACE_g$layout() { - return H5E_FSPACE_g$constants.LAYOUT; - } + public static OfLong H5E_FSPACE_g$layout() { return H5E_FSPACE_g$constants.LAYOUT; } /** * Segment for variable: @@ -18303,9 +16655,7 @@ private static class H5E_FSPACE_g$constants { * extern hid_t H5E_FSPACE_g * } */ - public static MemorySegment H5E_FSPACE_g$segment() { - return H5E_FSPACE_g$constants.SEGMENT; - } + public static MemorySegment H5E_FSPACE_g$segment() { return H5E_FSPACE_g$constants.SEGMENT; } /** * Getter for variable: @@ -18313,7 +16663,8 @@ private static class H5E_FSPACE_g$constants { * extern hid_t H5E_FSPACE_g * } */ - public static long H5E_FSPACE_g() { + public static long H5E_FSPACE_g() + { return H5E_FSPACE_g$constants.SEGMENT.get(H5E_FSPACE_g$constants.LAYOUT, 0L); } @@ -18323,13 +16674,15 @@ public static long H5E_FSPACE_g() { * extern hid_t H5E_FSPACE_g * } */ - public static void H5E_FSPACE_g(long varValue) { + public static void H5E_FSPACE_g(long varValue) + { H5E_FSPACE_g$constants.SEGMENT.set(H5E_FSPACE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FUNC_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FUNC_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FUNC_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18338,9 +16691,7 @@ private static class H5E_FUNC_g$constants { * extern hid_t H5E_FUNC_g * } */ - public static OfLong H5E_FUNC_g$layout() { - return H5E_FUNC_g$constants.LAYOUT; - } + public static OfLong H5E_FUNC_g$layout() { return H5E_FUNC_g$constants.LAYOUT; } /** * Segment for variable: @@ -18348,9 +16699,7 @@ private static class H5E_FUNC_g$constants { * extern hid_t H5E_FUNC_g * } */ - public static MemorySegment H5E_FUNC_g$segment() { - return H5E_FUNC_g$constants.SEGMENT; - } + public static MemorySegment H5E_FUNC_g$segment() { return H5E_FUNC_g$constants.SEGMENT; } /** * Getter for variable: @@ -18358,7 +16707,8 @@ private static class H5E_FUNC_g$constants { * extern hid_t H5E_FUNC_g * } */ - public static long H5E_FUNC_g() { + public static long H5E_FUNC_g() + { return H5E_FUNC_g$constants.SEGMENT.get(H5E_FUNC_g$constants.LAYOUT, 0L); } @@ -18368,13 +16718,15 @@ public static long H5E_FUNC_g() { * extern hid_t H5E_FUNC_g * } */ - public static void H5E_FUNC_g(long varValue) { + public static void H5E_FUNC_g(long varValue) + { H5E_FUNC_g$constants.SEGMENT.set(H5E_FUNC_g$constants.LAYOUT, 0L, varValue); } private static class H5E_HEAP_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_HEAP_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_HEAP_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18383,9 +16735,7 @@ private static class H5E_HEAP_g$constants { * extern hid_t H5E_HEAP_g * } */ - public static OfLong H5E_HEAP_g$layout() { - return H5E_HEAP_g$constants.LAYOUT; - } + public static OfLong H5E_HEAP_g$layout() { return H5E_HEAP_g$constants.LAYOUT; } /** * Segment for variable: @@ -18393,9 +16743,7 @@ private static class H5E_HEAP_g$constants { * extern hid_t H5E_HEAP_g * } */ - public static MemorySegment H5E_HEAP_g$segment() { - return H5E_HEAP_g$constants.SEGMENT; - } + public static MemorySegment H5E_HEAP_g$segment() { return H5E_HEAP_g$constants.SEGMENT; } /** * Getter for variable: @@ -18403,7 +16751,8 @@ private static class H5E_HEAP_g$constants { * extern hid_t H5E_HEAP_g * } */ - public static long H5E_HEAP_g() { + public static long H5E_HEAP_g() + { return H5E_HEAP_g$constants.SEGMENT.get(H5E_HEAP_g$constants.LAYOUT, 0L); } @@ -18413,13 +16762,15 @@ public static long H5E_HEAP_g() { * extern hid_t H5E_HEAP_g * } */ - public static void H5E_HEAP_g(long varValue) { + public static void H5E_HEAP_g(long varValue) + { H5E_HEAP_g$constants.SEGMENT.set(H5E_HEAP_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18428,9 +16779,7 @@ private static class H5E_ID_g$constants { * extern hid_t H5E_ID_g * } */ - public static OfLong H5E_ID_g$layout() { - return H5E_ID_g$constants.LAYOUT; - } + public static OfLong H5E_ID_g$layout() { return H5E_ID_g$constants.LAYOUT; } /** * Segment for variable: @@ -18438,9 +16787,7 @@ private static class H5E_ID_g$constants { * extern hid_t H5E_ID_g * } */ - public static MemorySegment H5E_ID_g$segment() { - return H5E_ID_g$constants.SEGMENT; - } + public static MemorySegment H5E_ID_g$segment() { return H5E_ID_g$constants.SEGMENT; } /** * Getter for variable: @@ -18448,9 +16795,7 @@ private static class H5E_ID_g$constants { * extern hid_t H5E_ID_g * } */ - public static long H5E_ID_g() { - return H5E_ID_g$constants.SEGMENT.get(H5E_ID_g$constants.LAYOUT, 0L); - } + public static long H5E_ID_g() { return H5E_ID_g$constants.SEGMENT.get(H5E_ID_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -18458,13 +16803,15 @@ public static long H5E_ID_g() { * extern hid_t H5E_ID_g * } */ - public static void H5E_ID_g(long varValue) { + public static void H5E_ID_g(long varValue) + { H5E_ID_g$constants.SEGMENT.set(H5E_ID_g$constants.LAYOUT, 0L, varValue); } private static class H5E_INTERNAL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_INTERNAL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_INTERNAL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18473,9 +16820,7 @@ private static class H5E_INTERNAL_g$constants { * extern hid_t H5E_INTERNAL_g * } */ - public static OfLong H5E_INTERNAL_g$layout() { - return H5E_INTERNAL_g$constants.LAYOUT; - } + public static OfLong H5E_INTERNAL_g$layout() { return H5E_INTERNAL_g$constants.LAYOUT; } /** * Segment for variable: @@ -18483,9 +16828,7 @@ private static class H5E_INTERNAL_g$constants { * extern hid_t H5E_INTERNAL_g * } */ - public static MemorySegment H5E_INTERNAL_g$segment() { - return H5E_INTERNAL_g$constants.SEGMENT; - } + public static MemorySegment H5E_INTERNAL_g$segment() { return H5E_INTERNAL_g$constants.SEGMENT; } /** * Getter for variable: @@ -18493,7 +16836,8 @@ private static class H5E_INTERNAL_g$constants { * extern hid_t H5E_INTERNAL_g * } */ - public static long H5E_INTERNAL_g() { + public static long H5E_INTERNAL_g() + { return H5E_INTERNAL_g$constants.SEGMENT.get(H5E_INTERNAL_g$constants.LAYOUT, 0L); } @@ -18503,13 +16847,15 @@ public static long H5E_INTERNAL_g() { * extern hid_t H5E_INTERNAL_g * } */ - public static void H5E_INTERNAL_g(long varValue) { + public static void H5E_INTERNAL_g(long varValue) + { H5E_INTERNAL_g$constants.SEGMENT.set(H5E_INTERNAL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_IO_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_IO_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_IO_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18518,9 +16864,7 @@ private static class H5E_IO_g$constants { * extern hid_t H5E_IO_g * } */ - public static OfLong H5E_IO_g$layout() { - return H5E_IO_g$constants.LAYOUT; - } + public static OfLong H5E_IO_g$layout() { return H5E_IO_g$constants.LAYOUT; } /** * Segment for variable: @@ -18528,9 +16872,7 @@ private static class H5E_IO_g$constants { * extern hid_t H5E_IO_g * } */ - public static MemorySegment H5E_IO_g$segment() { - return H5E_IO_g$constants.SEGMENT; - } + public static MemorySegment H5E_IO_g$segment() { return H5E_IO_g$constants.SEGMENT; } /** * Getter for variable: @@ -18538,9 +16880,7 @@ private static class H5E_IO_g$constants { * extern hid_t H5E_IO_g * } */ - public static long H5E_IO_g() { - return H5E_IO_g$constants.SEGMENT.get(H5E_IO_g$constants.LAYOUT, 0L); - } + public static long H5E_IO_g() { return H5E_IO_g$constants.SEGMENT.get(H5E_IO_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -18548,13 +16888,15 @@ public static long H5E_IO_g() { * extern hid_t H5E_IO_g * } */ - public static void H5E_IO_g(long varValue) { + public static void H5E_IO_g(long varValue) + { H5E_IO_g$constants.SEGMENT.set(H5E_IO_g$constants.LAYOUT, 0L, varValue); } private static class H5E_LIB_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_LIB_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_LIB_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18563,9 +16905,7 @@ private static class H5E_LIB_g$constants { * extern hid_t H5E_LIB_g * } */ - public static OfLong H5E_LIB_g$layout() { - return H5E_LIB_g$constants.LAYOUT; - } + public static OfLong H5E_LIB_g$layout() { return H5E_LIB_g$constants.LAYOUT; } /** * Segment for variable: @@ -18573,9 +16913,7 @@ private static class H5E_LIB_g$constants { * extern hid_t H5E_LIB_g * } */ - public static MemorySegment H5E_LIB_g$segment() { - return H5E_LIB_g$constants.SEGMENT; - } + public static MemorySegment H5E_LIB_g$segment() { return H5E_LIB_g$constants.SEGMENT; } /** * Getter for variable: @@ -18583,9 +16921,7 @@ private static class H5E_LIB_g$constants { * extern hid_t H5E_LIB_g * } */ - public static long H5E_LIB_g() { - return H5E_LIB_g$constants.SEGMENT.get(H5E_LIB_g$constants.LAYOUT, 0L); - } + public static long H5E_LIB_g() { return H5E_LIB_g$constants.SEGMENT.get(H5E_LIB_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -18593,13 +16929,15 @@ public static long H5E_LIB_g() { * extern hid_t H5E_LIB_g * } */ - public static void H5E_LIB_g(long varValue) { + public static void H5E_LIB_g(long varValue) + { H5E_LIB_g$constants.SEGMENT.set(H5E_LIB_g$constants.LAYOUT, 0L, varValue); } private static class H5E_LINK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_LINK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_LINK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18608,9 +16946,7 @@ private static class H5E_LINK_g$constants { * extern hid_t H5E_LINK_g * } */ - public static OfLong H5E_LINK_g$layout() { - return H5E_LINK_g$constants.LAYOUT; - } + public static OfLong H5E_LINK_g$layout() { return H5E_LINK_g$constants.LAYOUT; } /** * Segment for variable: @@ -18618,9 +16954,7 @@ private static class H5E_LINK_g$constants { * extern hid_t H5E_LINK_g * } */ - public static MemorySegment H5E_LINK_g$segment() { - return H5E_LINK_g$constants.SEGMENT; - } + public static MemorySegment H5E_LINK_g$segment() { return H5E_LINK_g$constants.SEGMENT; } /** * Getter for variable: @@ -18628,7 +16962,8 @@ private static class H5E_LINK_g$constants { * extern hid_t H5E_LINK_g * } */ - public static long H5E_LINK_g() { + public static long H5E_LINK_g() + { return H5E_LINK_g$constants.SEGMENT.get(H5E_LINK_g$constants.LAYOUT, 0L); } @@ -18638,13 +16973,15 @@ public static long H5E_LINK_g() { * extern hid_t H5E_LINK_g * } */ - public static void H5E_LINK_g(long varValue) { + public static void H5E_LINK_g(long varValue) + { H5E_LINK_g$constants.SEGMENT.set(H5E_LINK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_MAP_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_MAP_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_MAP_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18653,9 +16990,7 @@ private static class H5E_MAP_g$constants { * extern hid_t H5E_MAP_g * } */ - public static OfLong H5E_MAP_g$layout() { - return H5E_MAP_g$constants.LAYOUT; - } + public static OfLong H5E_MAP_g$layout() { return H5E_MAP_g$constants.LAYOUT; } /** * Segment for variable: @@ -18663,9 +16998,7 @@ private static class H5E_MAP_g$constants { * extern hid_t H5E_MAP_g * } */ - public static MemorySegment H5E_MAP_g$segment() { - return H5E_MAP_g$constants.SEGMENT; - } + public static MemorySegment H5E_MAP_g$segment() { return H5E_MAP_g$constants.SEGMENT; } /** * Getter for variable: @@ -18673,9 +17006,7 @@ private static class H5E_MAP_g$constants { * extern hid_t H5E_MAP_g * } */ - public static long H5E_MAP_g() { - return H5E_MAP_g$constants.SEGMENT.get(H5E_MAP_g$constants.LAYOUT, 0L); - } + public static long H5E_MAP_g() { return H5E_MAP_g$constants.SEGMENT.get(H5E_MAP_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -18683,13 +17014,15 @@ public static long H5E_MAP_g() { * extern hid_t H5E_MAP_g * } */ - public static void H5E_MAP_g(long varValue) { + public static void H5E_MAP_g(long varValue) + { H5E_MAP_g$constants.SEGMENT.set(H5E_MAP_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NONE_MAJOR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NONE_MAJOR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NONE_MAJOR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18698,9 +17031,7 @@ private static class H5E_NONE_MAJOR_g$constants { * extern hid_t H5E_NONE_MAJOR_g * } */ - public static OfLong H5E_NONE_MAJOR_g$layout() { - return H5E_NONE_MAJOR_g$constants.LAYOUT; - } + public static OfLong H5E_NONE_MAJOR_g$layout() { return H5E_NONE_MAJOR_g$constants.LAYOUT; } /** * Segment for variable: @@ -18708,9 +17039,7 @@ private static class H5E_NONE_MAJOR_g$constants { * extern hid_t H5E_NONE_MAJOR_g * } */ - public static MemorySegment H5E_NONE_MAJOR_g$segment() { - return H5E_NONE_MAJOR_g$constants.SEGMENT; - } + public static MemorySegment H5E_NONE_MAJOR_g$segment() { return H5E_NONE_MAJOR_g$constants.SEGMENT; } /** * Getter for variable: @@ -18718,7 +17047,8 @@ private static class H5E_NONE_MAJOR_g$constants { * extern hid_t H5E_NONE_MAJOR_g * } */ - public static long H5E_NONE_MAJOR_g() { + public static long H5E_NONE_MAJOR_g() + { return H5E_NONE_MAJOR_g$constants.SEGMENT.get(H5E_NONE_MAJOR_g$constants.LAYOUT, 0L); } @@ -18728,13 +17058,15 @@ public static long H5E_NONE_MAJOR_g() { * extern hid_t H5E_NONE_MAJOR_g * } */ - public static void H5E_NONE_MAJOR_g(long varValue) { + public static void H5E_NONE_MAJOR_g(long varValue) + { H5E_NONE_MAJOR_g$constants.SEGMENT.set(H5E_NONE_MAJOR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_OHDR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_OHDR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_OHDR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18743,9 +17075,7 @@ private static class H5E_OHDR_g$constants { * extern hid_t H5E_OHDR_g * } */ - public static OfLong H5E_OHDR_g$layout() { - return H5E_OHDR_g$constants.LAYOUT; - } + public static OfLong H5E_OHDR_g$layout() { return H5E_OHDR_g$constants.LAYOUT; } /** * Segment for variable: @@ -18753,9 +17083,7 @@ private static class H5E_OHDR_g$constants { * extern hid_t H5E_OHDR_g * } */ - public static MemorySegment H5E_OHDR_g$segment() { - return H5E_OHDR_g$constants.SEGMENT; - } + public static MemorySegment H5E_OHDR_g$segment() { return H5E_OHDR_g$constants.SEGMENT; } /** * Getter for variable: @@ -18763,7 +17091,8 @@ private static class H5E_OHDR_g$constants { * extern hid_t H5E_OHDR_g * } */ - public static long H5E_OHDR_g() { + public static long H5E_OHDR_g() + { return H5E_OHDR_g$constants.SEGMENT.get(H5E_OHDR_g$constants.LAYOUT, 0L); } @@ -18773,13 +17102,15 @@ public static long H5E_OHDR_g() { * extern hid_t H5E_OHDR_g * } */ - public static void H5E_OHDR_g(long varValue) { + public static void H5E_OHDR_g(long varValue) + { H5E_OHDR_g$constants.SEGMENT.set(H5E_OHDR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PAGEBUF_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PAGEBUF_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PAGEBUF_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18788,9 +17119,7 @@ private static class H5E_PAGEBUF_g$constants { * extern hid_t H5E_PAGEBUF_g * } */ - public static OfLong H5E_PAGEBUF_g$layout() { - return H5E_PAGEBUF_g$constants.LAYOUT; - } + public static OfLong H5E_PAGEBUF_g$layout() { return H5E_PAGEBUF_g$constants.LAYOUT; } /** * Segment for variable: @@ -18798,9 +17127,7 @@ private static class H5E_PAGEBUF_g$constants { * extern hid_t H5E_PAGEBUF_g * } */ - public static MemorySegment H5E_PAGEBUF_g$segment() { - return H5E_PAGEBUF_g$constants.SEGMENT; - } + public static MemorySegment H5E_PAGEBUF_g$segment() { return H5E_PAGEBUF_g$constants.SEGMENT; } /** * Getter for variable: @@ -18808,7 +17135,8 @@ private static class H5E_PAGEBUF_g$constants { * extern hid_t H5E_PAGEBUF_g * } */ - public static long H5E_PAGEBUF_g() { + public static long H5E_PAGEBUF_g() + { return H5E_PAGEBUF_g$constants.SEGMENT.get(H5E_PAGEBUF_g$constants.LAYOUT, 0L); } @@ -18818,13 +17146,15 @@ public static long H5E_PAGEBUF_g() { * extern hid_t H5E_PAGEBUF_g * } */ - public static void H5E_PAGEBUF_g(long varValue) { + public static void H5E_PAGEBUF_g(long varValue) + { H5E_PAGEBUF_g$constants.SEGMENT.set(H5E_PAGEBUF_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PLINE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PLINE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PLINE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18833,9 +17163,7 @@ private static class H5E_PLINE_g$constants { * extern hid_t H5E_PLINE_g * } */ - public static OfLong H5E_PLINE_g$layout() { - return H5E_PLINE_g$constants.LAYOUT; - } + public static OfLong H5E_PLINE_g$layout() { return H5E_PLINE_g$constants.LAYOUT; } /** * Segment for variable: @@ -18843,9 +17171,7 @@ private static class H5E_PLINE_g$constants { * extern hid_t H5E_PLINE_g * } */ - public static MemorySegment H5E_PLINE_g$segment() { - return H5E_PLINE_g$constants.SEGMENT; - } + public static MemorySegment H5E_PLINE_g$segment() { return H5E_PLINE_g$constants.SEGMENT; } /** * Getter for variable: @@ -18853,7 +17179,8 @@ private static class H5E_PLINE_g$constants { * extern hid_t H5E_PLINE_g * } */ - public static long H5E_PLINE_g() { + public static long H5E_PLINE_g() + { return H5E_PLINE_g$constants.SEGMENT.get(H5E_PLINE_g$constants.LAYOUT, 0L); } @@ -18863,13 +17190,15 @@ public static long H5E_PLINE_g() { * extern hid_t H5E_PLINE_g * } */ - public static void H5E_PLINE_g(long varValue) { + public static void H5E_PLINE_g(long varValue) + { H5E_PLINE_g$constants.SEGMENT.set(H5E_PLINE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PLIST_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PLIST_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PLIST_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18878,9 +17207,7 @@ private static class H5E_PLIST_g$constants { * extern hid_t H5E_PLIST_g * } */ - public static OfLong H5E_PLIST_g$layout() { - return H5E_PLIST_g$constants.LAYOUT; - } + public static OfLong H5E_PLIST_g$layout() { return H5E_PLIST_g$constants.LAYOUT; } /** * Segment for variable: @@ -18888,9 +17215,7 @@ private static class H5E_PLIST_g$constants { * extern hid_t H5E_PLIST_g * } */ - public static MemorySegment H5E_PLIST_g$segment() { - return H5E_PLIST_g$constants.SEGMENT; - } + public static MemorySegment H5E_PLIST_g$segment() { return H5E_PLIST_g$constants.SEGMENT; } /** * Getter for variable: @@ -18898,7 +17223,8 @@ private static class H5E_PLIST_g$constants { * extern hid_t H5E_PLIST_g * } */ - public static long H5E_PLIST_g() { + public static long H5E_PLIST_g() + { return H5E_PLIST_g$constants.SEGMENT.get(H5E_PLIST_g$constants.LAYOUT, 0L); } @@ -18908,13 +17234,15 @@ public static long H5E_PLIST_g() { * extern hid_t H5E_PLIST_g * } */ - public static void H5E_PLIST_g(long varValue) { + public static void H5E_PLIST_g(long varValue) + { H5E_PLIST_g$constants.SEGMENT.set(H5E_PLIST_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PLUGIN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PLUGIN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PLUGIN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18923,9 +17251,7 @@ private static class H5E_PLUGIN_g$constants { * extern hid_t H5E_PLUGIN_g * } */ - public static OfLong H5E_PLUGIN_g$layout() { - return H5E_PLUGIN_g$constants.LAYOUT; - } + public static OfLong H5E_PLUGIN_g$layout() { return H5E_PLUGIN_g$constants.LAYOUT; } /** * Segment for variable: @@ -18933,9 +17259,7 @@ private static class H5E_PLUGIN_g$constants { * extern hid_t H5E_PLUGIN_g * } */ - public static MemorySegment H5E_PLUGIN_g$segment() { - return H5E_PLUGIN_g$constants.SEGMENT; - } + public static MemorySegment H5E_PLUGIN_g$segment() { return H5E_PLUGIN_g$constants.SEGMENT; } /** * Getter for variable: @@ -18943,7 +17267,8 @@ private static class H5E_PLUGIN_g$constants { * extern hid_t H5E_PLUGIN_g * } */ - public static long H5E_PLUGIN_g() { + public static long H5E_PLUGIN_g() + { return H5E_PLUGIN_g$constants.SEGMENT.get(H5E_PLUGIN_g$constants.LAYOUT, 0L); } @@ -18953,13 +17278,15 @@ public static long H5E_PLUGIN_g() { * extern hid_t H5E_PLUGIN_g * } */ - public static void H5E_PLUGIN_g(long varValue) { + public static void H5E_PLUGIN_g(long varValue) + { H5E_PLUGIN_g$constants.SEGMENT.set(H5E_PLUGIN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_REFERENCE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_REFERENCE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_REFERENCE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -18968,9 +17295,7 @@ private static class H5E_REFERENCE_g$constants { * extern hid_t H5E_REFERENCE_g * } */ - public static OfLong H5E_REFERENCE_g$layout() { - return H5E_REFERENCE_g$constants.LAYOUT; - } + public static OfLong H5E_REFERENCE_g$layout() { return H5E_REFERENCE_g$constants.LAYOUT; } /** * Segment for variable: @@ -18978,9 +17303,7 @@ private static class H5E_REFERENCE_g$constants { * extern hid_t H5E_REFERENCE_g * } */ - public static MemorySegment H5E_REFERENCE_g$segment() { - return H5E_REFERENCE_g$constants.SEGMENT; - } + public static MemorySegment H5E_REFERENCE_g$segment() { return H5E_REFERENCE_g$constants.SEGMENT; } /** * Getter for variable: @@ -18988,7 +17311,8 @@ private static class H5E_REFERENCE_g$constants { * extern hid_t H5E_REFERENCE_g * } */ - public static long H5E_REFERENCE_g() { + public static long H5E_REFERENCE_g() + { return H5E_REFERENCE_g$constants.SEGMENT.get(H5E_REFERENCE_g$constants.LAYOUT, 0L); } @@ -18998,13 +17322,15 @@ public static long H5E_REFERENCE_g() { * extern hid_t H5E_REFERENCE_g * } */ - public static void H5E_REFERENCE_g(long varValue) { + public static void H5E_REFERENCE_g(long varValue) + { H5E_REFERENCE_g$constants.SEGMENT.set(H5E_REFERENCE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_RESOURCE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_RESOURCE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_RESOURCE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19013,9 +17339,7 @@ private static class H5E_RESOURCE_g$constants { * extern hid_t H5E_RESOURCE_g * } */ - public static OfLong H5E_RESOURCE_g$layout() { - return H5E_RESOURCE_g$constants.LAYOUT; - } + public static OfLong H5E_RESOURCE_g$layout() { return H5E_RESOURCE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19023,9 +17347,7 @@ private static class H5E_RESOURCE_g$constants { * extern hid_t H5E_RESOURCE_g * } */ - public static MemorySegment H5E_RESOURCE_g$segment() { - return H5E_RESOURCE_g$constants.SEGMENT; - } + public static MemorySegment H5E_RESOURCE_g$segment() { return H5E_RESOURCE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19033,7 +17355,8 @@ private static class H5E_RESOURCE_g$constants { * extern hid_t H5E_RESOURCE_g * } */ - public static long H5E_RESOURCE_g() { + public static long H5E_RESOURCE_g() + { return H5E_RESOURCE_g$constants.SEGMENT.get(H5E_RESOURCE_g$constants.LAYOUT, 0L); } @@ -19043,13 +17366,15 @@ public static long H5E_RESOURCE_g() { * extern hid_t H5E_RESOURCE_g * } */ - public static void H5E_RESOURCE_g(long varValue) { + public static void H5E_RESOURCE_g(long varValue) + { H5E_RESOURCE_g$constants.SEGMENT.set(H5E_RESOURCE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_RS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_RS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_RS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19058,9 +17383,7 @@ private static class H5E_RS_g$constants { * extern hid_t H5E_RS_g * } */ - public static OfLong H5E_RS_g$layout() { - return H5E_RS_g$constants.LAYOUT; - } + public static OfLong H5E_RS_g$layout() { return H5E_RS_g$constants.LAYOUT; } /** * Segment for variable: @@ -19068,9 +17391,7 @@ private static class H5E_RS_g$constants { * extern hid_t H5E_RS_g * } */ - public static MemorySegment H5E_RS_g$segment() { - return H5E_RS_g$constants.SEGMENT; - } + public static MemorySegment H5E_RS_g$segment() { return H5E_RS_g$constants.SEGMENT; } /** * Getter for variable: @@ -19078,9 +17399,7 @@ private static class H5E_RS_g$constants { * extern hid_t H5E_RS_g * } */ - public static long H5E_RS_g() { - return H5E_RS_g$constants.SEGMENT.get(H5E_RS_g$constants.LAYOUT, 0L); - } + public static long H5E_RS_g() { return H5E_RS_g$constants.SEGMENT.get(H5E_RS_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -19088,13 +17407,15 @@ public static long H5E_RS_g() { * extern hid_t H5E_RS_g * } */ - public static void H5E_RS_g(long varValue) { + public static void H5E_RS_g(long varValue) + { H5E_RS_g$constants.SEGMENT.set(H5E_RS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SLIST_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SLIST_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SLIST_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19103,9 +17424,7 @@ private static class H5E_SLIST_g$constants { * extern hid_t H5E_SLIST_g * } */ - public static OfLong H5E_SLIST_g$layout() { - return H5E_SLIST_g$constants.LAYOUT; - } + public static OfLong H5E_SLIST_g$layout() { return H5E_SLIST_g$constants.LAYOUT; } /** * Segment for variable: @@ -19113,9 +17432,7 @@ private static class H5E_SLIST_g$constants { * extern hid_t H5E_SLIST_g * } */ - public static MemorySegment H5E_SLIST_g$segment() { - return H5E_SLIST_g$constants.SEGMENT; - } + public static MemorySegment H5E_SLIST_g$segment() { return H5E_SLIST_g$constants.SEGMENT; } /** * Getter for variable: @@ -19123,7 +17440,8 @@ private static class H5E_SLIST_g$constants { * extern hid_t H5E_SLIST_g * } */ - public static long H5E_SLIST_g() { + public static long H5E_SLIST_g() + { return H5E_SLIST_g$constants.SEGMENT.get(H5E_SLIST_g$constants.LAYOUT, 0L); } @@ -19133,13 +17451,15 @@ public static long H5E_SLIST_g() { * extern hid_t H5E_SLIST_g * } */ - public static void H5E_SLIST_g(long varValue) { + public static void H5E_SLIST_g(long varValue) + { H5E_SLIST_g$constants.SEGMENT.set(H5E_SLIST_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SOHM_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SOHM_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SOHM_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19148,9 +17468,7 @@ private static class H5E_SOHM_g$constants { * extern hid_t H5E_SOHM_g * } */ - public static OfLong H5E_SOHM_g$layout() { - return H5E_SOHM_g$constants.LAYOUT; - } + public static OfLong H5E_SOHM_g$layout() { return H5E_SOHM_g$constants.LAYOUT; } /** * Segment for variable: @@ -19158,9 +17476,7 @@ private static class H5E_SOHM_g$constants { * extern hid_t H5E_SOHM_g * } */ - public static MemorySegment H5E_SOHM_g$segment() { - return H5E_SOHM_g$constants.SEGMENT; - } + public static MemorySegment H5E_SOHM_g$segment() { return H5E_SOHM_g$constants.SEGMENT; } /** * Getter for variable: @@ -19168,7 +17484,8 @@ private static class H5E_SOHM_g$constants { * extern hid_t H5E_SOHM_g * } */ - public static long H5E_SOHM_g() { + public static long H5E_SOHM_g() + { return H5E_SOHM_g$constants.SEGMENT.get(H5E_SOHM_g$constants.LAYOUT, 0L); } @@ -19178,13 +17495,15 @@ public static long H5E_SOHM_g() { * extern hid_t H5E_SOHM_g * } */ - public static void H5E_SOHM_g(long varValue) { + public static void H5E_SOHM_g(long varValue) + { H5E_SOHM_g$constants.SEGMENT.set(H5E_SOHM_g$constants.LAYOUT, 0L, varValue); } private static class H5E_STORAGE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_STORAGE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_STORAGE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19193,9 +17512,7 @@ private static class H5E_STORAGE_g$constants { * extern hid_t H5E_STORAGE_g * } */ - public static OfLong H5E_STORAGE_g$layout() { - return H5E_STORAGE_g$constants.LAYOUT; - } + public static OfLong H5E_STORAGE_g$layout() { return H5E_STORAGE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19203,9 +17520,7 @@ private static class H5E_STORAGE_g$constants { * extern hid_t H5E_STORAGE_g * } */ - public static MemorySegment H5E_STORAGE_g$segment() { - return H5E_STORAGE_g$constants.SEGMENT; - } + public static MemorySegment H5E_STORAGE_g$segment() { return H5E_STORAGE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19213,7 +17528,8 @@ private static class H5E_STORAGE_g$constants { * extern hid_t H5E_STORAGE_g * } */ - public static long H5E_STORAGE_g() { + public static long H5E_STORAGE_g() + { return H5E_STORAGE_g$constants.SEGMENT.get(H5E_STORAGE_g$constants.LAYOUT, 0L); } @@ -19223,13 +17539,15 @@ public static long H5E_STORAGE_g() { * extern hid_t H5E_STORAGE_g * } */ - public static void H5E_STORAGE_g(long varValue) { + public static void H5E_STORAGE_g(long varValue) + { H5E_STORAGE_g$constants.SEGMENT.set(H5E_STORAGE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SYM_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SYM_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SYM_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19238,9 +17556,7 @@ private static class H5E_SYM_g$constants { * extern hid_t H5E_SYM_g * } */ - public static OfLong H5E_SYM_g$layout() { - return H5E_SYM_g$constants.LAYOUT; - } + public static OfLong H5E_SYM_g$layout() { return H5E_SYM_g$constants.LAYOUT; } /** * Segment for variable: @@ -19248,9 +17564,7 @@ private static class H5E_SYM_g$constants { * extern hid_t H5E_SYM_g * } */ - public static MemorySegment H5E_SYM_g$segment() { - return H5E_SYM_g$constants.SEGMENT; - } + public static MemorySegment H5E_SYM_g$segment() { return H5E_SYM_g$constants.SEGMENT; } /** * Getter for variable: @@ -19258,9 +17572,7 @@ private static class H5E_SYM_g$constants { * extern hid_t H5E_SYM_g * } */ - public static long H5E_SYM_g() { - return H5E_SYM_g$constants.SEGMENT.get(H5E_SYM_g$constants.LAYOUT, 0L); - } + public static long H5E_SYM_g() { return H5E_SYM_g$constants.SEGMENT.get(H5E_SYM_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -19268,13 +17580,15 @@ public static long H5E_SYM_g() { * extern hid_t H5E_SYM_g * } */ - public static void H5E_SYM_g(long varValue) { + public static void H5E_SYM_g(long varValue) + { H5E_SYM_g$constants.SEGMENT.set(H5E_SYM_g$constants.LAYOUT, 0L, varValue); } private static class H5E_THREADSAFE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_THREADSAFE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_THREADSAFE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19283,9 +17597,7 @@ private static class H5E_THREADSAFE_g$constants { * extern hid_t H5E_THREADSAFE_g * } */ - public static OfLong H5E_THREADSAFE_g$layout() { - return H5E_THREADSAFE_g$constants.LAYOUT; - } + public static OfLong H5E_THREADSAFE_g$layout() { return H5E_THREADSAFE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19293,9 +17605,7 @@ private static class H5E_THREADSAFE_g$constants { * extern hid_t H5E_THREADSAFE_g * } */ - public static MemorySegment H5E_THREADSAFE_g$segment() { - return H5E_THREADSAFE_g$constants.SEGMENT; - } + public static MemorySegment H5E_THREADSAFE_g$segment() { return H5E_THREADSAFE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19303,7 +17613,8 @@ private static class H5E_THREADSAFE_g$constants { * extern hid_t H5E_THREADSAFE_g * } */ - public static long H5E_THREADSAFE_g() { + public static long H5E_THREADSAFE_g() + { return H5E_THREADSAFE_g$constants.SEGMENT.get(H5E_THREADSAFE_g$constants.LAYOUT, 0L); } @@ -19313,13 +17624,15 @@ public static long H5E_THREADSAFE_g() { * extern hid_t H5E_THREADSAFE_g * } */ - public static void H5E_THREADSAFE_g(long varValue) { + public static void H5E_THREADSAFE_g(long varValue) + { H5E_THREADSAFE_g$constants.SEGMENT.set(H5E_THREADSAFE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_TST_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_TST_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_TST_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19328,9 +17641,7 @@ private static class H5E_TST_g$constants { * extern hid_t H5E_TST_g * } */ - public static OfLong H5E_TST_g$layout() { - return H5E_TST_g$constants.LAYOUT; - } + public static OfLong H5E_TST_g$layout() { return H5E_TST_g$constants.LAYOUT; } /** * Segment for variable: @@ -19338,9 +17649,7 @@ private static class H5E_TST_g$constants { * extern hid_t H5E_TST_g * } */ - public static MemorySegment H5E_TST_g$segment() { - return H5E_TST_g$constants.SEGMENT; - } + public static MemorySegment H5E_TST_g$segment() { return H5E_TST_g$constants.SEGMENT; } /** * Getter for variable: @@ -19348,9 +17657,7 @@ private static class H5E_TST_g$constants { * extern hid_t H5E_TST_g * } */ - public static long H5E_TST_g() { - return H5E_TST_g$constants.SEGMENT.get(H5E_TST_g$constants.LAYOUT, 0L); - } + public static long H5E_TST_g() { return H5E_TST_g$constants.SEGMENT.get(H5E_TST_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -19358,13 +17665,15 @@ public static long H5E_TST_g() { * extern hid_t H5E_TST_g * } */ - public static void H5E_TST_g(long varValue) { + public static void H5E_TST_g(long varValue) + { H5E_TST_g$constants.SEGMENT.set(H5E_TST_g$constants.LAYOUT, 0L, varValue); } private static class H5E_VFL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_VFL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_VFL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19373,9 +17682,7 @@ private static class H5E_VFL_g$constants { * extern hid_t H5E_VFL_g * } */ - public static OfLong H5E_VFL_g$layout() { - return H5E_VFL_g$constants.LAYOUT; - } + public static OfLong H5E_VFL_g$layout() { return H5E_VFL_g$constants.LAYOUT; } /** * Segment for variable: @@ -19383,9 +17690,7 @@ private static class H5E_VFL_g$constants { * extern hid_t H5E_VFL_g * } */ - public static MemorySegment H5E_VFL_g$segment() { - return H5E_VFL_g$constants.SEGMENT; - } + public static MemorySegment H5E_VFL_g$segment() { return H5E_VFL_g$constants.SEGMENT; } /** * Getter for variable: @@ -19393,9 +17698,7 @@ private static class H5E_VFL_g$constants { * extern hid_t H5E_VFL_g * } */ - public static long H5E_VFL_g() { - return H5E_VFL_g$constants.SEGMENT.get(H5E_VFL_g$constants.LAYOUT, 0L); - } + public static long H5E_VFL_g() { return H5E_VFL_g$constants.SEGMENT.get(H5E_VFL_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -19403,13 +17706,15 @@ public static long H5E_VFL_g() { * extern hid_t H5E_VFL_g * } */ - public static void H5E_VFL_g(long varValue) { + public static void H5E_VFL_g(long varValue) + { H5E_VFL_g$constants.SEGMENT.set(H5E_VFL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_VOL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_VOL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_VOL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19418,9 +17723,7 @@ private static class H5E_VOL_g$constants { * extern hid_t H5E_VOL_g * } */ - public static OfLong H5E_VOL_g$layout() { - return H5E_VOL_g$constants.LAYOUT; - } + public static OfLong H5E_VOL_g$layout() { return H5E_VOL_g$constants.LAYOUT; } /** * Segment for variable: @@ -19428,9 +17731,7 @@ private static class H5E_VOL_g$constants { * extern hid_t H5E_VOL_g * } */ - public static MemorySegment H5E_VOL_g$segment() { - return H5E_VOL_g$constants.SEGMENT; - } + public static MemorySegment H5E_VOL_g$segment() { return H5E_VOL_g$constants.SEGMENT; } /** * Getter for variable: @@ -19438,9 +17739,7 @@ private static class H5E_VOL_g$constants { * extern hid_t H5E_VOL_g * } */ - public static long H5E_VOL_g() { - return H5E_VOL_g$constants.SEGMENT.get(H5E_VOL_g$constants.LAYOUT, 0L); - } + public static long H5E_VOL_g() { return H5E_VOL_g$constants.SEGMENT.get(H5E_VOL_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -19448,13 +17747,15 @@ public static long H5E_VOL_g() { * extern hid_t H5E_VOL_g * } */ - public static void H5E_VOL_g(long varValue) { + public static void H5E_VOL_g(long varValue) + { H5E_VOL_g$constants.SEGMENT.set(H5E_VOL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADRANGE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADRANGE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADRANGE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19463,9 +17764,7 @@ private static class H5E_BADRANGE_g$constants { * extern hid_t H5E_BADRANGE_g * } */ - public static OfLong H5E_BADRANGE_g$layout() { - return H5E_BADRANGE_g$constants.LAYOUT; - } + public static OfLong H5E_BADRANGE_g$layout() { return H5E_BADRANGE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19473,9 +17772,7 @@ private static class H5E_BADRANGE_g$constants { * extern hid_t H5E_BADRANGE_g * } */ - public static MemorySegment H5E_BADRANGE_g$segment() { - return H5E_BADRANGE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADRANGE_g$segment() { return H5E_BADRANGE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19483,7 +17780,8 @@ private static class H5E_BADRANGE_g$constants { * extern hid_t H5E_BADRANGE_g * } */ - public static long H5E_BADRANGE_g() { + public static long H5E_BADRANGE_g() + { return H5E_BADRANGE_g$constants.SEGMENT.get(H5E_BADRANGE_g$constants.LAYOUT, 0L); } @@ -19493,13 +17791,15 @@ public static long H5E_BADRANGE_g() { * extern hid_t H5E_BADRANGE_g * } */ - public static void H5E_BADRANGE_g(long varValue) { + public static void H5E_BADRANGE_g(long varValue) + { H5E_BADRANGE_g$constants.SEGMENT.set(H5E_BADRANGE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADTYPE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADTYPE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADTYPE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19508,9 +17808,7 @@ private static class H5E_BADTYPE_g$constants { * extern hid_t H5E_BADTYPE_g * } */ - public static OfLong H5E_BADTYPE_g$layout() { - return H5E_BADTYPE_g$constants.LAYOUT; - } + public static OfLong H5E_BADTYPE_g$layout() { return H5E_BADTYPE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19518,9 +17816,7 @@ private static class H5E_BADTYPE_g$constants { * extern hid_t H5E_BADTYPE_g * } */ - public static MemorySegment H5E_BADTYPE_g$segment() { - return H5E_BADTYPE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADTYPE_g$segment() { return H5E_BADTYPE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19528,7 +17824,8 @@ private static class H5E_BADTYPE_g$constants { * extern hid_t H5E_BADTYPE_g * } */ - public static long H5E_BADTYPE_g() { + public static long H5E_BADTYPE_g() + { return H5E_BADTYPE_g$constants.SEGMENT.get(H5E_BADTYPE_g$constants.LAYOUT, 0L); } @@ -19538,13 +17835,15 @@ public static long H5E_BADTYPE_g() { * extern hid_t H5E_BADTYPE_g * } */ - public static void H5E_BADTYPE_g(long varValue) { + public static void H5E_BADTYPE_g(long varValue) + { H5E_BADTYPE_g$constants.SEGMENT.set(H5E_BADTYPE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADVALUE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADVALUE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADVALUE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19553,9 +17852,7 @@ private static class H5E_BADVALUE_g$constants { * extern hid_t H5E_BADVALUE_g * } */ - public static OfLong H5E_BADVALUE_g$layout() { - return H5E_BADVALUE_g$constants.LAYOUT; - } + public static OfLong H5E_BADVALUE_g$layout() { return H5E_BADVALUE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19563,9 +17860,7 @@ private static class H5E_BADVALUE_g$constants { * extern hid_t H5E_BADVALUE_g * } */ - public static MemorySegment H5E_BADVALUE_g$segment() { - return H5E_BADVALUE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADVALUE_g$segment() { return H5E_BADVALUE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19573,7 +17868,8 @@ private static class H5E_BADVALUE_g$constants { * extern hid_t H5E_BADVALUE_g * } */ - public static long H5E_BADVALUE_g() { + public static long H5E_BADVALUE_g() + { return H5E_BADVALUE_g$constants.SEGMENT.get(H5E_BADVALUE_g$constants.LAYOUT, 0L); } @@ -19583,13 +17879,15 @@ public static long H5E_BADVALUE_g() { * extern hid_t H5E_BADVALUE_g * } */ - public static void H5E_BADVALUE_g(long varValue) { + public static void H5E_BADVALUE_g(long varValue) + { H5E_BADVALUE_g$constants.SEGMENT.set(H5E_BADVALUE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_UNINITIALIZED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_UNINITIALIZED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_UNINITIALIZED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19598,9 +17896,7 @@ private static class H5E_UNINITIALIZED_g$constants { * extern hid_t H5E_UNINITIALIZED_g * } */ - public static OfLong H5E_UNINITIALIZED_g$layout() { - return H5E_UNINITIALIZED_g$constants.LAYOUT; - } + public static OfLong H5E_UNINITIALIZED_g$layout() { return H5E_UNINITIALIZED_g$constants.LAYOUT; } /** * Segment for variable: @@ -19608,7 +17904,8 @@ private static class H5E_UNINITIALIZED_g$constants { * extern hid_t H5E_UNINITIALIZED_g * } */ - public static MemorySegment H5E_UNINITIALIZED_g$segment() { + public static MemorySegment H5E_UNINITIALIZED_g$segment() + { return H5E_UNINITIALIZED_g$constants.SEGMENT; } @@ -19618,7 +17915,8 @@ private static class H5E_UNINITIALIZED_g$constants { * extern hid_t H5E_UNINITIALIZED_g * } */ - public static long H5E_UNINITIALIZED_g() { + public static long H5E_UNINITIALIZED_g() + { return H5E_UNINITIALIZED_g$constants.SEGMENT.get(H5E_UNINITIALIZED_g$constants.LAYOUT, 0L); } @@ -19628,13 +17926,15 @@ public static long H5E_UNINITIALIZED_g() { * extern hid_t H5E_UNINITIALIZED_g * } */ - public static void H5E_UNINITIALIZED_g(long varValue) { + public static void H5E_UNINITIALIZED_g(long varValue) + { H5E_UNINITIALIZED_g$constants.SEGMENT.set(H5E_UNINITIALIZED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_UNSUPPORTED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_UNSUPPORTED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_UNSUPPORTED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19643,9 +17943,7 @@ private static class H5E_UNSUPPORTED_g$constants { * extern hid_t H5E_UNSUPPORTED_g * } */ - public static OfLong H5E_UNSUPPORTED_g$layout() { - return H5E_UNSUPPORTED_g$constants.LAYOUT; - } + public static OfLong H5E_UNSUPPORTED_g$layout() { return H5E_UNSUPPORTED_g$constants.LAYOUT; } /** * Segment for variable: @@ -19653,9 +17951,7 @@ private static class H5E_UNSUPPORTED_g$constants { * extern hid_t H5E_UNSUPPORTED_g * } */ - public static MemorySegment H5E_UNSUPPORTED_g$segment() { - return H5E_UNSUPPORTED_g$constants.SEGMENT; - } + public static MemorySegment H5E_UNSUPPORTED_g$segment() { return H5E_UNSUPPORTED_g$constants.SEGMENT; } /** * Getter for variable: @@ -19663,7 +17959,8 @@ private static class H5E_UNSUPPORTED_g$constants { * extern hid_t H5E_UNSUPPORTED_g * } */ - public static long H5E_UNSUPPORTED_g() { + public static long H5E_UNSUPPORTED_g() + { return H5E_UNSUPPORTED_g$constants.SEGMENT.get(H5E_UNSUPPORTED_g$constants.LAYOUT, 0L); } @@ -19673,13 +17970,15 @@ public static long H5E_UNSUPPORTED_g() { * extern hid_t H5E_UNSUPPORTED_g * } */ - public static void H5E_UNSUPPORTED_g(long varValue) { + public static void H5E_UNSUPPORTED_g(long varValue) + { H5E_UNSUPPORTED_g$constants.SEGMENT.set(H5E_UNSUPPORTED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCANCEL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCANCEL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCANCEL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19688,9 +17987,7 @@ private static class H5E_CANTCANCEL_g$constants { * extern hid_t H5E_CANTCANCEL_g * } */ - public static OfLong H5E_CANTCANCEL_g$layout() { - return H5E_CANTCANCEL_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCANCEL_g$layout() { return H5E_CANTCANCEL_g$constants.LAYOUT; } /** * Segment for variable: @@ -19698,9 +17995,7 @@ private static class H5E_CANTCANCEL_g$constants { * extern hid_t H5E_CANTCANCEL_g * } */ - public static MemorySegment H5E_CANTCANCEL_g$segment() { - return H5E_CANTCANCEL_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCANCEL_g$segment() { return H5E_CANTCANCEL_g$constants.SEGMENT; } /** * Getter for variable: @@ -19708,7 +18003,8 @@ private static class H5E_CANTCANCEL_g$constants { * extern hid_t H5E_CANTCANCEL_g * } */ - public static long H5E_CANTCANCEL_g() { + public static long H5E_CANTCANCEL_g() + { return H5E_CANTCANCEL_g$constants.SEGMENT.get(H5E_CANTCANCEL_g$constants.LAYOUT, 0L); } @@ -19718,13 +18014,15 @@ public static long H5E_CANTCANCEL_g() { * extern hid_t H5E_CANTCANCEL_g * } */ - public static void H5E_CANTCANCEL_g(long varValue) { + public static void H5E_CANTCANCEL_g(long varValue) + { H5E_CANTCANCEL_g$constants.SEGMENT.set(H5E_CANTCANCEL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTWAIT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTWAIT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTWAIT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19733,9 +18031,7 @@ private static class H5E_CANTWAIT_g$constants { * extern hid_t H5E_CANTWAIT_g * } */ - public static OfLong H5E_CANTWAIT_g$layout() { - return H5E_CANTWAIT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTWAIT_g$layout() { return H5E_CANTWAIT_g$constants.LAYOUT; } /** * Segment for variable: @@ -19743,9 +18039,7 @@ private static class H5E_CANTWAIT_g$constants { * extern hid_t H5E_CANTWAIT_g * } */ - public static MemorySegment H5E_CANTWAIT_g$segment() { - return H5E_CANTWAIT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTWAIT_g$segment() { return H5E_CANTWAIT_g$constants.SEGMENT; } /** * Getter for variable: @@ -19753,7 +18047,8 @@ private static class H5E_CANTWAIT_g$constants { * extern hid_t H5E_CANTWAIT_g * } */ - public static long H5E_CANTWAIT_g() { + public static long H5E_CANTWAIT_g() + { return H5E_CANTWAIT_g$constants.SEGMENT.get(H5E_CANTWAIT_g$constants.LAYOUT, 0L); } @@ -19763,13 +18058,15 @@ public static long H5E_CANTWAIT_g() { * extern hid_t H5E_CANTWAIT_g * } */ - public static void H5E_CANTWAIT_g(long varValue) { + public static void H5E_CANTWAIT_g(long varValue) + { H5E_CANTWAIT_g$constants.SEGMENT.set(H5E_CANTWAIT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDECODE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDECODE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDECODE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19778,9 +18075,7 @@ private static class H5E_CANTDECODE_g$constants { * extern hid_t H5E_CANTDECODE_g * } */ - public static OfLong H5E_CANTDECODE_g$layout() { - return H5E_CANTDECODE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDECODE_g$layout() { return H5E_CANTDECODE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19788,9 +18083,7 @@ private static class H5E_CANTDECODE_g$constants { * extern hid_t H5E_CANTDECODE_g * } */ - public static MemorySegment H5E_CANTDECODE_g$segment() { - return H5E_CANTDECODE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTDECODE_g$segment() { return H5E_CANTDECODE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19798,7 +18091,8 @@ private static class H5E_CANTDECODE_g$constants { * extern hid_t H5E_CANTDECODE_g * } */ - public static long H5E_CANTDECODE_g() { + public static long H5E_CANTDECODE_g() + { return H5E_CANTDECODE_g$constants.SEGMENT.get(H5E_CANTDECODE_g$constants.LAYOUT, 0L); } @@ -19808,13 +18102,15 @@ public static long H5E_CANTDECODE_g() { * extern hid_t H5E_CANTDECODE_g * } */ - public static void H5E_CANTDECODE_g(long varValue) { + public static void H5E_CANTDECODE_g(long varValue) + { H5E_CANTDECODE_g$constants.SEGMENT.set(H5E_CANTDECODE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTENCODE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTENCODE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTENCODE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19823,9 +18119,7 @@ private static class H5E_CANTENCODE_g$constants { * extern hid_t H5E_CANTENCODE_g * } */ - public static OfLong H5E_CANTENCODE_g$layout() { - return H5E_CANTENCODE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTENCODE_g$layout() { return H5E_CANTENCODE_g$constants.LAYOUT; } /** * Segment for variable: @@ -19833,9 +18127,7 @@ private static class H5E_CANTENCODE_g$constants { * extern hid_t H5E_CANTENCODE_g * } */ - public static MemorySegment H5E_CANTENCODE_g$segment() { - return H5E_CANTENCODE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTENCODE_g$segment() { return H5E_CANTENCODE_g$constants.SEGMENT; } /** * Getter for variable: @@ -19843,7 +18135,8 @@ private static class H5E_CANTENCODE_g$constants { * extern hid_t H5E_CANTENCODE_g * } */ - public static long H5E_CANTENCODE_g() { + public static long H5E_CANTENCODE_g() + { return H5E_CANTENCODE_g$constants.SEGMENT.get(H5E_CANTENCODE_g$constants.LAYOUT, 0L); } @@ -19853,13 +18146,15 @@ public static long H5E_CANTENCODE_g() { * extern hid_t H5E_CANTENCODE_g * } */ - public static void H5E_CANTENCODE_g(long varValue) { + public static void H5E_CANTENCODE_g(long varValue) + { H5E_CANTENCODE_g$constants.SEGMENT.set(H5E_CANTENCODE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTFIND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTFIND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTFIND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19868,9 +18163,7 @@ private static class H5E_CANTFIND_g$constants { * extern hid_t H5E_CANTFIND_g * } */ - public static OfLong H5E_CANTFIND_g$layout() { - return H5E_CANTFIND_g$constants.LAYOUT; - } + public static OfLong H5E_CANTFIND_g$layout() { return H5E_CANTFIND_g$constants.LAYOUT; } /** * Segment for variable: @@ -19878,9 +18171,7 @@ private static class H5E_CANTFIND_g$constants { * extern hid_t H5E_CANTFIND_g * } */ - public static MemorySegment H5E_CANTFIND_g$segment() { - return H5E_CANTFIND_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTFIND_g$segment() { return H5E_CANTFIND_g$constants.SEGMENT; } /** * Getter for variable: @@ -19888,7 +18179,8 @@ private static class H5E_CANTFIND_g$constants { * extern hid_t H5E_CANTFIND_g * } */ - public static long H5E_CANTFIND_g() { + public static long H5E_CANTFIND_g() + { return H5E_CANTFIND_g$constants.SEGMENT.get(H5E_CANTFIND_g$constants.LAYOUT, 0L); } @@ -19898,13 +18190,15 @@ public static long H5E_CANTFIND_g() { * extern hid_t H5E_CANTFIND_g * } */ - public static void H5E_CANTFIND_g(long varValue) { + public static void H5E_CANTFIND_g(long varValue) + { H5E_CANTFIND_g$constants.SEGMENT.set(H5E_CANTFIND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTINSERT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTINSERT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTINSERT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19913,9 +18207,7 @@ private static class H5E_CANTINSERT_g$constants { * extern hid_t H5E_CANTINSERT_g * } */ - public static OfLong H5E_CANTINSERT_g$layout() { - return H5E_CANTINSERT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTINSERT_g$layout() { return H5E_CANTINSERT_g$constants.LAYOUT; } /** * Segment for variable: @@ -19923,9 +18215,7 @@ private static class H5E_CANTINSERT_g$constants { * extern hid_t H5E_CANTINSERT_g * } */ - public static MemorySegment H5E_CANTINSERT_g$segment() { - return H5E_CANTINSERT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTINSERT_g$segment() { return H5E_CANTINSERT_g$constants.SEGMENT; } /** * Getter for variable: @@ -19933,7 +18223,8 @@ private static class H5E_CANTINSERT_g$constants { * extern hid_t H5E_CANTINSERT_g * } */ - public static long H5E_CANTINSERT_g() { + public static long H5E_CANTINSERT_g() + { return H5E_CANTINSERT_g$constants.SEGMENT.get(H5E_CANTINSERT_g$constants.LAYOUT, 0L); } @@ -19943,13 +18234,15 @@ public static long H5E_CANTINSERT_g() { * extern hid_t H5E_CANTINSERT_g * } */ - public static void H5E_CANTINSERT_g(long varValue) { + public static void H5E_CANTINSERT_g(long varValue) + { H5E_CANTINSERT_g$constants.SEGMENT.set(H5E_CANTINSERT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTLIST_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTLIST_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTLIST_g").reinterpret(LAYOUT.byteSize()); } /** @@ -19958,9 +18251,7 @@ private static class H5E_CANTLIST_g$constants { * extern hid_t H5E_CANTLIST_g * } */ - public static OfLong H5E_CANTLIST_g$layout() { - return H5E_CANTLIST_g$constants.LAYOUT; - } + public static OfLong H5E_CANTLIST_g$layout() { return H5E_CANTLIST_g$constants.LAYOUT; } /** * Segment for variable: @@ -19968,9 +18259,7 @@ private static class H5E_CANTLIST_g$constants { * extern hid_t H5E_CANTLIST_g * } */ - public static MemorySegment H5E_CANTLIST_g$segment() { - return H5E_CANTLIST_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTLIST_g$segment() { return H5E_CANTLIST_g$constants.SEGMENT; } /** * Getter for variable: @@ -19978,7 +18267,8 @@ private static class H5E_CANTLIST_g$constants { * extern hid_t H5E_CANTLIST_g * } */ - public static long H5E_CANTLIST_g() { + public static long H5E_CANTLIST_g() + { return H5E_CANTLIST_g$constants.SEGMENT.get(H5E_CANTLIST_g$constants.LAYOUT, 0L); } @@ -19988,13 +18278,15 @@ public static long H5E_CANTLIST_g() { * extern hid_t H5E_CANTLIST_g * } */ - public static void H5E_CANTLIST_g(long varValue) { + public static void H5E_CANTLIST_g(long varValue) + { H5E_CANTLIST_g$constants.SEGMENT.set(H5E_CANTLIST_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMODIFY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMODIFY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMODIFY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20003,9 +18295,7 @@ private static class H5E_CANTMODIFY_g$constants { * extern hid_t H5E_CANTMODIFY_g * } */ - public static OfLong H5E_CANTMODIFY_g$layout() { - return H5E_CANTMODIFY_g$constants.LAYOUT; - } + public static OfLong H5E_CANTMODIFY_g$layout() { return H5E_CANTMODIFY_g$constants.LAYOUT; } /** * Segment for variable: @@ -20013,9 +18303,7 @@ private static class H5E_CANTMODIFY_g$constants { * extern hid_t H5E_CANTMODIFY_g * } */ - public static MemorySegment H5E_CANTMODIFY_g$segment() { - return H5E_CANTMODIFY_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTMODIFY_g$segment() { return H5E_CANTMODIFY_g$constants.SEGMENT; } /** * Getter for variable: @@ -20023,7 +18311,8 @@ private static class H5E_CANTMODIFY_g$constants { * extern hid_t H5E_CANTMODIFY_g * } */ - public static long H5E_CANTMODIFY_g() { + public static long H5E_CANTMODIFY_g() + { return H5E_CANTMODIFY_g$constants.SEGMENT.get(H5E_CANTMODIFY_g$constants.LAYOUT, 0L); } @@ -20033,13 +18322,15 @@ public static long H5E_CANTMODIFY_g() { * extern hid_t H5E_CANTMODIFY_g * } */ - public static void H5E_CANTMODIFY_g(long varValue) { + public static void H5E_CANTMODIFY_g(long varValue) + { H5E_CANTMODIFY_g$constants.SEGMENT.set(H5E_CANTMODIFY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTREDISTRIBUTE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTREDISTRIBUTE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTREDISTRIBUTE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20048,9 +18339,7 @@ private static class H5E_CANTREDISTRIBUTE_g$constants { * extern hid_t H5E_CANTREDISTRIBUTE_g * } */ - public static OfLong H5E_CANTREDISTRIBUTE_g$layout() { - return H5E_CANTREDISTRIBUTE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTREDISTRIBUTE_g$layout() { return H5E_CANTREDISTRIBUTE_g$constants.LAYOUT; } /** * Segment for variable: @@ -20058,7 +18347,8 @@ private static class H5E_CANTREDISTRIBUTE_g$constants { * extern hid_t H5E_CANTREDISTRIBUTE_g * } */ - public static MemorySegment H5E_CANTREDISTRIBUTE_g$segment() { + public static MemorySegment H5E_CANTREDISTRIBUTE_g$segment() + { return H5E_CANTREDISTRIBUTE_g$constants.SEGMENT; } @@ -20068,7 +18358,8 @@ private static class H5E_CANTREDISTRIBUTE_g$constants { * extern hid_t H5E_CANTREDISTRIBUTE_g * } */ - public static long H5E_CANTREDISTRIBUTE_g() { + public static long H5E_CANTREDISTRIBUTE_g() + { return H5E_CANTREDISTRIBUTE_g$constants.SEGMENT.get(H5E_CANTREDISTRIBUTE_g$constants.LAYOUT, 0L); } @@ -20078,13 +18369,15 @@ public static long H5E_CANTREDISTRIBUTE_g() { * extern hid_t H5E_CANTREDISTRIBUTE_g * } */ - public static void H5E_CANTREDISTRIBUTE_g(long varValue) { + public static void H5E_CANTREDISTRIBUTE_g(long varValue) + { H5E_CANTREDISTRIBUTE_g$constants.SEGMENT.set(H5E_CANTREDISTRIBUTE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTREMOVE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTREMOVE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTREMOVE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20093,9 +18386,7 @@ private static class H5E_CANTREMOVE_g$constants { * extern hid_t H5E_CANTREMOVE_g * } */ - public static OfLong H5E_CANTREMOVE_g$layout() { - return H5E_CANTREMOVE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTREMOVE_g$layout() { return H5E_CANTREMOVE_g$constants.LAYOUT; } /** * Segment for variable: @@ -20103,9 +18394,7 @@ private static class H5E_CANTREMOVE_g$constants { * extern hid_t H5E_CANTREMOVE_g * } */ - public static MemorySegment H5E_CANTREMOVE_g$segment() { - return H5E_CANTREMOVE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTREMOVE_g$segment() { return H5E_CANTREMOVE_g$constants.SEGMENT; } /** * Getter for variable: @@ -20113,7 +18402,8 @@ private static class H5E_CANTREMOVE_g$constants { * extern hid_t H5E_CANTREMOVE_g * } */ - public static long H5E_CANTREMOVE_g() { + public static long H5E_CANTREMOVE_g() + { return H5E_CANTREMOVE_g$constants.SEGMENT.get(H5E_CANTREMOVE_g$constants.LAYOUT, 0L); } @@ -20123,13 +18413,15 @@ public static long H5E_CANTREMOVE_g() { * extern hid_t H5E_CANTREMOVE_g * } */ - public static void H5E_CANTREMOVE_g(long varValue) { + public static void H5E_CANTREMOVE_g(long varValue) + { H5E_CANTREMOVE_g$constants.SEGMENT.set(H5E_CANTREMOVE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSPLIT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSPLIT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSPLIT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20138,9 +18430,7 @@ private static class H5E_CANTSPLIT_g$constants { * extern hid_t H5E_CANTSPLIT_g * } */ - public static OfLong H5E_CANTSPLIT_g$layout() { - return H5E_CANTSPLIT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSPLIT_g$layout() { return H5E_CANTSPLIT_g$constants.LAYOUT; } /** * Segment for variable: @@ -20148,9 +18438,7 @@ private static class H5E_CANTSPLIT_g$constants { * extern hid_t H5E_CANTSPLIT_g * } */ - public static MemorySegment H5E_CANTSPLIT_g$segment() { - return H5E_CANTSPLIT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSPLIT_g$segment() { return H5E_CANTSPLIT_g$constants.SEGMENT; } /** * Getter for variable: @@ -20158,7 +18446,8 @@ private static class H5E_CANTSPLIT_g$constants { * extern hid_t H5E_CANTSPLIT_g * } */ - public static long H5E_CANTSPLIT_g() { + public static long H5E_CANTSPLIT_g() + { return H5E_CANTSPLIT_g$constants.SEGMENT.get(H5E_CANTSPLIT_g$constants.LAYOUT, 0L); } @@ -20168,13 +18457,15 @@ public static long H5E_CANTSPLIT_g() { * extern hid_t H5E_CANTSPLIT_g * } */ - public static void H5E_CANTSPLIT_g(long varValue) { + public static void H5E_CANTSPLIT_g(long varValue) + { H5E_CANTSPLIT_g$constants.SEGMENT.set(H5E_CANTSPLIT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSWAP_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSWAP_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSWAP_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20183,9 +18474,7 @@ private static class H5E_CANTSWAP_g$constants { * extern hid_t H5E_CANTSWAP_g * } */ - public static OfLong H5E_CANTSWAP_g$layout() { - return H5E_CANTSWAP_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSWAP_g$layout() { return H5E_CANTSWAP_g$constants.LAYOUT; } /** * Segment for variable: @@ -20193,9 +18482,7 @@ private static class H5E_CANTSWAP_g$constants { * extern hid_t H5E_CANTSWAP_g * } */ - public static MemorySegment H5E_CANTSWAP_g$segment() { - return H5E_CANTSWAP_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSWAP_g$segment() { return H5E_CANTSWAP_g$constants.SEGMENT; } /** * Getter for variable: @@ -20203,7 +18490,8 @@ private static class H5E_CANTSWAP_g$constants { * extern hid_t H5E_CANTSWAP_g * } */ - public static long H5E_CANTSWAP_g() { + public static long H5E_CANTSWAP_g() + { return H5E_CANTSWAP_g$constants.SEGMENT.get(H5E_CANTSWAP_g$constants.LAYOUT, 0L); } @@ -20213,13 +18501,15 @@ public static long H5E_CANTSWAP_g() { * extern hid_t H5E_CANTSWAP_g * } */ - public static void H5E_CANTSWAP_g(long varValue) { + public static void H5E_CANTSWAP_g(long varValue) + { H5E_CANTSWAP_g$constants.SEGMENT.set(H5E_CANTSWAP_g$constants.LAYOUT, 0L, varValue); } private static class H5E_EXISTS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_EXISTS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_EXISTS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20228,9 +18518,7 @@ private static class H5E_EXISTS_g$constants { * extern hid_t H5E_EXISTS_g * } */ - public static OfLong H5E_EXISTS_g$layout() { - return H5E_EXISTS_g$constants.LAYOUT; - } + public static OfLong H5E_EXISTS_g$layout() { return H5E_EXISTS_g$constants.LAYOUT; } /** * Segment for variable: @@ -20238,9 +18526,7 @@ private static class H5E_EXISTS_g$constants { * extern hid_t H5E_EXISTS_g * } */ - public static MemorySegment H5E_EXISTS_g$segment() { - return H5E_EXISTS_g$constants.SEGMENT; - } + public static MemorySegment H5E_EXISTS_g$segment() { return H5E_EXISTS_g$constants.SEGMENT; } /** * Getter for variable: @@ -20248,7 +18534,8 @@ private static class H5E_EXISTS_g$constants { * extern hid_t H5E_EXISTS_g * } */ - public static long H5E_EXISTS_g() { + public static long H5E_EXISTS_g() + { return H5E_EXISTS_g$constants.SEGMENT.get(H5E_EXISTS_g$constants.LAYOUT, 0L); } @@ -20258,13 +18545,15 @@ public static long H5E_EXISTS_g() { * extern hid_t H5E_EXISTS_g * } */ - public static void H5E_EXISTS_g(long varValue) { + public static void H5E_EXISTS_g(long varValue) + { H5E_EXISTS_g$constants.SEGMENT.set(H5E_EXISTS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOTFOUND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOTFOUND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOTFOUND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20273,9 +18562,7 @@ private static class H5E_NOTFOUND_g$constants { * extern hid_t H5E_NOTFOUND_g * } */ - public static OfLong H5E_NOTFOUND_g$layout() { - return H5E_NOTFOUND_g$constants.LAYOUT; - } + public static OfLong H5E_NOTFOUND_g$layout() { return H5E_NOTFOUND_g$constants.LAYOUT; } /** * Segment for variable: @@ -20283,9 +18570,7 @@ private static class H5E_NOTFOUND_g$constants { * extern hid_t H5E_NOTFOUND_g * } */ - public static MemorySegment H5E_NOTFOUND_g$segment() { - return H5E_NOTFOUND_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOTFOUND_g$segment() { return H5E_NOTFOUND_g$constants.SEGMENT; } /** * Getter for variable: @@ -20293,7 +18578,8 @@ private static class H5E_NOTFOUND_g$constants { * extern hid_t H5E_NOTFOUND_g * } */ - public static long H5E_NOTFOUND_g() { + public static long H5E_NOTFOUND_g() + { return H5E_NOTFOUND_g$constants.SEGMENT.get(H5E_NOTFOUND_g$constants.LAYOUT, 0L); } @@ -20303,13 +18589,15 @@ public static long H5E_NOTFOUND_g() { * extern hid_t H5E_NOTFOUND_g * } */ - public static void H5E_NOTFOUND_g(long varValue) { + public static void H5E_NOTFOUND_g(long varValue) + { H5E_NOTFOUND_g$constants.SEGMENT.set(H5E_NOTFOUND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCLEAN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCLEAN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCLEAN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20318,9 +18606,7 @@ private static class H5E_CANTCLEAN_g$constants { * extern hid_t H5E_CANTCLEAN_g * } */ - public static OfLong H5E_CANTCLEAN_g$layout() { - return H5E_CANTCLEAN_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCLEAN_g$layout() { return H5E_CANTCLEAN_g$constants.LAYOUT; } /** * Segment for variable: @@ -20328,9 +18614,7 @@ private static class H5E_CANTCLEAN_g$constants { * extern hid_t H5E_CANTCLEAN_g * } */ - public static MemorySegment H5E_CANTCLEAN_g$segment() { - return H5E_CANTCLEAN_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCLEAN_g$segment() { return H5E_CANTCLEAN_g$constants.SEGMENT; } /** * Getter for variable: @@ -20338,7 +18622,8 @@ private static class H5E_CANTCLEAN_g$constants { * extern hid_t H5E_CANTCLEAN_g * } */ - public static long H5E_CANTCLEAN_g() { + public static long H5E_CANTCLEAN_g() + { return H5E_CANTCLEAN_g$constants.SEGMENT.get(H5E_CANTCLEAN_g$constants.LAYOUT, 0L); } @@ -20348,13 +18633,15 @@ public static long H5E_CANTCLEAN_g() { * extern hid_t H5E_CANTCLEAN_g * } */ - public static void H5E_CANTCLEAN_g(long varValue) { + public static void H5E_CANTCLEAN_g(long varValue) + { H5E_CANTCLEAN_g$constants.SEGMENT.set(H5E_CANTCLEAN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCORK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCORK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCORK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20363,9 +18650,7 @@ private static class H5E_CANTCORK_g$constants { * extern hid_t H5E_CANTCORK_g * } */ - public static OfLong H5E_CANTCORK_g$layout() { - return H5E_CANTCORK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCORK_g$layout() { return H5E_CANTCORK_g$constants.LAYOUT; } /** * Segment for variable: @@ -20373,9 +18658,7 @@ private static class H5E_CANTCORK_g$constants { * extern hid_t H5E_CANTCORK_g * } */ - public static MemorySegment H5E_CANTCORK_g$segment() { - return H5E_CANTCORK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCORK_g$segment() { return H5E_CANTCORK_g$constants.SEGMENT; } /** * Getter for variable: @@ -20383,7 +18666,8 @@ private static class H5E_CANTCORK_g$constants { * extern hid_t H5E_CANTCORK_g * } */ - public static long H5E_CANTCORK_g() { + public static long H5E_CANTCORK_g() + { return H5E_CANTCORK_g$constants.SEGMENT.get(H5E_CANTCORK_g$constants.LAYOUT, 0L); } @@ -20393,13 +18677,15 @@ public static long H5E_CANTCORK_g() { * extern hid_t H5E_CANTCORK_g * } */ - public static void H5E_CANTCORK_g(long varValue) { + public static void H5E_CANTCORK_g(long varValue) + { H5E_CANTCORK_g$constants.SEGMENT.set(H5E_CANTCORK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDEPEND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDEPEND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDEPEND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20408,9 +18694,7 @@ private static class H5E_CANTDEPEND_g$constants { * extern hid_t H5E_CANTDEPEND_g * } */ - public static OfLong H5E_CANTDEPEND_g$layout() { - return H5E_CANTDEPEND_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDEPEND_g$layout() { return H5E_CANTDEPEND_g$constants.LAYOUT; } /** * Segment for variable: @@ -20418,9 +18702,7 @@ private static class H5E_CANTDEPEND_g$constants { * extern hid_t H5E_CANTDEPEND_g * } */ - public static MemorySegment H5E_CANTDEPEND_g$segment() { - return H5E_CANTDEPEND_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTDEPEND_g$segment() { return H5E_CANTDEPEND_g$constants.SEGMENT; } /** * Getter for variable: @@ -20428,7 +18710,8 @@ private static class H5E_CANTDEPEND_g$constants { * extern hid_t H5E_CANTDEPEND_g * } */ - public static long H5E_CANTDEPEND_g() { + public static long H5E_CANTDEPEND_g() + { return H5E_CANTDEPEND_g$constants.SEGMENT.get(H5E_CANTDEPEND_g$constants.LAYOUT, 0L); } @@ -20438,13 +18721,15 @@ public static long H5E_CANTDEPEND_g() { * extern hid_t H5E_CANTDEPEND_g * } */ - public static void H5E_CANTDEPEND_g(long varValue) { + public static void H5E_CANTDEPEND_g(long varValue) + { H5E_CANTDEPEND_g$constants.SEGMENT.set(H5E_CANTDEPEND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDIRTY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDIRTY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDIRTY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20453,9 +18738,7 @@ private static class H5E_CANTDIRTY_g$constants { * extern hid_t H5E_CANTDIRTY_g * } */ - public static OfLong H5E_CANTDIRTY_g$layout() { - return H5E_CANTDIRTY_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDIRTY_g$layout() { return H5E_CANTDIRTY_g$constants.LAYOUT; } /** * Segment for variable: @@ -20463,9 +18746,7 @@ private static class H5E_CANTDIRTY_g$constants { * extern hid_t H5E_CANTDIRTY_g * } */ - public static MemorySegment H5E_CANTDIRTY_g$segment() { - return H5E_CANTDIRTY_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTDIRTY_g$segment() { return H5E_CANTDIRTY_g$constants.SEGMENT; } /** * Getter for variable: @@ -20473,7 +18754,8 @@ private static class H5E_CANTDIRTY_g$constants { * extern hid_t H5E_CANTDIRTY_g * } */ - public static long H5E_CANTDIRTY_g() { + public static long H5E_CANTDIRTY_g() + { return H5E_CANTDIRTY_g$constants.SEGMENT.get(H5E_CANTDIRTY_g$constants.LAYOUT, 0L); } @@ -20483,13 +18765,15 @@ public static long H5E_CANTDIRTY_g() { * extern hid_t H5E_CANTDIRTY_g * } */ - public static void H5E_CANTDIRTY_g(long varValue) { + public static void H5E_CANTDIRTY_g(long varValue) + { H5E_CANTDIRTY_g$constants.SEGMENT.set(H5E_CANTDIRTY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTEXPUNGE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTEXPUNGE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTEXPUNGE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20498,9 +18782,7 @@ private static class H5E_CANTEXPUNGE_g$constants { * extern hid_t H5E_CANTEXPUNGE_g * } */ - public static OfLong H5E_CANTEXPUNGE_g$layout() { - return H5E_CANTEXPUNGE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTEXPUNGE_g$layout() { return H5E_CANTEXPUNGE_g$constants.LAYOUT; } /** * Segment for variable: @@ -20508,9 +18790,7 @@ private static class H5E_CANTEXPUNGE_g$constants { * extern hid_t H5E_CANTEXPUNGE_g * } */ - public static MemorySegment H5E_CANTEXPUNGE_g$segment() { - return H5E_CANTEXPUNGE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTEXPUNGE_g$segment() { return H5E_CANTEXPUNGE_g$constants.SEGMENT; } /** * Getter for variable: @@ -20518,7 +18798,8 @@ private static class H5E_CANTEXPUNGE_g$constants { * extern hid_t H5E_CANTEXPUNGE_g * } */ - public static long H5E_CANTEXPUNGE_g() { + public static long H5E_CANTEXPUNGE_g() + { return H5E_CANTEXPUNGE_g$constants.SEGMENT.get(H5E_CANTEXPUNGE_g$constants.LAYOUT, 0L); } @@ -20528,13 +18809,15 @@ public static long H5E_CANTEXPUNGE_g() { * extern hid_t H5E_CANTEXPUNGE_g * } */ - public static void H5E_CANTEXPUNGE_g(long varValue) { + public static void H5E_CANTEXPUNGE_g(long varValue) + { H5E_CANTEXPUNGE_g$constants.SEGMENT.set(H5E_CANTEXPUNGE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTFLUSH_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTFLUSH_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTFLUSH_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20543,9 +18826,7 @@ private static class H5E_CANTFLUSH_g$constants { * extern hid_t H5E_CANTFLUSH_g * } */ - public static OfLong H5E_CANTFLUSH_g$layout() { - return H5E_CANTFLUSH_g$constants.LAYOUT; - } + public static OfLong H5E_CANTFLUSH_g$layout() { return H5E_CANTFLUSH_g$constants.LAYOUT; } /** * Segment for variable: @@ -20553,9 +18834,7 @@ private static class H5E_CANTFLUSH_g$constants { * extern hid_t H5E_CANTFLUSH_g * } */ - public static MemorySegment H5E_CANTFLUSH_g$segment() { - return H5E_CANTFLUSH_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTFLUSH_g$segment() { return H5E_CANTFLUSH_g$constants.SEGMENT; } /** * Getter for variable: @@ -20563,7 +18842,8 @@ private static class H5E_CANTFLUSH_g$constants { * extern hid_t H5E_CANTFLUSH_g * } */ - public static long H5E_CANTFLUSH_g() { + public static long H5E_CANTFLUSH_g() + { return H5E_CANTFLUSH_g$constants.SEGMENT.get(H5E_CANTFLUSH_g$constants.LAYOUT, 0L); } @@ -20573,13 +18853,15 @@ public static long H5E_CANTFLUSH_g() { * extern hid_t H5E_CANTFLUSH_g * } */ - public static void H5E_CANTFLUSH_g(long varValue) { + public static void H5E_CANTFLUSH_g(long varValue) + { H5E_CANTFLUSH_g$constants.SEGMENT.set(H5E_CANTFLUSH_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTINS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTINS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTINS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20588,9 +18870,7 @@ private static class H5E_CANTINS_g$constants { * extern hid_t H5E_CANTINS_g * } */ - public static OfLong H5E_CANTINS_g$layout() { - return H5E_CANTINS_g$constants.LAYOUT; - } + public static OfLong H5E_CANTINS_g$layout() { return H5E_CANTINS_g$constants.LAYOUT; } /** * Segment for variable: @@ -20598,9 +18878,7 @@ private static class H5E_CANTINS_g$constants { * extern hid_t H5E_CANTINS_g * } */ - public static MemorySegment H5E_CANTINS_g$segment() { - return H5E_CANTINS_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTINS_g$segment() { return H5E_CANTINS_g$constants.SEGMENT; } /** * Getter for variable: @@ -20608,7 +18886,8 @@ private static class H5E_CANTINS_g$constants { * extern hid_t H5E_CANTINS_g * } */ - public static long H5E_CANTINS_g() { + public static long H5E_CANTINS_g() + { return H5E_CANTINS_g$constants.SEGMENT.get(H5E_CANTINS_g$constants.LAYOUT, 0L); } @@ -20618,13 +18897,15 @@ public static long H5E_CANTINS_g() { * extern hid_t H5E_CANTINS_g * } */ - public static void H5E_CANTINS_g(long varValue) { + public static void H5E_CANTINS_g(long varValue) + { H5E_CANTINS_g$constants.SEGMENT.set(H5E_CANTINS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTLOAD_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTLOAD_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTLOAD_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20633,9 +18914,7 @@ private static class H5E_CANTLOAD_g$constants { * extern hid_t H5E_CANTLOAD_g * } */ - public static OfLong H5E_CANTLOAD_g$layout() { - return H5E_CANTLOAD_g$constants.LAYOUT; - } + public static OfLong H5E_CANTLOAD_g$layout() { return H5E_CANTLOAD_g$constants.LAYOUT; } /** * Segment for variable: @@ -20643,9 +18922,7 @@ private static class H5E_CANTLOAD_g$constants { * extern hid_t H5E_CANTLOAD_g * } */ - public static MemorySegment H5E_CANTLOAD_g$segment() { - return H5E_CANTLOAD_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTLOAD_g$segment() { return H5E_CANTLOAD_g$constants.SEGMENT; } /** * Getter for variable: @@ -20653,7 +18930,8 @@ private static class H5E_CANTLOAD_g$constants { * extern hid_t H5E_CANTLOAD_g * } */ - public static long H5E_CANTLOAD_g() { + public static long H5E_CANTLOAD_g() + { return H5E_CANTLOAD_g$constants.SEGMENT.get(H5E_CANTLOAD_g$constants.LAYOUT, 0L); } @@ -20663,13 +18941,15 @@ public static long H5E_CANTLOAD_g() { * extern hid_t H5E_CANTLOAD_g * } */ - public static void H5E_CANTLOAD_g(long varValue) { + public static void H5E_CANTLOAD_g(long varValue) + { H5E_CANTLOAD_g$constants.SEGMENT.set(H5E_CANTLOAD_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMARKCLEAN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMARKCLEAN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMARKCLEAN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20678,9 +18958,7 @@ private static class H5E_CANTMARKCLEAN_g$constants { * extern hid_t H5E_CANTMARKCLEAN_g * } */ - public static OfLong H5E_CANTMARKCLEAN_g$layout() { - return H5E_CANTMARKCLEAN_g$constants.LAYOUT; - } + public static OfLong H5E_CANTMARKCLEAN_g$layout() { return H5E_CANTMARKCLEAN_g$constants.LAYOUT; } /** * Segment for variable: @@ -20688,7 +18966,8 @@ private static class H5E_CANTMARKCLEAN_g$constants { * extern hid_t H5E_CANTMARKCLEAN_g * } */ - public static MemorySegment H5E_CANTMARKCLEAN_g$segment() { + public static MemorySegment H5E_CANTMARKCLEAN_g$segment() + { return H5E_CANTMARKCLEAN_g$constants.SEGMENT; } @@ -20698,7 +18977,8 @@ private static class H5E_CANTMARKCLEAN_g$constants { * extern hid_t H5E_CANTMARKCLEAN_g * } */ - public static long H5E_CANTMARKCLEAN_g() { + public static long H5E_CANTMARKCLEAN_g() + { return H5E_CANTMARKCLEAN_g$constants.SEGMENT.get(H5E_CANTMARKCLEAN_g$constants.LAYOUT, 0L); } @@ -20708,13 +18988,15 @@ public static long H5E_CANTMARKCLEAN_g() { * extern hid_t H5E_CANTMARKCLEAN_g * } */ - public static void H5E_CANTMARKCLEAN_g(long varValue) { + public static void H5E_CANTMARKCLEAN_g(long varValue) + { H5E_CANTMARKCLEAN_g$constants.SEGMENT.set(H5E_CANTMARKCLEAN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMARKDIRTY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMARKDIRTY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMARKDIRTY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20723,9 +19005,7 @@ private static class H5E_CANTMARKDIRTY_g$constants { * extern hid_t H5E_CANTMARKDIRTY_g * } */ - public static OfLong H5E_CANTMARKDIRTY_g$layout() { - return H5E_CANTMARKDIRTY_g$constants.LAYOUT; - } + public static OfLong H5E_CANTMARKDIRTY_g$layout() { return H5E_CANTMARKDIRTY_g$constants.LAYOUT; } /** * Segment for variable: @@ -20733,7 +19013,8 @@ private static class H5E_CANTMARKDIRTY_g$constants { * extern hid_t H5E_CANTMARKDIRTY_g * } */ - public static MemorySegment H5E_CANTMARKDIRTY_g$segment() { + public static MemorySegment H5E_CANTMARKDIRTY_g$segment() + { return H5E_CANTMARKDIRTY_g$constants.SEGMENT; } @@ -20743,7 +19024,8 @@ private static class H5E_CANTMARKDIRTY_g$constants { * extern hid_t H5E_CANTMARKDIRTY_g * } */ - public static long H5E_CANTMARKDIRTY_g() { + public static long H5E_CANTMARKDIRTY_g() + { return H5E_CANTMARKDIRTY_g$constants.SEGMENT.get(H5E_CANTMARKDIRTY_g$constants.LAYOUT, 0L); } @@ -20753,13 +19035,15 @@ public static long H5E_CANTMARKDIRTY_g() { * extern hid_t H5E_CANTMARKDIRTY_g * } */ - public static void H5E_CANTMARKDIRTY_g(long varValue) { + public static void H5E_CANTMARKDIRTY_g(long varValue) + { H5E_CANTMARKDIRTY_g$constants.SEGMENT.set(H5E_CANTMARKDIRTY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMARKSERIALIZED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMARKSERIALIZED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMARKSERIALIZED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20768,7 +19052,8 @@ private static class H5E_CANTMARKSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKSERIALIZED_g * } */ - public static OfLong H5E_CANTMARKSERIALIZED_g$layout() { + public static OfLong H5E_CANTMARKSERIALIZED_g$layout() + { return H5E_CANTMARKSERIALIZED_g$constants.LAYOUT; } @@ -20778,7 +19063,8 @@ private static class H5E_CANTMARKSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKSERIALIZED_g * } */ - public static MemorySegment H5E_CANTMARKSERIALIZED_g$segment() { + public static MemorySegment H5E_CANTMARKSERIALIZED_g$segment() + { return H5E_CANTMARKSERIALIZED_g$constants.SEGMENT; } @@ -20788,7 +19074,8 @@ private static class H5E_CANTMARKSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKSERIALIZED_g * } */ - public static long H5E_CANTMARKSERIALIZED_g() { + public static long H5E_CANTMARKSERIALIZED_g() + { return H5E_CANTMARKSERIALIZED_g$constants.SEGMENT.get(H5E_CANTMARKSERIALIZED_g$constants.LAYOUT, 0L); } @@ -20798,13 +19085,16 @@ public static long H5E_CANTMARKSERIALIZED_g() { * extern hid_t H5E_CANTMARKSERIALIZED_g * } */ - public static void H5E_CANTMARKSERIALIZED_g(long varValue) { - H5E_CANTMARKSERIALIZED_g$constants.SEGMENT.set(H5E_CANTMARKSERIALIZED_g$constants.LAYOUT, 0L, varValue); + public static void H5E_CANTMARKSERIALIZED_g(long varValue) + { + H5E_CANTMARKSERIALIZED_g$constants.SEGMENT.set(H5E_CANTMARKSERIALIZED_g$constants.LAYOUT, 0L, + varValue); } private static class H5E_CANTMARKUNSERIALIZED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMARKUNSERIALIZED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMARKUNSERIALIZED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20813,7 +19103,8 @@ private static class H5E_CANTMARKUNSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKUNSERIALIZED_g * } */ - public static OfLong H5E_CANTMARKUNSERIALIZED_g$layout() { + public static OfLong H5E_CANTMARKUNSERIALIZED_g$layout() + { return H5E_CANTMARKUNSERIALIZED_g$constants.LAYOUT; } @@ -20823,7 +19114,8 @@ private static class H5E_CANTMARKUNSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKUNSERIALIZED_g * } */ - public static MemorySegment H5E_CANTMARKUNSERIALIZED_g$segment() { + public static MemorySegment H5E_CANTMARKUNSERIALIZED_g$segment() + { return H5E_CANTMARKUNSERIALIZED_g$constants.SEGMENT; } @@ -20833,8 +19125,10 @@ private static class H5E_CANTMARKUNSERIALIZED_g$constants { * extern hid_t H5E_CANTMARKUNSERIALIZED_g * } */ - public static long H5E_CANTMARKUNSERIALIZED_g() { - return H5E_CANTMARKUNSERIALIZED_g$constants.SEGMENT.get(H5E_CANTMARKUNSERIALIZED_g$constants.LAYOUT, 0L); + public static long H5E_CANTMARKUNSERIALIZED_g() + { + return H5E_CANTMARKUNSERIALIZED_g$constants.SEGMENT.get(H5E_CANTMARKUNSERIALIZED_g$constants.LAYOUT, + 0L); } /** @@ -20843,13 +19137,16 @@ public static long H5E_CANTMARKUNSERIALIZED_g() { * extern hid_t H5E_CANTMARKUNSERIALIZED_g * } */ - public static void H5E_CANTMARKUNSERIALIZED_g(long varValue) { - H5E_CANTMARKUNSERIALIZED_g$constants.SEGMENT.set(H5E_CANTMARKUNSERIALIZED_g$constants.LAYOUT, 0L, varValue); + public static void H5E_CANTMARKUNSERIALIZED_g(long varValue) + { + H5E_CANTMARKUNSERIALIZED_g$constants.SEGMENT.set(H5E_CANTMARKUNSERIALIZED_g$constants.LAYOUT, 0L, + varValue); } private static class H5E_CANTNOTIFY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTNOTIFY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTNOTIFY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20858,9 +19155,7 @@ private static class H5E_CANTNOTIFY_g$constants { * extern hid_t H5E_CANTNOTIFY_g * } */ - public static OfLong H5E_CANTNOTIFY_g$layout() { - return H5E_CANTNOTIFY_g$constants.LAYOUT; - } + public static OfLong H5E_CANTNOTIFY_g$layout() { return H5E_CANTNOTIFY_g$constants.LAYOUT; } /** * Segment for variable: @@ -20868,9 +19163,7 @@ private static class H5E_CANTNOTIFY_g$constants { * extern hid_t H5E_CANTNOTIFY_g * } */ - public static MemorySegment H5E_CANTNOTIFY_g$segment() { - return H5E_CANTNOTIFY_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTNOTIFY_g$segment() { return H5E_CANTNOTIFY_g$constants.SEGMENT; } /** * Getter for variable: @@ -20878,7 +19171,8 @@ private static class H5E_CANTNOTIFY_g$constants { * extern hid_t H5E_CANTNOTIFY_g * } */ - public static long H5E_CANTNOTIFY_g() { + public static long H5E_CANTNOTIFY_g() + { return H5E_CANTNOTIFY_g$constants.SEGMENT.get(H5E_CANTNOTIFY_g$constants.LAYOUT, 0L); } @@ -20888,13 +19182,15 @@ public static long H5E_CANTNOTIFY_g() { * extern hid_t H5E_CANTNOTIFY_g * } */ - public static void H5E_CANTNOTIFY_g(long varValue) { + public static void H5E_CANTNOTIFY_g(long varValue) + { H5E_CANTNOTIFY_g$constants.SEGMENT.set(H5E_CANTNOTIFY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTPIN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTPIN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTPIN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20903,9 +19199,7 @@ private static class H5E_CANTPIN_g$constants { * extern hid_t H5E_CANTPIN_g * } */ - public static OfLong H5E_CANTPIN_g$layout() { - return H5E_CANTPIN_g$constants.LAYOUT; - } + public static OfLong H5E_CANTPIN_g$layout() { return H5E_CANTPIN_g$constants.LAYOUT; } /** * Segment for variable: @@ -20913,9 +19207,7 @@ private static class H5E_CANTPIN_g$constants { * extern hid_t H5E_CANTPIN_g * } */ - public static MemorySegment H5E_CANTPIN_g$segment() { - return H5E_CANTPIN_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTPIN_g$segment() { return H5E_CANTPIN_g$constants.SEGMENT; } /** * Getter for variable: @@ -20923,7 +19215,8 @@ private static class H5E_CANTPIN_g$constants { * extern hid_t H5E_CANTPIN_g * } */ - public static long H5E_CANTPIN_g() { + public static long H5E_CANTPIN_g() + { return H5E_CANTPIN_g$constants.SEGMENT.get(H5E_CANTPIN_g$constants.LAYOUT, 0L); } @@ -20933,13 +19226,15 @@ public static long H5E_CANTPIN_g() { * extern hid_t H5E_CANTPIN_g * } */ - public static void H5E_CANTPIN_g(long varValue) { + public static void H5E_CANTPIN_g(long varValue) + { H5E_CANTPIN_g$constants.SEGMENT.set(H5E_CANTPIN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTPROTECT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTPROTECT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTPROTECT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20948,9 +19243,7 @@ private static class H5E_CANTPROTECT_g$constants { * extern hid_t H5E_CANTPROTECT_g * } */ - public static OfLong H5E_CANTPROTECT_g$layout() { - return H5E_CANTPROTECT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTPROTECT_g$layout() { return H5E_CANTPROTECT_g$constants.LAYOUT; } /** * Segment for variable: @@ -20958,9 +19251,7 @@ private static class H5E_CANTPROTECT_g$constants { * extern hid_t H5E_CANTPROTECT_g * } */ - public static MemorySegment H5E_CANTPROTECT_g$segment() { - return H5E_CANTPROTECT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTPROTECT_g$segment() { return H5E_CANTPROTECT_g$constants.SEGMENT; } /** * Getter for variable: @@ -20968,7 +19259,8 @@ private static class H5E_CANTPROTECT_g$constants { * extern hid_t H5E_CANTPROTECT_g * } */ - public static long H5E_CANTPROTECT_g() { + public static long H5E_CANTPROTECT_g() + { return H5E_CANTPROTECT_g$constants.SEGMENT.get(H5E_CANTPROTECT_g$constants.LAYOUT, 0L); } @@ -20978,13 +19270,15 @@ public static long H5E_CANTPROTECT_g() { * extern hid_t H5E_CANTPROTECT_g * } */ - public static void H5E_CANTPROTECT_g(long varValue) { + public static void H5E_CANTPROTECT_g(long varValue) + { H5E_CANTPROTECT_g$constants.SEGMENT.set(H5E_CANTPROTECT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRESIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRESIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRESIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -20993,9 +19287,7 @@ private static class H5E_CANTRESIZE_g$constants { * extern hid_t H5E_CANTRESIZE_g * } */ - public static OfLong H5E_CANTRESIZE_g$layout() { - return H5E_CANTRESIZE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRESIZE_g$layout() { return H5E_CANTRESIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -21003,9 +19295,7 @@ private static class H5E_CANTRESIZE_g$constants { * extern hid_t H5E_CANTRESIZE_g * } */ - public static MemorySegment H5E_CANTRESIZE_g$segment() { - return H5E_CANTRESIZE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRESIZE_g$segment() { return H5E_CANTRESIZE_g$constants.SEGMENT; } /** * Getter for variable: @@ -21013,7 +19303,8 @@ private static class H5E_CANTRESIZE_g$constants { * extern hid_t H5E_CANTRESIZE_g * } */ - public static long H5E_CANTRESIZE_g() { + public static long H5E_CANTRESIZE_g() + { return H5E_CANTRESIZE_g$constants.SEGMENT.get(H5E_CANTRESIZE_g$constants.LAYOUT, 0L); } @@ -21023,13 +19314,15 @@ public static long H5E_CANTRESIZE_g() { * extern hid_t H5E_CANTRESIZE_g * } */ - public static void H5E_CANTRESIZE_g(long varValue) { + public static void H5E_CANTRESIZE_g(long varValue) + { H5E_CANTRESIZE_g$constants.SEGMENT.set(H5E_CANTRESIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSERIALIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSERIALIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSERIALIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21038,9 +19331,7 @@ private static class H5E_CANTSERIALIZE_g$constants { * extern hid_t H5E_CANTSERIALIZE_g * } */ - public static OfLong H5E_CANTSERIALIZE_g$layout() { - return H5E_CANTSERIALIZE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSERIALIZE_g$layout() { return H5E_CANTSERIALIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -21048,7 +19339,8 @@ private static class H5E_CANTSERIALIZE_g$constants { * extern hid_t H5E_CANTSERIALIZE_g * } */ - public static MemorySegment H5E_CANTSERIALIZE_g$segment() { + public static MemorySegment H5E_CANTSERIALIZE_g$segment() + { return H5E_CANTSERIALIZE_g$constants.SEGMENT; } @@ -21058,7 +19350,8 @@ private static class H5E_CANTSERIALIZE_g$constants { * extern hid_t H5E_CANTSERIALIZE_g * } */ - public static long H5E_CANTSERIALIZE_g() { + public static long H5E_CANTSERIALIZE_g() + { return H5E_CANTSERIALIZE_g$constants.SEGMENT.get(H5E_CANTSERIALIZE_g$constants.LAYOUT, 0L); } @@ -21068,13 +19361,15 @@ public static long H5E_CANTSERIALIZE_g() { * extern hid_t H5E_CANTSERIALIZE_g * } */ - public static void H5E_CANTSERIALIZE_g(long varValue) { + public static void H5E_CANTSERIALIZE_g(long varValue) + { H5E_CANTSERIALIZE_g$constants.SEGMENT.set(H5E_CANTSERIALIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTTAG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTTAG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTTAG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21083,9 +19378,7 @@ private static class H5E_CANTTAG_g$constants { * extern hid_t H5E_CANTTAG_g * } */ - public static OfLong H5E_CANTTAG_g$layout() { - return H5E_CANTTAG_g$constants.LAYOUT; - } + public static OfLong H5E_CANTTAG_g$layout() { return H5E_CANTTAG_g$constants.LAYOUT; } /** * Segment for variable: @@ -21093,9 +19386,7 @@ private static class H5E_CANTTAG_g$constants { * extern hid_t H5E_CANTTAG_g * } */ - public static MemorySegment H5E_CANTTAG_g$segment() { - return H5E_CANTTAG_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTTAG_g$segment() { return H5E_CANTTAG_g$constants.SEGMENT; } /** * Getter for variable: @@ -21103,7 +19394,8 @@ private static class H5E_CANTTAG_g$constants { * extern hid_t H5E_CANTTAG_g * } */ - public static long H5E_CANTTAG_g() { + public static long H5E_CANTTAG_g() + { return H5E_CANTTAG_g$constants.SEGMENT.get(H5E_CANTTAG_g$constants.LAYOUT, 0L); } @@ -21113,13 +19405,15 @@ public static long H5E_CANTTAG_g() { * extern hid_t H5E_CANTTAG_g * } */ - public static void H5E_CANTTAG_g(long varValue) { + public static void H5E_CANTTAG_g(long varValue) + { H5E_CANTTAG_g$constants.SEGMENT.set(H5E_CANTTAG_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNCORK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNCORK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNCORK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21128,9 +19422,7 @@ private static class H5E_CANTUNCORK_g$constants { * extern hid_t H5E_CANTUNCORK_g * } */ - public static OfLong H5E_CANTUNCORK_g$layout() { - return H5E_CANTUNCORK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNCORK_g$layout() { return H5E_CANTUNCORK_g$constants.LAYOUT; } /** * Segment for variable: @@ -21138,9 +19430,7 @@ private static class H5E_CANTUNCORK_g$constants { * extern hid_t H5E_CANTUNCORK_g * } */ - public static MemorySegment H5E_CANTUNCORK_g$segment() { - return H5E_CANTUNCORK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTUNCORK_g$segment() { return H5E_CANTUNCORK_g$constants.SEGMENT; } /** * Getter for variable: @@ -21148,7 +19438,8 @@ private static class H5E_CANTUNCORK_g$constants { * extern hid_t H5E_CANTUNCORK_g * } */ - public static long H5E_CANTUNCORK_g() { + public static long H5E_CANTUNCORK_g() + { return H5E_CANTUNCORK_g$constants.SEGMENT.get(H5E_CANTUNCORK_g$constants.LAYOUT, 0L); } @@ -21158,13 +19449,15 @@ public static long H5E_CANTUNCORK_g() { * extern hid_t H5E_CANTUNCORK_g * } */ - public static void H5E_CANTUNCORK_g(long varValue) { + public static void H5E_CANTUNCORK_g(long varValue) + { H5E_CANTUNCORK_g$constants.SEGMENT.set(H5E_CANTUNCORK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNDEPEND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNDEPEND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNDEPEND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21173,9 +19466,7 @@ private static class H5E_CANTUNDEPEND_g$constants { * extern hid_t H5E_CANTUNDEPEND_g * } */ - public static OfLong H5E_CANTUNDEPEND_g$layout() { - return H5E_CANTUNDEPEND_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNDEPEND_g$layout() { return H5E_CANTUNDEPEND_g$constants.LAYOUT; } /** * Segment for variable: @@ -21183,9 +19474,7 @@ private static class H5E_CANTUNDEPEND_g$constants { * extern hid_t H5E_CANTUNDEPEND_g * } */ - public static MemorySegment H5E_CANTUNDEPEND_g$segment() { - return H5E_CANTUNDEPEND_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTUNDEPEND_g$segment() { return H5E_CANTUNDEPEND_g$constants.SEGMENT; } /** * Getter for variable: @@ -21193,7 +19482,8 @@ private static class H5E_CANTUNDEPEND_g$constants { * extern hid_t H5E_CANTUNDEPEND_g * } */ - public static long H5E_CANTUNDEPEND_g() { + public static long H5E_CANTUNDEPEND_g() + { return H5E_CANTUNDEPEND_g$constants.SEGMENT.get(H5E_CANTUNDEPEND_g$constants.LAYOUT, 0L); } @@ -21203,13 +19493,15 @@ public static long H5E_CANTUNDEPEND_g() { * extern hid_t H5E_CANTUNDEPEND_g * } */ - public static void H5E_CANTUNDEPEND_g(long varValue) { + public static void H5E_CANTUNDEPEND_g(long varValue) + { H5E_CANTUNDEPEND_g$constants.SEGMENT.set(H5E_CANTUNDEPEND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNPIN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNPIN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNPIN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21218,9 +19510,7 @@ private static class H5E_CANTUNPIN_g$constants { * extern hid_t H5E_CANTUNPIN_g * } */ - public static OfLong H5E_CANTUNPIN_g$layout() { - return H5E_CANTUNPIN_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNPIN_g$layout() { return H5E_CANTUNPIN_g$constants.LAYOUT; } /** * Segment for variable: @@ -21228,9 +19518,7 @@ private static class H5E_CANTUNPIN_g$constants { * extern hid_t H5E_CANTUNPIN_g * } */ - public static MemorySegment H5E_CANTUNPIN_g$segment() { - return H5E_CANTUNPIN_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTUNPIN_g$segment() { return H5E_CANTUNPIN_g$constants.SEGMENT; } /** * Getter for variable: @@ -21238,7 +19526,8 @@ private static class H5E_CANTUNPIN_g$constants { * extern hid_t H5E_CANTUNPIN_g * } */ - public static long H5E_CANTUNPIN_g() { + public static long H5E_CANTUNPIN_g() + { return H5E_CANTUNPIN_g$constants.SEGMENT.get(H5E_CANTUNPIN_g$constants.LAYOUT, 0L); } @@ -21248,13 +19537,15 @@ public static long H5E_CANTUNPIN_g() { * extern hid_t H5E_CANTUNPIN_g * } */ - public static void H5E_CANTUNPIN_g(long varValue) { + public static void H5E_CANTUNPIN_g(long varValue) + { H5E_CANTUNPIN_g$constants.SEGMENT.set(H5E_CANTUNPIN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNPROTECT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNPROTECT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNPROTECT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21263,9 +19554,7 @@ private static class H5E_CANTUNPROTECT_g$constants { * extern hid_t H5E_CANTUNPROTECT_g * } */ - public static OfLong H5E_CANTUNPROTECT_g$layout() { - return H5E_CANTUNPROTECT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNPROTECT_g$layout() { return H5E_CANTUNPROTECT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21273,7 +19562,8 @@ private static class H5E_CANTUNPROTECT_g$constants { * extern hid_t H5E_CANTUNPROTECT_g * } */ - public static MemorySegment H5E_CANTUNPROTECT_g$segment() { + public static MemorySegment H5E_CANTUNPROTECT_g$segment() + { return H5E_CANTUNPROTECT_g$constants.SEGMENT; } @@ -21283,7 +19573,8 @@ private static class H5E_CANTUNPROTECT_g$constants { * extern hid_t H5E_CANTUNPROTECT_g * } */ - public static long H5E_CANTUNPROTECT_g() { + public static long H5E_CANTUNPROTECT_g() + { return H5E_CANTUNPROTECT_g$constants.SEGMENT.get(H5E_CANTUNPROTECT_g$constants.LAYOUT, 0L); } @@ -21293,13 +19584,15 @@ public static long H5E_CANTUNPROTECT_g() { * extern hid_t H5E_CANTUNPROTECT_g * } */ - public static void H5E_CANTUNPROTECT_g(long varValue) { + public static void H5E_CANTUNPROTECT_g(long varValue) + { H5E_CANTUNPROTECT_g$constants.SEGMENT.set(H5E_CANTUNPROTECT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNSERIALIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNSERIALIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNSERIALIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21308,9 +19601,7 @@ private static class H5E_CANTUNSERIALIZE_g$constants { * extern hid_t H5E_CANTUNSERIALIZE_g * } */ - public static OfLong H5E_CANTUNSERIALIZE_g$layout() { - return H5E_CANTUNSERIALIZE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNSERIALIZE_g$layout() { return H5E_CANTUNSERIALIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -21318,7 +19609,8 @@ private static class H5E_CANTUNSERIALIZE_g$constants { * extern hid_t H5E_CANTUNSERIALIZE_g * } */ - public static MemorySegment H5E_CANTUNSERIALIZE_g$segment() { + public static MemorySegment H5E_CANTUNSERIALIZE_g$segment() + { return H5E_CANTUNSERIALIZE_g$constants.SEGMENT; } @@ -21328,7 +19620,8 @@ private static class H5E_CANTUNSERIALIZE_g$constants { * extern hid_t H5E_CANTUNSERIALIZE_g * } */ - public static long H5E_CANTUNSERIALIZE_g() { + public static long H5E_CANTUNSERIALIZE_g() + { return H5E_CANTUNSERIALIZE_g$constants.SEGMENT.get(H5E_CANTUNSERIALIZE_g$constants.LAYOUT, 0L); } @@ -21338,13 +19631,15 @@ public static long H5E_CANTUNSERIALIZE_g() { * extern hid_t H5E_CANTUNSERIALIZE_g * } */ - public static void H5E_CANTUNSERIALIZE_g(long varValue) { + public static void H5E_CANTUNSERIALIZE_g(long varValue) + { H5E_CANTUNSERIALIZE_g$constants.SEGMENT.set(H5E_CANTUNSERIALIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_LOGGING_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_LOGGING_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_LOGGING_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21353,9 +19648,7 @@ private static class H5E_LOGGING_g$constants { * extern hid_t H5E_LOGGING_g * } */ - public static OfLong H5E_LOGGING_g$layout() { - return H5E_LOGGING_g$constants.LAYOUT; - } + public static OfLong H5E_LOGGING_g$layout() { return H5E_LOGGING_g$constants.LAYOUT; } /** * Segment for variable: @@ -21363,9 +19656,7 @@ private static class H5E_LOGGING_g$constants { * extern hid_t H5E_LOGGING_g * } */ - public static MemorySegment H5E_LOGGING_g$segment() { - return H5E_LOGGING_g$constants.SEGMENT; - } + public static MemorySegment H5E_LOGGING_g$segment() { return H5E_LOGGING_g$constants.SEGMENT; } /** * Getter for variable: @@ -21373,7 +19664,8 @@ private static class H5E_LOGGING_g$constants { * extern hid_t H5E_LOGGING_g * } */ - public static long H5E_LOGGING_g() { + public static long H5E_LOGGING_g() + { return H5E_LOGGING_g$constants.SEGMENT.get(H5E_LOGGING_g$constants.LAYOUT, 0L); } @@ -21383,13 +19675,15 @@ public static long H5E_LOGGING_g() { * extern hid_t H5E_LOGGING_g * } */ - public static void H5E_LOGGING_g(long varValue) { + public static void H5E_LOGGING_g(long varValue) + { H5E_LOGGING_g$constants.SEGMENT.set(H5E_LOGGING_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOTCACHED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOTCACHED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOTCACHED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21398,9 +19692,7 @@ private static class H5E_NOTCACHED_g$constants { * extern hid_t H5E_NOTCACHED_g * } */ - public static OfLong H5E_NOTCACHED_g$layout() { - return H5E_NOTCACHED_g$constants.LAYOUT; - } + public static OfLong H5E_NOTCACHED_g$layout() { return H5E_NOTCACHED_g$constants.LAYOUT; } /** * Segment for variable: @@ -21408,9 +19700,7 @@ private static class H5E_NOTCACHED_g$constants { * extern hid_t H5E_NOTCACHED_g * } */ - public static MemorySegment H5E_NOTCACHED_g$segment() { - return H5E_NOTCACHED_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOTCACHED_g$segment() { return H5E_NOTCACHED_g$constants.SEGMENT; } /** * Getter for variable: @@ -21418,7 +19708,8 @@ private static class H5E_NOTCACHED_g$constants { * extern hid_t H5E_NOTCACHED_g * } */ - public static long H5E_NOTCACHED_g() { + public static long H5E_NOTCACHED_g() + { return H5E_NOTCACHED_g$constants.SEGMENT.get(H5E_NOTCACHED_g$constants.LAYOUT, 0L); } @@ -21428,13 +19719,15 @@ public static long H5E_NOTCACHED_g() { * extern hid_t H5E_NOTCACHED_g * } */ - public static void H5E_NOTCACHED_g(long varValue) { + public static void H5E_NOTCACHED_g(long varValue) + { H5E_NOTCACHED_g$constants.SEGMENT.set(H5E_NOTCACHED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PROTECT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PROTECT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PROTECT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21443,9 +19736,7 @@ private static class H5E_PROTECT_g$constants { * extern hid_t H5E_PROTECT_g * } */ - public static OfLong H5E_PROTECT_g$layout() { - return H5E_PROTECT_g$constants.LAYOUT; - } + public static OfLong H5E_PROTECT_g$layout() { return H5E_PROTECT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21453,9 +19744,7 @@ private static class H5E_PROTECT_g$constants { * extern hid_t H5E_PROTECT_g * } */ - public static MemorySegment H5E_PROTECT_g$segment() { - return H5E_PROTECT_g$constants.SEGMENT; - } + public static MemorySegment H5E_PROTECT_g$segment() { return H5E_PROTECT_g$constants.SEGMENT; } /** * Getter for variable: @@ -21463,7 +19752,8 @@ private static class H5E_PROTECT_g$constants { * extern hid_t H5E_PROTECT_g * } */ - public static long H5E_PROTECT_g() { + public static long H5E_PROTECT_g() + { return H5E_PROTECT_g$constants.SEGMENT.get(H5E_PROTECT_g$constants.LAYOUT, 0L); } @@ -21473,13 +19763,15 @@ public static long H5E_PROTECT_g() { * extern hid_t H5E_PROTECT_g * } */ - public static void H5E_PROTECT_g(long varValue) { + public static void H5E_PROTECT_g(long varValue) + { H5E_PROTECT_g$constants.SEGMENT.set(H5E_PROTECT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SYSTEM_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SYSTEM_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SYSTEM_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21488,9 +19780,7 @@ private static class H5E_SYSTEM_g$constants { * extern hid_t H5E_SYSTEM_g * } */ - public static OfLong H5E_SYSTEM_g$layout() { - return H5E_SYSTEM_g$constants.LAYOUT; - } + public static OfLong H5E_SYSTEM_g$layout() { return H5E_SYSTEM_g$constants.LAYOUT; } /** * Segment for variable: @@ -21498,9 +19788,7 @@ private static class H5E_SYSTEM_g$constants { * extern hid_t H5E_SYSTEM_g * } */ - public static MemorySegment H5E_SYSTEM_g$segment() { - return H5E_SYSTEM_g$constants.SEGMENT; - } + public static MemorySegment H5E_SYSTEM_g$segment() { return H5E_SYSTEM_g$constants.SEGMENT; } /** * Getter for variable: @@ -21508,7 +19796,8 @@ private static class H5E_SYSTEM_g$constants { * extern hid_t H5E_SYSTEM_g * } */ - public static long H5E_SYSTEM_g() { + public static long H5E_SYSTEM_g() + { return H5E_SYSTEM_g$constants.SEGMENT.get(H5E_SYSTEM_g$constants.LAYOUT, 0L); } @@ -21518,13 +19807,15 @@ public static long H5E_SYSTEM_g() { * extern hid_t H5E_SYSTEM_g * } */ - public static void H5E_SYSTEM_g(long varValue) { + public static void H5E_SYSTEM_g(long varValue) + { H5E_SYSTEM_g$constants.SEGMENT.set(H5E_SYSTEM_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADSELECT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADSELECT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADSELECT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21533,9 +19824,7 @@ private static class H5E_BADSELECT_g$constants { * extern hid_t H5E_BADSELECT_g * } */ - public static OfLong H5E_BADSELECT_g$layout() { - return H5E_BADSELECT_g$constants.LAYOUT; - } + public static OfLong H5E_BADSELECT_g$layout() { return H5E_BADSELECT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21543,9 +19832,7 @@ private static class H5E_BADSELECT_g$constants { * extern hid_t H5E_BADSELECT_g * } */ - public static MemorySegment H5E_BADSELECT_g$segment() { - return H5E_BADSELECT_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADSELECT_g$segment() { return H5E_BADSELECT_g$constants.SEGMENT; } /** * Getter for variable: @@ -21553,7 +19840,8 @@ private static class H5E_BADSELECT_g$constants { * extern hid_t H5E_BADSELECT_g * } */ - public static long H5E_BADSELECT_g() { + public static long H5E_BADSELECT_g() + { return H5E_BADSELECT_g$constants.SEGMENT.get(H5E_BADSELECT_g$constants.LAYOUT, 0L); } @@ -21563,13 +19851,15 @@ public static long H5E_BADSELECT_g() { * extern hid_t H5E_BADSELECT_g * } */ - public static void H5E_BADSELECT_g(long varValue) { + public static void H5E_BADSELECT_g(long varValue) + { H5E_BADSELECT_g$constants.SEGMENT.set(H5E_BADSELECT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTAPPEND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTAPPEND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTAPPEND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21578,9 +19868,7 @@ private static class H5E_CANTAPPEND_g$constants { * extern hid_t H5E_CANTAPPEND_g * } */ - public static OfLong H5E_CANTAPPEND_g$layout() { - return H5E_CANTAPPEND_g$constants.LAYOUT; - } + public static OfLong H5E_CANTAPPEND_g$layout() { return H5E_CANTAPPEND_g$constants.LAYOUT; } /** * Segment for variable: @@ -21588,9 +19876,7 @@ private static class H5E_CANTAPPEND_g$constants { * extern hid_t H5E_CANTAPPEND_g * } */ - public static MemorySegment H5E_CANTAPPEND_g$segment() { - return H5E_CANTAPPEND_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTAPPEND_g$segment() { return H5E_CANTAPPEND_g$constants.SEGMENT; } /** * Getter for variable: @@ -21598,7 +19884,8 @@ private static class H5E_CANTAPPEND_g$constants { * extern hid_t H5E_CANTAPPEND_g * } */ - public static long H5E_CANTAPPEND_g() { + public static long H5E_CANTAPPEND_g() + { return H5E_CANTAPPEND_g$constants.SEGMENT.get(H5E_CANTAPPEND_g$constants.LAYOUT, 0L); } @@ -21608,13 +19895,15 @@ public static long H5E_CANTAPPEND_g() { * extern hid_t H5E_CANTAPPEND_g * } */ - public static void H5E_CANTAPPEND_g(long varValue) { + public static void H5E_CANTAPPEND_g(long varValue) + { H5E_CANTAPPEND_g$constants.SEGMENT.set(H5E_CANTAPPEND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCLIP_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCLIP_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCLIP_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21623,9 +19912,7 @@ private static class H5E_CANTCLIP_g$constants { * extern hid_t H5E_CANTCLIP_g * } */ - public static OfLong H5E_CANTCLIP_g$layout() { - return H5E_CANTCLIP_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCLIP_g$layout() { return H5E_CANTCLIP_g$constants.LAYOUT; } /** * Segment for variable: @@ -21633,9 +19920,7 @@ private static class H5E_CANTCLIP_g$constants { * extern hid_t H5E_CANTCLIP_g * } */ - public static MemorySegment H5E_CANTCLIP_g$segment() { - return H5E_CANTCLIP_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCLIP_g$segment() { return H5E_CANTCLIP_g$constants.SEGMENT; } /** * Getter for variable: @@ -21643,7 +19928,8 @@ private static class H5E_CANTCLIP_g$constants { * extern hid_t H5E_CANTCLIP_g * } */ - public static long H5E_CANTCLIP_g() { + public static long H5E_CANTCLIP_g() + { return H5E_CANTCLIP_g$constants.SEGMENT.get(H5E_CANTCLIP_g$constants.LAYOUT, 0L); } @@ -21653,13 +19939,15 @@ public static long H5E_CANTCLIP_g() { * extern hid_t H5E_CANTCLIP_g * } */ - public static void H5E_CANTCLIP_g(long varValue) { + public static void H5E_CANTCLIP_g(long varValue) + { H5E_CANTCLIP_g$constants.SEGMENT.set(H5E_CANTCLIP_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCOMPARE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCOMPARE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCOMPARE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21668,9 +19956,7 @@ private static class H5E_CANTCOMPARE_g$constants { * extern hid_t H5E_CANTCOMPARE_g * } */ - public static OfLong H5E_CANTCOMPARE_g$layout() { - return H5E_CANTCOMPARE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCOMPARE_g$layout() { return H5E_CANTCOMPARE_g$constants.LAYOUT; } /** * Segment for variable: @@ -21678,9 +19964,7 @@ private static class H5E_CANTCOMPARE_g$constants { * extern hid_t H5E_CANTCOMPARE_g * } */ - public static MemorySegment H5E_CANTCOMPARE_g$segment() { - return H5E_CANTCOMPARE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCOMPARE_g$segment() { return H5E_CANTCOMPARE_g$constants.SEGMENT; } /** * Getter for variable: @@ -21688,7 +19972,8 @@ private static class H5E_CANTCOMPARE_g$constants { * extern hid_t H5E_CANTCOMPARE_g * } */ - public static long H5E_CANTCOMPARE_g() { + public static long H5E_CANTCOMPARE_g() + { return H5E_CANTCOMPARE_g$constants.SEGMENT.get(H5E_CANTCOMPARE_g$constants.LAYOUT, 0L); } @@ -21698,13 +19983,15 @@ public static long H5E_CANTCOMPARE_g() { * extern hid_t H5E_CANTCOMPARE_g * } */ - public static void H5E_CANTCOMPARE_g(long varValue) { + public static void H5E_CANTCOMPARE_g(long varValue) + { H5E_CANTCOMPARE_g$constants.SEGMENT.set(H5E_CANTCOMPARE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCOUNT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCOUNT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCOUNT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21713,9 +20000,7 @@ private static class H5E_CANTCOUNT_g$constants { * extern hid_t H5E_CANTCOUNT_g * } */ - public static OfLong H5E_CANTCOUNT_g$layout() { - return H5E_CANTCOUNT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCOUNT_g$layout() { return H5E_CANTCOUNT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21723,9 +20008,7 @@ private static class H5E_CANTCOUNT_g$constants { * extern hid_t H5E_CANTCOUNT_g * } */ - public static MemorySegment H5E_CANTCOUNT_g$segment() { - return H5E_CANTCOUNT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCOUNT_g$segment() { return H5E_CANTCOUNT_g$constants.SEGMENT; } /** * Getter for variable: @@ -21733,7 +20016,8 @@ private static class H5E_CANTCOUNT_g$constants { * extern hid_t H5E_CANTCOUNT_g * } */ - public static long H5E_CANTCOUNT_g() { + public static long H5E_CANTCOUNT_g() + { return H5E_CANTCOUNT_g$constants.SEGMENT.get(H5E_CANTCOUNT_g$constants.LAYOUT, 0L); } @@ -21743,13 +20027,15 @@ public static long H5E_CANTCOUNT_g() { * extern hid_t H5E_CANTCOUNT_g * } */ - public static void H5E_CANTCOUNT_g(long varValue) { + public static void H5E_CANTCOUNT_g(long varValue) + { H5E_CANTCOUNT_g$constants.SEGMENT.set(H5E_CANTCOUNT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTNEXT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTNEXT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTNEXT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21758,9 +20044,7 @@ private static class H5E_CANTNEXT_g$constants { * extern hid_t H5E_CANTNEXT_g * } */ - public static OfLong H5E_CANTNEXT_g$layout() { - return H5E_CANTNEXT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTNEXT_g$layout() { return H5E_CANTNEXT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21768,9 +20052,7 @@ private static class H5E_CANTNEXT_g$constants { * extern hid_t H5E_CANTNEXT_g * } */ - public static MemorySegment H5E_CANTNEXT_g$segment() { - return H5E_CANTNEXT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTNEXT_g$segment() { return H5E_CANTNEXT_g$constants.SEGMENT; } /** * Getter for variable: @@ -21778,7 +20060,8 @@ private static class H5E_CANTNEXT_g$constants { * extern hid_t H5E_CANTNEXT_g * } */ - public static long H5E_CANTNEXT_g() { + public static long H5E_CANTNEXT_g() + { return H5E_CANTNEXT_g$constants.SEGMENT.get(H5E_CANTNEXT_g$constants.LAYOUT, 0L); } @@ -21788,13 +20071,15 @@ public static long H5E_CANTNEXT_g() { * extern hid_t H5E_CANTNEXT_g * } */ - public static void H5E_CANTNEXT_g(long varValue) { + public static void H5E_CANTNEXT_g(long varValue) + { H5E_CANTNEXT_g$constants.SEGMENT.set(H5E_CANTNEXT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSELECT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSELECT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSELECT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21803,9 +20088,7 @@ private static class H5E_CANTSELECT_g$constants { * extern hid_t H5E_CANTSELECT_g * } */ - public static OfLong H5E_CANTSELECT_g$layout() { - return H5E_CANTSELECT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSELECT_g$layout() { return H5E_CANTSELECT_g$constants.LAYOUT; } /** * Segment for variable: @@ -21813,9 +20096,7 @@ private static class H5E_CANTSELECT_g$constants { * extern hid_t H5E_CANTSELECT_g * } */ - public static MemorySegment H5E_CANTSELECT_g$segment() { - return H5E_CANTSELECT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSELECT_g$segment() { return H5E_CANTSELECT_g$constants.SEGMENT; } /** * Getter for variable: @@ -21823,7 +20104,8 @@ private static class H5E_CANTSELECT_g$constants { * extern hid_t H5E_CANTSELECT_g * } */ - public static long H5E_CANTSELECT_g() { + public static long H5E_CANTSELECT_g() + { return H5E_CANTSELECT_g$constants.SEGMENT.get(H5E_CANTSELECT_g$constants.LAYOUT, 0L); } @@ -21833,13 +20115,15 @@ public static long H5E_CANTSELECT_g() { * extern hid_t H5E_CANTSELECT_g * } */ - public static void H5E_CANTSELECT_g(long varValue) { + public static void H5E_CANTSELECT_g(long varValue) + { H5E_CANTSELECT_g$constants.SEGMENT.set(H5E_CANTSELECT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_INCONSISTENTSTATE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_INCONSISTENTSTATE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_INCONSISTENTSTATE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21848,9 +20132,7 @@ private static class H5E_INCONSISTENTSTATE_g$constants { * extern hid_t H5E_INCONSISTENTSTATE_g * } */ - public static OfLong H5E_INCONSISTENTSTATE_g$layout() { - return H5E_INCONSISTENTSTATE_g$constants.LAYOUT; - } + public static OfLong H5E_INCONSISTENTSTATE_g$layout() { return H5E_INCONSISTENTSTATE_g$constants.LAYOUT; } /** * Segment for variable: @@ -21858,7 +20140,8 @@ private static class H5E_INCONSISTENTSTATE_g$constants { * extern hid_t H5E_INCONSISTENTSTATE_g * } */ - public static MemorySegment H5E_INCONSISTENTSTATE_g$segment() { + public static MemorySegment H5E_INCONSISTENTSTATE_g$segment() + { return H5E_INCONSISTENTSTATE_g$constants.SEGMENT; } @@ -21868,7 +20151,8 @@ private static class H5E_INCONSISTENTSTATE_g$constants { * extern hid_t H5E_INCONSISTENTSTATE_g * } */ - public static long H5E_INCONSISTENTSTATE_g() { + public static long H5E_INCONSISTENTSTATE_g() + { return H5E_INCONSISTENTSTATE_g$constants.SEGMENT.get(H5E_INCONSISTENTSTATE_g$constants.LAYOUT, 0L); } @@ -21878,13 +20162,15 @@ public static long H5E_INCONSISTENTSTATE_g() { * extern hid_t H5E_INCONSISTENTSTATE_g * } */ - public static void H5E_INCONSISTENTSTATE_g(long varValue) { + public static void H5E_INCONSISTENTSTATE_g(long varValue) + { H5E_INCONSISTENTSTATE_g$constants.SEGMENT.set(H5E_INCONSISTENTSTATE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CLOSEERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CLOSEERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CLOSEERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21893,9 +20179,7 @@ private static class H5E_CLOSEERROR_g$constants { * extern hid_t H5E_CLOSEERROR_g * } */ - public static OfLong H5E_CLOSEERROR_g$layout() { - return H5E_CLOSEERROR_g$constants.LAYOUT; - } + public static OfLong H5E_CLOSEERROR_g$layout() { return H5E_CLOSEERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -21903,9 +20187,7 @@ private static class H5E_CLOSEERROR_g$constants { * extern hid_t H5E_CLOSEERROR_g * } */ - public static MemorySegment H5E_CLOSEERROR_g$segment() { - return H5E_CLOSEERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_CLOSEERROR_g$segment() { return H5E_CLOSEERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -21913,7 +20195,8 @@ private static class H5E_CLOSEERROR_g$constants { * extern hid_t H5E_CLOSEERROR_g * } */ - public static long H5E_CLOSEERROR_g() { + public static long H5E_CLOSEERROR_g() + { return H5E_CLOSEERROR_g$constants.SEGMENT.get(H5E_CLOSEERROR_g$constants.LAYOUT, 0L); } @@ -21923,13 +20206,15 @@ public static long H5E_CLOSEERROR_g() { * extern hid_t H5E_CLOSEERROR_g * } */ - public static void H5E_CLOSEERROR_g(long varValue) { + public static void H5E_CLOSEERROR_g(long varValue) + { H5E_CLOSEERROR_g$constants.SEGMENT.set(H5E_CLOSEERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FCNTL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FCNTL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FCNTL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21938,9 +20223,7 @@ private static class H5E_FCNTL_g$constants { * extern hid_t H5E_FCNTL_g * } */ - public static OfLong H5E_FCNTL_g$layout() { - return H5E_FCNTL_g$constants.LAYOUT; - } + public static OfLong H5E_FCNTL_g$layout() { return H5E_FCNTL_g$constants.LAYOUT; } /** * Segment for variable: @@ -21948,9 +20231,7 @@ private static class H5E_FCNTL_g$constants { * extern hid_t H5E_FCNTL_g * } */ - public static MemorySegment H5E_FCNTL_g$segment() { - return H5E_FCNTL_g$constants.SEGMENT; - } + public static MemorySegment H5E_FCNTL_g$segment() { return H5E_FCNTL_g$constants.SEGMENT; } /** * Getter for variable: @@ -21958,7 +20239,8 @@ private static class H5E_FCNTL_g$constants { * extern hid_t H5E_FCNTL_g * } */ - public static long H5E_FCNTL_g() { + public static long H5E_FCNTL_g() + { return H5E_FCNTL_g$constants.SEGMENT.get(H5E_FCNTL_g$constants.LAYOUT, 0L); } @@ -21968,13 +20250,15 @@ public static long H5E_FCNTL_g() { * extern hid_t H5E_FCNTL_g * } */ - public static void H5E_FCNTL_g(long varValue) { + public static void H5E_FCNTL_g(long varValue) + { H5E_FCNTL_g$constants.SEGMENT.set(H5E_FCNTL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_OVERFLOW_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_OVERFLOW_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_OVERFLOW_g").reinterpret(LAYOUT.byteSize()); } /** @@ -21983,9 +20267,7 @@ private static class H5E_OVERFLOW_g$constants { * extern hid_t H5E_OVERFLOW_g * } */ - public static OfLong H5E_OVERFLOW_g$layout() { - return H5E_OVERFLOW_g$constants.LAYOUT; - } + public static OfLong H5E_OVERFLOW_g$layout() { return H5E_OVERFLOW_g$constants.LAYOUT; } /** * Segment for variable: @@ -21993,9 +20275,7 @@ private static class H5E_OVERFLOW_g$constants { * extern hid_t H5E_OVERFLOW_g * } */ - public static MemorySegment H5E_OVERFLOW_g$segment() { - return H5E_OVERFLOW_g$constants.SEGMENT; - } + public static MemorySegment H5E_OVERFLOW_g$segment() { return H5E_OVERFLOW_g$constants.SEGMENT; } /** * Getter for variable: @@ -22003,7 +20283,8 @@ private static class H5E_OVERFLOW_g$constants { * extern hid_t H5E_OVERFLOW_g * } */ - public static long H5E_OVERFLOW_g() { + public static long H5E_OVERFLOW_g() + { return H5E_OVERFLOW_g$constants.SEGMENT.get(H5E_OVERFLOW_g$constants.LAYOUT, 0L); } @@ -22013,13 +20294,15 @@ public static long H5E_OVERFLOW_g() { * extern hid_t H5E_OVERFLOW_g * } */ - public static void H5E_OVERFLOW_g(long varValue) { + public static void H5E_OVERFLOW_g(long varValue) + { H5E_OVERFLOW_g$constants.SEGMENT.set(H5E_OVERFLOW_g$constants.LAYOUT, 0L, varValue); } private static class H5E_READERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_READERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_READERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22028,9 +20311,7 @@ private static class H5E_READERROR_g$constants { * extern hid_t H5E_READERROR_g * } */ - public static OfLong H5E_READERROR_g$layout() { - return H5E_READERROR_g$constants.LAYOUT; - } + public static OfLong H5E_READERROR_g$layout() { return H5E_READERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -22038,9 +20319,7 @@ private static class H5E_READERROR_g$constants { * extern hid_t H5E_READERROR_g * } */ - public static MemorySegment H5E_READERROR_g$segment() { - return H5E_READERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_READERROR_g$segment() { return H5E_READERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -22048,7 +20327,8 @@ private static class H5E_READERROR_g$constants { * extern hid_t H5E_READERROR_g * } */ - public static long H5E_READERROR_g() { + public static long H5E_READERROR_g() + { return H5E_READERROR_g$constants.SEGMENT.get(H5E_READERROR_g$constants.LAYOUT, 0L); } @@ -22058,13 +20338,15 @@ public static long H5E_READERROR_g() { * extern hid_t H5E_READERROR_g * } */ - public static void H5E_READERROR_g(long varValue) { + public static void H5E_READERROR_g(long varValue) + { H5E_READERROR_g$constants.SEGMENT.set(H5E_READERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SEEKERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SEEKERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SEEKERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22073,9 +20355,7 @@ private static class H5E_SEEKERROR_g$constants { * extern hid_t H5E_SEEKERROR_g * } */ - public static OfLong H5E_SEEKERROR_g$layout() { - return H5E_SEEKERROR_g$constants.LAYOUT; - } + public static OfLong H5E_SEEKERROR_g$layout() { return H5E_SEEKERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -22083,9 +20363,7 @@ private static class H5E_SEEKERROR_g$constants { * extern hid_t H5E_SEEKERROR_g * } */ - public static MemorySegment H5E_SEEKERROR_g$segment() { - return H5E_SEEKERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_SEEKERROR_g$segment() { return H5E_SEEKERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -22093,7 +20371,8 @@ private static class H5E_SEEKERROR_g$constants { * extern hid_t H5E_SEEKERROR_g * } */ - public static long H5E_SEEKERROR_g() { + public static long H5E_SEEKERROR_g() + { return H5E_SEEKERROR_g$constants.SEGMENT.get(H5E_SEEKERROR_g$constants.LAYOUT, 0L); } @@ -22103,13 +20382,15 @@ public static long H5E_SEEKERROR_g() { * extern hid_t H5E_SEEKERROR_g * } */ - public static void H5E_SEEKERROR_g(long varValue) { + public static void H5E_SEEKERROR_g(long varValue) + { H5E_SEEKERROR_g$constants.SEGMENT.set(H5E_SEEKERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_WRITEERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_WRITEERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_WRITEERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22118,9 +20399,7 @@ private static class H5E_WRITEERROR_g$constants { * extern hid_t H5E_WRITEERROR_g * } */ - public static OfLong H5E_WRITEERROR_g$layout() { - return H5E_WRITEERROR_g$constants.LAYOUT; - } + public static OfLong H5E_WRITEERROR_g$layout() { return H5E_WRITEERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -22128,9 +20407,7 @@ private static class H5E_WRITEERROR_g$constants { * extern hid_t H5E_WRITEERROR_g * } */ - public static MemorySegment H5E_WRITEERROR_g$segment() { - return H5E_WRITEERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_WRITEERROR_g$segment() { return H5E_WRITEERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -22138,7 +20415,8 @@ private static class H5E_WRITEERROR_g$constants { * extern hid_t H5E_WRITEERROR_g * } */ - public static long H5E_WRITEERROR_g() { + public static long H5E_WRITEERROR_g() + { return H5E_WRITEERROR_g$constants.SEGMENT.get(H5E_WRITEERROR_g$constants.LAYOUT, 0L); } @@ -22148,13 +20426,15 @@ public static long H5E_WRITEERROR_g() { * extern hid_t H5E_WRITEERROR_g * } */ - public static void H5E_WRITEERROR_g(long varValue) { + public static void H5E_WRITEERROR_g(long varValue) + { H5E_WRITEERROR_g$constants.SEGMENT.set(H5E_WRITEERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22163,9 +20443,7 @@ private static class H5E_BADFILE_g$constants { * extern hid_t H5E_BADFILE_g * } */ - public static OfLong H5E_BADFILE_g$layout() { - return H5E_BADFILE_g$constants.LAYOUT; - } + public static OfLong H5E_BADFILE_g$layout() { return H5E_BADFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22173,9 +20451,7 @@ private static class H5E_BADFILE_g$constants { * extern hid_t H5E_BADFILE_g * } */ - public static MemorySegment H5E_BADFILE_g$segment() { - return H5E_BADFILE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADFILE_g$segment() { return H5E_BADFILE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22183,7 +20459,8 @@ private static class H5E_BADFILE_g$constants { * extern hid_t H5E_BADFILE_g * } */ - public static long H5E_BADFILE_g() { + public static long H5E_BADFILE_g() + { return H5E_BADFILE_g$constants.SEGMENT.get(H5E_BADFILE_g$constants.LAYOUT, 0L); } @@ -22193,13 +20470,15 @@ public static long H5E_BADFILE_g() { * extern hid_t H5E_BADFILE_g * } */ - public static void H5E_BADFILE_g(long varValue) { + public static void H5E_BADFILE_g(long varValue) + { H5E_BADFILE_g$constants.SEGMENT.set(H5E_BADFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCLOSEFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCLOSEFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCLOSEFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22208,9 +20487,7 @@ private static class H5E_CANTCLOSEFILE_g$constants { * extern hid_t H5E_CANTCLOSEFILE_g * } */ - public static OfLong H5E_CANTCLOSEFILE_g$layout() { - return H5E_CANTCLOSEFILE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCLOSEFILE_g$layout() { return H5E_CANTCLOSEFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22218,7 +20495,8 @@ private static class H5E_CANTCLOSEFILE_g$constants { * extern hid_t H5E_CANTCLOSEFILE_g * } */ - public static MemorySegment H5E_CANTCLOSEFILE_g$segment() { + public static MemorySegment H5E_CANTCLOSEFILE_g$segment() + { return H5E_CANTCLOSEFILE_g$constants.SEGMENT; } @@ -22228,7 +20506,8 @@ private static class H5E_CANTCLOSEFILE_g$constants { * extern hid_t H5E_CANTCLOSEFILE_g * } */ - public static long H5E_CANTCLOSEFILE_g() { + public static long H5E_CANTCLOSEFILE_g() + { return H5E_CANTCLOSEFILE_g$constants.SEGMENT.get(H5E_CANTCLOSEFILE_g$constants.LAYOUT, 0L); } @@ -22238,13 +20517,15 @@ public static long H5E_CANTCLOSEFILE_g() { * extern hid_t H5E_CANTCLOSEFILE_g * } */ - public static void H5E_CANTCLOSEFILE_g(long varValue) { + public static void H5E_CANTCLOSEFILE_g(long varValue) + { H5E_CANTCLOSEFILE_g$constants.SEGMENT.set(H5E_CANTCLOSEFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCREATE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCREATE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCREATE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22253,9 +20534,7 @@ private static class H5E_CANTCREATE_g$constants { * extern hid_t H5E_CANTCREATE_g * } */ - public static OfLong H5E_CANTCREATE_g$layout() { - return H5E_CANTCREATE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCREATE_g$layout() { return H5E_CANTCREATE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22263,9 +20542,7 @@ private static class H5E_CANTCREATE_g$constants { * extern hid_t H5E_CANTCREATE_g * } */ - public static MemorySegment H5E_CANTCREATE_g$segment() { - return H5E_CANTCREATE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCREATE_g$segment() { return H5E_CANTCREATE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22273,7 +20550,8 @@ private static class H5E_CANTCREATE_g$constants { * extern hid_t H5E_CANTCREATE_g * } */ - public static long H5E_CANTCREATE_g() { + public static long H5E_CANTCREATE_g() + { return H5E_CANTCREATE_g$constants.SEGMENT.get(H5E_CANTCREATE_g$constants.LAYOUT, 0L); } @@ -22283,13 +20561,15 @@ public static long H5E_CANTCREATE_g() { * extern hid_t H5E_CANTCREATE_g * } */ - public static void H5E_CANTCREATE_g(long varValue) { + public static void H5E_CANTCREATE_g(long varValue) + { H5E_CANTCREATE_g$constants.SEGMENT.set(H5E_CANTCREATE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDELETEFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDELETEFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDELETEFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22298,9 +20578,7 @@ private static class H5E_CANTDELETEFILE_g$constants { * extern hid_t H5E_CANTDELETEFILE_g * } */ - public static OfLong H5E_CANTDELETEFILE_g$layout() { - return H5E_CANTDELETEFILE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDELETEFILE_g$layout() { return H5E_CANTDELETEFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22308,7 +20586,8 @@ private static class H5E_CANTDELETEFILE_g$constants { * extern hid_t H5E_CANTDELETEFILE_g * } */ - public static MemorySegment H5E_CANTDELETEFILE_g$segment() { + public static MemorySegment H5E_CANTDELETEFILE_g$segment() + { return H5E_CANTDELETEFILE_g$constants.SEGMENT; } @@ -22318,7 +20597,8 @@ private static class H5E_CANTDELETEFILE_g$constants { * extern hid_t H5E_CANTDELETEFILE_g * } */ - public static long H5E_CANTDELETEFILE_g() { + public static long H5E_CANTDELETEFILE_g() + { return H5E_CANTDELETEFILE_g$constants.SEGMENT.get(H5E_CANTDELETEFILE_g$constants.LAYOUT, 0L); } @@ -22328,13 +20608,15 @@ public static long H5E_CANTDELETEFILE_g() { * extern hid_t H5E_CANTDELETEFILE_g * } */ - public static void H5E_CANTDELETEFILE_g(long varValue) { + public static void H5E_CANTDELETEFILE_g(long varValue) + { H5E_CANTDELETEFILE_g$constants.SEGMENT.set(H5E_CANTDELETEFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTLOCKFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTLOCKFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTLOCKFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22343,9 +20625,7 @@ private static class H5E_CANTLOCKFILE_g$constants { * extern hid_t H5E_CANTLOCKFILE_g * } */ - public static OfLong H5E_CANTLOCKFILE_g$layout() { - return H5E_CANTLOCKFILE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTLOCKFILE_g$layout() { return H5E_CANTLOCKFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22353,9 +20633,7 @@ private static class H5E_CANTLOCKFILE_g$constants { * extern hid_t H5E_CANTLOCKFILE_g * } */ - public static MemorySegment H5E_CANTLOCKFILE_g$segment() { - return H5E_CANTLOCKFILE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTLOCKFILE_g$segment() { return H5E_CANTLOCKFILE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22363,7 +20641,8 @@ private static class H5E_CANTLOCKFILE_g$constants { * extern hid_t H5E_CANTLOCKFILE_g * } */ - public static long H5E_CANTLOCKFILE_g() { + public static long H5E_CANTLOCKFILE_g() + { return H5E_CANTLOCKFILE_g$constants.SEGMENT.get(H5E_CANTLOCKFILE_g$constants.LAYOUT, 0L); } @@ -22373,13 +20652,15 @@ public static long H5E_CANTLOCKFILE_g() { * extern hid_t H5E_CANTLOCKFILE_g * } */ - public static void H5E_CANTLOCKFILE_g(long varValue) { + public static void H5E_CANTLOCKFILE_g(long varValue) + { H5E_CANTLOCKFILE_g$constants.SEGMENT.set(H5E_CANTLOCKFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTOPENFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTOPENFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTOPENFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22388,9 +20669,7 @@ private static class H5E_CANTOPENFILE_g$constants { * extern hid_t H5E_CANTOPENFILE_g * } */ - public static OfLong H5E_CANTOPENFILE_g$layout() { - return H5E_CANTOPENFILE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTOPENFILE_g$layout() { return H5E_CANTOPENFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22398,9 +20677,7 @@ private static class H5E_CANTOPENFILE_g$constants { * extern hid_t H5E_CANTOPENFILE_g * } */ - public static MemorySegment H5E_CANTOPENFILE_g$segment() { - return H5E_CANTOPENFILE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTOPENFILE_g$segment() { return H5E_CANTOPENFILE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22408,7 +20685,8 @@ private static class H5E_CANTOPENFILE_g$constants { * extern hid_t H5E_CANTOPENFILE_g * } */ - public static long H5E_CANTOPENFILE_g() { + public static long H5E_CANTOPENFILE_g() + { return H5E_CANTOPENFILE_g$constants.SEGMENT.get(H5E_CANTOPENFILE_g$constants.LAYOUT, 0L); } @@ -22418,13 +20696,15 @@ public static long H5E_CANTOPENFILE_g() { * extern hid_t H5E_CANTOPENFILE_g * } */ - public static void H5E_CANTOPENFILE_g(long varValue) { + public static void H5E_CANTOPENFILE_g(long varValue) + { H5E_CANTOPENFILE_g$constants.SEGMENT.set(H5E_CANTOPENFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNLOCKFILE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNLOCKFILE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNLOCKFILE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22433,9 +20713,7 @@ private static class H5E_CANTUNLOCKFILE_g$constants { * extern hid_t H5E_CANTUNLOCKFILE_g * } */ - public static OfLong H5E_CANTUNLOCKFILE_g$layout() { - return H5E_CANTUNLOCKFILE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNLOCKFILE_g$layout() { return H5E_CANTUNLOCKFILE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22443,7 +20721,8 @@ private static class H5E_CANTUNLOCKFILE_g$constants { * extern hid_t H5E_CANTUNLOCKFILE_g * } */ - public static MemorySegment H5E_CANTUNLOCKFILE_g$segment() { + public static MemorySegment H5E_CANTUNLOCKFILE_g$segment() + { return H5E_CANTUNLOCKFILE_g$constants.SEGMENT; } @@ -22453,7 +20732,8 @@ private static class H5E_CANTUNLOCKFILE_g$constants { * extern hid_t H5E_CANTUNLOCKFILE_g * } */ - public static long H5E_CANTUNLOCKFILE_g() { + public static long H5E_CANTUNLOCKFILE_g() + { return H5E_CANTUNLOCKFILE_g$constants.SEGMENT.get(H5E_CANTUNLOCKFILE_g$constants.LAYOUT, 0L); } @@ -22463,13 +20743,15 @@ public static long H5E_CANTUNLOCKFILE_g() { * extern hid_t H5E_CANTUNLOCKFILE_g * } */ - public static void H5E_CANTUNLOCKFILE_g(long varValue) { + public static void H5E_CANTUNLOCKFILE_g(long varValue) + { H5E_CANTUNLOCKFILE_g$constants.SEGMENT.set(H5E_CANTUNLOCKFILE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FILEEXISTS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FILEEXISTS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FILEEXISTS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22478,9 +20760,7 @@ private static class H5E_FILEEXISTS_g$constants { * extern hid_t H5E_FILEEXISTS_g * } */ - public static OfLong H5E_FILEEXISTS_g$layout() { - return H5E_FILEEXISTS_g$constants.LAYOUT; - } + public static OfLong H5E_FILEEXISTS_g$layout() { return H5E_FILEEXISTS_g$constants.LAYOUT; } /** * Segment for variable: @@ -22488,9 +20768,7 @@ private static class H5E_FILEEXISTS_g$constants { * extern hid_t H5E_FILEEXISTS_g * } */ - public static MemorySegment H5E_FILEEXISTS_g$segment() { - return H5E_FILEEXISTS_g$constants.SEGMENT; - } + public static MemorySegment H5E_FILEEXISTS_g$segment() { return H5E_FILEEXISTS_g$constants.SEGMENT; } /** * Getter for variable: @@ -22498,7 +20776,8 @@ private static class H5E_FILEEXISTS_g$constants { * extern hid_t H5E_FILEEXISTS_g * } */ - public static long H5E_FILEEXISTS_g() { + public static long H5E_FILEEXISTS_g() + { return H5E_FILEEXISTS_g$constants.SEGMENT.get(H5E_FILEEXISTS_g$constants.LAYOUT, 0L); } @@ -22508,13 +20787,15 @@ public static long H5E_FILEEXISTS_g() { * extern hid_t H5E_FILEEXISTS_g * } */ - public static void H5E_FILEEXISTS_g(long varValue) { + public static void H5E_FILEEXISTS_g(long varValue) + { H5E_FILEEXISTS_g$constants.SEGMENT.set(H5E_FILEEXISTS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_FILEOPEN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_FILEOPEN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_FILEOPEN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22523,9 +20804,7 @@ private static class H5E_FILEOPEN_g$constants { * extern hid_t H5E_FILEOPEN_g * } */ - public static OfLong H5E_FILEOPEN_g$layout() { - return H5E_FILEOPEN_g$constants.LAYOUT; - } + public static OfLong H5E_FILEOPEN_g$layout() { return H5E_FILEOPEN_g$constants.LAYOUT; } /** * Segment for variable: @@ -22533,9 +20812,7 @@ private static class H5E_FILEOPEN_g$constants { * extern hid_t H5E_FILEOPEN_g * } */ - public static MemorySegment H5E_FILEOPEN_g$segment() { - return H5E_FILEOPEN_g$constants.SEGMENT; - } + public static MemorySegment H5E_FILEOPEN_g$segment() { return H5E_FILEOPEN_g$constants.SEGMENT; } /** * Getter for variable: @@ -22543,7 +20820,8 @@ private static class H5E_FILEOPEN_g$constants { * extern hid_t H5E_FILEOPEN_g * } */ - public static long H5E_FILEOPEN_g() { + public static long H5E_FILEOPEN_g() + { return H5E_FILEOPEN_g$constants.SEGMENT.get(H5E_FILEOPEN_g$constants.LAYOUT, 0L); } @@ -22553,13 +20831,15 @@ public static long H5E_FILEOPEN_g() { * extern hid_t H5E_FILEOPEN_g * } */ - public static void H5E_FILEOPEN_g(long varValue) { + public static void H5E_FILEOPEN_g(long varValue) + { H5E_FILEOPEN_g$constants.SEGMENT.set(H5E_FILEOPEN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_MOUNT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_MOUNT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_MOUNT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22568,9 +20848,7 @@ private static class H5E_MOUNT_g$constants { * extern hid_t H5E_MOUNT_g * } */ - public static OfLong H5E_MOUNT_g$layout() { - return H5E_MOUNT_g$constants.LAYOUT; - } + public static OfLong H5E_MOUNT_g$layout() { return H5E_MOUNT_g$constants.LAYOUT; } /** * Segment for variable: @@ -22578,9 +20856,7 @@ private static class H5E_MOUNT_g$constants { * extern hid_t H5E_MOUNT_g * } */ - public static MemorySegment H5E_MOUNT_g$segment() { - return H5E_MOUNT_g$constants.SEGMENT; - } + public static MemorySegment H5E_MOUNT_g$segment() { return H5E_MOUNT_g$constants.SEGMENT; } /** * Getter for variable: @@ -22588,7 +20864,8 @@ private static class H5E_MOUNT_g$constants { * extern hid_t H5E_MOUNT_g * } */ - public static long H5E_MOUNT_g() { + public static long H5E_MOUNT_g() + { return H5E_MOUNT_g$constants.SEGMENT.get(H5E_MOUNT_g$constants.LAYOUT, 0L); } @@ -22598,13 +20875,15 @@ public static long H5E_MOUNT_g() { * extern hid_t H5E_MOUNT_g * } */ - public static void H5E_MOUNT_g(long varValue) { + public static void H5E_MOUNT_g(long varValue) + { H5E_MOUNT_g$constants.SEGMENT.set(H5E_MOUNT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOTHDF5_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOTHDF5_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOTHDF5_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22613,9 +20892,7 @@ private static class H5E_NOTHDF5_g$constants { * extern hid_t H5E_NOTHDF5_g * } */ - public static OfLong H5E_NOTHDF5_g$layout() { - return H5E_NOTHDF5_g$constants.LAYOUT; - } + public static OfLong H5E_NOTHDF5_g$layout() { return H5E_NOTHDF5_g$constants.LAYOUT; } /** * Segment for variable: @@ -22623,9 +20900,7 @@ private static class H5E_NOTHDF5_g$constants { * extern hid_t H5E_NOTHDF5_g * } */ - public static MemorySegment H5E_NOTHDF5_g$segment() { - return H5E_NOTHDF5_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOTHDF5_g$segment() { return H5E_NOTHDF5_g$constants.SEGMENT; } /** * Getter for variable: @@ -22633,7 +20908,8 @@ private static class H5E_NOTHDF5_g$constants { * extern hid_t H5E_NOTHDF5_g * } */ - public static long H5E_NOTHDF5_g() { + public static long H5E_NOTHDF5_g() + { return H5E_NOTHDF5_g$constants.SEGMENT.get(H5E_NOTHDF5_g$constants.LAYOUT, 0L); } @@ -22643,13 +20919,15 @@ public static long H5E_NOTHDF5_g() { * extern hid_t H5E_NOTHDF5_g * } */ - public static void H5E_NOTHDF5_g(long varValue) { + public static void H5E_NOTHDF5_g(long varValue) + { H5E_NOTHDF5_g$constants.SEGMENT.set(H5E_NOTHDF5_g$constants.LAYOUT, 0L, varValue); } private static class H5E_TRUNCATED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_TRUNCATED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_TRUNCATED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22658,9 +20936,7 @@ private static class H5E_TRUNCATED_g$constants { * extern hid_t H5E_TRUNCATED_g * } */ - public static OfLong H5E_TRUNCATED_g$layout() { - return H5E_TRUNCATED_g$constants.LAYOUT; - } + public static OfLong H5E_TRUNCATED_g$layout() { return H5E_TRUNCATED_g$constants.LAYOUT; } /** * Segment for variable: @@ -22668,9 +20944,7 @@ private static class H5E_TRUNCATED_g$constants { * extern hid_t H5E_TRUNCATED_g * } */ - public static MemorySegment H5E_TRUNCATED_g$segment() { - return H5E_TRUNCATED_g$constants.SEGMENT; - } + public static MemorySegment H5E_TRUNCATED_g$segment() { return H5E_TRUNCATED_g$constants.SEGMENT; } /** * Getter for variable: @@ -22678,7 +20952,8 @@ private static class H5E_TRUNCATED_g$constants { * extern hid_t H5E_TRUNCATED_g * } */ - public static long H5E_TRUNCATED_g() { + public static long H5E_TRUNCATED_g() + { return H5E_TRUNCATED_g$constants.SEGMENT.get(H5E_TRUNCATED_g$constants.LAYOUT, 0L); } @@ -22688,13 +20963,15 @@ public static long H5E_TRUNCATED_g() { * extern hid_t H5E_TRUNCATED_g * } */ - public static void H5E_TRUNCATED_g(long varValue) { + public static void H5E_TRUNCATED_g(long varValue) + { H5E_TRUNCATED_g$constants.SEGMENT.set(H5E_TRUNCATED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_UNMOUNT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_UNMOUNT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_UNMOUNT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22703,9 +20980,7 @@ private static class H5E_UNMOUNT_g$constants { * extern hid_t H5E_UNMOUNT_g * } */ - public static OfLong H5E_UNMOUNT_g$layout() { - return H5E_UNMOUNT_g$constants.LAYOUT; - } + public static OfLong H5E_UNMOUNT_g$layout() { return H5E_UNMOUNT_g$constants.LAYOUT; } /** * Segment for variable: @@ -22713,9 +20988,7 @@ private static class H5E_UNMOUNT_g$constants { * extern hid_t H5E_UNMOUNT_g * } */ - public static MemorySegment H5E_UNMOUNT_g$segment() { - return H5E_UNMOUNT_g$constants.SEGMENT; - } + public static MemorySegment H5E_UNMOUNT_g$segment() { return H5E_UNMOUNT_g$constants.SEGMENT; } /** * Getter for variable: @@ -22723,7 +20996,8 @@ private static class H5E_UNMOUNT_g$constants { * extern hid_t H5E_UNMOUNT_g * } */ - public static long H5E_UNMOUNT_g() { + public static long H5E_UNMOUNT_g() + { return H5E_UNMOUNT_g$constants.SEGMENT.get(H5E_UNMOUNT_g$constants.LAYOUT, 0L); } @@ -22733,13 +21007,15 @@ public static long H5E_UNMOUNT_g() { * extern hid_t H5E_UNMOUNT_g * } */ - public static void H5E_UNMOUNT_g(long varValue) { + public static void H5E_UNMOUNT_g(long varValue) + { H5E_UNMOUNT_g$constants.SEGMENT.set(H5E_UNMOUNT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMERGE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMERGE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMERGE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22748,9 +21024,7 @@ private static class H5E_CANTMERGE_g$constants { * extern hid_t H5E_CANTMERGE_g * } */ - public static OfLong H5E_CANTMERGE_g$layout() { - return H5E_CANTMERGE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTMERGE_g$layout() { return H5E_CANTMERGE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22758,9 +21032,7 @@ private static class H5E_CANTMERGE_g$constants { * extern hid_t H5E_CANTMERGE_g * } */ - public static MemorySegment H5E_CANTMERGE_g$segment() { - return H5E_CANTMERGE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTMERGE_g$segment() { return H5E_CANTMERGE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22768,7 +21040,8 @@ private static class H5E_CANTMERGE_g$constants { * extern hid_t H5E_CANTMERGE_g * } */ - public static long H5E_CANTMERGE_g() { + public static long H5E_CANTMERGE_g() + { return H5E_CANTMERGE_g$constants.SEGMENT.get(H5E_CANTMERGE_g$constants.LAYOUT, 0L); } @@ -22778,13 +21051,15 @@ public static long H5E_CANTMERGE_g() { * extern hid_t H5E_CANTMERGE_g * } */ - public static void H5E_CANTMERGE_g(long varValue) { + public static void H5E_CANTMERGE_g(long varValue) + { H5E_CANTMERGE_g$constants.SEGMENT.set(H5E_CANTMERGE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTREVIVE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTREVIVE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTREVIVE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22793,9 +21068,7 @@ private static class H5E_CANTREVIVE_g$constants { * extern hid_t H5E_CANTREVIVE_g * } */ - public static OfLong H5E_CANTREVIVE_g$layout() { - return H5E_CANTREVIVE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTREVIVE_g$layout() { return H5E_CANTREVIVE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22803,9 +21076,7 @@ private static class H5E_CANTREVIVE_g$constants { * extern hid_t H5E_CANTREVIVE_g * } */ - public static MemorySegment H5E_CANTREVIVE_g$segment() { - return H5E_CANTREVIVE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTREVIVE_g$segment() { return H5E_CANTREVIVE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22813,7 +21084,8 @@ private static class H5E_CANTREVIVE_g$constants { * extern hid_t H5E_CANTREVIVE_g * } */ - public static long H5E_CANTREVIVE_g() { + public static long H5E_CANTREVIVE_g() + { return H5E_CANTREVIVE_g$constants.SEGMENT.get(H5E_CANTREVIVE_g$constants.LAYOUT, 0L); } @@ -22823,13 +21095,15 @@ public static long H5E_CANTREVIVE_g() { * extern hid_t H5E_CANTREVIVE_g * } */ - public static void H5E_CANTREVIVE_g(long varValue) { + public static void H5E_CANTREVIVE_g(long varValue) + { H5E_CANTREVIVE_g$constants.SEGMENT.set(H5E_CANTREVIVE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSHRINK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSHRINK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSHRINK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22838,9 +21112,7 @@ private static class H5E_CANTSHRINK_g$constants { * extern hid_t H5E_CANTSHRINK_g * } */ - public static OfLong H5E_CANTSHRINK_g$layout() { - return H5E_CANTSHRINK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSHRINK_g$layout() { return H5E_CANTSHRINK_g$constants.LAYOUT; } /** * Segment for variable: @@ -22848,9 +21120,7 @@ private static class H5E_CANTSHRINK_g$constants { * extern hid_t H5E_CANTSHRINK_g * } */ - public static MemorySegment H5E_CANTSHRINK_g$segment() { - return H5E_CANTSHRINK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSHRINK_g$segment() { return H5E_CANTSHRINK_g$constants.SEGMENT; } /** * Getter for variable: @@ -22858,7 +21128,8 @@ private static class H5E_CANTSHRINK_g$constants { * extern hid_t H5E_CANTSHRINK_g * } */ - public static long H5E_CANTSHRINK_g() { + public static long H5E_CANTSHRINK_g() + { return H5E_CANTSHRINK_g$constants.SEGMENT.get(H5E_CANTSHRINK_g$constants.LAYOUT, 0L); } @@ -22868,13 +21139,15 @@ public static long H5E_CANTSHRINK_g() { * extern hid_t H5E_CANTSHRINK_g * } */ - public static void H5E_CANTSHRINK_g(long varValue) { + public static void H5E_CANTSHRINK_g(long varValue) + { H5E_CANTSHRINK_g$constants.SEGMENT.set(H5E_CANTSHRINK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ALREADYINIT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ALREADYINIT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ALREADYINIT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22883,9 +21156,7 @@ private static class H5E_ALREADYINIT_g$constants { * extern hid_t H5E_ALREADYINIT_g * } */ - public static OfLong H5E_ALREADYINIT_g$layout() { - return H5E_ALREADYINIT_g$constants.LAYOUT; - } + public static OfLong H5E_ALREADYINIT_g$layout() { return H5E_ALREADYINIT_g$constants.LAYOUT; } /** * Segment for variable: @@ -22893,9 +21164,7 @@ private static class H5E_ALREADYINIT_g$constants { * extern hid_t H5E_ALREADYINIT_g * } */ - public static MemorySegment H5E_ALREADYINIT_g$segment() { - return H5E_ALREADYINIT_g$constants.SEGMENT; - } + public static MemorySegment H5E_ALREADYINIT_g$segment() { return H5E_ALREADYINIT_g$constants.SEGMENT; } /** * Getter for variable: @@ -22903,7 +21172,8 @@ private static class H5E_ALREADYINIT_g$constants { * extern hid_t H5E_ALREADYINIT_g * } */ - public static long H5E_ALREADYINIT_g() { + public static long H5E_ALREADYINIT_g() + { return H5E_ALREADYINIT_g$constants.SEGMENT.get(H5E_ALREADYINIT_g$constants.LAYOUT, 0L); } @@ -22913,13 +21183,15 @@ public static long H5E_ALREADYINIT_g() { * extern hid_t H5E_ALREADYINIT_g * } */ - public static void H5E_ALREADYINIT_g(long varValue) { + public static void H5E_ALREADYINIT_g(long varValue) + { H5E_ALREADYINIT_g$constants.SEGMENT.set(H5E_ALREADYINIT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTINIT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTINIT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTINIT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22928,9 +21200,7 @@ private static class H5E_CANTINIT_g$constants { * extern hid_t H5E_CANTINIT_g * } */ - public static OfLong H5E_CANTINIT_g$layout() { - return H5E_CANTINIT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTINIT_g$layout() { return H5E_CANTINIT_g$constants.LAYOUT; } /** * Segment for variable: @@ -22938,9 +21208,7 @@ private static class H5E_CANTINIT_g$constants { * extern hid_t H5E_CANTINIT_g * } */ - public static MemorySegment H5E_CANTINIT_g$segment() { - return H5E_CANTINIT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTINIT_g$segment() { return H5E_CANTINIT_g$constants.SEGMENT; } /** * Getter for variable: @@ -22948,7 +21216,8 @@ private static class H5E_CANTINIT_g$constants { * extern hid_t H5E_CANTINIT_g * } */ - public static long H5E_CANTINIT_g() { + public static long H5E_CANTINIT_g() + { return H5E_CANTINIT_g$constants.SEGMENT.get(H5E_CANTINIT_g$constants.LAYOUT, 0L); } @@ -22958,13 +21227,15 @@ public static long H5E_CANTINIT_g() { * extern hid_t H5E_CANTINIT_g * } */ - public static void H5E_CANTINIT_g(long varValue) { + public static void H5E_CANTINIT_g(long varValue) + { H5E_CANTINIT_g$constants.SEGMENT.set(H5E_CANTINIT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRELEASE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRELEASE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRELEASE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -22973,9 +21244,7 @@ private static class H5E_CANTRELEASE_g$constants { * extern hid_t H5E_CANTRELEASE_g * } */ - public static OfLong H5E_CANTRELEASE_g$layout() { - return H5E_CANTRELEASE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRELEASE_g$layout() { return H5E_CANTRELEASE_g$constants.LAYOUT; } /** * Segment for variable: @@ -22983,9 +21252,7 @@ private static class H5E_CANTRELEASE_g$constants { * extern hid_t H5E_CANTRELEASE_g * } */ - public static MemorySegment H5E_CANTRELEASE_g$segment() { - return H5E_CANTRELEASE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRELEASE_g$segment() { return H5E_CANTRELEASE_g$constants.SEGMENT; } /** * Getter for variable: @@ -22993,7 +21260,8 @@ private static class H5E_CANTRELEASE_g$constants { * extern hid_t H5E_CANTRELEASE_g * } */ - public static long H5E_CANTRELEASE_g() { + public static long H5E_CANTRELEASE_g() + { return H5E_CANTRELEASE_g$constants.SEGMENT.get(H5E_CANTRELEASE_g$constants.LAYOUT, 0L); } @@ -23003,13 +21271,15 @@ public static long H5E_CANTRELEASE_g() { * extern hid_t H5E_CANTRELEASE_g * } */ - public static void H5E_CANTRELEASE_g(long varValue) { + public static void H5E_CANTRELEASE_g(long varValue) + { H5E_CANTRELEASE_g$constants.SEGMENT.set(H5E_CANTRELEASE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCLOSEOBJ_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCLOSEOBJ_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCLOSEOBJ_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23018,9 +21288,7 @@ private static class H5E_CANTCLOSEOBJ_g$constants { * extern hid_t H5E_CANTCLOSEOBJ_g * } */ - public static OfLong H5E_CANTCLOSEOBJ_g$layout() { - return H5E_CANTCLOSEOBJ_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCLOSEOBJ_g$layout() { return H5E_CANTCLOSEOBJ_g$constants.LAYOUT; } /** * Segment for variable: @@ -23028,9 +21296,7 @@ private static class H5E_CANTCLOSEOBJ_g$constants { * extern hid_t H5E_CANTCLOSEOBJ_g * } */ - public static MemorySegment H5E_CANTCLOSEOBJ_g$segment() { - return H5E_CANTCLOSEOBJ_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCLOSEOBJ_g$segment() { return H5E_CANTCLOSEOBJ_g$constants.SEGMENT; } /** * Getter for variable: @@ -23038,7 +21304,8 @@ private static class H5E_CANTCLOSEOBJ_g$constants { * extern hid_t H5E_CANTCLOSEOBJ_g * } */ - public static long H5E_CANTCLOSEOBJ_g() { + public static long H5E_CANTCLOSEOBJ_g() + { return H5E_CANTCLOSEOBJ_g$constants.SEGMENT.get(H5E_CANTCLOSEOBJ_g$constants.LAYOUT, 0L); } @@ -23048,13 +21315,15 @@ public static long H5E_CANTCLOSEOBJ_g() { * extern hid_t H5E_CANTCLOSEOBJ_g * } */ - public static void H5E_CANTCLOSEOBJ_g(long varValue) { + public static void H5E_CANTCLOSEOBJ_g(long varValue) + { H5E_CANTCLOSEOBJ_g$constants.SEGMENT.set(H5E_CANTCLOSEOBJ_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTOPENOBJ_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTOPENOBJ_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTOPENOBJ_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23063,9 +21332,7 @@ private static class H5E_CANTOPENOBJ_g$constants { * extern hid_t H5E_CANTOPENOBJ_g * } */ - public static OfLong H5E_CANTOPENOBJ_g$layout() { - return H5E_CANTOPENOBJ_g$constants.LAYOUT; - } + public static OfLong H5E_CANTOPENOBJ_g$layout() { return H5E_CANTOPENOBJ_g$constants.LAYOUT; } /** * Segment for variable: @@ -23073,9 +21340,7 @@ private static class H5E_CANTOPENOBJ_g$constants { * extern hid_t H5E_CANTOPENOBJ_g * } */ - public static MemorySegment H5E_CANTOPENOBJ_g$segment() { - return H5E_CANTOPENOBJ_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTOPENOBJ_g$segment() { return H5E_CANTOPENOBJ_g$constants.SEGMENT; } /** * Getter for variable: @@ -23083,7 +21348,8 @@ private static class H5E_CANTOPENOBJ_g$constants { * extern hid_t H5E_CANTOPENOBJ_g * } */ - public static long H5E_CANTOPENOBJ_g() { + public static long H5E_CANTOPENOBJ_g() + { return H5E_CANTOPENOBJ_g$constants.SEGMENT.get(H5E_CANTOPENOBJ_g$constants.LAYOUT, 0L); } @@ -23093,13 +21359,15 @@ public static long H5E_CANTOPENOBJ_g() { * extern hid_t H5E_CANTOPENOBJ_g * } */ - public static void H5E_CANTOPENOBJ_g(long varValue) { + public static void H5E_CANTOPENOBJ_g(long varValue) + { H5E_CANTOPENOBJ_g$constants.SEGMENT.set(H5E_CANTOPENOBJ_g$constants.LAYOUT, 0L, varValue); } private static class H5E_COMPLEN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_COMPLEN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_COMPLEN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23108,9 +21376,7 @@ private static class H5E_COMPLEN_g$constants { * extern hid_t H5E_COMPLEN_g * } */ - public static OfLong H5E_COMPLEN_g$layout() { - return H5E_COMPLEN_g$constants.LAYOUT; - } + public static OfLong H5E_COMPLEN_g$layout() { return H5E_COMPLEN_g$constants.LAYOUT; } /** * Segment for variable: @@ -23118,9 +21384,7 @@ private static class H5E_COMPLEN_g$constants { * extern hid_t H5E_COMPLEN_g * } */ - public static MemorySegment H5E_COMPLEN_g$segment() { - return H5E_COMPLEN_g$constants.SEGMENT; - } + public static MemorySegment H5E_COMPLEN_g$segment() { return H5E_COMPLEN_g$constants.SEGMENT; } /** * Getter for variable: @@ -23128,7 +21392,8 @@ private static class H5E_COMPLEN_g$constants { * extern hid_t H5E_COMPLEN_g * } */ - public static long H5E_COMPLEN_g() { + public static long H5E_COMPLEN_g() + { return H5E_COMPLEN_g$constants.SEGMENT.get(H5E_COMPLEN_g$constants.LAYOUT, 0L); } @@ -23138,13 +21403,15 @@ public static long H5E_COMPLEN_g() { * extern hid_t H5E_COMPLEN_g * } */ - public static void H5E_COMPLEN_g(long varValue) { + public static void H5E_COMPLEN_g(long varValue) + { H5E_COMPLEN_g$constants.SEGMENT.set(H5E_COMPLEN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_PATH_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_PATH_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_PATH_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23153,9 +21420,7 @@ private static class H5E_PATH_g$constants { * extern hid_t H5E_PATH_g * } */ - public static OfLong H5E_PATH_g$layout() { - return H5E_PATH_g$constants.LAYOUT; - } + public static OfLong H5E_PATH_g$layout() { return H5E_PATH_g$constants.LAYOUT; } /** * Segment for variable: @@ -23163,9 +21428,7 @@ private static class H5E_PATH_g$constants { * extern hid_t H5E_PATH_g * } */ - public static MemorySegment H5E_PATH_g$segment() { - return H5E_PATH_g$constants.SEGMENT; - } + public static MemorySegment H5E_PATH_g$segment() { return H5E_PATH_g$constants.SEGMENT; } /** * Getter for variable: @@ -23173,7 +21436,8 @@ private static class H5E_PATH_g$constants { * extern hid_t H5E_PATH_g * } */ - public static long H5E_PATH_g() { + public static long H5E_PATH_g() + { return H5E_PATH_g$constants.SEGMENT.get(H5E_PATH_g$constants.LAYOUT, 0L); } @@ -23183,13 +21447,15 @@ public static long H5E_PATH_g() { * extern hid_t H5E_PATH_g * } */ - public static void H5E_PATH_g(long varValue) { + public static void H5E_PATH_g(long varValue) + { H5E_PATH_g$constants.SEGMENT.set(H5E_PATH_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTATTACH_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTATTACH_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTATTACH_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23198,9 +21464,7 @@ private static class H5E_CANTATTACH_g$constants { * extern hid_t H5E_CANTATTACH_g * } */ - public static OfLong H5E_CANTATTACH_g$layout() { - return H5E_CANTATTACH_g$constants.LAYOUT; - } + public static OfLong H5E_CANTATTACH_g$layout() { return H5E_CANTATTACH_g$constants.LAYOUT; } /** * Segment for variable: @@ -23208,9 +21472,7 @@ private static class H5E_CANTATTACH_g$constants { * extern hid_t H5E_CANTATTACH_g * } */ - public static MemorySegment H5E_CANTATTACH_g$segment() { - return H5E_CANTATTACH_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTATTACH_g$segment() { return H5E_CANTATTACH_g$constants.SEGMENT; } /** * Getter for variable: @@ -23218,7 +21480,8 @@ private static class H5E_CANTATTACH_g$constants { * extern hid_t H5E_CANTATTACH_g * } */ - public static long H5E_CANTATTACH_g() { + public static long H5E_CANTATTACH_g() + { return H5E_CANTATTACH_g$constants.SEGMENT.get(H5E_CANTATTACH_g$constants.LAYOUT, 0L); } @@ -23228,13 +21491,15 @@ public static long H5E_CANTATTACH_g() { * extern hid_t H5E_CANTATTACH_g * } */ - public static void H5E_CANTATTACH_g(long varValue) { + public static void H5E_CANTATTACH_g(long varValue) + { H5E_CANTATTACH_g$constants.SEGMENT.set(H5E_CANTATTACH_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCOMPUTE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCOMPUTE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCOMPUTE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23243,9 +21508,7 @@ private static class H5E_CANTCOMPUTE_g$constants { * extern hid_t H5E_CANTCOMPUTE_g * } */ - public static OfLong H5E_CANTCOMPUTE_g$layout() { - return H5E_CANTCOMPUTE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCOMPUTE_g$layout() { return H5E_CANTCOMPUTE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23253,9 +21516,7 @@ private static class H5E_CANTCOMPUTE_g$constants { * extern hid_t H5E_CANTCOMPUTE_g * } */ - public static MemorySegment H5E_CANTCOMPUTE_g$segment() { - return H5E_CANTCOMPUTE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCOMPUTE_g$segment() { return H5E_CANTCOMPUTE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23263,7 +21524,8 @@ private static class H5E_CANTCOMPUTE_g$constants { * extern hid_t H5E_CANTCOMPUTE_g * } */ - public static long H5E_CANTCOMPUTE_g() { + public static long H5E_CANTCOMPUTE_g() + { return H5E_CANTCOMPUTE_g$constants.SEGMENT.get(H5E_CANTCOMPUTE_g$constants.LAYOUT, 0L); } @@ -23273,13 +21535,15 @@ public static long H5E_CANTCOMPUTE_g() { * extern hid_t H5E_CANTCOMPUTE_g * } */ - public static void H5E_CANTCOMPUTE_g(long varValue) { + public static void H5E_CANTCOMPUTE_g(long varValue) + { H5E_CANTCOMPUTE_g$constants.SEGMENT.set(H5E_CANTCOMPUTE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTEXTEND_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTEXTEND_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTEXTEND_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23288,9 +21552,7 @@ private static class H5E_CANTEXTEND_g$constants { * extern hid_t H5E_CANTEXTEND_g * } */ - public static OfLong H5E_CANTEXTEND_g$layout() { - return H5E_CANTEXTEND_g$constants.LAYOUT; - } + public static OfLong H5E_CANTEXTEND_g$layout() { return H5E_CANTEXTEND_g$constants.LAYOUT; } /** * Segment for variable: @@ -23298,9 +21560,7 @@ private static class H5E_CANTEXTEND_g$constants { * extern hid_t H5E_CANTEXTEND_g * } */ - public static MemorySegment H5E_CANTEXTEND_g$segment() { - return H5E_CANTEXTEND_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTEXTEND_g$segment() { return H5E_CANTEXTEND_g$constants.SEGMENT; } /** * Getter for variable: @@ -23308,7 +21568,8 @@ private static class H5E_CANTEXTEND_g$constants { * extern hid_t H5E_CANTEXTEND_g * } */ - public static long H5E_CANTEXTEND_g() { + public static long H5E_CANTEXTEND_g() + { return H5E_CANTEXTEND_g$constants.SEGMENT.get(H5E_CANTEXTEND_g$constants.LAYOUT, 0L); } @@ -23318,13 +21579,15 @@ public static long H5E_CANTEXTEND_g() { * extern hid_t H5E_CANTEXTEND_g * } */ - public static void H5E_CANTEXTEND_g(long varValue) { + public static void H5E_CANTEXTEND_g(long varValue) + { H5E_CANTEXTEND_g$constants.SEGMENT.set(H5E_CANTEXTEND_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTOPERATE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTOPERATE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTOPERATE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23333,9 +21596,7 @@ private static class H5E_CANTOPERATE_g$constants { * extern hid_t H5E_CANTOPERATE_g * } */ - public static OfLong H5E_CANTOPERATE_g$layout() { - return H5E_CANTOPERATE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTOPERATE_g$layout() { return H5E_CANTOPERATE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23343,9 +21604,7 @@ private static class H5E_CANTOPERATE_g$constants { * extern hid_t H5E_CANTOPERATE_g * } */ - public static MemorySegment H5E_CANTOPERATE_g$segment() { - return H5E_CANTOPERATE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTOPERATE_g$segment() { return H5E_CANTOPERATE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23353,7 +21612,8 @@ private static class H5E_CANTOPERATE_g$constants { * extern hid_t H5E_CANTOPERATE_g * } */ - public static long H5E_CANTOPERATE_g() { + public static long H5E_CANTOPERATE_g() + { return H5E_CANTOPERATE_g$constants.SEGMENT.get(H5E_CANTOPERATE_g$constants.LAYOUT, 0L); } @@ -23363,13 +21623,15 @@ public static long H5E_CANTOPERATE_g() { * extern hid_t H5E_CANTOPERATE_g * } */ - public static void H5E_CANTOPERATE_g(long varValue) { + public static void H5E_CANTOPERATE_g(long varValue) + { H5E_CANTOPERATE_g$constants.SEGMENT.set(H5E_CANTOPERATE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRESTORE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRESTORE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRESTORE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23378,9 +21640,7 @@ private static class H5E_CANTRESTORE_g$constants { * extern hid_t H5E_CANTRESTORE_g * } */ - public static OfLong H5E_CANTRESTORE_g$layout() { - return H5E_CANTRESTORE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRESTORE_g$layout() { return H5E_CANTRESTORE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23388,9 +21648,7 @@ private static class H5E_CANTRESTORE_g$constants { * extern hid_t H5E_CANTRESTORE_g * } */ - public static MemorySegment H5E_CANTRESTORE_g$segment() { - return H5E_CANTRESTORE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRESTORE_g$segment() { return H5E_CANTRESTORE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23398,7 +21656,8 @@ private static class H5E_CANTRESTORE_g$constants { * extern hid_t H5E_CANTRESTORE_g * } */ - public static long H5E_CANTRESTORE_g() { + public static long H5E_CANTRESTORE_g() + { return H5E_CANTRESTORE_g$constants.SEGMENT.get(H5E_CANTRESTORE_g$constants.LAYOUT, 0L); } @@ -23408,13 +21667,15 @@ public static long H5E_CANTRESTORE_g() { * extern hid_t H5E_CANTRESTORE_g * } */ - public static void H5E_CANTRESTORE_g(long varValue) { + public static void H5E_CANTRESTORE_g(long varValue) + { H5E_CANTRESTORE_g$constants.SEGMENT.set(H5E_CANTRESTORE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUPDATE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUPDATE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUPDATE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23423,9 +21684,7 @@ private static class H5E_CANTUPDATE_g$constants { * extern hid_t H5E_CANTUPDATE_g * } */ - public static OfLong H5E_CANTUPDATE_g$layout() { - return H5E_CANTUPDATE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUPDATE_g$layout() { return H5E_CANTUPDATE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23433,9 +21692,7 @@ private static class H5E_CANTUPDATE_g$constants { * extern hid_t H5E_CANTUPDATE_g * } */ - public static MemorySegment H5E_CANTUPDATE_g$segment() { - return H5E_CANTUPDATE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTUPDATE_g$segment() { return H5E_CANTUPDATE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23443,7 +21700,8 @@ private static class H5E_CANTUPDATE_g$constants { * extern hid_t H5E_CANTUPDATE_g * } */ - public static long H5E_CANTUPDATE_g() { + public static long H5E_CANTUPDATE_g() + { return H5E_CANTUPDATE_g$constants.SEGMENT.get(H5E_CANTUPDATE_g$constants.LAYOUT, 0L); } @@ -23453,13 +21711,15 @@ public static long H5E_CANTUPDATE_g() { * extern hid_t H5E_CANTUPDATE_g * } */ - public static void H5E_CANTUPDATE_g(long varValue) { + public static void H5E_CANTUPDATE_g(long varValue) + { H5E_CANTUPDATE_g$constants.SEGMENT.set(H5E_CANTUPDATE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADGROUP_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADGROUP_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADGROUP_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23468,9 +21728,7 @@ private static class H5E_BADGROUP_g$constants { * extern hid_t H5E_BADGROUP_g * } */ - public static OfLong H5E_BADGROUP_g$layout() { - return H5E_BADGROUP_g$constants.LAYOUT; - } + public static OfLong H5E_BADGROUP_g$layout() { return H5E_BADGROUP_g$constants.LAYOUT; } /** * Segment for variable: @@ -23478,9 +21736,7 @@ private static class H5E_BADGROUP_g$constants { * extern hid_t H5E_BADGROUP_g * } */ - public static MemorySegment H5E_BADGROUP_g$segment() { - return H5E_BADGROUP_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADGROUP_g$segment() { return H5E_BADGROUP_g$constants.SEGMENT; } /** * Getter for variable: @@ -23488,7 +21744,8 @@ private static class H5E_BADGROUP_g$constants { * extern hid_t H5E_BADGROUP_g * } */ - public static long H5E_BADGROUP_g() { + public static long H5E_BADGROUP_g() + { return H5E_BADGROUP_g$constants.SEGMENT.get(H5E_BADGROUP_g$constants.LAYOUT, 0L); } @@ -23498,13 +21755,15 @@ public static long H5E_BADGROUP_g() { * extern hid_t H5E_BADGROUP_g * } */ - public static void H5E_BADGROUP_g(long varValue) { + public static void H5E_BADGROUP_g(long varValue) + { H5E_BADGROUP_g$constants.SEGMENT.set(H5E_BADGROUP_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADID_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADID_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADID_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23513,9 +21772,7 @@ private static class H5E_BADID_g$constants { * extern hid_t H5E_BADID_g * } */ - public static OfLong H5E_BADID_g$layout() { - return H5E_BADID_g$constants.LAYOUT; - } + public static OfLong H5E_BADID_g$layout() { return H5E_BADID_g$constants.LAYOUT; } /** * Segment for variable: @@ -23523,9 +21780,7 @@ private static class H5E_BADID_g$constants { * extern hid_t H5E_BADID_g * } */ - public static MemorySegment H5E_BADID_g$segment() { - return H5E_BADID_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADID_g$segment() { return H5E_BADID_g$constants.SEGMENT; } /** * Getter for variable: @@ -23533,7 +21788,8 @@ private static class H5E_BADID_g$constants { * extern hid_t H5E_BADID_g * } */ - public static long H5E_BADID_g() { + public static long H5E_BADID_g() + { return H5E_BADID_g$constants.SEGMENT.get(H5E_BADID_g$constants.LAYOUT, 0L); } @@ -23543,13 +21799,15 @@ public static long H5E_BADID_g() { * extern hid_t H5E_BADID_g * } */ - public static void H5E_BADID_g(long varValue) { + public static void H5E_BADID_g(long varValue) + { H5E_BADID_g$constants.SEGMENT.set(H5E_BADID_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDEC_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDEC_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDEC_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23558,9 +21816,7 @@ private static class H5E_CANTDEC_g$constants { * extern hid_t H5E_CANTDEC_g * } */ - public static OfLong H5E_CANTDEC_g$layout() { - return H5E_CANTDEC_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDEC_g$layout() { return H5E_CANTDEC_g$constants.LAYOUT; } /** * Segment for variable: @@ -23568,9 +21824,7 @@ private static class H5E_CANTDEC_g$constants { * extern hid_t H5E_CANTDEC_g * } */ - public static MemorySegment H5E_CANTDEC_g$segment() { - return H5E_CANTDEC_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTDEC_g$segment() { return H5E_CANTDEC_g$constants.SEGMENT; } /** * Getter for variable: @@ -23578,7 +21832,8 @@ private static class H5E_CANTDEC_g$constants { * extern hid_t H5E_CANTDEC_g * } */ - public static long H5E_CANTDEC_g() { + public static long H5E_CANTDEC_g() + { return H5E_CANTDEC_g$constants.SEGMENT.get(H5E_CANTDEC_g$constants.LAYOUT, 0L); } @@ -23588,13 +21843,15 @@ public static long H5E_CANTDEC_g() { * extern hid_t H5E_CANTDEC_g * } */ - public static void H5E_CANTDEC_g(long varValue) { + public static void H5E_CANTDEC_g(long varValue) + { H5E_CANTDEC_g$constants.SEGMENT.set(H5E_CANTDEC_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTINC_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTINC_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTINC_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23603,9 +21860,7 @@ private static class H5E_CANTINC_g$constants { * extern hid_t H5E_CANTINC_g * } */ - public static OfLong H5E_CANTINC_g$layout() { - return H5E_CANTINC_g$constants.LAYOUT; - } + public static OfLong H5E_CANTINC_g$layout() { return H5E_CANTINC_g$constants.LAYOUT; } /** * Segment for variable: @@ -23613,9 +21868,7 @@ private static class H5E_CANTINC_g$constants { * extern hid_t H5E_CANTINC_g * } */ - public static MemorySegment H5E_CANTINC_g$segment() { - return H5E_CANTINC_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTINC_g$segment() { return H5E_CANTINC_g$constants.SEGMENT; } /** * Getter for variable: @@ -23623,7 +21876,8 @@ private static class H5E_CANTINC_g$constants { * extern hid_t H5E_CANTINC_g * } */ - public static long H5E_CANTINC_g() { + public static long H5E_CANTINC_g() + { return H5E_CANTINC_g$constants.SEGMENT.get(H5E_CANTINC_g$constants.LAYOUT, 0L); } @@ -23633,13 +21887,15 @@ public static long H5E_CANTINC_g() { * extern hid_t H5E_CANTINC_g * } */ - public static void H5E_CANTINC_g(long varValue) { + public static void H5E_CANTINC_g(long varValue) + { H5E_CANTINC_g$constants.SEGMENT.set(H5E_CANTINC_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTREGISTER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTREGISTER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTREGISTER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23648,9 +21904,7 @@ private static class H5E_CANTREGISTER_g$constants { * extern hid_t H5E_CANTREGISTER_g * } */ - public static OfLong H5E_CANTREGISTER_g$layout() { - return H5E_CANTREGISTER_g$constants.LAYOUT; - } + public static OfLong H5E_CANTREGISTER_g$layout() { return H5E_CANTREGISTER_g$constants.LAYOUT; } /** * Segment for variable: @@ -23658,9 +21912,7 @@ private static class H5E_CANTREGISTER_g$constants { * extern hid_t H5E_CANTREGISTER_g * } */ - public static MemorySegment H5E_CANTREGISTER_g$segment() { - return H5E_CANTREGISTER_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTREGISTER_g$segment() { return H5E_CANTREGISTER_g$constants.SEGMENT; } /** * Getter for variable: @@ -23668,7 +21920,8 @@ private static class H5E_CANTREGISTER_g$constants { * extern hid_t H5E_CANTREGISTER_g * } */ - public static long H5E_CANTREGISTER_g() { + public static long H5E_CANTREGISTER_g() + { return H5E_CANTREGISTER_g$constants.SEGMENT.get(H5E_CANTREGISTER_g$constants.LAYOUT, 0L); } @@ -23678,13 +21931,15 @@ public static long H5E_CANTREGISTER_g() { * extern hid_t H5E_CANTREGISTER_g * } */ - public static void H5E_CANTREGISTER_g(long varValue) { + public static void H5E_CANTREGISTER_g(long varValue) + { H5E_CANTREGISTER_g$constants.SEGMENT.set(H5E_CANTREGISTER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOIDS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOIDS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOIDS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23693,9 +21948,7 @@ private static class H5E_NOIDS_g$constants { * extern hid_t H5E_NOIDS_g * } */ - public static OfLong H5E_NOIDS_g$layout() { - return H5E_NOIDS_g$constants.LAYOUT; - } + public static OfLong H5E_NOIDS_g$layout() { return H5E_NOIDS_g$constants.LAYOUT; } /** * Segment for variable: @@ -23703,9 +21956,7 @@ private static class H5E_NOIDS_g$constants { * extern hid_t H5E_NOIDS_g * } */ - public static MemorySegment H5E_NOIDS_g$segment() { - return H5E_NOIDS_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOIDS_g$segment() { return H5E_NOIDS_g$constants.SEGMENT; } /** * Getter for variable: @@ -23713,7 +21964,8 @@ private static class H5E_NOIDS_g$constants { * extern hid_t H5E_NOIDS_g * } */ - public static long H5E_NOIDS_g() { + public static long H5E_NOIDS_g() + { return H5E_NOIDS_g$constants.SEGMENT.get(H5E_NOIDS_g$constants.LAYOUT, 0L); } @@ -23723,13 +21975,15 @@ public static long H5E_NOIDS_g() { * extern hid_t H5E_NOIDS_g * } */ - public static void H5E_NOIDS_g(long varValue) { + public static void H5E_NOIDS_g(long varValue) + { H5E_NOIDS_g$constants.SEGMENT.set(H5E_NOIDS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTMOVE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTMOVE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTMOVE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23738,9 +21992,7 @@ private static class H5E_CANTMOVE_g$constants { * extern hid_t H5E_CANTMOVE_g * } */ - public static OfLong H5E_CANTMOVE_g$layout() { - return H5E_CANTMOVE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTMOVE_g$layout() { return H5E_CANTMOVE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23748,9 +22000,7 @@ private static class H5E_CANTMOVE_g$constants { * extern hid_t H5E_CANTMOVE_g * } */ - public static MemorySegment H5E_CANTMOVE_g$segment() { - return H5E_CANTMOVE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTMOVE_g$segment() { return H5E_CANTMOVE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23758,7 +22008,8 @@ private static class H5E_CANTMOVE_g$constants { * extern hid_t H5E_CANTMOVE_g * } */ - public static long H5E_CANTMOVE_g() { + public static long H5E_CANTMOVE_g() + { return H5E_CANTMOVE_g$constants.SEGMENT.get(H5E_CANTMOVE_g$constants.LAYOUT, 0L); } @@ -23768,13 +22019,15 @@ public static long H5E_CANTMOVE_g() { * extern hid_t H5E_CANTMOVE_g * } */ - public static void H5E_CANTMOVE_g(long varValue) { + public static void H5E_CANTMOVE_g(long varValue) + { H5E_CANTMOVE_g$constants.SEGMENT.set(H5E_CANTMOVE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSORT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSORT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSORT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23783,9 +22036,7 @@ private static class H5E_CANTSORT_g$constants { * extern hid_t H5E_CANTSORT_g * } */ - public static OfLong H5E_CANTSORT_g$layout() { - return H5E_CANTSORT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSORT_g$layout() { return H5E_CANTSORT_g$constants.LAYOUT; } /** * Segment for variable: @@ -23793,9 +22044,7 @@ private static class H5E_CANTSORT_g$constants { * extern hid_t H5E_CANTSORT_g * } */ - public static MemorySegment H5E_CANTSORT_g$segment() { - return H5E_CANTSORT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSORT_g$segment() { return H5E_CANTSORT_g$constants.SEGMENT; } /** * Getter for variable: @@ -23803,7 +22052,8 @@ private static class H5E_CANTSORT_g$constants { * extern hid_t H5E_CANTSORT_g * } */ - public static long H5E_CANTSORT_g() { + public static long H5E_CANTSORT_g() + { return H5E_CANTSORT_g$constants.SEGMENT.get(H5E_CANTSORT_g$constants.LAYOUT, 0L); } @@ -23813,13 +22063,15 @@ public static long H5E_CANTSORT_g() { * extern hid_t H5E_CANTSORT_g * } */ - public static void H5E_CANTSORT_g(long varValue) { + public static void H5E_CANTSORT_g(long varValue) + { H5E_CANTSORT_g$constants.SEGMENT.set(H5E_CANTSORT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NLINKS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NLINKS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NLINKS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23828,9 +22080,7 @@ private static class H5E_NLINKS_g$constants { * extern hid_t H5E_NLINKS_g * } */ - public static OfLong H5E_NLINKS_g$layout() { - return H5E_NLINKS_g$constants.LAYOUT; - } + public static OfLong H5E_NLINKS_g$layout() { return H5E_NLINKS_g$constants.LAYOUT; } /** * Segment for variable: @@ -23838,9 +22088,7 @@ private static class H5E_NLINKS_g$constants { * extern hid_t H5E_NLINKS_g * } */ - public static MemorySegment H5E_NLINKS_g$segment() { - return H5E_NLINKS_g$constants.SEGMENT; - } + public static MemorySegment H5E_NLINKS_g$segment() { return H5E_NLINKS_g$constants.SEGMENT; } /** * Getter for variable: @@ -23848,7 +22096,8 @@ private static class H5E_NLINKS_g$constants { * extern hid_t H5E_NLINKS_g * } */ - public static long H5E_NLINKS_g() { + public static long H5E_NLINKS_g() + { return H5E_NLINKS_g$constants.SEGMENT.get(H5E_NLINKS_g$constants.LAYOUT, 0L); } @@ -23858,13 +22107,15 @@ public static long H5E_NLINKS_g() { * extern hid_t H5E_NLINKS_g * } */ - public static void H5E_NLINKS_g(long varValue) { + public static void H5E_NLINKS_g(long varValue) + { H5E_NLINKS_g$constants.SEGMENT.set(H5E_NLINKS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOTREGISTERED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOTREGISTERED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOTREGISTERED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23873,9 +22124,7 @@ private static class H5E_NOTREGISTERED_g$constants { * extern hid_t H5E_NOTREGISTERED_g * } */ - public static OfLong H5E_NOTREGISTERED_g$layout() { - return H5E_NOTREGISTERED_g$constants.LAYOUT; - } + public static OfLong H5E_NOTREGISTERED_g$layout() { return H5E_NOTREGISTERED_g$constants.LAYOUT; } /** * Segment for variable: @@ -23883,7 +22132,8 @@ private static class H5E_NOTREGISTERED_g$constants { * extern hid_t H5E_NOTREGISTERED_g * } */ - public static MemorySegment H5E_NOTREGISTERED_g$segment() { + public static MemorySegment H5E_NOTREGISTERED_g$segment() + { return H5E_NOTREGISTERED_g$constants.SEGMENT; } @@ -23893,7 +22143,8 @@ private static class H5E_NOTREGISTERED_g$constants { * extern hid_t H5E_NOTREGISTERED_g * } */ - public static long H5E_NOTREGISTERED_g() { + public static long H5E_NOTREGISTERED_g() + { return H5E_NOTREGISTERED_g$constants.SEGMENT.get(H5E_NOTREGISTERED_g$constants.LAYOUT, 0L); } @@ -23903,13 +22154,15 @@ public static long H5E_NOTREGISTERED_g() { * extern hid_t H5E_NOTREGISTERED_g * } */ - public static void H5E_NOTREGISTERED_g(long varValue) { + public static void H5E_NOTREGISTERED_g(long varValue) + { H5E_NOTREGISTERED_g$constants.SEGMENT.set(H5E_NOTREGISTERED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_TRAVERSE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_TRAVERSE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_TRAVERSE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23918,9 +22171,7 @@ private static class H5E_TRAVERSE_g$constants { * extern hid_t H5E_TRAVERSE_g * } */ - public static OfLong H5E_TRAVERSE_g$layout() { - return H5E_TRAVERSE_g$constants.LAYOUT; - } + public static OfLong H5E_TRAVERSE_g$layout() { return H5E_TRAVERSE_g$constants.LAYOUT; } /** * Segment for variable: @@ -23928,9 +22179,7 @@ private static class H5E_TRAVERSE_g$constants { * extern hid_t H5E_TRAVERSE_g * } */ - public static MemorySegment H5E_TRAVERSE_g$segment() { - return H5E_TRAVERSE_g$constants.SEGMENT; - } + public static MemorySegment H5E_TRAVERSE_g$segment() { return H5E_TRAVERSE_g$constants.SEGMENT; } /** * Getter for variable: @@ -23938,7 +22187,8 @@ private static class H5E_TRAVERSE_g$constants { * extern hid_t H5E_TRAVERSE_g * } */ - public static long H5E_TRAVERSE_g() { + public static long H5E_TRAVERSE_g() + { return H5E_TRAVERSE_g$constants.SEGMENT.get(H5E_TRAVERSE_g$constants.LAYOUT, 0L); } @@ -23948,13 +22198,15 @@ public static long H5E_TRAVERSE_g() { * extern hid_t H5E_TRAVERSE_g * } */ - public static void H5E_TRAVERSE_g(long varValue) { + public static void H5E_TRAVERSE_g(long varValue) + { H5E_TRAVERSE_g$constants.SEGMENT.set(H5E_TRAVERSE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTPUT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTPUT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTPUT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -23963,9 +22215,7 @@ private static class H5E_CANTPUT_g$constants { * extern hid_t H5E_CANTPUT_g * } */ - public static OfLong H5E_CANTPUT_g$layout() { - return H5E_CANTPUT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTPUT_g$layout() { return H5E_CANTPUT_g$constants.LAYOUT; } /** * Segment for variable: @@ -23973,9 +22223,7 @@ private static class H5E_CANTPUT_g$constants { * extern hid_t H5E_CANTPUT_g * } */ - public static MemorySegment H5E_CANTPUT_g$segment() { - return H5E_CANTPUT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTPUT_g$segment() { return H5E_CANTPUT_g$constants.SEGMENT; } /** * Getter for variable: @@ -23983,7 +22231,8 @@ private static class H5E_CANTPUT_g$constants { * extern hid_t H5E_CANTPUT_g * } */ - public static long H5E_CANTPUT_g() { + public static long H5E_CANTPUT_g() + { return H5E_CANTPUT_g$constants.SEGMENT.get(H5E_CANTPUT_g$constants.LAYOUT, 0L); } @@ -23993,13 +22242,15 @@ public static long H5E_CANTPUT_g() { * extern hid_t H5E_CANTPUT_g * } */ - public static void H5E_CANTPUT_g(long varValue) { + public static void H5E_CANTPUT_g(long varValue) + { H5E_CANTPUT_g$constants.SEGMENT.set(H5E_CANTPUT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTGATHER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTGATHER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTGATHER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24008,9 +22259,7 @@ private static class H5E_CANTGATHER_g$constants { * extern hid_t H5E_CANTGATHER_g * } */ - public static OfLong H5E_CANTGATHER_g$layout() { - return H5E_CANTGATHER_g$constants.LAYOUT; - } + public static OfLong H5E_CANTGATHER_g$layout() { return H5E_CANTGATHER_g$constants.LAYOUT; } /** * Segment for variable: @@ -24018,9 +22267,7 @@ private static class H5E_CANTGATHER_g$constants { * extern hid_t H5E_CANTGATHER_g * } */ - public static MemorySegment H5E_CANTGATHER_g$segment() { - return H5E_CANTGATHER_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTGATHER_g$segment() { return H5E_CANTGATHER_g$constants.SEGMENT; } /** * Getter for variable: @@ -24028,7 +22275,8 @@ private static class H5E_CANTGATHER_g$constants { * extern hid_t H5E_CANTGATHER_g * } */ - public static long H5E_CANTGATHER_g() { + public static long H5E_CANTGATHER_g() + { return H5E_CANTGATHER_g$constants.SEGMENT.get(H5E_CANTGATHER_g$constants.LAYOUT, 0L); } @@ -24038,13 +22286,15 @@ public static long H5E_CANTGATHER_g() { * extern hid_t H5E_CANTGATHER_g * } */ - public static void H5E_CANTGATHER_g(long varValue) { + public static void H5E_CANTGATHER_g(long varValue) + { H5E_CANTGATHER_g$constants.SEGMENT.set(H5E_CANTGATHER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRECV_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRECV_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRECV_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24053,9 +22303,7 @@ private static class H5E_CANTRECV_g$constants { * extern hid_t H5E_CANTRECV_g * } */ - public static OfLong H5E_CANTRECV_g$layout() { - return H5E_CANTRECV_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRECV_g$layout() { return H5E_CANTRECV_g$constants.LAYOUT; } /** * Segment for variable: @@ -24063,9 +22311,7 @@ private static class H5E_CANTRECV_g$constants { * extern hid_t H5E_CANTRECV_g * } */ - public static MemorySegment H5E_CANTRECV_g$segment() { - return H5E_CANTRECV_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRECV_g$segment() { return H5E_CANTRECV_g$constants.SEGMENT; } /** * Getter for variable: @@ -24073,7 +22319,8 @@ private static class H5E_CANTRECV_g$constants { * extern hid_t H5E_CANTRECV_g * } */ - public static long H5E_CANTRECV_g() { + public static long H5E_CANTRECV_g() + { return H5E_CANTRECV_g$constants.SEGMENT.get(H5E_CANTRECV_g$constants.LAYOUT, 0L); } @@ -24083,13 +22330,15 @@ public static long H5E_CANTRECV_g() { * extern hid_t H5E_CANTRECV_g * } */ - public static void H5E_CANTRECV_g(long varValue) { + public static void H5E_CANTRECV_g(long varValue) + { H5E_CANTRECV_g$constants.SEGMENT.set(H5E_CANTRECV_g$constants.LAYOUT, 0L, varValue); } private static class H5E_MPI_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_MPI_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_MPI_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24098,9 +22347,7 @@ private static class H5E_MPI_g$constants { * extern hid_t H5E_MPI_g * } */ - public static OfLong H5E_MPI_g$layout() { - return H5E_MPI_g$constants.LAYOUT; - } + public static OfLong H5E_MPI_g$layout() { return H5E_MPI_g$constants.LAYOUT; } /** * Segment for variable: @@ -24108,9 +22355,7 @@ private static class H5E_MPI_g$constants { * extern hid_t H5E_MPI_g * } */ - public static MemorySegment H5E_MPI_g$segment() { - return H5E_MPI_g$constants.SEGMENT; - } + public static MemorySegment H5E_MPI_g$segment() { return H5E_MPI_g$constants.SEGMENT; } /** * Getter for variable: @@ -24118,9 +22363,7 @@ private static class H5E_MPI_g$constants { * extern hid_t H5E_MPI_g * } */ - public static long H5E_MPI_g() { - return H5E_MPI_g$constants.SEGMENT.get(H5E_MPI_g$constants.LAYOUT, 0L); - } + public static long H5E_MPI_g() { return H5E_MPI_g$constants.SEGMENT.get(H5E_MPI_g$constants.LAYOUT, 0L); } /** * Setter for variable: @@ -24128,13 +22371,15 @@ public static long H5E_MPI_g() { * extern hid_t H5E_MPI_g * } */ - public static void H5E_MPI_g(long varValue) { + public static void H5E_MPI_g(long varValue) + { H5E_MPI_g$constants.SEGMENT.set(H5E_MPI_g$constants.LAYOUT, 0L, varValue); } private static class H5E_MPIERRSTR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_MPIERRSTR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_MPIERRSTR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24143,9 +22388,7 @@ private static class H5E_MPIERRSTR_g$constants { * extern hid_t H5E_MPIERRSTR_g * } */ - public static OfLong H5E_MPIERRSTR_g$layout() { - return H5E_MPIERRSTR_g$constants.LAYOUT; - } + public static OfLong H5E_MPIERRSTR_g$layout() { return H5E_MPIERRSTR_g$constants.LAYOUT; } /** * Segment for variable: @@ -24153,9 +22396,7 @@ private static class H5E_MPIERRSTR_g$constants { * extern hid_t H5E_MPIERRSTR_g * } */ - public static MemorySegment H5E_MPIERRSTR_g$segment() { - return H5E_MPIERRSTR_g$constants.SEGMENT; - } + public static MemorySegment H5E_MPIERRSTR_g$segment() { return H5E_MPIERRSTR_g$constants.SEGMENT; } /** * Getter for variable: @@ -24163,7 +22404,8 @@ private static class H5E_MPIERRSTR_g$constants { * extern hid_t H5E_MPIERRSTR_g * } */ - public static long H5E_MPIERRSTR_g() { + public static long H5E_MPIERRSTR_g() + { return H5E_MPIERRSTR_g$constants.SEGMENT.get(H5E_MPIERRSTR_g$constants.LAYOUT, 0L); } @@ -24173,13 +22415,15 @@ public static long H5E_MPIERRSTR_g() { * extern hid_t H5E_MPIERRSTR_g * } */ - public static void H5E_MPIERRSTR_g(long varValue) { + public static void H5E_MPIERRSTR_g(long varValue) + { H5E_MPIERRSTR_g$constants.SEGMENT.set(H5E_MPIERRSTR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NO_INDEPENDENT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NO_INDEPENDENT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NO_INDEPENDENT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24188,9 +22432,7 @@ private static class H5E_NO_INDEPENDENT_g$constants { * extern hid_t H5E_NO_INDEPENDENT_g * } */ - public static OfLong H5E_NO_INDEPENDENT_g$layout() { - return H5E_NO_INDEPENDENT_g$constants.LAYOUT; - } + public static OfLong H5E_NO_INDEPENDENT_g$layout() { return H5E_NO_INDEPENDENT_g$constants.LAYOUT; } /** * Segment for variable: @@ -24198,7 +22440,8 @@ private static class H5E_NO_INDEPENDENT_g$constants { * extern hid_t H5E_NO_INDEPENDENT_g * } */ - public static MemorySegment H5E_NO_INDEPENDENT_g$segment() { + public static MemorySegment H5E_NO_INDEPENDENT_g$segment() + { return H5E_NO_INDEPENDENT_g$constants.SEGMENT; } @@ -24208,7 +22451,8 @@ private static class H5E_NO_INDEPENDENT_g$constants { * extern hid_t H5E_NO_INDEPENDENT_g * } */ - public static long H5E_NO_INDEPENDENT_g() { + public static long H5E_NO_INDEPENDENT_g() + { return H5E_NO_INDEPENDENT_g$constants.SEGMENT.get(H5E_NO_INDEPENDENT_g$constants.LAYOUT, 0L); } @@ -24218,13 +22462,15 @@ public static long H5E_NO_INDEPENDENT_g() { * extern hid_t H5E_NO_INDEPENDENT_g * } */ - public static void H5E_NO_INDEPENDENT_g(long varValue) { + public static void H5E_NO_INDEPENDENT_g(long varValue) + { H5E_NO_INDEPENDENT_g$constants.SEGMENT.set(H5E_NO_INDEPENDENT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NONE_MINOR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NONE_MINOR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NONE_MINOR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24233,9 +22479,7 @@ private static class H5E_NONE_MINOR_g$constants { * extern hid_t H5E_NONE_MINOR_g * } */ - public static OfLong H5E_NONE_MINOR_g$layout() { - return H5E_NONE_MINOR_g$constants.LAYOUT; - } + public static OfLong H5E_NONE_MINOR_g$layout() { return H5E_NONE_MINOR_g$constants.LAYOUT; } /** * Segment for variable: @@ -24243,9 +22487,7 @@ private static class H5E_NONE_MINOR_g$constants { * extern hid_t H5E_NONE_MINOR_g * } */ - public static MemorySegment H5E_NONE_MINOR_g$segment() { - return H5E_NONE_MINOR_g$constants.SEGMENT; - } + public static MemorySegment H5E_NONE_MINOR_g$segment() { return H5E_NONE_MINOR_g$constants.SEGMENT; } /** * Getter for variable: @@ -24253,7 +22495,8 @@ private static class H5E_NONE_MINOR_g$constants { * extern hid_t H5E_NONE_MINOR_g * } */ - public static long H5E_NONE_MINOR_g() { + public static long H5E_NONE_MINOR_g() + { return H5E_NONE_MINOR_g$constants.SEGMENT.get(H5E_NONE_MINOR_g$constants.LAYOUT, 0L); } @@ -24263,13 +22506,15 @@ public static long H5E_NONE_MINOR_g() { * extern hid_t H5E_NONE_MINOR_g * } */ - public static void H5E_NONE_MINOR_g(long varValue) { + public static void H5E_NONE_MINOR_g(long varValue) + { H5E_NONE_MINOR_g$constants.SEGMENT.set(H5E_NONE_MINOR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ALIGNMENT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ALIGNMENT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ALIGNMENT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24278,9 +22523,7 @@ private static class H5E_ALIGNMENT_g$constants { * extern hid_t H5E_ALIGNMENT_g * } */ - public static OfLong H5E_ALIGNMENT_g$layout() { - return H5E_ALIGNMENT_g$constants.LAYOUT; - } + public static OfLong H5E_ALIGNMENT_g$layout() { return H5E_ALIGNMENT_g$constants.LAYOUT; } /** * Segment for variable: @@ -24288,9 +22531,7 @@ private static class H5E_ALIGNMENT_g$constants { * extern hid_t H5E_ALIGNMENT_g * } */ - public static MemorySegment H5E_ALIGNMENT_g$segment() { - return H5E_ALIGNMENT_g$constants.SEGMENT; - } + public static MemorySegment H5E_ALIGNMENT_g$segment() { return H5E_ALIGNMENT_g$constants.SEGMENT; } /** * Getter for variable: @@ -24298,7 +22539,8 @@ private static class H5E_ALIGNMENT_g$constants { * extern hid_t H5E_ALIGNMENT_g * } */ - public static long H5E_ALIGNMENT_g() { + public static long H5E_ALIGNMENT_g() + { return H5E_ALIGNMENT_g$constants.SEGMENT.get(H5E_ALIGNMENT_g$constants.LAYOUT, 0L); } @@ -24308,13 +22550,15 @@ public static long H5E_ALIGNMENT_g() { * extern hid_t H5E_ALIGNMENT_g * } */ - public static void H5E_ALIGNMENT_g(long varValue) { + public static void H5E_ALIGNMENT_g(long varValue) + { H5E_ALIGNMENT_g$constants.SEGMENT.set(H5E_ALIGNMENT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADITER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADITER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADITER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24323,9 +22567,7 @@ private static class H5E_BADITER_g$constants { * extern hid_t H5E_BADITER_g * } */ - public static OfLong H5E_BADITER_g$layout() { - return H5E_BADITER_g$constants.LAYOUT; - } + public static OfLong H5E_BADITER_g$layout() { return H5E_BADITER_g$constants.LAYOUT; } /** * Segment for variable: @@ -24333,9 +22575,7 @@ private static class H5E_BADITER_g$constants { * extern hid_t H5E_BADITER_g * } */ - public static MemorySegment H5E_BADITER_g$segment() { - return H5E_BADITER_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADITER_g$segment() { return H5E_BADITER_g$constants.SEGMENT; } /** * Getter for variable: @@ -24343,7 +22583,8 @@ private static class H5E_BADITER_g$constants { * extern hid_t H5E_BADITER_g * } */ - public static long H5E_BADITER_g() { + public static long H5E_BADITER_g() + { return H5E_BADITER_g$constants.SEGMENT.get(H5E_BADITER_g$constants.LAYOUT, 0L); } @@ -24353,13 +22594,15 @@ public static long H5E_BADITER_g() { * extern hid_t H5E_BADITER_g * } */ - public static void H5E_BADITER_g(long varValue) { + public static void H5E_BADITER_g(long varValue) + { H5E_BADITER_g$constants.SEGMENT.set(H5E_BADITER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADMESG_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADMESG_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADMESG_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24368,9 +22611,7 @@ private static class H5E_BADMESG_g$constants { * extern hid_t H5E_BADMESG_g * } */ - public static OfLong H5E_BADMESG_g$layout() { - return H5E_BADMESG_g$constants.LAYOUT; - } + public static OfLong H5E_BADMESG_g$layout() { return H5E_BADMESG_g$constants.LAYOUT; } /** * Segment for variable: @@ -24378,9 +22619,7 @@ private static class H5E_BADMESG_g$constants { * extern hid_t H5E_BADMESG_g * } */ - public static MemorySegment H5E_BADMESG_g$segment() { - return H5E_BADMESG_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADMESG_g$segment() { return H5E_BADMESG_g$constants.SEGMENT; } /** * Getter for variable: @@ -24388,7 +22627,8 @@ private static class H5E_BADMESG_g$constants { * extern hid_t H5E_BADMESG_g * } */ - public static long H5E_BADMESG_g() { + public static long H5E_BADMESG_g() + { return H5E_BADMESG_g$constants.SEGMENT.get(H5E_BADMESG_g$constants.LAYOUT, 0L); } @@ -24398,13 +22638,15 @@ public static long H5E_BADMESG_g() { * extern hid_t H5E_BADMESG_g * } */ - public static void H5E_BADMESG_g(long varValue) { + public static void H5E_BADMESG_g(long varValue) + { H5E_BADMESG_g$constants.SEGMENT.set(H5E_BADMESG_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTDELETE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTDELETE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTDELETE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24413,9 +22655,7 @@ private static class H5E_CANTDELETE_g$constants { * extern hid_t H5E_CANTDELETE_g * } */ - public static OfLong H5E_CANTDELETE_g$layout() { - return H5E_CANTDELETE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTDELETE_g$layout() { return H5E_CANTDELETE_g$constants.LAYOUT; } /** * Segment for variable: @@ -24423,9 +22663,7 @@ private static class H5E_CANTDELETE_g$constants { * extern hid_t H5E_CANTDELETE_g * } */ - public static MemorySegment H5E_CANTDELETE_g$segment() { - return H5E_CANTDELETE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTDELETE_g$segment() { return H5E_CANTDELETE_g$constants.SEGMENT; } /** * Getter for variable: @@ -24433,7 +22671,8 @@ private static class H5E_CANTDELETE_g$constants { * extern hid_t H5E_CANTDELETE_g * } */ - public static long H5E_CANTDELETE_g() { + public static long H5E_CANTDELETE_g() + { return H5E_CANTDELETE_g$constants.SEGMENT.get(H5E_CANTDELETE_g$constants.LAYOUT, 0L); } @@ -24443,13 +22682,15 @@ public static long H5E_CANTDELETE_g() { * extern hid_t H5E_CANTDELETE_g * } */ - public static void H5E_CANTDELETE_g(long varValue) { + public static void H5E_CANTDELETE_g(long varValue) + { H5E_CANTDELETE_g$constants.SEGMENT.set(H5E_CANTDELETE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTPACK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTPACK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTPACK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24458,9 +22699,7 @@ private static class H5E_CANTPACK_g$constants { * extern hid_t H5E_CANTPACK_g * } */ - public static OfLong H5E_CANTPACK_g$layout() { - return H5E_CANTPACK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTPACK_g$layout() { return H5E_CANTPACK_g$constants.LAYOUT; } /** * Segment for variable: @@ -24468,9 +22707,7 @@ private static class H5E_CANTPACK_g$constants { * extern hid_t H5E_CANTPACK_g * } */ - public static MemorySegment H5E_CANTPACK_g$segment() { - return H5E_CANTPACK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTPACK_g$segment() { return H5E_CANTPACK_g$constants.SEGMENT; } /** * Getter for variable: @@ -24478,7 +22715,8 @@ private static class H5E_CANTPACK_g$constants { * extern hid_t H5E_CANTPACK_g * } */ - public static long H5E_CANTPACK_g() { + public static long H5E_CANTPACK_g() + { return H5E_CANTPACK_g$constants.SEGMENT.get(H5E_CANTPACK_g$constants.LAYOUT, 0L); } @@ -24488,13 +22726,15 @@ public static long H5E_CANTPACK_g() { * extern hid_t H5E_CANTPACK_g * } */ - public static void H5E_CANTPACK_g(long varValue) { + public static void H5E_CANTPACK_g(long varValue) + { H5E_CANTPACK_g$constants.SEGMENT.set(H5E_CANTPACK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRENAME_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRENAME_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRENAME_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24503,9 +22743,7 @@ private static class H5E_CANTRENAME_g$constants { * extern hid_t H5E_CANTRENAME_g * } */ - public static OfLong H5E_CANTRENAME_g$layout() { - return H5E_CANTRENAME_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRENAME_g$layout() { return H5E_CANTRENAME_g$constants.LAYOUT; } /** * Segment for variable: @@ -24513,9 +22751,7 @@ private static class H5E_CANTRENAME_g$constants { * extern hid_t H5E_CANTRENAME_g * } */ - public static MemorySegment H5E_CANTRENAME_g$segment() { - return H5E_CANTRENAME_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRENAME_g$segment() { return H5E_CANTRENAME_g$constants.SEGMENT; } /** * Getter for variable: @@ -24523,7 +22759,8 @@ private static class H5E_CANTRENAME_g$constants { * extern hid_t H5E_CANTRENAME_g * } */ - public static long H5E_CANTRENAME_g() { + public static long H5E_CANTRENAME_g() + { return H5E_CANTRENAME_g$constants.SEGMENT.get(H5E_CANTRENAME_g$constants.LAYOUT, 0L); } @@ -24533,13 +22770,15 @@ public static long H5E_CANTRENAME_g() { * extern hid_t H5E_CANTRENAME_g * } */ - public static void H5E_CANTRENAME_g(long varValue) { + public static void H5E_CANTRENAME_g(long varValue) + { H5E_CANTRENAME_g$constants.SEGMENT.set(H5E_CANTRENAME_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTRESET_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTRESET_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTRESET_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24548,9 +22787,7 @@ private static class H5E_CANTRESET_g$constants { * extern hid_t H5E_CANTRESET_g * } */ - public static OfLong H5E_CANTRESET_g$layout() { - return H5E_CANTRESET_g$constants.LAYOUT; - } + public static OfLong H5E_CANTRESET_g$layout() { return H5E_CANTRESET_g$constants.LAYOUT; } /** * Segment for variable: @@ -24558,9 +22795,7 @@ private static class H5E_CANTRESET_g$constants { * extern hid_t H5E_CANTRESET_g * } */ - public static MemorySegment H5E_CANTRESET_g$segment() { - return H5E_CANTRESET_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTRESET_g$segment() { return H5E_CANTRESET_g$constants.SEGMENT; } /** * Getter for variable: @@ -24568,7 +22803,8 @@ private static class H5E_CANTRESET_g$constants { * extern hid_t H5E_CANTRESET_g * } */ - public static long H5E_CANTRESET_g() { + public static long H5E_CANTRESET_g() + { return H5E_CANTRESET_g$constants.SEGMENT.get(H5E_CANTRESET_g$constants.LAYOUT, 0L); } @@ -24578,13 +22814,15 @@ public static long H5E_CANTRESET_g() { * extern hid_t H5E_CANTRESET_g * } */ - public static void H5E_CANTRESET_g(long varValue) { + public static void H5E_CANTRESET_g(long varValue) + { H5E_CANTRESET_g$constants.SEGMENT.set(H5E_CANTRESET_g$constants.LAYOUT, 0L, varValue); } private static class H5E_LINKCOUNT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_LINKCOUNT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_LINKCOUNT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24593,9 +22831,7 @@ private static class H5E_LINKCOUNT_g$constants { * extern hid_t H5E_LINKCOUNT_g * } */ - public static OfLong H5E_LINKCOUNT_g$layout() { - return H5E_LINKCOUNT_g$constants.LAYOUT; - } + public static OfLong H5E_LINKCOUNT_g$layout() { return H5E_LINKCOUNT_g$constants.LAYOUT; } /** * Segment for variable: @@ -24603,9 +22839,7 @@ private static class H5E_LINKCOUNT_g$constants { * extern hid_t H5E_LINKCOUNT_g * } */ - public static MemorySegment H5E_LINKCOUNT_g$segment() { - return H5E_LINKCOUNT_g$constants.SEGMENT; - } + public static MemorySegment H5E_LINKCOUNT_g$segment() { return H5E_LINKCOUNT_g$constants.SEGMENT; } /** * Getter for variable: @@ -24613,7 +22847,8 @@ private static class H5E_LINKCOUNT_g$constants { * extern hid_t H5E_LINKCOUNT_g * } */ - public static long H5E_LINKCOUNT_g() { + public static long H5E_LINKCOUNT_g() + { return H5E_LINKCOUNT_g$constants.SEGMENT.get(H5E_LINKCOUNT_g$constants.LAYOUT, 0L); } @@ -24623,13 +22858,15 @@ public static long H5E_LINKCOUNT_g() { * extern hid_t H5E_LINKCOUNT_g * } */ - public static void H5E_LINKCOUNT_g(long varValue) { + public static void H5E_LINKCOUNT_g(long varValue) + { H5E_LINKCOUNT_g$constants.SEGMENT.set(H5E_LINKCOUNT_g$constants.LAYOUT, 0L, varValue); } private static class H5E_VERSION_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_VERSION_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_VERSION_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24638,9 +22875,7 @@ private static class H5E_VERSION_g$constants { * extern hid_t H5E_VERSION_g * } */ - public static OfLong H5E_VERSION_g$layout() { - return H5E_VERSION_g$constants.LAYOUT; - } + public static OfLong H5E_VERSION_g$layout() { return H5E_VERSION_g$constants.LAYOUT; } /** * Segment for variable: @@ -24648,9 +22883,7 @@ private static class H5E_VERSION_g$constants { * extern hid_t H5E_VERSION_g * } */ - public static MemorySegment H5E_VERSION_g$segment() { - return H5E_VERSION_g$constants.SEGMENT; - } + public static MemorySegment H5E_VERSION_g$segment() { return H5E_VERSION_g$constants.SEGMENT; } /** * Getter for variable: @@ -24658,7 +22891,8 @@ private static class H5E_VERSION_g$constants { * extern hid_t H5E_VERSION_g * } */ - public static long H5E_VERSION_g() { + public static long H5E_VERSION_g() + { return H5E_VERSION_g$constants.SEGMENT.get(H5E_VERSION_g$constants.LAYOUT, 0L); } @@ -24668,13 +22902,15 @@ public static long H5E_VERSION_g() { * extern hid_t H5E_VERSION_g * } */ - public static void H5E_VERSION_g(long varValue) { + public static void H5E_VERSION_g(long varValue) + { H5E_VERSION_g$constants.SEGMENT.set(H5E_VERSION_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CALLBACK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CALLBACK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CALLBACK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24683,9 +22919,7 @@ private static class H5E_CALLBACK_g$constants { * extern hid_t H5E_CALLBACK_g * } */ - public static OfLong H5E_CALLBACK_g$layout() { - return H5E_CALLBACK_g$constants.LAYOUT; - } + public static OfLong H5E_CALLBACK_g$layout() { return H5E_CALLBACK_g$constants.LAYOUT; } /** * Segment for variable: @@ -24693,9 +22927,7 @@ private static class H5E_CALLBACK_g$constants { * extern hid_t H5E_CALLBACK_g * } */ - public static MemorySegment H5E_CALLBACK_g$segment() { - return H5E_CALLBACK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CALLBACK_g$segment() { return H5E_CALLBACK_g$constants.SEGMENT; } /** * Getter for variable: @@ -24703,7 +22935,8 @@ private static class H5E_CALLBACK_g$constants { * extern hid_t H5E_CALLBACK_g * } */ - public static long H5E_CALLBACK_g() { + public static long H5E_CALLBACK_g() + { return H5E_CALLBACK_g$constants.SEGMENT.get(H5E_CALLBACK_g$constants.LAYOUT, 0L); } @@ -24713,13 +22946,15 @@ public static long H5E_CALLBACK_g() { * extern hid_t H5E_CALLBACK_g * } */ - public static void H5E_CALLBACK_g(long varValue) { + public static void H5E_CALLBACK_g(long varValue) + { H5E_CALLBACK_g$constants.SEGMENT.set(H5E_CALLBACK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANAPPLY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANAPPLY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANAPPLY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24728,9 +22963,7 @@ private static class H5E_CANAPPLY_g$constants { * extern hid_t H5E_CANAPPLY_g * } */ - public static OfLong H5E_CANAPPLY_g$layout() { - return H5E_CANAPPLY_g$constants.LAYOUT; - } + public static OfLong H5E_CANAPPLY_g$layout() { return H5E_CANAPPLY_g$constants.LAYOUT; } /** * Segment for variable: @@ -24738,9 +22971,7 @@ private static class H5E_CANAPPLY_g$constants { * extern hid_t H5E_CANAPPLY_g * } */ - public static MemorySegment H5E_CANAPPLY_g$segment() { - return H5E_CANAPPLY_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANAPPLY_g$segment() { return H5E_CANAPPLY_g$constants.SEGMENT; } /** * Getter for variable: @@ -24748,7 +22979,8 @@ private static class H5E_CANAPPLY_g$constants { * extern hid_t H5E_CANAPPLY_g * } */ - public static long H5E_CANAPPLY_g() { + public static long H5E_CANAPPLY_g() + { return H5E_CANAPPLY_g$constants.SEGMENT.get(H5E_CANAPPLY_g$constants.LAYOUT, 0L); } @@ -24758,13 +22990,15 @@ public static long H5E_CANAPPLY_g() { * extern hid_t H5E_CANAPPLY_g * } */ - public static void H5E_CANAPPLY_g(long varValue) { + public static void H5E_CANAPPLY_g(long varValue) + { H5E_CANAPPLY_g$constants.SEGMENT.set(H5E_CANAPPLY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTFILTER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTFILTER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTFILTER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24773,9 +23007,7 @@ private static class H5E_CANTFILTER_g$constants { * extern hid_t H5E_CANTFILTER_g * } */ - public static OfLong H5E_CANTFILTER_g$layout() { - return H5E_CANTFILTER_g$constants.LAYOUT; - } + public static OfLong H5E_CANTFILTER_g$layout() { return H5E_CANTFILTER_g$constants.LAYOUT; } /** * Segment for variable: @@ -24783,9 +23015,7 @@ private static class H5E_CANTFILTER_g$constants { * extern hid_t H5E_CANTFILTER_g * } */ - public static MemorySegment H5E_CANTFILTER_g$segment() { - return H5E_CANTFILTER_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTFILTER_g$segment() { return H5E_CANTFILTER_g$constants.SEGMENT; } /** * Getter for variable: @@ -24793,7 +23023,8 @@ private static class H5E_CANTFILTER_g$constants { * extern hid_t H5E_CANTFILTER_g * } */ - public static long H5E_CANTFILTER_g() { + public static long H5E_CANTFILTER_g() + { return H5E_CANTFILTER_g$constants.SEGMENT.get(H5E_CANTFILTER_g$constants.LAYOUT, 0L); } @@ -24803,13 +23034,15 @@ public static long H5E_CANTFILTER_g() { * extern hid_t H5E_CANTFILTER_g * } */ - public static void H5E_CANTFILTER_g(long varValue) { + public static void H5E_CANTFILTER_g(long varValue) + { H5E_CANTFILTER_g$constants.SEGMENT.set(H5E_CANTFILTER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOENCODER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOENCODER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOENCODER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24818,9 +23051,7 @@ private static class H5E_NOENCODER_g$constants { * extern hid_t H5E_NOENCODER_g * } */ - public static OfLong H5E_NOENCODER_g$layout() { - return H5E_NOENCODER_g$constants.LAYOUT; - } + public static OfLong H5E_NOENCODER_g$layout() { return H5E_NOENCODER_g$constants.LAYOUT; } /** * Segment for variable: @@ -24828,9 +23059,7 @@ private static class H5E_NOENCODER_g$constants { * extern hid_t H5E_NOENCODER_g * } */ - public static MemorySegment H5E_NOENCODER_g$segment() { - return H5E_NOENCODER_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOENCODER_g$segment() { return H5E_NOENCODER_g$constants.SEGMENT; } /** * Getter for variable: @@ -24838,7 +23067,8 @@ private static class H5E_NOENCODER_g$constants { * extern hid_t H5E_NOENCODER_g * } */ - public static long H5E_NOENCODER_g() { + public static long H5E_NOENCODER_g() + { return H5E_NOENCODER_g$constants.SEGMENT.get(H5E_NOENCODER_g$constants.LAYOUT, 0L); } @@ -24848,13 +23078,15 @@ public static long H5E_NOENCODER_g() { * extern hid_t H5E_NOENCODER_g * } */ - public static void H5E_NOENCODER_g(long varValue) { + public static void H5E_NOENCODER_g(long varValue) + { H5E_NOENCODER_g$constants.SEGMENT.set(H5E_NOENCODER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOFILTER_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOFILTER_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOFILTER_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24863,9 +23095,7 @@ private static class H5E_NOFILTER_g$constants { * extern hid_t H5E_NOFILTER_g * } */ - public static OfLong H5E_NOFILTER_g$layout() { - return H5E_NOFILTER_g$constants.LAYOUT; - } + public static OfLong H5E_NOFILTER_g$layout() { return H5E_NOFILTER_g$constants.LAYOUT; } /** * Segment for variable: @@ -24873,9 +23103,7 @@ private static class H5E_NOFILTER_g$constants { * extern hid_t H5E_NOFILTER_g * } */ - public static MemorySegment H5E_NOFILTER_g$segment() { - return H5E_NOFILTER_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOFILTER_g$segment() { return H5E_NOFILTER_g$constants.SEGMENT; } /** * Getter for variable: @@ -24883,7 +23111,8 @@ private static class H5E_NOFILTER_g$constants { * extern hid_t H5E_NOFILTER_g * } */ - public static long H5E_NOFILTER_g() { + public static long H5E_NOFILTER_g() + { return H5E_NOFILTER_g$constants.SEGMENT.get(H5E_NOFILTER_g$constants.LAYOUT, 0L); } @@ -24893,13 +23122,15 @@ public static long H5E_NOFILTER_g() { * extern hid_t H5E_NOFILTER_g * } */ - public static void H5E_NOFILTER_g(long varValue) { + public static void H5E_NOFILTER_g(long varValue) + { H5E_NOFILTER_g$constants.SEGMENT.set(H5E_NOFILTER_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SETLOCAL_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SETLOCAL_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SETLOCAL_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24908,9 +23139,7 @@ private static class H5E_SETLOCAL_g$constants { * extern hid_t H5E_SETLOCAL_g * } */ - public static OfLong H5E_SETLOCAL_g$layout() { - return H5E_SETLOCAL_g$constants.LAYOUT; - } + public static OfLong H5E_SETLOCAL_g$layout() { return H5E_SETLOCAL_g$constants.LAYOUT; } /** * Segment for variable: @@ -24918,9 +23147,7 @@ private static class H5E_SETLOCAL_g$constants { * extern hid_t H5E_SETLOCAL_g * } */ - public static MemorySegment H5E_SETLOCAL_g$segment() { - return H5E_SETLOCAL_g$constants.SEGMENT; - } + public static MemorySegment H5E_SETLOCAL_g$segment() { return H5E_SETLOCAL_g$constants.SEGMENT; } /** * Getter for variable: @@ -24928,7 +23155,8 @@ private static class H5E_SETLOCAL_g$constants { * extern hid_t H5E_SETLOCAL_g * } */ - public static long H5E_SETLOCAL_g() { + public static long H5E_SETLOCAL_g() + { return H5E_SETLOCAL_g$constants.SEGMENT.get(H5E_SETLOCAL_g$constants.LAYOUT, 0L); } @@ -24938,13 +23166,15 @@ public static long H5E_SETLOCAL_g() { * extern hid_t H5E_SETLOCAL_g * } */ - public static void H5E_SETLOCAL_g(long varValue) { + public static void H5E_SETLOCAL_g(long varValue) + { H5E_SETLOCAL_g$constants.SEGMENT.set(H5E_SETLOCAL_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTGET_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTGET_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTGET_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24953,9 +23183,7 @@ private static class H5E_CANTGET_g$constants { * extern hid_t H5E_CANTGET_g * } */ - public static OfLong H5E_CANTGET_g$layout() { - return H5E_CANTGET_g$constants.LAYOUT; - } + public static OfLong H5E_CANTGET_g$layout() { return H5E_CANTGET_g$constants.LAYOUT; } /** * Segment for variable: @@ -24963,9 +23191,7 @@ private static class H5E_CANTGET_g$constants { * extern hid_t H5E_CANTGET_g * } */ - public static MemorySegment H5E_CANTGET_g$segment() { - return H5E_CANTGET_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTGET_g$segment() { return H5E_CANTGET_g$constants.SEGMENT; } /** * Getter for variable: @@ -24973,7 +23199,8 @@ private static class H5E_CANTGET_g$constants { * extern hid_t H5E_CANTGET_g * } */ - public static long H5E_CANTGET_g() { + public static long H5E_CANTGET_g() + { return H5E_CANTGET_g$constants.SEGMENT.get(H5E_CANTGET_g$constants.LAYOUT, 0L); } @@ -24983,13 +23210,15 @@ public static long H5E_CANTGET_g() { * extern hid_t H5E_CANTGET_g * } */ - public static void H5E_CANTGET_g(long varValue) { + public static void H5E_CANTGET_g(long varValue) + { H5E_CANTGET_g$constants.SEGMENT.set(H5E_CANTGET_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTSET_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTSET_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTSET_g").reinterpret(LAYOUT.byteSize()); } /** @@ -24998,9 +23227,7 @@ private static class H5E_CANTSET_g$constants { * extern hid_t H5E_CANTSET_g * } */ - public static OfLong H5E_CANTSET_g$layout() { - return H5E_CANTSET_g$constants.LAYOUT; - } + public static OfLong H5E_CANTSET_g$layout() { return H5E_CANTSET_g$constants.LAYOUT; } /** * Segment for variable: @@ -25008,9 +23235,7 @@ private static class H5E_CANTSET_g$constants { * extern hid_t H5E_CANTSET_g * } */ - public static MemorySegment H5E_CANTSET_g$segment() { - return H5E_CANTSET_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTSET_g$segment() { return H5E_CANTSET_g$constants.SEGMENT; } /** * Getter for variable: @@ -25018,7 +23243,8 @@ private static class H5E_CANTSET_g$constants { * extern hid_t H5E_CANTSET_g * } */ - public static long H5E_CANTSET_g() { + public static long H5E_CANTSET_g() + { return H5E_CANTSET_g$constants.SEGMENT.get(H5E_CANTSET_g$constants.LAYOUT, 0L); } @@ -25028,13 +23254,15 @@ public static long H5E_CANTSET_g() { * extern hid_t H5E_CANTSET_g * } */ - public static void H5E_CANTSET_g(long varValue) { + public static void H5E_CANTSET_g(long varValue) + { H5E_CANTSET_g$constants.SEGMENT.set(H5E_CANTSET_g$constants.LAYOUT, 0L, varValue); } private static class H5E_DUPCLASS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_DUPCLASS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_DUPCLASS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25043,9 +23271,7 @@ private static class H5E_DUPCLASS_g$constants { * extern hid_t H5E_DUPCLASS_g * } */ - public static OfLong H5E_DUPCLASS_g$layout() { - return H5E_DUPCLASS_g$constants.LAYOUT; - } + public static OfLong H5E_DUPCLASS_g$layout() { return H5E_DUPCLASS_g$constants.LAYOUT; } /** * Segment for variable: @@ -25053,9 +23279,7 @@ private static class H5E_DUPCLASS_g$constants { * extern hid_t H5E_DUPCLASS_g * } */ - public static MemorySegment H5E_DUPCLASS_g$segment() { - return H5E_DUPCLASS_g$constants.SEGMENT; - } + public static MemorySegment H5E_DUPCLASS_g$segment() { return H5E_DUPCLASS_g$constants.SEGMENT; } /** * Getter for variable: @@ -25063,7 +23287,8 @@ private static class H5E_DUPCLASS_g$constants { * extern hid_t H5E_DUPCLASS_g * } */ - public static long H5E_DUPCLASS_g() { + public static long H5E_DUPCLASS_g() + { return H5E_DUPCLASS_g$constants.SEGMENT.get(H5E_DUPCLASS_g$constants.LAYOUT, 0L); } @@ -25073,13 +23298,15 @@ public static long H5E_DUPCLASS_g() { * extern hid_t H5E_DUPCLASS_g * } */ - public static void H5E_DUPCLASS_g(long varValue) { + public static void H5E_DUPCLASS_g(long varValue) + { H5E_DUPCLASS_g$constants.SEGMENT.set(H5E_DUPCLASS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SETDISALLOWED_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SETDISALLOWED_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SETDISALLOWED_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25088,9 +23315,7 @@ private static class H5E_SETDISALLOWED_g$constants { * extern hid_t H5E_SETDISALLOWED_g * } */ - public static OfLong H5E_SETDISALLOWED_g$layout() { - return H5E_SETDISALLOWED_g$constants.LAYOUT; - } + public static OfLong H5E_SETDISALLOWED_g$layout() { return H5E_SETDISALLOWED_g$constants.LAYOUT; } /** * Segment for variable: @@ -25098,7 +23323,8 @@ private static class H5E_SETDISALLOWED_g$constants { * extern hid_t H5E_SETDISALLOWED_g * } */ - public static MemorySegment H5E_SETDISALLOWED_g$segment() { + public static MemorySegment H5E_SETDISALLOWED_g$segment() + { return H5E_SETDISALLOWED_g$constants.SEGMENT; } @@ -25108,7 +23334,8 @@ private static class H5E_SETDISALLOWED_g$constants { * extern hid_t H5E_SETDISALLOWED_g * } */ - public static long H5E_SETDISALLOWED_g() { + public static long H5E_SETDISALLOWED_g() + { return H5E_SETDISALLOWED_g$constants.SEGMENT.get(H5E_SETDISALLOWED_g$constants.LAYOUT, 0L); } @@ -25118,13 +23345,15 @@ public static long H5E_SETDISALLOWED_g() { * extern hid_t H5E_SETDISALLOWED_g * } */ - public static void H5E_SETDISALLOWED_g(long varValue) { + public static void H5E_SETDISALLOWED_g(long varValue) + { H5E_SETDISALLOWED_g$constants.SEGMENT.set(H5E_SETDISALLOWED_g$constants.LAYOUT, 0L, varValue); } private static class H5E_OPENERROR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_OPENERROR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_OPENERROR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25133,9 +23362,7 @@ private static class H5E_OPENERROR_g$constants { * extern hid_t H5E_OPENERROR_g * } */ - public static OfLong H5E_OPENERROR_g$layout() { - return H5E_OPENERROR_g$constants.LAYOUT; - } + public static OfLong H5E_OPENERROR_g$layout() { return H5E_OPENERROR_g$constants.LAYOUT; } /** * Segment for variable: @@ -25143,9 +23370,7 @@ private static class H5E_OPENERROR_g$constants { * extern hid_t H5E_OPENERROR_g * } */ - public static MemorySegment H5E_OPENERROR_g$segment() { - return H5E_OPENERROR_g$constants.SEGMENT; - } + public static MemorySegment H5E_OPENERROR_g$segment() { return H5E_OPENERROR_g$constants.SEGMENT; } /** * Getter for variable: @@ -25153,7 +23378,8 @@ private static class H5E_OPENERROR_g$constants { * extern hid_t H5E_OPENERROR_g * } */ - public static long H5E_OPENERROR_g() { + public static long H5E_OPENERROR_g() + { return H5E_OPENERROR_g$constants.SEGMENT.get(H5E_OPENERROR_g$constants.LAYOUT, 0L); } @@ -25163,13 +23389,15 @@ public static long H5E_OPENERROR_g() { * extern hid_t H5E_OPENERROR_g * } */ - public static void H5E_OPENERROR_g(long varValue) { + public static void H5E_OPENERROR_g(long varValue) + { H5E_OPENERROR_g$constants.SEGMENT.set(H5E_OPENERROR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_ALREADYEXISTS_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_ALREADYEXISTS_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_ALREADYEXISTS_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25178,9 +23406,7 @@ private static class H5E_ALREADYEXISTS_g$constants { * extern hid_t H5E_ALREADYEXISTS_g * } */ - public static OfLong H5E_ALREADYEXISTS_g$layout() { - return H5E_ALREADYEXISTS_g$constants.LAYOUT; - } + public static OfLong H5E_ALREADYEXISTS_g$layout() { return H5E_ALREADYEXISTS_g$constants.LAYOUT; } /** * Segment for variable: @@ -25188,7 +23414,8 @@ private static class H5E_ALREADYEXISTS_g$constants { * extern hid_t H5E_ALREADYEXISTS_g * } */ - public static MemorySegment H5E_ALREADYEXISTS_g$segment() { + public static MemorySegment H5E_ALREADYEXISTS_g$segment() + { return H5E_ALREADYEXISTS_g$constants.SEGMENT; } @@ -25198,7 +23425,8 @@ private static class H5E_ALREADYEXISTS_g$constants { * extern hid_t H5E_ALREADYEXISTS_g * } */ - public static long H5E_ALREADYEXISTS_g() { + public static long H5E_ALREADYEXISTS_g() + { return H5E_ALREADYEXISTS_g$constants.SEGMENT.get(H5E_ALREADYEXISTS_g$constants.LAYOUT, 0L); } @@ -25208,13 +23436,15 @@ public static long H5E_ALREADYEXISTS_g() { * extern hid_t H5E_ALREADYEXISTS_g * } */ - public static void H5E_ALREADYEXISTS_g(long varValue) { + public static void H5E_ALREADYEXISTS_g(long varValue) + { H5E_ALREADYEXISTS_g$constants.SEGMENT.set(H5E_ALREADYEXISTS_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTALLOC_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTALLOC_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTALLOC_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25223,9 +23453,7 @@ private static class H5E_CANTALLOC_g$constants { * extern hid_t H5E_CANTALLOC_g * } */ - public static OfLong H5E_CANTALLOC_g$layout() { - return H5E_CANTALLOC_g$constants.LAYOUT; - } + public static OfLong H5E_CANTALLOC_g$layout() { return H5E_CANTALLOC_g$constants.LAYOUT; } /** * Segment for variable: @@ -25233,9 +23461,7 @@ private static class H5E_CANTALLOC_g$constants { * extern hid_t H5E_CANTALLOC_g * } */ - public static MemorySegment H5E_CANTALLOC_g$segment() { - return H5E_CANTALLOC_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTALLOC_g$segment() { return H5E_CANTALLOC_g$constants.SEGMENT; } /** * Getter for variable: @@ -25243,7 +23469,8 @@ private static class H5E_CANTALLOC_g$constants { * extern hid_t H5E_CANTALLOC_g * } */ - public static long H5E_CANTALLOC_g() { + public static long H5E_CANTALLOC_g() + { return H5E_CANTALLOC_g$constants.SEGMENT.get(H5E_CANTALLOC_g$constants.LAYOUT, 0L); } @@ -25253,13 +23480,15 @@ public static long H5E_CANTALLOC_g() { * extern hid_t H5E_CANTALLOC_g * } */ - public static void H5E_CANTALLOC_g(long varValue) { + public static void H5E_CANTALLOC_g(long varValue) + { H5E_CANTALLOC_g$constants.SEGMENT.set(H5E_CANTALLOC_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCOPY_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCOPY_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCOPY_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25268,9 +23497,7 @@ private static class H5E_CANTCOPY_g$constants { * extern hid_t H5E_CANTCOPY_g * } */ - public static OfLong H5E_CANTCOPY_g$layout() { - return H5E_CANTCOPY_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCOPY_g$layout() { return H5E_CANTCOPY_g$constants.LAYOUT; } /** * Segment for variable: @@ -25278,9 +23505,7 @@ private static class H5E_CANTCOPY_g$constants { * extern hid_t H5E_CANTCOPY_g * } */ - public static MemorySegment H5E_CANTCOPY_g$segment() { - return H5E_CANTCOPY_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCOPY_g$segment() { return H5E_CANTCOPY_g$constants.SEGMENT; } /** * Getter for variable: @@ -25288,7 +23513,8 @@ private static class H5E_CANTCOPY_g$constants { * extern hid_t H5E_CANTCOPY_g * } */ - public static long H5E_CANTCOPY_g() { + public static long H5E_CANTCOPY_g() + { return H5E_CANTCOPY_g$constants.SEGMENT.get(H5E_CANTCOPY_g$constants.LAYOUT, 0L); } @@ -25298,13 +23524,15 @@ public static long H5E_CANTCOPY_g() { * extern hid_t H5E_CANTCOPY_g * } */ - public static void H5E_CANTCOPY_g(long varValue) { + public static void H5E_CANTCOPY_g(long varValue) + { H5E_CANTCOPY_g$constants.SEGMENT.set(H5E_CANTCOPY_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTFREE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTFREE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTFREE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25313,9 +23541,7 @@ private static class H5E_CANTFREE_g$constants { * extern hid_t H5E_CANTFREE_g * } */ - public static OfLong H5E_CANTFREE_g$layout() { - return H5E_CANTFREE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTFREE_g$layout() { return H5E_CANTFREE_g$constants.LAYOUT; } /** * Segment for variable: @@ -25323,9 +23549,7 @@ private static class H5E_CANTFREE_g$constants { * extern hid_t H5E_CANTFREE_g * } */ - public static MemorySegment H5E_CANTFREE_g$segment() { - return H5E_CANTFREE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTFREE_g$segment() { return H5E_CANTFREE_g$constants.SEGMENT; } /** * Getter for variable: @@ -25333,7 +23557,8 @@ private static class H5E_CANTFREE_g$constants { * extern hid_t H5E_CANTFREE_g * } */ - public static long H5E_CANTFREE_g() { + public static long H5E_CANTFREE_g() + { return H5E_CANTFREE_g$constants.SEGMENT.get(H5E_CANTFREE_g$constants.LAYOUT, 0L); } @@ -25343,13 +23568,15 @@ public static long H5E_CANTFREE_g() { * extern hid_t H5E_CANTFREE_g * } */ - public static void H5E_CANTFREE_g(long varValue) { + public static void H5E_CANTFREE_g(long varValue) + { H5E_CANTFREE_g$constants.SEGMENT.set(H5E_CANTFREE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTGC_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTGC_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTGC_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25358,9 +23585,7 @@ private static class H5E_CANTGC_g$constants { * extern hid_t H5E_CANTGC_g * } */ - public static OfLong H5E_CANTGC_g$layout() { - return H5E_CANTGC_g$constants.LAYOUT; - } + public static OfLong H5E_CANTGC_g$layout() { return H5E_CANTGC_g$constants.LAYOUT; } /** * Segment for variable: @@ -25368,9 +23593,7 @@ private static class H5E_CANTGC_g$constants { * extern hid_t H5E_CANTGC_g * } */ - public static MemorySegment H5E_CANTGC_g$segment() { - return H5E_CANTGC_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTGC_g$segment() { return H5E_CANTGC_g$constants.SEGMENT; } /** * Getter for variable: @@ -25378,7 +23601,8 @@ private static class H5E_CANTGC_g$constants { * extern hid_t H5E_CANTGC_g * } */ - public static long H5E_CANTGC_g() { + public static long H5E_CANTGC_g() + { return H5E_CANTGC_g$constants.SEGMENT.get(H5E_CANTGC_g$constants.LAYOUT, 0L); } @@ -25388,13 +23612,15 @@ public static long H5E_CANTGC_g() { * extern hid_t H5E_CANTGC_g * } */ - public static void H5E_CANTGC_g(long varValue) { + public static void H5E_CANTGC_g(long varValue) + { H5E_CANTGC_g$constants.SEGMENT.set(H5E_CANTGC_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTGETSIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTGETSIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTGETSIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25403,9 +23629,7 @@ private static class H5E_CANTGETSIZE_g$constants { * extern hid_t H5E_CANTGETSIZE_g * } */ - public static OfLong H5E_CANTGETSIZE_g$layout() { - return H5E_CANTGETSIZE_g$constants.LAYOUT; - } + public static OfLong H5E_CANTGETSIZE_g$layout() { return H5E_CANTGETSIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -25413,9 +23637,7 @@ private static class H5E_CANTGETSIZE_g$constants { * extern hid_t H5E_CANTGETSIZE_g * } */ - public static MemorySegment H5E_CANTGETSIZE_g$segment() { - return H5E_CANTGETSIZE_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTGETSIZE_g$segment() { return H5E_CANTGETSIZE_g$constants.SEGMENT; } /** * Getter for variable: @@ -25423,7 +23645,8 @@ private static class H5E_CANTGETSIZE_g$constants { * extern hid_t H5E_CANTGETSIZE_g * } */ - public static long H5E_CANTGETSIZE_g() { + public static long H5E_CANTGETSIZE_g() + { return H5E_CANTGETSIZE_g$constants.SEGMENT.get(H5E_CANTGETSIZE_g$constants.LAYOUT, 0L); } @@ -25433,13 +23656,15 @@ public static long H5E_CANTGETSIZE_g() { * extern hid_t H5E_CANTGETSIZE_g * } */ - public static void H5E_CANTGETSIZE_g(long varValue) { + public static void H5E_CANTGETSIZE_g(long varValue) + { H5E_CANTGETSIZE_g$constants.SEGMENT.set(H5E_CANTGETSIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTLOCK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTLOCK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTLOCK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25448,9 +23673,7 @@ private static class H5E_CANTLOCK_g$constants { * extern hid_t H5E_CANTLOCK_g * } */ - public static OfLong H5E_CANTLOCK_g$layout() { - return H5E_CANTLOCK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTLOCK_g$layout() { return H5E_CANTLOCK_g$constants.LAYOUT; } /** * Segment for variable: @@ -25458,9 +23681,7 @@ private static class H5E_CANTLOCK_g$constants { * extern hid_t H5E_CANTLOCK_g * } */ - public static MemorySegment H5E_CANTLOCK_g$segment() { - return H5E_CANTLOCK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTLOCK_g$segment() { return H5E_CANTLOCK_g$constants.SEGMENT; } /** * Getter for variable: @@ -25468,7 +23689,8 @@ private static class H5E_CANTLOCK_g$constants { * extern hid_t H5E_CANTLOCK_g * } */ - public static long H5E_CANTLOCK_g() { + public static long H5E_CANTLOCK_g() + { return H5E_CANTLOCK_g$constants.SEGMENT.get(H5E_CANTLOCK_g$constants.LAYOUT, 0L); } @@ -25478,13 +23700,15 @@ public static long H5E_CANTLOCK_g() { * extern hid_t H5E_CANTLOCK_g * } */ - public static void H5E_CANTLOCK_g(long varValue) { + public static void H5E_CANTLOCK_g(long varValue) + { H5E_CANTLOCK_g$constants.SEGMENT.set(H5E_CANTLOCK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTUNLOCK_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTUNLOCK_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTUNLOCK_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25493,9 +23717,7 @@ private static class H5E_CANTUNLOCK_g$constants { * extern hid_t H5E_CANTUNLOCK_g * } */ - public static OfLong H5E_CANTUNLOCK_g$layout() { - return H5E_CANTUNLOCK_g$constants.LAYOUT; - } + public static OfLong H5E_CANTUNLOCK_g$layout() { return H5E_CANTUNLOCK_g$constants.LAYOUT; } /** * Segment for variable: @@ -25503,9 +23725,7 @@ private static class H5E_CANTUNLOCK_g$constants { * extern hid_t H5E_CANTUNLOCK_g * } */ - public static MemorySegment H5E_CANTUNLOCK_g$segment() { - return H5E_CANTUNLOCK_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTUNLOCK_g$segment() { return H5E_CANTUNLOCK_g$constants.SEGMENT; } /** * Getter for variable: @@ -25513,7 +23733,8 @@ private static class H5E_CANTUNLOCK_g$constants { * extern hid_t H5E_CANTUNLOCK_g * } */ - public static long H5E_CANTUNLOCK_g() { + public static long H5E_CANTUNLOCK_g() + { return H5E_CANTUNLOCK_g$constants.SEGMENT.get(H5E_CANTUNLOCK_g$constants.LAYOUT, 0L); } @@ -25523,13 +23744,15 @@ public static long H5E_CANTUNLOCK_g() { * extern hid_t H5E_CANTUNLOCK_g * } */ - public static void H5E_CANTUNLOCK_g(long varValue) { + public static void H5E_CANTUNLOCK_g(long varValue) + { H5E_CANTUNLOCK_g$constants.SEGMENT.set(H5E_CANTUNLOCK_g$constants.LAYOUT, 0L, varValue); } private static class H5E_NOSPACE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_NOSPACE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_NOSPACE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25538,9 +23761,7 @@ private static class H5E_NOSPACE_g$constants { * extern hid_t H5E_NOSPACE_g * } */ - public static OfLong H5E_NOSPACE_g$layout() { - return H5E_NOSPACE_g$constants.LAYOUT; - } + public static OfLong H5E_NOSPACE_g$layout() { return H5E_NOSPACE_g$constants.LAYOUT; } /** * Segment for variable: @@ -25548,9 +23769,7 @@ private static class H5E_NOSPACE_g$constants { * extern hid_t H5E_NOSPACE_g * } */ - public static MemorySegment H5E_NOSPACE_g$segment() { - return H5E_NOSPACE_g$constants.SEGMENT; - } + public static MemorySegment H5E_NOSPACE_g$segment() { return H5E_NOSPACE_g$constants.SEGMENT; } /** * Getter for variable: @@ -25558,7 +23777,8 @@ private static class H5E_NOSPACE_g$constants { * extern hid_t H5E_NOSPACE_g * } */ - public static long H5E_NOSPACE_g() { + public static long H5E_NOSPACE_g() + { return H5E_NOSPACE_g$constants.SEGMENT.get(H5E_NOSPACE_g$constants.LAYOUT, 0L); } @@ -25568,13 +23788,15 @@ public static long H5E_NOSPACE_g() { * extern hid_t H5E_NOSPACE_g * } */ - public static void H5E_NOSPACE_g(long varValue) { + public static void H5E_NOSPACE_g(long varValue) + { H5E_NOSPACE_g$constants.SEGMENT.set(H5E_NOSPACE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_OBJOPEN_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_OBJOPEN_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_OBJOPEN_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25583,9 +23805,7 @@ private static class H5E_OBJOPEN_g$constants { * extern hid_t H5E_OBJOPEN_g * } */ - public static OfLong H5E_OBJOPEN_g$layout() { - return H5E_OBJOPEN_g$constants.LAYOUT; - } + public static OfLong H5E_OBJOPEN_g$layout() { return H5E_OBJOPEN_g$constants.LAYOUT; } /** * Segment for variable: @@ -25593,9 +23813,7 @@ private static class H5E_OBJOPEN_g$constants { * extern hid_t H5E_OBJOPEN_g * } */ - public static MemorySegment H5E_OBJOPEN_g$segment() { - return H5E_OBJOPEN_g$constants.SEGMENT; - } + public static MemorySegment H5E_OBJOPEN_g$segment() { return H5E_OBJOPEN_g$constants.SEGMENT; } /** * Getter for variable: @@ -25603,7 +23821,8 @@ private static class H5E_OBJOPEN_g$constants { * extern hid_t H5E_OBJOPEN_g * } */ - public static long H5E_OBJOPEN_g() { + public static long H5E_OBJOPEN_g() + { return H5E_OBJOPEN_g$constants.SEGMENT.get(H5E_OBJOPEN_g$constants.LAYOUT, 0L); } @@ -25613,13 +23832,15 @@ public static long H5E_OBJOPEN_g() { * extern hid_t H5E_OBJOPEN_g * } */ - public static void H5E_OBJOPEN_g(long varValue) { + public static void H5E_OBJOPEN_g(long varValue) + { H5E_OBJOPEN_g$constants.SEGMENT.set(H5E_OBJOPEN_g$constants.LAYOUT, 0L, varValue); } private static class H5E_SYSERRSTR_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_SYSERRSTR_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_SYSERRSTR_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25628,9 +23849,7 @@ private static class H5E_SYSERRSTR_g$constants { * extern hid_t H5E_SYSERRSTR_g * } */ - public static OfLong H5E_SYSERRSTR_g$layout() { - return H5E_SYSERRSTR_g$constants.LAYOUT; - } + public static OfLong H5E_SYSERRSTR_g$layout() { return H5E_SYSERRSTR_g$constants.LAYOUT; } /** * Segment for variable: @@ -25638,9 +23857,7 @@ private static class H5E_SYSERRSTR_g$constants { * extern hid_t H5E_SYSERRSTR_g * } */ - public static MemorySegment H5E_SYSERRSTR_g$segment() { - return H5E_SYSERRSTR_g$constants.SEGMENT; - } + public static MemorySegment H5E_SYSERRSTR_g$segment() { return H5E_SYSERRSTR_g$constants.SEGMENT; } /** * Getter for variable: @@ -25648,7 +23865,8 @@ private static class H5E_SYSERRSTR_g$constants { * extern hid_t H5E_SYSERRSTR_g * } */ - public static long H5E_SYSERRSTR_g() { + public static long H5E_SYSERRSTR_g() + { return H5E_SYSERRSTR_g$constants.SEGMENT.get(H5E_SYSERRSTR_g$constants.LAYOUT, 0L); } @@ -25658,13 +23876,15 @@ public static long H5E_SYSERRSTR_g() { * extern hid_t H5E_SYSERRSTR_g * } */ - public static void H5E_SYSERRSTR_g(long varValue) { + public static void H5E_SYSERRSTR_g(long varValue) + { H5E_SYSERRSTR_g$constants.SEGMENT.set(H5E_SYSERRSTR_g$constants.LAYOUT, 0L, varValue); } private static class H5E_BADSIZE_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_BADSIZE_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_BADSIZE_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25673,9 +23893,7 @@ private static class H5E_BADSIZE_g$constants { * extern hid_t H5E_BADSIZE_g * } */ - public static OfLong H5E_BADSIZE_g$layout() { - return H5E_BADSIZE_g$constants.LAYOUT; - } + public static OfLong H5E_BADSIZE_g$layout() { return H5E_BADSIZE_g$constants.LAYOUT; } /** * Segment for variable: @@ -25683,9 +23901,7 @@ private static class H5E_BADSIZE_g$constants { * extern hid_t H5E_BADSIZE_g * } */ - public static MemorySegment H5E_BADSIZE_g$segment() { - return H5E_BADSIZE_g$constants.SEGMENT; - } + public static MemorySegment H5E_BADSIZE_g$segment() { return H5E_BADSIZE_g$constants.SEGMENT; } /** * Getter for variable: @@ -25693,7 +23909,8 @@ private static class H5E_BADSIZE_g$constants { * extern hid_t H5E_BADSIZE_g * } */ - public static long H5E_BADSIZE_g() { + public static long H5E_BADSIZE_g() + { return H5E_BADSIZE_g$constants.SEGMENT.get(H5E_BADSIZE_g$constants.LAYOUT, 0L); } @@ -25703,13 +23920,15 @@ public static long H5E_BADSIZE_g() { * extern hid_t H5E_BADSIZE_g * } */ - public static void H5E_BADSIZE_g(long varValue) { + public static void H5E_BADSIZE_g(long varValue) + { H5E_BADSIZE_g$constants.SEGMENT.set(H5E_BADSIZE_g$constants.LAYOUT, 0L, varValue); } private static class H5E_CANTCONVERT_g$constants { public static final OfLong LAYOUT = hdf5_h.C_LONG; - public static final MemorySegment SEGMENT = hdf5_h.findOrThrow("H5E_CANTCONVERT_g").reinterpret(LAYOUT.byteSize()); + public static final MemorySegment SEGMENT = + hdf5_h.findOrThrow("H5E_CANTCONVERT_g").reinterpret(LAYOUT.byteSize()); } /** @@ -25718,9 +23937,7 @@ private static class H5E_CANTCONVERT_g$constants { * extern hid_t H5E_CANTCONVERT_g * } */ - public static OfLong H5E_CANTCONVERT_g$layout() { - return H5E_CANTCONVERT_g$constants.LAYOUT; - } + public static OfLong H5E_CANTCONVERT_g$layout() { return H5E_CANTCONVERT_g$constants.LAYOUT; } /** * Segment for variable: @@ -25728,9 +23945,7 @@ private static class H5E_CANTCONVERT_g$constants { * extern hid_t H5E_CANTCONVERT_g * } */ - public static MemorySegment H5E_CANTCONVERT_g$segment() { - return H5E_CANTCONVERT_g$constants.SEGMENT; - } + public static MemorySegment H5E_CANTCONVERT_g$segment() { return H5E_CANTCONVERT_g$constants.SEGMENT; } /** * Getter for variable: @@ -25738,7 +23953,8 @@ private static class H5E_CANTCONVERT_g$constants { * extern hid_t H5E_CANTCONVERT_g * } */ - public static long H5E_CANTCONVERT_g() { + public static long H5E_CANTCONVERT_g() + { return H5E_CANTCONVERT_g$constants.SEGMENT.get(H5E_CANTCONVERT_g$constants.LAYOUT, 0L); } @@ -25748,7 +23964,8 @@ public static long H5E_CANTCONVERT_g() { * extern hid_t H5E_CANTCONVERT_g * } */ - public static void H5E_CANTCONVERT_g(long varValue) { + public static void H5E_CANTCONVERT_g(long varValue) + { H5E_CANTCONVERT_g$constants.SEGMENT.set(H5E_CANTCONVERT_g$constants.LAYOUT, 0L, varValue); } private static final int H5E_WALK_UPWARD = (int)0L; @@ -25757,26 +23974,18 @@ public static void H5E_CANTCONVERT_g(long varValue) { * enum H5E_direction_t.H5E_WALK_UPWARD = 0 * } */ - public static int H5E_WALK_UPWARD() { - return H5E_WALK_UPWARD; - } + public static int H5E_WALK_UPWARD() { return H5E_WALK_UPWARD; } private static final int H5E_WALK_DOWNWARD = (int)1L; /** * {@snippet lang=c : * enum H5E_direction_t.H5E_WALK_DOWNWARD = 1 * } */ - public static int H5E_WALK_DOWNWARD() { - return H5E_WALK_DOWNWARD; - } + public static int H5E_WALK_DOWNWARD() { return H5E_WALK_DOWNWARD; } private static class H5Eregister_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eregister_class"); @@ -25789,9 +23998,7 @@ private static class H5Eregister_class { * hid_t H5Eregister_class(const char *cls_name, const char *lib_name, const char *version) * } */ - public static FunctionDescriptor H5Eregister_class$descriptor() { - return H5Eregister_class.DESC; - } + public static FunctionDescriptor H5Eregister_class$descriptor() { return H5Eregister_class.DESC; } /** * Downcall method handle for: @@ -25799,9 +24006,7 @@ private static class H5Eregister_class { * hid_t H5Eregister_class(const char *cls_name, const char *lib_name, const char *version) * } */ - public static MethodHandle H5Eregister_class$handle() { - return H5Eregister_class.HANDLE; - } + public static MethodHandle H5Eregister_class$handle() { return H5Eregister_class.HANDLE; } /** * Address for: @@ -25809,32 +24014,30 @@ private static class H5Eregister_class { * hid_t H5Eregister_class(const char *cls_name, const char *lib_name, const char *version) * } */ - public static MemorySegment H5Eregister_class$address() { - return H5Eregister_class.ADDR; - } + public static MemorySegment H5Eregister_class$address() { return H5Eregister_class.ADDR; } /** * {@snippet lang=c : * hid_t H5Eregister_class(const char *cls_name, const char *lib_name, const char *version) * } */ - public static long H5Eregister_class(MemorySegment cls_name, MemorySegment lib_name, MemorySegment version) { + public static long H5Eregister_class(MemorySegment cls_name, MemorySegment lib_name, + MemorySegment version) + { var mh$ = H5Eregister_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eregister_class", cls_name, lib_name, version); } return (long)mh$.invokeExact(cls_name, lib_name, version); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eunregister_class { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eunregister_class"); @@ -25847,9 +24050,7 @@ private static class H5Eunregister_class { * herr_t H5Eunregister_class(hid_t class_id) * } */ - public static FunctionDescriptor H5Eunregister_class$descriptor() { - return H5Eunregister_class.DESC; - } + public static FunctionDescriptor H5Eunregister_class$descriptor() { return H5Eunregister_class.DESC; } /** * Downcall method handle for: @@ -25857,9 +24058,7 @@ private static class H5Eunregister_class { * herr_t H5Eunregister_class(hid_t class_id) * } */ - public static MethodHandle H5Eunregister_class$handle() { - return H5Eunregister_class.HANDLE; - } + public static MethodHandle H5Eunregister_class$handle() { return H5Eunregister_class.HANDLE; } /** * Address for: @@ -25867,32 +24066,29 @@ private static class H5Eunregister_class { * herr_t H5Eunregister_class(hid_t class_id) * } */ - public static MemorySegment H5Eunregister_class$address() { - return H5Eunregister_class.ADDR; - } + public static MemorySegment H5Eunregister_class$address() { return H5Eunregister_class.ADDR; } /** * {@snippet lang=c : * herr_t H5Eunregister_class(hid_t class_id) * } */ - public static int H5Eunregister_class(long class_id) { + public static int H5Eunregister_class(long class_id) + { var mh$ = H5Eunregister_class.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eunregister_class", class_id); } return (int)mh$.invokeExact(class_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eclose_msg { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eclose_msg"); @@ -25905,9 +24101,7 @@ private static class H5Eclose_msg { * herr_t H5Eclose_msg(hid_t err_id) * } */ - public static FunctionDescriptor H5Eclose_msg$descriptor() { - return H5Eclose_msg.DESC; - } + public static FunctionDescriptor H5Eclose_msg$descriptor() { return H5Eclose_msg.DESC; } /** * Downcall method handle for: @@ -25915,9 +24109,7 @@ private static class H5Eclose_msg { * herr_t H5Eclose_msg(hid_t err_id) * } */ - public static MethodHandle H5Eclose_msg$handle() { - return H5Eclose_msg.HANDLE; - } + public static MethodHandle H5Eclose_msg$handle() { return H5Eclose_msg.HANDLE; } /** * Address for: @@ -25925,34 +24117,30 @@ private static class H5Eclose_msg { * herr_t H5Eclose_msg(hid_t err_id) * } */ - public static MemorySegment H5Eclose_msg$address() { - return H5Eclose_msg.ADDR; - } + public static MemorySegment H5Eclose_msg$address() { return H5Eclose_msg.ADDR; } /** * {@snippet lang=c : * herr_t H5Eclose_msg(hid_t err_id) * } */ - public static int H5Eclose_msg(long err_id) { + public static int H5Eclose_msg(long err_id) + { var mh$ = H5Eclose_msg.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eclose_msg", err_id); } return (int)mh$.invokeExact(err_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ecreate_msg { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ecreate_msg"); @@ -25965,9 +24153,7 @@ private static class H5Ecreate_msg { * hid_t H5Ecreate_msg(hid_t cls, H5E_type_t msg_type, const char *msg) * } */ - public static FunctionDescriptor H5Ecreate_msg$descriptor() { - return H5Ecreate_msg.DESC; - } + public static FunctionDescriptor H5Ecreate_msg$descriptor() { return H5Ecreate_msg.DESC; } /** * Downcall method handle for: @@ -25975,9 +24161,7 @@ private static class H5Ecreate_msg { * hid_t H5Ecreate_msg(hid_t cls, H5E_type_t msg_type, const char *msg) * } */ - public static MethodHandle H5Ecreate_msg$handle() { - return H5Ecreate_msg.HANDLE; - } + public static MethodHandle H5Ecreate_msg$handle() { return H5Ecreate_msg.HANDLE; } /** * Address for: @@ -25985,30 +24169,29 @@ private static class H5Ecreate_msg { * hid_t H5Ecreate_msg(hid_t cls, H5E_type_t msg_type, const char *msg) * } */ - public static MemorySegment H5Ecreate_msg$address() { - return H5Ecreate_msg.ADDR; - } + public static MemorySegment H5Ecreate_msg$address() { return H5Ecreate_msg.ADDR; } /** * {@snippet lang=c : * hid_t H5Ecreate_msg(hid_t cls, H5E_type_t msg_type, const char *msg) * } */ - public static long H5Ecreate_msg(long cls, int msg_type, MemorySegment msg) { + public static long H5Ecreate_msg(long cls, int msg_type, MemorySegment msg) + { var mh$ = H5Ecreate_msg.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ecreate_msg", cls, msg_type, msg); } return (long)mh$.invokeExact(cls, msg_type, msg); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ecreate_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ecreate_stack"); @@ -26021,9 +24204,7 @@ private static class H5Ecreate_stack { * hid_t H5Ecreate_stack() * } */ - public static FunctionDescriptor H5Ecreate_stack$descriptor() { - return H5Ecreate_stack.DESC; - } + public static FunctionDescriptor H5Ecreate_stack$descriptor() { return H5Ecreate_stack.DESC; } /** * Downcall method handle for: @@ -26031,9 +24212,7 @@ private static class H5Ecreate_stack { * hid_t H5Ecreate_stack() * } */ - public static MethodHandle H5Ecreate_stack$handle() { - return H5Ecreate_stack.HANDLE; - } + public static MethodHandle H5Ecreate_stack$handle() { return H5Ecreate_stack.HANDLE; } /** * Address for: @@ -26041,30 +24220,29 @@ private static class H5Ecreate_stack { * hid_t H5Ecreate_stack() * } */ - public static MemorySegment H5Ecreate_stack$address() { - return H5Ecreate_stack.ADDR; - } + public static MemorySegment H5Ecreate_stack$address() { return H5Ecreate_stack.ADDR; } /** * {@snippet lang=c : * hid_t H5Ecreate_stack() * } */ - public static long H5Ecreate_stack() { + public static long H5Ecreate_stack() + { var mh$ = H5Ecreate_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ecreate_stack"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_current_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_current_stack"); @@ -26077,9 +24255,7 @@ private static class H5Eget_current_stack { * hid_t H5Eget_current_stack() * } */ - public static FunctionDescriptor H5Eget_current_stack$descriptor() { - return H5Eget_current_stack.DESC; - } + public static FunctionDescriptor H5Eget_current_stack$descriptor() { return H5Eget_current_stack.DESC; } /** * Downcall method handle for: @@ -26087,9 +24263,7 @@ private static class H5Eget_current_stack { * hid_t H5Eget_current_stack() * } */ - public static MethodHandle H5Eget_current_stack$handle() { - return H5Eget_current_stack.HANDLE; - } + public static MethodHandle H5Eget_current_stack$handle() { return H5Eget_current_stack.HANDLE; } /** * Address for: @@ -26097,34 +24271,30 @@ private static class H5Eget_current_stack { * hid_t H5Eget_current_stack() * } */ - public static MemorySegment H5Eget_current_stack$address() { - return H5Eget_current_stack.ADDR; - } + public static MemorySegment H5Eget_current_stack$address() { return H5Eget_current_stack.ADDR; } /** * {@snippet lang=c : * hid_t H5Eget_current_stack() * } */ - public static long H5Eget_current_stack() { + public static long H5Eget_current_stack() + { var mh$ = H5Eget_current_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_current_stack"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eappend_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eappend_stack"); @@ -26137,9 +24307,7 @@ private static class H5Eappend_stack { * herr_t H5Eappend_stack(hid_t dst_stack_id, hid_t src_stack_id, hbool_t close_source_stack) * } */ - public static FunctionDescriptor H5Eappend_stack$descriptor() { - return H5Eappend_stack.DESC; - } + public static FunctionDescriptor H5Eappend_stack$descriptor() { return H5Eappend_stack.DESC; } /** * Downcall method handle for: @@ -26147,9 +24315,7 @@ private static class H5Eappend_stack { * herr_t H5Eappend_stack(hid_t dst_stack_id, hid_t src_stack_id, hbool_t close_source_stack) * } */ - public static MethodHandle H5Eappend_stack$handle() { - return H5Eappend_stack.HANDLE; - } + public static MethodHandle H5Eappend_stack$handle() { return H5Eappend_stack.HANDLE; } /** * Address for: @@ -26157,33 +24323,30 @@ private static class H5Eappend_stack { * herr_t H5Eappend_stack(hid_t dst_stack_id, hid_t src_stack_id, hbool_t close_source_stack) * } */ - public static MemorySegment H5Eappend_stack$address() { - return H5Eappend_stack.ADDR; - } + public static MemorySegment H5Eappend_stack$address() { return H5Eappend_stack.ADDR; } /** * {@snippet lang=c : * herr_t H5Eappend_stack(hid_t dst_stack_id, hid_t src_stack_id, hbool_t close_source_stack) * } */ - public static int H5Eappend_stack(long dst_stack_id, long src_stack_id, boolean close_source_stack) { + public static int H5Eappend_stack(long dst_stack_id, long src_stack_id, boolean close_source_stack) + { var mh$ = H5Eappend_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eappend_stack", dst_stack_id, src_stack_id, close_source_stack); } return (int)mh$.invokeExact(dst_stack_id, src_stack_id, close_source_stack); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eis_paused { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eis_paused"); @@ -26196,9 +24359,7 @@ private static class H5Eis_paused { * herr_t H5Eis_paused(hid_t stack_id, hbool_t *is_paused) * } */ - public static FunctionDescriptor H5Eis_paused$descriptor() { - return H5Eis_paused.DESC; - } + public static FunctionDescriptor H5Eis_paused$descriptor() { return H5Eis_paused.DESC; } /** * Downcall method handle for: @@ -26206,9 +24367,7 @@ private static class H5Eis_paused { * herr_t H5Eis_paused(hid_t stack_id, hbool_t *is_paused) * } */ - public static MethodHandle H5Eis_paused$handle() { - return H5Eis_paused.HANDLE; - } + public static MethodHandle H5Eis_paused$handle() { return H5Eis_paused.HANDLE; } /** * Address for: @@ -26216,32 +24375,29 @@ private static class H5Eis_paused { * herr_t H5Eis_paused(hid_t stack_id, hbool_t *is_paused) * } */ - public static MemorySegment H5Eis_paused$address() { - return H5Eis_paused.ADDR; - } + public static MemorySegment H5Eis_paused$address() { return H5Eis_paused.ADDR; } /** * {@snippet lang=c : * herr_t H5Eis_paused(hid_t stack_id, hbool_t *is_paused) * } */ - public static int H5Eis_paused(long stack_id, MemorySegment is_paused) { + public static int H5Eis_paused(long stack_id, MemorySegment is_paused) + { var mh$ = H5Eis_paused.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eis_paused", stack_id, is_paused); } return (int)mh$.invokeExact(stack_id, is_paused); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Epause_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Epause_stack"); @@ -26254,9 +24410,7 @@ private static class H5Epause_stack { * herr_t H5Epause_stack(hid_t stack_id) * } */ - public static FunctionDescriptor H5Epause_stack$descriptor() { - return H5Epause_stack.DESC; - } + public static FunctionDescriptor H5Epause_stack$descriptor() { return H5Epause_stack.DESC; } /** * Downcall method handle for: @@ -26264,9 +24418,7 @@ private static class H5Epause_stack { * herr_t H5Epause_stack(hid_t stack_id) * } */ - public static MethodHandle H5Epause_stack$handle() { - return H5Epause_stack.HANDLE; - } + public static MethodHandle H5Epause_stack$handle() { return H5Epause_stack.HANDLE; } /** * Address for: @@ -26274,32 +24426,29 @@ private static class H5Epause_stack { * herr_t H5Epause_stack(hid_t stack_id) * } */ - public static MemorySegment H5Epause_stack$address() { - return H5Epause_stack.ADDR; - } + public static MemorySegment H5Epause_stack$address() { return H5Epause_stack.ADDR; } /** * {@snippet lang=c : * herr_t H5Epause_stack(hid_t stack_id) * } */ - public static int H5Epause_stack(long stack_id) { + public static int H5Epause_stack(long stack_id) + { var mh$ = H5Epause_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Epause_stack", stack_id); } return (int)mh$.invokeExact(stack_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eresume_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eresume_stack"); @@ -26312,9 +24461,7 @@ private static class H5Eresume_stack { * herr_t H5Eresume_stack(hid_t stack_id) * } */ - public static FunctionDescriptor H5Eresume_stack$descriptor() { - return H5Eresume_stack.DESC; - } + public static FunctionDescriptor H5Eresume_stack$descriptor() { return H5Eresume_stack.DESC; } /** * Downcall method handle for: @@ -26322,9 +24469,7 @@ private static class H5Eresume_stack { * herr_t H5Eresume_stack(hid_t stack_id) * } */ - public static MethodHandle H5Eresume_stack$handle() { - return H5Eresume_stack.HANDLE; - } + public static MethodHandle H5Eresume_stack$handle() { return H5Eresume_stack.HANDLE; } /** * Address for: @@ -26332,32 +24477,29 @@ private static class H5Eresume_stack { * herr_t H5Eresume_stack(hid_t stack_id) * } */ - public static MemorySegment H5Eresume_stack$address() { - return H5Eresume_stack.ADDR; - } + public static MemorySegment H5Eresume_stack$address() { return H5Eresume_stack.ADDR; } /** * {@snippet lang=c : * herr_t H5Eresume_stack(hid_t stack_id) * } */ - public static int H5Eresume_stack(long stack_id) { + public static int H5Eresume_stack(long stack_id) + { var mh$ = H5Eresume_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eresume_stack", stack_id); } return (int)mh$.invokeExact(stack_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eclose_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eclose_stack"); @@ -26370,9 +24512,7 @@ private static class H5Eclose_stack { * herr_t H5Eclose_stack(hid_t stack_id) * } */ - public static FunctionDescriptor H5Eclose_stack$descriptor() { - return H5Eclose_stack.DESC; - } + public static FunctionDescriptor H5Eclose_stack$descriptor() { return H5Eclose_stack.DESC; } /** * Downcall method handle for: @@ -26380,9 +24520,7 @@ private static class H5Eclose_stack { * herr_t H5Eclose_stack(hid_t stack_id) * } */ - public static MethodHandle H5Eclose_stack$handle() { - return H5Eclose_stack.HANDLE; - } + public static MethodHandle H5Eclose_stack$handle() { return H5Eclose_stack.HANDLE; } /** * Address for: @@ -26390,34 +24528,30 @@ private static class H5Eclose_stack { * herr_t H5Eclose_stack(hid_t stack_id) * } */ - public static MemorySegment H5Eclose_stack$address() { - return H5Eclose_stack.ADDR; - } + public static MemorySegment H5Eclose_stack$address() { return H5Eclose_stack.ADDR; } /** * {@snippet lang=c : * herr_t H5Eclose_stack(hid_t stack_id) * } */ - public static int H5Eclose_stack(long stack_id) { + public static int H5Eclose_stack(long stack_id) + { var mh$ = H5Eclose_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eclose_stack", stack_id); } return (int)mh$.invokeExact(stack_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_class_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_class_name"); @@ -26430,9 +24564,7 @@ private static class H5Eget_class_name { * ssize_t H5Eget_class_name(hid_t class_id, char *name, size_t size) * } */ - public static FunctionDescriptor H5Eget_class_name$descriptor() { - return H5Eget_class_name.DESC; - } + public static FunctionDescriptor H5Eget_class_name$descriptor() { return H5Eget_class_name.DESC; } /** * Downcall method handle for: @@ -26440,9 +24572,7 @@ private static class H5Eget_class_name { * ssize_t H5Eget_class_name(hid_t class_id, char *name, size_t size) * } */ - public static MethodHandle H5Eget_class_name$handle() { - return H5Eget_class_name.HANDLE; - } + public static MethodHandle H5Eget_class_name$handle() { return H5Eget_class_name.HANDLE; } /** * Address for: @@ -26450,32 +24580,29 @@ private static class H5Eget_class_name { * ssize_t H5Eget_class_name(hid_t class_id, char *name, size_t size) * } */ - public static MemorySegment H5Eget_class_name$address() { - return H5Eget_class_name.ADDR; - } + public static MemorySegment H5Eget_class_name$address() { return H5Eget_class_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Eget_class_name(hid_t class_id, char *name, size_t size) * } */ - public static long H5Eget_class_name(long class_id, MemorySegment name, long size) { + public static long H5Eget_class_name(long class_id, MemorySegment name, long size) + { var mh$ = H5Eget_class_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_class_name", class_id, name, size); } return (long)mh$.invokeExact(class_id, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eset_current_stack { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eset_current_stack"); @@ -26488,9 +24615,7 @@ private static class H5Eset_current_stack { * herr_t H5Eset_current_stack(hid_t err_stack_id) * } */ - public static FunctionDescriptor H5Eset_current_stack$descriptor() { - return H5Eset_current_stack.DESC; - } + public static FunctionDescriptor H5Eset_current_stack$descriptor() { return H5Eset_current_stack.DESC; } /** * Downcall method handle for: @@ -26498,9 +24623,7 @@ private static class H5Eset_current_stack { * herr_t H5Eset_current_stack(hid_t err_stack_id) * } */ - public static MethodHandle H5Eset_current_stack$handle() { - return H5Eset_current_stack.HANDLE; - } + public static MethodHandle H5Eset_current_stack$handle() { return H5Eset_current_stack.HANDLE; } /** * Address for: @@ -26508,112 +24631,104 @@ private static class H5Eset_current_stack { * herr_t H5Eset_current_stack(hid_t err_stack_id) * } */ - public static MemorySegment H5Eset_current_stack$address() { - return H5Eset_current_stack.ADDR; - } + public static MemorySegment H5Eset_current_stack$address() { return H5Eset_current_stack.ADDR; } /** * {@snippet lang=c : * herr_t H5Eset_current_stack(hid_t err_stack_id) * } */ - public static int H5Eset_current_stack(long err_stack_id) { + public static int H5Eset_current_stack(long err_stack_id) + { var mh$ = H5Eset_current_stack.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eset_current_stack", err_stack_id); } return (int)mh$.invokeExact(err_stack_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } /** * Variadic invoker class for: * {@snippet lang=c : - * herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned int line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg, ...) + * herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned int line, hid_t cls_id, + * hid_t maj_id, hid_t min_id, const char *msg, ...) * } */ public static class H5Epush2 { private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); private static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Epush2"); private final MethodHandle handle; private final FunctionDescriptor descriptor; private final MethodHandle spreader; - private H5Epush2(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; + private H5Epush2(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) + { + this.handle = handle; this.descriptor = descriptor; - this.spreader = spreader; + this.spreader = spreader; } /** * Variadic invoker factory for: * {@snippet lang=c : - * herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned int line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg, ...) + * herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned int line, hid_t + * cls_id, hid_t maj_id, hid_t min_id, const char *msg, ...) * } */ - public static H5Epush2 makeInvoker(MemoryLayout... layouts) { + public static H5Epush2 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); + 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 H5Epush2(mh$, desc$, spreader$); } /** * {@return the address} */ - public static MemorySegment address() { - return ADDR; - } + public static MemorySegment address() { return ADDR; } /** * {@return the specialized method handle} */ - public MethodHandle handle() { - return handle; - } + public MethodHandle handle() { return handle; } /** * {@return the specialized descriptor} */ - public FunctionDescriptor descriptor() { - return descriptor; - } + public FunctionDescriptor descriptor() { return descriptor; } - public int apply(long err_stack, MemorySegment file, MemorySegment func, int line, long cls_id, long maj_id, long min_id, MemorySegment msg, Object... x8) { + public int apply(long err_stack, MemorySegment file, MemorySegment func, int line, long cls_id, + long maj_id, long min_id, MemorySegment msg, Object... x8) + { try { if (TRACE_DOWNCALLS) { traceDowncall("H5Epush2", err_stack, file, func, line, cls_id, maj_id, min_id, msg, x8); } - return (int)spreader.invokeExact(err_stack, file, func, line, cls_id, maj_id, min_id, msg, x8); - } catch(IllegalArgumentException | ClassCastException ex$) { + return (int)spreader.invokeExact(err_stack, file, func, line, cls_id, maj_id, min_id, msg, + x8); + } + 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$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } } private static class H5Epop { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Epop"); @@ -26626,9 +24741,7 @@ private static class H5Epop { * herr_t H5Epop(hid_t err_stack, size_t count) * } */ - public static FunctionDescriptor H5Epop$descriptor() { - return H5Epop.DESC; - } + public static FunctionDescriptor H5Epop$descriptor() { return H5Epop.DESC; } /** * Downcall method handle for: @@ -26636,9 +24749,7 @@ private static class H5Epop { * herr_t H5Epop(hid_t err_stack, size_t count) * } */ - public static MethodHandle H5Epop$handle() { - return H5Epop.HANDLE; - } + public static MethodHandle H5Epop$handle() { return H5Epop.HANDLE; } /** * Address for: @@ -26646,33 +24757,30 @@ private static class H5Epop { * herr_t H5Epop(hid_t err_stack, size_t count) * } */ - public static MemorySegment H5Epop$address() { - return H5Epop.ADDR; - } + public static MemorySegment H5Epop$address() { return H5Epop.ADDR; } /** * {@snippet lang=c : * herr_t H5Epop(hid_t err_stack, size_t count) * } */ - public static int H5Epop(long err_stack, long count) { + public static int H5Epop(long err_stack, long count) + { var mh$ = H5Epop.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Epop", err_stack, count); } return (int)mh$.invokeExact(err_stack, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eprint2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eprint2"); @@ -26685,9 +24793,7 @@ private static class H5Eprint2 { * herr_t H5Eprint2(hid_t err_stack, FILE *stream) * } */ - public static FunctionDescriptor H5Eprint2$descriptor() { - return H5Eprint2.DESC; - } + public static FunctionDescriptor H5Eprint2$descriptor() { return H5Eprint2.DESC; } /** * Downcall method handle for: @@ -26695,9 +24801,7 @@ private static class H5Eprint2 { * herr_t H5Eprint2(hid_t err_stack, FILE *stream) * } */ - public static MethodHandle H5Eprint2$handle() { - return H5Eprint2.HANDLE; - } + public static MethodHandle H5Eprint2$handle() { return H5Eprint2.HANDLE; } /** * Address for: @@ -26705,35 +24809,30 @@ private static class H5Eprint2 { * herr_t H5Eprint2(hid_t err_stack, FILE *stream) * } */ - public static MemorySegment H5Eprint2$address() { - return H5Eprint2.ADDR; - } + public static MemorySegment H5Eprint2$address() { return H5Eprint2.ADDR; } /** * {@snippet lang=c : * herr_t H5Eprint2(hid_t err_stack, FILE *stream) * } */ - public static int H5Eprint2(long err_stack, MemorySegment stream) { + public static int H5Eprint2(long err_stack, MemorySegment stream) + { var mh$ = H5Eprint2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eprint2", err_stack, stream); } return (int)mh$.invokeExact(err_stack, stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ewalk2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ewalk2"); @@ -26746,9 +24845,7 @@ private static class H5Ewalk2 { * herr_t H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void *client_data) * } */ - public static FunctionDescriptor H5Ewalk2$descriptor() { - return H5Ewalk2.DESC; - } + public static FunctionDescriptor H5Ewalk2$descriptor() { return H5Ewalk2.DESC; } /** * Downcall method handle for: @@ -26756,9 +24853,7 @@ private static class H5Ewalk2 { * herr_t H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void *client_data) * } */ - public static MethodHandle H5Ewalk2$handle() { - return H5Ewalk2.HANDLE; - } + public static MethodHandle H5Ewalk2$handle() { return H5Ewalk2.HANDLE; } /** * Address for: @@ -26766,34 +24861,30 @@ private static class H5Ewalk2 { * herr_t H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void *client_data) * } */ - public static MemorySegment H5Ewalk2$address() { - return H5Ewalk2.ADDR; - } + public static MemorySegment H5Ewalk2$address() { return H5Ewalk2.ADDR; } /** * {@snippet lang=c : * herr_t H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void *client_data) * } */ - public static int H5Ewalk2(long err_stack, int direction, MemorySegment func, MemorySegment client_data) { + public static int H5Ewalk2(long err_stack, int direction, MemorySegment func, MemorySegment client_data) + { var mh$ = H5Ewalk2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ewalk2", err_stack, direction, func, client_data); } return (int)mh$.invokeExact(err_stack, direction, func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_auto2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_auto2"); @@ -26806,9 +24897,7 @@ private static class H5Eget_auto2 { * herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data) * } */ - public static FunctionDescriptor H5Eget_auto2$descriptor() { - return H5Eget_auto2.DESC; - } + public static FunctionDescriptor H5Eget_auto2$descriptor() { return H5Eget_auto2.DESC; } /** * Downcall method handle for: @@ -26816,9 +24905,7 @@ private static class H5Eget_auto2 { * herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data) * } */ - public static MethodHandle H5Eget_auto2$handle() { - return H5Eget_auto2.HANDLE; - } + public static MethodHandle H5Eget_auto2$handle() { return H5Eget_auto2.HANDLE; } /** * Address for: @@ -26826,34 +24913,30 @@ private static class H5Eget_auto2 { * herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data) * } */ - public static MemorySegment H5Eget_auto2$address() { - return H5Eget_auto2.ADDR; - } + public static MemorySegment H5Eget_auto2$address() { return H5Eget_auto2.ADDR; } /** * {@snippet lang=c : * herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data) * } */ - public static int H5Eget_auto2(long estack_id, MemorySegment func, MemorySegment client_data) { + public static int H5Eget_auto2(long estack_id, MemorySegment func, MemorySegment client_data) + { var mh$ = H5Eget_auto2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_auto2", estack_id, func, client_data); } return (int)mh$.invokeExact(estack_id, func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eset_auto2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eset_auto2"); @@ -26866,9 +24949,7 @@ private static class H5Eset_auto2 { * herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data) * } */ - public static FunctionDescriptor H5Eset_auto2$descriptor() { - return H5Eset_auto2.DESC; - } + public static FunctionDescriptor H5Eset_auto2$descriptor() { return H5Eset_auto2.DESC; } /** * Downcall method handle for: @@ -26876,9 +24957,7 @@ private static class H5Eset_auto2 { * herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data) * } */ - public static MethodHandle H5Eset_auto2$handle() { - return H5Eset_auto2.HANDLE; - } + public static MethodHandle H5Eset_auto2$handle() { return H5Eset_auto2.HANDLE; } /** * Address for: @@ -26886,32 +24965,29 @@ private static class H5Eset_auto2 { * herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data) * } */ - public static MemorySegment H5Eset_auto2$address() { - return H5Eset_auto2.ADDR; - } + public static MemorySegment H5Eset_auto2$address() { return H5Eset_auto2.ADDR; } /** * {@snippet lang=c : * herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data) * } */ - public static int H5Eset_auto2(long estack_id, MemorySegment func, MemorySegment client_data) { + public static int H5Eset_auto2(long estack_id, MemorySegment func, MemorySegment client_data) + { var mh$ = H5Eset_auto2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eset_auto2", estack_id, func, client_data); } return (int)mh$.invokeExact(estack_id, func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eclear2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eclear2"); @@ -26924,9 +25000,7 @@ private static class H5Eclear2 { * herr_t H5Eclear2(hid_t err_stack) * } */ - public static FunctionDescriptor H5Eclear2$descriptor() { - return H5Eclear2.DESC; - } + public static FunctionDescriptor H5Eclear2$descriptor() { return H5Eclear2.DESC; } /** * Downcall method handle for: @@ -26934,9 +25008,7 @@ private static class H5Eclear2 { * herr_t H5Eclear2(hid_t err_stack) * } */ - public static MethodHandle H5Eclear2$handle() { - return H5Eclear2.HANDLE; - } + public static MethodHandle H5Eclear2$handle() { return H5Eclear2.HANDLE; } /** * Address for: @@ -26944,33 +25016,30 @@ private static class H5Eclear2 { * herr_t H5Eclear2(hid_t err_stack) * } */ - public static MemorySegment H5Eclear2$address() { - return H5Eclear2.ADDR; - } + public static MemorySegment H5Eclear2$address() { return H5Eclear2.ADDR; } /** * {@snippet lang=c : * herr_t H5Eclear2(hid_t err_stack) * } */ - public static int H5Eclear2(long err_stack) { + public static int H5Eclear2(long err_stack) + { var mh$ = H5Eclear2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eclear2", err_stack); } return (int)mh$.invokeExact(err_stack); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eauto_is_v2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eauto_is_v2"); @@ -26983,9 +25052,7 @@ private static class H5Eauto_is_v2 { * herr_t H5Eauto_is_v2(hid_t err_stack, unsigned int *is_stack) * } */ - public static FunctionDescriptor H5Eauto_is_v2$descriptor() { - return H5Eauto_is_v2.DESC; - } + public static FunctionDescriptor H5Eauto_is_v2$descriptor() { return H5Eauto_is_v2.DESC; } /** * Downcall method handle for: @@ -26993,9 +25060,7 @@ private static class H5Eauto_is_v2 { * herr_t H5Eauto_is_v2(hid_t err_stack, unsigned int *is_stack) * } */ - public static MethodHandle H5Eauto_is_v2$handle() { - return H5Eauto_is_v2.HANDLE; - } + public static MethodHandle H5Eauto_is_v2$handle() { return H5Eauto_is_v2.HANDLE; } /** * Address for: @@ -27003,35 +25068,30 @@ private static class H5Eauto_is_v2 { * herr_t H5Eauto_is_v2(hid_t err_stack, unsigned int *is_stack) * } */ - public static MemorySegment H5Eauto_is_v2$address() { - return H5Eauto_is_v2.ADDR; - } + public static MemorySegment H5Eauto_is_v2$address() { return H5Eauto_is_v2.ADDR; } /** * {@snippet lang=c : * herr_t H5Eauto_is_v2(hid_t err_stack, unsigned int *is_stack) * } */ - public static int H5Eauto_is_v2(long err_stack, MemorySegment is_stack) { + public static int H5Eauto_is_v2(long err_stack, MemorySegment is_stack) + { var mh$ = H5Eauto_is_v2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eauto_is_v2", err_stack, is_stack); } return (int)mh$.invokeExact(err_stack, is_stack); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_msg { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_msg"); @@ -27044,9 +25104,7 @@ private static class H5Eget_msg { * ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t *type, char *msg, size_t size) * } */ - public static FunctionDescriptor H5Eget_msg$descriptor() { - return H5Eget_msg.DESC; - } + public static FunctionDescriptor H5Eget_msg$descriptor() { return H5Eget_msg.DESC; } /** * Downcall method handle for: @@ -27054,9 +25112,7 @@ private static class H5Eget_msg { * ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t *type, char *msg, size_t size) * } */ - public static MethodHandle H5Eget_msg$handle() { - return H5Eget_msg.HANDLE; - } + public static MethodHandle H5Eget_msg$handle() { return H5Eget_msg.HANDLE; } /** * Address for: @@ -27064,32 +25120,29 @@ private static class H5Eget_msg { * ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t *type, char *msg, size_t size) * } */ - public static MemorySegment H5Eget_msg$address() { - return H5Eget_msg.ADDR; - } + public static MemorySegment H5Eget_msg$address() { return H5Eget_msg.ADDR; } /** * {@snippet lang=c : * ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t *type, char *msg, size_t size) * } */ - public static long H5Eget_msg(long msg_id, MemorySegment type, MemorySegment msg, long size) { + public static long H5Eget_msg(long msg_id, MemorySegment type, MemorySegment msg, long size) + { var mh$ = H5Eget_msg.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_msg", msg_id, type, msg, size); } return (long)mh$.invokeExact(msg_id, type, msg, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_num { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_num"); @@ -27102,9 +25155,7 @@ private static class H5Eget_num { * ssize_t H5Eget_num(hid_t error_stack_id) * } */ - public static FunctionDescriptor H5Eget_num$descriptor() { - return H5Eget_num.DESC; - } + public static FunctionDescriptor H5Eget_num$descriptor() { return H5Eget_num.DESC; } /** * Downcall method handle for: @@ -27112,9 +25163,7 @@ private static class H5Eget_num { * ssize_t H5Eget_num(hid_t error_stack_id) * } */ - public static MethodHandle H5Eget_num$handle() { - return H5Eget_num.HANDLE; - } + public static MethodHandle H5Eget_num$handle() { return H5Eget_num.HANDLE; } /** * Address for: @@ -27122,24 +25171,24 @@ private static class H5Eget_num { * ssize_t H5Eget_num(hid_t error_stack_id) * } */ - public static MemorySegment H5Eget_num$address() { - return H5Eget_num.ADDR; - } + public static MemorySegment H5Eget_num$address() { return H5Eget_num.ADDR; } /** * {@snippet lang=c : * ssize_t H5Eget_num(hid_t error_stack_id) * } */ - public static long H5Eget_num(long error_stack_id) { + public static long H5Eget_num(long error_stack_id) + { var mh$ = H5Eget_num.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_num", error_stack_id); } return (long)mh$.invokeExact(error_stack_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } /** @@ -27156,8 +25205,7 @@ public static long H5Eget_num(long error_stack_id) { public static final OfLong H5E_minor_t = hdf5_h.C_LONG; private static class H5Eclear1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eclear1"); @@ -27170,9 +25218,7 @@ private static class H5Eclear1 { * herr_t H5Eclear1() * } */ - public static FunctionDescriptor H5Eclear1$descriptor() { - return H5Eclear1.DESC; - } + public static FunctionDescriptor H5Eclear1$descriptor() { return H5Eclear1.DESC; } /** * Downcall method handle for: @@ -27180,9 +25226,7 @@ private static class H5Eclear1 { * herr_t H5Eclear1() * } */ - public static MethodHandle H5Eclear1$handle() { - return H5Eclear1.HANDLE; - } + public static MethodHandle H5Eclear1$handle() { return H5Eclear1.HANDLE; } /** * Address for: @@ -27190,33 +25234,30 @@ private static class H5Eclear1 { * herr_t H5Eclear1() * } */ - public static MemorySegment H5Eclear1$address() { - return H5Eclear1.ADDR; - } + public static MemorySegment H5Eclear1$address() { return H5Eclear1.ADDR; } /** * {@snippet lang=c : * herr_t H5Eclear1() * } */ - public static int H5Eclear1() { + public static int H5Eclear1() + { var mh$ = H5Eclear1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eclear1"); } return (int)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_auto1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_auto1"); @@ -27229,9 +25270,7 @@ private static class H5Eget_auto1 { * herr_t H5Eget_auto1(H5E_auto1_t *func, void **client_data) * } */ - public static FunctionDescriptor H5Eget_auto1$descriptor() { - return H5Eget_auto1.DESC; - } + public static FunctionDescriptor H5Eget_auto1$descriptor() { return H5Eget_auto1.DESC; } /** * Downcall method handle for: @@ -27239,9 +25278,7 @@ private static class H5Eget_auto1 { * herr_t H5Eget_auto1(H5E_auto1_t *func, void **client_data) * } */ - public static MethodHandle H5Eget_auto1$handle() { - return H5Eget_auto1.HANDLE; - } + public static MethodHandle H5Eget_auto1$handle() { return H5Eget_auto1.HANDLE; } /** * Address for: @@ -27249,37 +25286,31 @@ private static class H5Eget_auto1 { * herr_t H5Eget_auto1(H5E_auto1_t *func, void **client_data) * } */ - public static MemorySegment H5Eget_auto1$address() { - return H5Eget_auto1.ADDR; - } + public static MemorySegment H5Eget_auto1$address() { return H5Eget_auto1.ADDR; } /** * {@snippet lang=c : * herr_t H5Eget_auto1(H5E_auto1_t *func, void **client_data) * } */ - public static int H5Eget_auto1(MemorySegment func, MemorySegment client_data) { + public static int H5Eget_auto1(MemorySegment func, MemorySegment client_data) + { var mh$ = H5Eget_auto1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_auto1", func, client_data); } return (int)mh$.invokeExact(func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Epush1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Epush1"); @@ -27289,55 +25320,53 @@ private static class H5Epush1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t min, const char *str) + * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t + * min, const char *str) * } */ - public static FunctionDescriptor H5Epush1$descriptor() { - return H5Epush1.DESC; - } + public static FunctionDescriptor H5Epush1$descriptor() { return H5Epush1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t min, const char *str) + * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t + * min, const char *str) * } */ - public static MethodHandle H5Epush1$handle() { - return H5Epush1.HANDLE; - } + public static MethodHandle H5Epush1$handle() { return H5Epush1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t min, const char *str) + * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t + * min, const char *str) * } */ - public static MemorySegment H5Epush1$address() { - return H5Epush1.ADDR; - } + public static MemorySegment H5Epush1$address() { return H5Epush1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t min, const char *str) + * herr_t H5Epush1(const char *file, const char *func, unsigned int line, H5E_major_t maj, H5E_minor_t + * min, const char *str) * } */ - public static int H5Epush1(MemorySegment file, MemorySegment func, int line, long maj, long min, MemorySegment str) { + public static int H5Epush1(MemorySegment file, MemorySegment func, int line, long maj, long min, + MemorySegment str) + { var mh$ = H5Epush1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Epush1", file, func, line, maj, min, str); } return (int)mh$.invokeExact(file, func, line, maj, min, str); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eprint1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eprint1"); @@ -27350,9 +25379,7 @@ private static class H5Eprint1 { * herr_t H5Eprint1(FILE *stream) * } */ - public static FunctionDescriptor H5Eprint1$descriptor() { - return H5Eprint1.DESC; - } + public static FunctionDescriptor H5Eprint1$descriptor() { return H5Eprint1.DESC; } /** * Downcall method handle for: @@ -27360,9 +25387,7 @@ private static class H5Eprint1 { * herr_t H5Eprint1(FILE *stream) * } */ - public static MethodHandle H5Eprint1$handle() { - return H5Eprint1.HANDLE; - } + public static MethodHandle H5Eprint1$handle() { return H5Eprint1.HANDLE; } /** * Address for: @@ -27370,33 +25395,30 @@ private static class H5Eprint1 { * herr_t H5Eprint1(FILE *stream) * } */ - public static MemorySegment H5Eprint1$address() { - return H5Eprint1.ADDR; - } + public static MemorySegment H5Eprint1$address() { return H5Eprint1.ADDR; } /** * {@snippet lang=c : * herr_t H5Eprint1(FILE *stream) * } */ - public static int H5Eprint1(MemorySegment stream) { + public static int H5Eprint1(MemorySegment stream) + { var mh$ = H5Eprint1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eprint1", stream); } return (int)mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eset_auto1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eset_auto1"); @@ -27409,9 +25431,7 @@ private static class H5Eset_auto1 { * herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data) * } */ - public static FunctionDescriptor H5Eset_auto1$descriptor() { - return H5Eset_auto1.DESC; - } + public static FunctionDescriptor H5Eset_auto1$descriptor() { return H5Eset_auto1.DESC; } /** * Downcall method handle for: @@ -27419,9 +25439,7 @@ private static class H5Eset_auto1 { * herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data) * } */ - public static MethodHandle H5Eset_auto1$handle() { - return H5Eset_auto1.HANDLE; - } + public static MethodHandle H5Eset_auto1$handle() { return H5Eset_auto1.HANDLE; } /** * Address for: @@ -27429,34 +25447,30 @@ private static class H5Eset_auto1 { * herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data) * } */ - public static MemorySegment H5Eset_auto1$address() { - return H5Eset_auto1.ADDR; - } + public static MemorySegment H5Eset_auto1$address() { return H5Eset_auto1.ADDR; } /** * {@snippet lang=c : * herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data) * } */ - public static int H5Eset_auto1(MemorySegment func, MemorySegment client_data) { + public static int H5Eset_auto1(MemorySegment func, MemorySegment client_data) + { var mh$ = H5Eset_auto1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eset_auto1", func, client_data); } return (int)mh$.invokeExact(func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ewalk1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ewalk1"); @@ -27469,9 +25483,7 @@ private static class H5Ewalk1 { * herr_t H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void *client_data) * } */ - public static FunctionDescriptor H5Ewalk1$descriptor() { - return H5Ewalk1.DESC; - } + public static FunctionDescriptor H5Ewalk1$descriptor() { return H5Ewalk1.DESC; } /** * Downcall method handle for: @@ -27479,9 +25491,7 @@ private static class H5Ewalk1 { * herr_t H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void *client_data) * } */ - public static MethodHandle H5Ewalk1$handle() { - return H5Ewalk1.HANDLE; - } + public static MethodHandle H5Ewalk1$handle() { return H5Ewalk1.HANDLE; } /** * Address for: @@ -27489,32 +25499,29 @@ private static class H5Ewalk1 { * herr_t H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void *client_data) * } */ - public static MemorySegment H5Ewalk1$address() { - return H5Ewalk1.ADDR; - } + public static MemorySegment H5Ewalk1$address() { return H5Ewalk1.ADDR; } /** * {@snippet lang=c : * herr_t H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void *client_data) * } */ - public static int H5Ewalk1(int direction, MemorySegment func, MemorySegment client_data) { + public static int H5Ewalk1(int direction, MemorySegment func, MemorySegment client_data) + { var mh$ = H5Ewalk1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ewalk1", direction, func, client_data); } return (int)mh$.invokeExact(direction, func, client_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_major { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_major"); @@ -27527,9 +25534,7 @@ private static class H5Eget_major { * char *H5Eget_major(H5E_major_t maj) * } */ - public static FunctionDescriptor H5Eget_major$descriptor() { - return H5Eget_major.DESC; - } + public static FunctionDescriptor H5Eget_major$descriptor() { return H5Eget_major.DESC; } /** * Downcall method handle for: @@ -27537,9 +25542,7 @@ private static class H5Eget_major { * char *H5Eget_major(H5E_major_t maj) * } */ - public static MethodHandle H5Eget_major$handle() { - return H5Eget_major.HANDLE; - } + public static MethodHandle H5Eget_major$handle() { return H5Eget_major.HANDLE; } /** * Address for: @@ -27547,32 +25550,29 @@ private static class H5Eget_major { * char *H5Eget_major(H5E_major_t maj) * } */ - public static MemorySegment H5Eget_major$address() { - return H5Eget_major.ADDR; - } + public static MemorySegment H5Eget_major$address() { return H5Eget_major.ADDR; } /** * {@snippet lang=c : * char *H5Eget_major(H5E_major_t maj) * } */ - public static MemorySegment H5Eget_major(long maj) { + public static MemorySegment H5Eget_major(long maj) + { var mh$ = H5Eget_major.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_major", maj); } return (MemorySegment)mh$.invokeExact(maj); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Eget_minor { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Eget_minor"); @@ -27585,9 +25585,7 @@ private static class H5Eget_minor { * char *H5Eget_minor(H5E_minor_t min) * } */ - public static FunctionDescriptor H5Eget_minor$descriptor() { - return H5Eget_minor.DESC; - } + public static FunctionDescriptor H5Eget_minor$descriptor() { return H5Eget_minor.DESC; } /** * Downcall method handle for: @@ -27595,9 +25593,7 @@ private static class H5Eget_minor { * char *H5Eget_minor(H5E_minor_t min) * } */ - public static MethodHandle H5Eget_minor$handle() { - return H5Eget_minor.HANDLE; - } + public static MethodHandle H5Eget_minor$handle() { return H5Eget_minor.HANDLE; } /** * Address for: @@ -27605,24 +25601,24 @@ private static class H5Eget_minor { * char *H5Eget_minor(H5E_minor_t min) * } */ - public static MemorySegment H5Eget_minor$address() { - return H5Eget_minor.ADDR; - } + public static MemorySegment H5Eget_minor$address() { return H5Eget_minor.ADDR; } /** * {@snippet lang=c : * char *H5Eget_minor(H5E_minor_t min) * } */ - public static MemorySegment H5Eget_minor(long min) { + public static MemorySegment H5Eget_minor(long min) + { var mh$ = H5Eget_minor.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Eget_minor", min); } return (MemorySegment)mh$.invokeExact(min); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5ES_STATUS_IN_PROGRESS = (int)0L; @@ -27631,40 +25627,31 @@ public static MemorySegment H5Eget_minor(long min) { * enum H5ES_status_t.H5ES_STATUS_IN_PROGRESS = 0 * } */ - public static int H5ES_STATUS_IN_PROGRESS() { - return H5ES_STATUS_IN_PROGRESS; - } + public static int H5ES_STATUS_IN_PROGRESS() { return H5ES_STATUS_IN_PROGRESS; } private static final int H5ES_STATUS_SUCCEED = (int)1L; /** * {@snippet lang=c : * enum H5ES_status_t.H5ES_STATUS_SUCCEED = 1 * } */ - public static int H5ES_STATUS_SUCCEED() { - return H5ES_STATUS_SUCCEED; - } + public static int H5ES_STATUS_SUCCEED() { return H5ES_STATUS_SUCCEED; } private static final int H5ES_STATUS_CANCELED = (int)2L; /** * {@snippet lang=c : * enum H5ES_status_t.H5ES_STATUS_CANCELED = 2 * } */ - public static int H5ES_STATUS_CANCELED() { - return H5ES_STATUS_CANCELED; - } + public static int H5ES_STATUS_CANCELED() { return H5ES_STATUS_CANCELED; } private static final int H5ES_STATUS_FAIL = (int)3L; /** * {@snippet lang=c : * enum H5ES_status_t.H5ES_STATUS_FAIL = 3 * } */ - public static int H5ES_STATUS_FAIL() { - return H5ES_STATUS_FAIL; - } + public static int H5ES_STATUS_FAIL() { return H5ES_STATUS_FAIL; } private static class H5EScreate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5EScreate"); @@ -27677,9 +25664,7 @@ private static class H5EScreate { * hid_t H5EScreate() * } */ - public static FunctionDescriptor H5EScreate$descriptor() { - return H5EScreate.DESC; - } + public static FunctionDescriptor H5EScreate$descriptor() { return H5EScreate.DESC; } /** * Downcall method handle for: @@ -27687,9 +25672,7 @@ private static class H5EScreate { * hid_t H5EScreate() * } */ - public static MethodHandle H5EScreate$handle() { - return H5EScreate.HANDLE; - } + public static MethodHandle H5EScreate$handle() { return H5EScreate.HANDLE; } /** * Address for: @@ -27697,35 +25680,30 @@ private static class H5EScreate { * hid_t H5EScreate() * } */ - public static MemorySegment H5EScreate$address() { - return H5EScreate.ADDR; - } + public static MemorySegment H5EScreate$address() { return H5EScreate.ADDR; } /** * {@snippet lang=c : * hid_t H5EScreate() * } */ - public static long H5EScreate() { + public static long H5EScreate() + { var mh$ = H5EScreate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5EScreate"); } return (long)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESwait { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESwait"); @@ -27738,9 +25716,7 @@ private static class H5ESwait { * herr_t H5ESwait(hid_t es_id, uint64_t timeout, size_t *num_in_progress, hbool_t *err_occurred) * } */ - public static FunctionDescriptor H5ESwait$descriptor() { - return H5ESwait.DESC; - } + public static FunctionDescriptor H5ESwait$descriptor() { return H5ESwait.DESC; } /** * Downcall method handle for: @@ -27748,9 +25724,7 @@ private static class H5ESwait { * herr_t H5ESwait(hid_t es_id, uint64_t timeout, size_t *num_in_progress, hbool_t *err_occurred) * } */ - public static MethodHandle H5ESwait$handle() { - return H5ESwait.HANDLE; - } + public static MethodHandle H5ESwait$handle() { return H5ESwait.HANDLE; } /** * Address for: @@ -27758,34 +25732,31 @@ private static class H5ESwait { * herr_t H5ESwait(hid_t es_id, uint64_t timeout, size_t *num_in_progress, hbool_t *err_occurred) * } */ - public static MemorySegment H5ESwait$address() { - return H5ESwait.ADDR; - } + public static MemorySegment H5ESwait$address() { return H5ESwait.ADDR; } /** * {@snippet lang=c : * herr_t H5ESwait(hid_t es_id, uint64_t timeout, size_t *num_in_progress, hbool_t *err_occurred) * } */ - public static int H5ESwait(long es_id, long timeout, MemorySegment num_in_progress, MemorySegment err_occurred) { + public static int H5ESwait(long es_id, long timeout, MemorySegment num_in_progress, + MemorySegment err_occurred) + { var mh$ = H5ESwait.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESwait", es_id, timeout, num_in_progress, err_occurred); } return (int)mh$.invokeExact(es_id, timeout, num_in_progress, err_occurred); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5EScancel { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5EScancel"); @@ -27798,9 +25769,7 @@ private static class H5EScancel { * herr_t H5EScancel(hid_t es_id, size_t *num_not_canceled, hbool_t *err_occurred) * } */ - public static FunctionDescriptor H5EScancel$descriptor() { - return H5EScancel.DESC; - } + public static FunctionDescriptor H5EScancel$descriptor() { return H5EScancel.DESC; } /** * Downcall method handle for: @@ -27808,9 +25777,7 @@ private static class H5EScancel { * herr_t H5EScancel(hid_t es_id, size_t *num_not_canceled, hbool_t *err_occurred) * } */ - public static MethodHandle H5EScancel$handle() { - return H5EScancel.HANDLE; - } + public static MethodHandle H5EScancel$handle() { return H5EScancel.HANDLE; } /** * Address for: @@ -27818,33 +25785,30 @@ private static class H5EScancel { * herr_t H5EScancel(hid_t es_id, size_t *num_not_canceled, hbool_t *err_occurred) * } */ - public static MemorySegment H5EScancel$address() { - return H5EScancel.ADDR; - } + public static MemorySegment H5EScancel$address() { return H5EScancel.ADDR; } /** * {@snippet lang=c : * herr_t H5EScancel(hid_t es_id, size_t *num_not_canceled, hbool_t *err_occurred) * } */ - public static int H5EScancel(long es_id, MemorySegment num_not_canceled, MemorySegment err_occurred) { + public static int H5EScancel(long es_id, MemorySegment num_not_canceled, MemorySegment err_occurred) + { var mh$ = H5EScancel.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5EScancel", es_id, num_not_canceled, err_occurred); } return (int)mh$.invokeExact(es_id, num_not_canceled, err_occurred); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_count"); @@ -27857,9 +25821,7 @@ private static class H5ESget_count { * herr_t H5ESget_count(hid_t es_id, size_t *count) * } */ - public static FunctionDescriptor H5ESget_count$descriptor() { - return H5ESget_count.DESC; - } + public static FunctionDescriptor H5ESget_count$descriptor() { return H5ESget_count.DESC; } /** * Downcall method handle for: @@ -27867,9 +25829,7 @@ private static class H5ESget_count { * herr_t H5ESget_count(hid_t es_id, size_t *count) * } */ - public static MethodHandle H5ESget_count$handle() { - return H5ESget_count.HANDLE; - } + public static MethodHandle H5ESget_count$handle() { return H5ESget_count.HANDLE; } /** * Address for: @@ -27877,33 +25837,30 @@ private static class H5ESget_count { * herr_t H5ESget_count(hid_t es_id, size_t *count) * } */ - public static MemorySegment H5ESget_count$address() { - return H5ESget_count.ADDR; - } + public static MemorySegment H5ESget_count$address() { return H5ESget_count.ADDR; } /** * {@snippet lang=c : * herr_t H5ESget_count(hid_t es_id, size_t *count) * } */ - public static int H5ESget_count(long es_id, MemorySegment count) { + public static int H5ESget_count(long es_id, MemorySegment count) + { var mh$ = H5ESget_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_count", es_id, count); } return (int)mh$.invokeExact(es_id, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_op_counter { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_op_counter"); @@ -27916,9 +25873,7 @@ private static class H5ESget_op_counter { * herr_t H5ESget_op_counter(hid_t es_id, uint64_t *counter) * } */ - public static FunctionDescriptor H5ESget_op_counter$descriptor() { - return H5ESget_op_counter.DESC; - } + public static FunctionDescriptor H5ESget_op_counter$descriptor() { return H5ESget_op_counter.DESC; } /** * Downcall method handle for: @@ -27926,9 +25881,7 @@ private static class H5ESget_op_counter { * herr_t H5ESget_op_counter(hid_t es_id, uint64_t *counter) * } */ - public static MethodHandle H5ESget_op_counter$handle() { - return H5ESget_op_counter.HANDLE; - } + public static MethodHandle H5ESget_op_counter$handle() { return H5ESget_op_counter.HANDLE; } /** * Address for: @@ -27936,33 +25889,30 @@ private static class H5ESget_op_counter { * herr_t H5ESget_op_counter(hid_t es_id, uint64_t *counter) * } */ - public static MemorySegment H5ESget_op_counter$address() { - return H5ESget_op_counter.ADDR; - } + public static MemorySegment H5ESget_op_counter$address() { return H5ESget_op_counter.ADDR; } /** * {@snippet lang=c : * herr_t H5ESget_op_counter(hid_t es_id, uint64_t *counter) * } */ - public static int H5ESget_op_counter(long es_id, MemorySegment counter) { + public static int H5ESget_op_counter(long es_id, MemorySegment counter) + { var mh$ = H5ESget_op_counter.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_op_counter", es_id, counter); } return (int)mh$.invokeExact(es_id, counter); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_err_status { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_err_status"); @@ -27975,9 +25925,7 @@ private static class H5ESget_err_status { * herr_t H5ESget_err_status(hid_t es_id, hbool_t *err_occurred) * } */ - public static FunctionDescriptor H5ESget_err_status$descriptor() { - return H5ESget_err_status.DESC; - } + public static FunctionDescriptor H5ESget_err_status$descriptor() { return H5ESget_err_status.DESC; } /** * Downcall method handle for: @@ -27985,9 +25933,7 @@ private static class H5ESget_err_status { * herr_t H5ESget_err_status(hid_t es_id, hbool_t *err_occurred) * } */ - public static MethodHandle H5ESget_err_status$handle() { - return H5ESget_err_status.HANDLE; - } + public static MethodHandle H5ESget_err_status$handle() { return H5ESget_err_status.HANDLE; } /** * Address for: @@ -27995,33 +25941,30 @@ private static class H5ESget_err_status { * herr_t H5ESget_err_status(hid_t es_id, hbool_t *err_occurred) * } */ - public static MemorySegment H5ESget_err_status$address() { - return H5ESget_err_status.ADDR; - } + public static MemorySegment H5ESget_err_status$address() { return H5ESget_err_status.ADDR; } /** * {@snippet lang=c : * herr_t H5ESget_err_status(hid_t es_id, hbool_t *err_occurred) * } */ - public static int H5ESget_err_status(long es_id, MemorySegment err_occurred) { + public static int H5ESget_err_status(long es_id, MemorySegment err_occurred) + { var mh$ = H5ESget_err_status.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_err_status", es_id, err_occurred); } return (int)mh$.invokeExact(es_id, err_occurred); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_err_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_err_count"); @@ -28034,9 +25977,7 @@ private static class H5ESget_err_count { * herr_t H5ESget_err_count(hid_t es_id, size_t *num_errs) * } */ - public static FunctionDescriptor H5ESget_err_count$descriptor() { - return H5ESget_err_count.DESC; - } + public static FunctionDescriptor H5ESget_err_count$descriptor() { return H5ESget_err_count.DESC; } /** * Downcall method handle for: @@ -28044,9 +25985,7 @@ private static class H5ESget_err_count { * herr_t H5ESget_err_count(hid_t es_id, size_t *num_errs) * } */ - public static MethodHandle H5ESget_err_count$handle() { - return H5ESget_err_count.HANDLE; - } + public static MethodHandle H5ESget_err_count$handle() { return H5ESget_err_count.HANDLE; } /** * Address for: @@ -28054,35 +25993,30 @@ private static class H5ESget_err_count { * herr_t H5ESget_err_count(hid_t es_id, size_t *num_errs) * } */ - public static MemorySegment H5ESget_err_count$address() { - return H5ESget_err_count.ADDR; - } + public static MemorySegment H5ESget_err_count$address() { return H5ESget_err_count.ADDR; } /** * {@snippet lang=c : * herr_t H5ESget_err_count(hid_t es_id, size_t *num_errs) * } */ - public static int H5ESget_err_count(long es_id, MemorySegment num_errs) { + public static int H5ESget_err_count(long es_id, MemorySegment num_errs) + { var mh$ = H5ESget_err_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_err_count", es_id, num_errs); } return (int)mh$.invokeExact(es_id, num_errs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESget_err_info { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESget_err_info"); @@ -28092,56 +26026,54 @@ private static class H5ESget_err_info { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t *err_cleared) + * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t + * *err_cleared) * } */ - public static FunctionDescriptor H5ESget_err_info$descriptor() { - return H5ESget_err_info.DESC; - } + public static FunctionDescriptor H5ESget_err_info$descriptor() { return H5ESget_err_info.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t *err_cleared) + * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t + * *err_cleared) * } */ - public static MethodHandle H5ESget_err_info$handle() { - return H5ESget_err_info.HANDLE; - } + public static MethodHandle H5ESget_err_info$handle() { return H5ESget_err_info.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t *err_cleared) + * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t + * *err_cleared) * } */ - public static MemorySegment H5ESget_err_info$address() { - return H5ESget_err_info.ADDR; - } + public static MemorySegment H5ESget_err_info$address() { return H5ESget_err_info.ADDR; } /** * {@snippet lang=c : - * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t *err_cleared) + * herr_t H5ESget_err_info(hid_t es_id, size_t num_err_info, H5ES_err_info_t err_info[], size_t + * *err_cleared) * } */ - public static int H5ESget_err_info(long es_id, long num_err_info, MemorySegment err_info, MemorySegment err_cleared) { + public static int H5ESget_err_info(long es_id, long num_err_info, MemorySegment err_info, + MemorySegment err_cleared) + { var mh$ = H5ESget_err_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESget_err_info", es_id, num_err_info, err_info, err_cleared); } return (int)mh$.invokeExact(es_id, num_err_info, err_info, err_cleared); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESfree_err_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESfree_err_info"); @@ -28154,9 +26086,7 @@ private static class H5ESfree_err_info { * herr_t H5ESfree_err_info(size_t num_err_info, H5ES_err_info_t err_info[]) * } */ - public static FunctionDescriptor H5ESfree_err_info$descriptor() { - return H5ESfree_err_info.DESC; - } + public static FunctionDescriptor H5ESfree_err_info$descriptor() { return H5ESfree_err_info.DESC; } /** * Downcall method handle for: @@ -28164,9 +26094,7 @@ private static class H5ESfree_err_info { * herr_t H5ESfree_err_info(size_t num_err_info, H5ES_err_info_t err_info[]) * } */ - public static MethodHandle H5ESfree_err_info$handle() { - return H5ESfree_err_info.HANDLE; - } + public static MethodHandle H5ESfree_err_info$handle() { return H5ESfree_err_info.HANDLE; } /** * Address for: @@ -28174,34 +26102,30 @@ private static class H5ESfree_err_info { * herr_t H5ESfree_err_info(size_t num_err_info, H5ES_err_info_t err_info[]) * } */ - public static MemorySegment H5ESfree_err_info$address() { - return H5ESfree_err_info.ADDR; - } + public static MemorySegment H5ESfree_err_info$address() { return H5ESfree_err_info.ADDR; } /** * {@snippet lang=c : * herr_t H5ESfree_err_info(size_t num_err_info, H5ES_err_info_t err_info[]) * } */ - public static int H5ESfree_err_info(long num_err_info, MemorySegment err_info) { + public static int H5ESfree_err_info(long num_err_info, MemorySegment err_info) + { var mh$ = H5ESfree_err_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESfree_err_info", num_err_info, err_info); } return (int)mh$.invokeExact(num_err_info, err_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESregister_insert_func { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESregister_insert_func"); @@ -28214,7 +26138,8 @@ private static class H5ESregister_insert_func { * herr_t H5ESregister_insert_func(hid_t es_id, H5ES_event_insert_func_t func, void *ctx) * } */ - public static FunctionDescriptor H5ESregister_insert_func$descriptor() { + public static FunctionDescriptor H5ESregister_insert_func$descriptor() + { return H5ESregister_insert_func.DESC; } @@ -28224,9 +26149,7 @@ private static class H5ESregister_insert_func { * herr_t H5ESregister_insert_func(hid_t es_id, H5ES_event_insert_func_t func, void *ctx) * } */ - public static MethodHandle H5ESregister_insert_func$handle() { - return H5ESregister_insert_func.HANDLE; - } + public static MethodHandle H5ESregister_insert_func$handle() { return H5ESregister_insert_func.HANDLE; } /** * Address for: @@ -28234,34 +26157,30 @@ private static class H5ESregister_insert_func { * herr_t H5ESregister_insert_func(hid_t es_id, H5ES_event_insert_func_t func, void *ctx) * } */ - public static MemorySegment H5ESregister_insert_func$address() { - return H5ESregister_insert_func.ADDR; - } + public static MemorySegment H5ESregister_insert_func$address() { return H5ESregister_insert_func.ADDR; } /** * {@snippet lang=c : * herr_t H5ESregister_insert_func(hid_t es_id, H5ES_event_insert_func_t func, void *ctx) * } */ - public static int H5ESregister_insert_func(long es_id, MemorySegment func, MemorySegment ctx) { + public static int H5ESregister_insert_func(long es_id, MemorySegment func, MemorySegment ctx) + { var mh$ = H5ESregister_insert_func.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESregister_insert_func", es_id, func, ctx); } return (int)mh$.invokeExact(es_id, func, ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESregister_complete_func { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESregister_complete_func"); @@ -28274,7 +26193,8 @@ private static class H5ESregister_complete_func { * herr_t H5ESregister_complete_func(hid_t es_id, H5ES_event_complete_func_t func, void *ctx) * } */ - public static FunctionDescriptor H5ESregister_complete_func$descriptor() { + public static FunctionDescriptor H5ESregister_complete_func$descriptor() + { return H5ESregister_complete_func.DESC; } @@ -28284,7 +26204,8 @@ private static class H5ESregister_complete_func { * herr_t H5ESregister_complete_func(hid_t es_id, H5ES_event_complete_func_t func, void *ctx) * } */ - public static MethodHandle H5ESregister_complete_func$handle() { + public static MethodHandle H5ESregister_complete_func$handle() + { return H5ESregister_complete_func.HANDLE; } @@ -28294,7 +26215,8 @@ private static class H5ESregister_complete_func { * herr_t H5ESregister_complete_func(hid_t es_id, H5ES_event_complete_func_t func, void *ctx) * } */ - public static MemorySegment H5ESregister_complete_func$address() { + public static MemorySegment H5ESregister_complete_func$address() + { return H5ESregister_complete_func.ADDR; } @@ -28303,23 +26225,22 @@ private static class H5ESregister_complete_func { * herr_t H5ESregister_complete_func(hid_t es_id, H5ES_event_complete_func_t func, void *ctx) * } */ - public static int H5ESregister_complete_func(long es_id, MemorySegment func, MemorySegment ctx) { + public static int H5ESregister_complete_func(long es_id, MemorySegment func, MemorySegment ctx) + { var mh$ = H5ESregister_complete_func.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESregister_complete_func", es_id, func, ctx); } return (int)mh$.invokeExact(es_id, func, ctx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5ESclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5ESclose"); @@ -28332,9 +26253,7 @@ private static class H5ESclose { * herr_t H5ESclose(hid_t es_id) * } */ - public static FunctionDescriptor H5ESclose$descriptor() { - return H5ESclose.DESC; - } + public static FunctionDescriptor H5ESclose$descriptor() { return H5ESclose.DESC; } /** * Downcall method handle for: @@ -28342,9 +26261,7 @@ private static class H5ESclose { * herr_t H5ESclose(hid_t es_id) * } */ - public static MethodHandle H5ESclose$handle() { - return H5ESclose.HANDLE; - } + public static MethodHandle H5ESclose$handle() { return H5ESclose.HANDLE; } /** * Address for: @@ -28352,24 +26269,24 @@ private static class H5ESclose { * herr_t H5ESclose(hid_t es_id) * } */ - public static MemorySegment H5ESclose$address() { - return H5ESclose.ADDR; - } + public static MemorySegment H5ESclose$address() { return H5ESclose.ADDR; } /** * {@snippet lang=c : * herr_t H5ESclose(hid_t es_id) * } */ - public static int H5ESclose(long es_id) { + public static int H5ESclose(long es_id) + { var mh$ = H5ESclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5ESclose", es_id); } return (int)mh$.invokeExact(es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5F_SCOPE_LOCAL = (int)0L; @@ -28378,322 +26295,249 @@ public static int H5ESclose(long es_id) { * enum H5F_scope_t.H5F_SCOPE_LOCAL = 0 * } */ - public static int H5F_SCOPE_LOCAL() { - return H5F_SCOPE_LOCAL; - } + public static int H5F_SCOPE_LOCAL() { return H5F_SCOPE_LOCAL; } private static final int H5F_SCOPE_GLOBAL = (int)1L; /** * {@snippet lang=c : * enum H5F_scope_t.H5F_SCOPE_GLOBAL = 1 * } */ - public static int H5F_SCOPE_GLOBAL() { - return H5F_SCOPE_GLOBAL; - } + public static int H5F_SCOPE_GLOBAL() { return H5F_SCOPE_GLOBAL; } private static final int H5F_CLOSE_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5F_close_degree_t.H5F_CLOSE_DEFAULT = 0 * } */ - public static int H5F_CLOSE_DEFAULT() { - return H5F_CLOSE_DEFAULT; - } + public static int H5F_CLOSE_DEFAULT() { return H5F_CLOSE_DEFAULT; } private static final int H5F_CLOSE_WEAK = (int)1L; /** * {@snippet lang=c : * enum H5F_close_degree_t.H5F_CLOSE_WEAK = 1 * } */ - public static int H5F_CLOSE_WEAK() { - return H5F_CLOSE_WEAK; - } + public static int H5F_CLOSE_WEAK() { return H5F_CLOSE_WEAK; } private static final int H5F_CLOSE_SEMI = (int)2L; /** * {@snippet lang=c : * enum H5F_close_degree_t.H5F_CLOSE_SEMI = 2 * } */ - public static int H5F_CLOSE_SEMI() { - return H5F_CLOSE_SEMI; - } + public static int H5F_CLOSE_SEMI() { return H5F_CLOSE_SEMI; } private static final int H5F_CLOSE_STRONG = (int)3L; /** * {@snippet lang=c : * enum H5F_close_degree_t.H5F_CLOSE_STRONG = 3 * } */ - public static int H5F_CLOSE_STRONG() { - return H5F_CLOSE_STRONG; - } + public static int H5F_CLOSE_STRONG() { return H5F_CLOSE_STRONG; } private static final int H5FD_MEM_NOLIST = (int)-1L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_NOLIST = -1 * } */ - public static int H5FD_MEM_NOLIST() { - return H5FD_MEM_NOLIST; - } + public static int H5FD_MEM_NOLIST() { return H5FD_MEM_NOLIST; } private static final int H5FD_MEM_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_DEFAULT = 0 * } */ - public static int H5FD_MEM_DEFAULT() { - return H5FD_MEM_DEFAULT; - } + public static int H5FD_MEM_DEFAULT() { return H5FD_MEM_DEFAULT; } private static final int H5FD_MEM_SUPER = (int)1L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_SUPER = 1 * } */ - public static int H5FD_MEM_SUPER() { - return H5FD_MEM_SUPER; - } + public static int H5FD_MEM_SUPER() { return H5FD_MEM_SUPER; } private static final int H5FD_MEM_BTREE = (int)2L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_BTREE = 2 * } */ - public static int H5FD_MEM_BTREE() { - return H5FD_MEM_BTREE; - } + public static int H5FD_MEM_BTREE() { return H5FD_MEM_BTREE; } private static final int H5FD_MEM_DRAW = (int)3L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_DRAW = 3 * } */ - public static int H5FD_MEM_DRAW() { - return H5FD_MEM_DRAW; - } + public static int H5FD_MEM_DRAW() { return H5FD_MEM_DRAW; } private static final int H5FD_MEM_GHEAP = (int)4L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_GHEAP = 4 * } */ - public static int H5FD_MEM_GHEAP() { - return H5FD_MEM_GHEAP; - } + public static int H5FD_MEM_GHEAP() { return H5FD_MEM_GHEAP; } private static final int H5FD_MEM_LHEAP = (int)5L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_LHEAP = 5 * } */ - public static int H5FD_MEM_LHEAP() { - return H5FD_MEM_LHEAP; - } + public static int H5FD_MEM_LHEAP() { return H5FD_MEM_LHEAP; } private static final int H5FD_MEM_OHDR = (int)6L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_OHDR = 6 * } */ - public static int H5FD_MEM_OHDR() { - return H5FD_MEM_OHDR; - } + public static int H5FD_MEM_OHDR() { return H5FD_MEM_OHDR; } private static final int H5FD_MEM_NTYPES = (int)7L; /** * {@snippet lang=c : * enum H5F_mem_t.H5FD_MEM_NTYPES = 7 * } */ - public static int H5FD_MEM_NTYPES() { - return H5FD_MEM_NTYPES; - } + public static int H5FD_MEM_NTYPES() { return H5FD_MEM_NTYPES; } private static final int H5F_LIBVER_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_ERROR = -1 * } */ - public static int H5F_LIBVER_ERROR() { - return H5F_LIBVER_ERROR; - } + public static int H5F_LIBVER_ERROR() { return H5F_LIBVER_ERROR; } private static final int H5F_LIBVER_EARLIEST = (int)0L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_EARLIEST = 0 * } */ - public static int H5F_LIBVER_EARLIEST() { - return H5F_LIBVER_EARLIEST; - } + public static int H5F_LIBVER_EARLIEST() { return H5F_LIBVER_EARLIEST; } private static final int H5F_LIBVER_V18 = (int)1L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V18 = 1 * } */ - public static int H5F_LIBVER_V18() { - return H5F_LIBVER_V18; - } + public static int H5F_LIBVER_V18() { return H5F_LIBVER_V18; } private static final int H5F_LIBVER_V110 = (int)2L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V110 = 2 * } */ - public static int H5F_LIBVER_V110() { - return H5F_LIBVER_V110; - } + public static int H5F_LIBVER_V110() { return H5F_LIBVER_V110; } private static final int H5F_LIBVER_V112 = (int)3L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V112 = 3 * } */ - public static int H5F_LIBVER_V112() { - return H5F_LIBVER_V112; - } + public static int H5F_LIBVER_V112() { return H5F_LIBVER_V112; } private static final int H5F_LIBVER_V114 = (int)4L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V114 = 4 * } */ - public static int H5F_LIBVER_V114() { - return H5F_LIBVER_V114; - } + public static int H5F_LIBVER_V114() { return H5F_LIBVER_V114; } private static final int H5F_LIBVER_V116 = (int)5L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V116 = 5 * } */ - public static int H5F_LIBVER_V116() { - return H5F_LIBVER_V116; - } + public static int H5F_LIBVER_V116() { return H5F_LIBVER_V116; } private static final int H5F_LIBVER_V118 = (int)6L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_V118 = 6 * } */ - public static int H5F_LIBVER_V118() { - return H5F_LIBVER_V118; - } + public static int H5F_LIBVER_V118() { return H5F_LIBVER_V118; } private static final int H5F_LIBVER_NBOUNDS = (int)7L; /** * {@snippet lang=c : * enum H5F_libver_t.H5F_LIBVER_NBOUNDS = 7 * } */ - public static int H5F_LIBVER_NBOUNDS() { - return H5F_LIBVER_NBOUNDS; - } + public static int H5F_LIBVER_NBOUNDS() { return H5F_LIBVER_NBOUNDS; } private static final int H5F_FSPACE_STRATEGY_FSM_AGGR = (int)0L; /** * {@snippet lang=c : * enum H5F_fspace_strategy_t.H5F_FSPACE_STRATEGY_FSM_AGGR = 0 * } */ - public static int H5F_FSPACE_STRATEGY_FSM_AGGR() { - return H5F_FSPACE_STRATEGY_FSM_AGGR; - } + public static int H5F_FSPACE_STRATEGY_FSM_AGGR() { return H5F_FSPACE_STRATEGY_FSM_AGGR; } private static final int H5F_FSPACE_STRATEGY_PAGE = (int)1L; /** * {@snippet lang=c : * enum H5F_fspace_strategy_t.H5F_FSPACE_STRATEGY_PAGE = 1 * } */ - public static int H5F_FSPACE_STRATEGY_PAGE() { - return H5F_FSPACE_STRATEGY_PAGE; - } + public static int H5F_FSPACE_STRATEGY_PAGE() { return H5F_FSPACE_STRATEGY_PAGE; } private static final int H5F_FSPACE_STRATEGY_AGGR = (int)2L; /** * {@snippet lang=c : * enum H5F_fspace_strategy_t.H5F_FSPACE_STRATEGY_AGGR = 2 * } */ - public static int H5F_FSPACE_STRATEGY_AGGR() { - return H5F_FSPACE_STRATEGY_AGGR; - } + public static int H5F_FSPACE_STRATEGY_AGGR() { return H5F_FSPACE_STRATEGY_AGGR; } private static final int H5F_FSPACE_STRATEGY_NONE = (int)3L; /** * {@snippet lang=c : * enum H5F_fspace_strategy_t.H5F_FSPACE_STRATEGY_NONE = 3 * } */ - public static int H5F_FSPACE_STRATEGY_NONE() { - return H5F_FSPACE_STRATEGY_NONE; - } + public static int H5F_FSPACE_STRATEGY_NONE() { return H5F_FSPACE_STRATEGY_NONE; } private static final int H5F_FSPACE_STRATEGY_NTYPES = (int)4L; /** * {@snippet lang=c : * enum H5F_fspace_strategy_t.H5F_FSPACE_STRATEGY_NTYPES = 4 * } */ - public static int H5F_FSPACE_STRATEGY_NTYPES() { - return H5F_FSPACE_STRATEGY_NTYPES; - } + public static int H5F_FSPACE_STRATEGY_NTYPES() { return H5F_FSPACE_STRATEGY_NTYPES; } private static final int H5F_FILE_SPACE_DEFAULT = (int)0L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_DEFAULT = 0 * } */ - public static int H5F_FILE_SPACE_DEFAULT() { - return H5F_FILE_SPACE_DEFAULT; - } + public static int H5F_FILE_SPACE_DEFAULT() { return H5F_FILE_SPACE_DEFAULT; } private static final int H5F_FILE_SPACE_ALL_PERSIST = (int)1L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_ALL_PERSIST = 1 * } */ - public static int H5F_FILE_SPACE_ALL_PERSIST() { - return H5F_FILE_SPACE_ALL_PERSIST; - } + public static int H5F_FILE_SPACE_ALL_PERSIST() { return H5F_FILE_SPACE_ALL_PERSIST; } private static final int H5F_FILE_SPACE_ALL = (int)2L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_ALL = 2 * } */ - public static int H5F_FILE_SPACE_ALL() { - return H5F_FILE_SPACE_ALL; - } + public static int H5F_FILE_SPACE_ALL() { return H5F_FILE_SPACE_ALL; } private static final int H5F_FILE_SPACE_AGGR_VFD = (int)3L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_AGGR_VFD = 3 * } */ - public static int H5F_FILE_SPACE_AGGR_VFD() { - return H5F_FILE_SPACE_AGGR_VFD; - } + public static int H5F_FILE_SPACE_AGGR_VFD() { return H5F_FILE_SPACE_AGGR_VFD; } private static final int H5F_FILE_SPACE_VFD = (int)4L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_VFD = 4 * } */ - public static int H5F_FILE_SPACE_VFD() { - return H5F_FILE_SPACE_VFD; - } + public static int H5F_FILE_SPACE_VFD() { return H5F_FILE_SPACE_VFD; } private static final int H5F_FILE_SPACE_NTYPES = (int)5L; /** * {@snippet lang=c : * enum H5F_file_space_type_t.H5F_FILE_SPACE_NTYPES = 5 * } */ - public static int H5F_FILE_SPACE_NTYPES() { - return H5F_FILE_SPACE_NTYPES; - } + public static int H5F_FILE_SPACE_NTYPES() { return H5F_FILE_SPACE_NTYPES; } private static class H5Fis_accessible { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fis_accessible"); @@ -28706,9 +26550,7 @@ private static class H5Fis_accessible { * htri_t H5Fis_accessible(const char *container_name, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Fis_accessible$descriptor() { - return H5Fis_accessible.DESC; - } + public static FunctionDescriptor H5Fis_accessible$descriptor() { return H5Fis_accessible.DESC; } /** * Downcall method handle for: @@ -28716,9 +26558,7 @@ private static class H5Fis_accessible { * htri_t H5Fis_accessible(const char *container_name, hid_t fapl_id) * } */ - public static MethodHandle H5Fis_accessible$handle() { - return H5Fis_accessible.HANDLE; - } + public static MethodHandle H5Fis_accessible$handle() { return H5Fis_accessible.HANDLE; } /** * Address for: @@ -28726,35 +26566,30 @@ private static class H5Fis_accessible { * htri_t H5Fis_accessible(const char *container_name, hid_t fapl_id) * } */ - public static MemorySegment H5Fis_accessible$address() { - return H5Fis_accessible.ADDR; - } + public static MemorySegment H5Fis_accessible$address() { return H5Fis_accessible.ADDR; } /** * {@snippet lang=c : * htri_t H5Fis_accessible(const char *container_name, hid_t fapl_id) * } */ - public static int H5Fis_accessible(MemorySegment container_name, long fapl_id) { + public static int H5Fis_accessible(MemorySegment container_name, long fapl_id) + { var mh$ = H5Fis_accessible.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fis_accessible", container_name, fapl_id); } return (int)mh$.invokeExact(container_name, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fcreate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fcreate"); @@ -28767,9 +26602,7 @@ private static class H5Fcreate { * hid_t H5Fcreate(const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Fcreate$descriptor() { - return H5Fcreate.DESC; - } + public static FunctionDescriptor H5Fcreate$descriptor() { return H5Fcreate.DESC; } /** * Downcall method handle for: @@ -28777,9 +26610,7 @@ private static class H5Fcreate { * hid_t H5Fcreate(const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id) * } */ - public static MethodHandle H5Fcreate$handle() { - return H5Fcreate.HANDLE; - } + public static MethodHandle H5Fcreate$handle() { return H5Fcreate.HANDLE; } /** * Address for: @@ -28787,39 +26618,31 @@ private static class H5Fcreate { * hid_t H5Fcreate(const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id) * } */ - public static MemorySegment H5Fcreate$address() { - return H5Fcreate.ADDR; - } + public static MemorySegment H5Fcreate$address() { return H5Fcreate.ADDR; } /** * {@snippet lang=c : * hid_t H5Fcreate(const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id) * } */ - public static long H5Fcreate(MemorySegment filename, int flags, long fcpl_id, long fapl_id) { + public static long H5Fcreate(MemorySegment filename, int flags, long fcpl_id, long fapl_id) + { var mh$ = H5Fcreate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fcreate", filename, flags, fcpl_id, fapl_id); } return (long)mh$.invokeExact(filename, flags, fcpl_id, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fcreate_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fcreate_async"); @@ -28829,57 +26652,57 @@ private static class H5Fcreate_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) + * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Fcreate_async$descriptor() { - return H5Fcreate_async.DESC; - } + public static FunctionDescriptor H5Fcreate_async$descriptor() { return H5Fcreate_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) + * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) * } */ - public static MethodHandle H5Fcreate_async$handle() { - return H5Fcreate_async.HANDLE; - } + public static MethodHandle H5Fcreate_async$handle() { return H5Fcreate_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) + * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) * } */ - public static MemorySegment H5Fcreate_async$address() { - return H5Fcreate_async.ADDR; - } + public static MemorySegment H5Fcreate_async$address() { return H5Fcreate_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) + * hid_t H5Fcreate_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t fcpl_id, hid_t fapl_id, hid_t es_id) * } */ - public static long H5Fcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment filename, int flags, long fcpl_id, long fapl_id, long es_id) { + public static long H5Fcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment filename, int flags, long fcpl_id, long fapl_id, + long es_id) + { var mh$ = H5Fcreate_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Fcreate_async", app_file, app_func, app_line, filename, flags, fcpl_id, fapl_id, es_id); + traceDowncall("H5Fcreate_async", app_file, app_func, app_line, filename, flags, fcpl_id, + fapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, filename, flags, fcpl_id, fapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, filename, flags, fcpl_id, fapl_id, + es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fopen"); @@ -28892,9 +26715,7 @@ private static class H5Fopen { * hid_t H5Fopen(const char *filename, unsigned int flags, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Fopen$descriptor() { - return H5Fopen.DESC; - } + public static FunctionDescriptor H5Fopen$descriptor() { return H5Fopen.DESC; } /** * Downcall method handle for: @@ -28902,9 +26723,7 @@ private static class H5Fopen { * hid_t H5Fopen(const char *filename, unsigned int flags, hid_t fapl_id) * } */ - public static MethodHandle H5Fopen$handle() { - return H5Fopen.HANDLE; - } + public static MethodHandle H5Fopen$handle() { return H5Fopen.HANDLE; } /** * Address for: @@ -28912,38 +26731,31 @@ private static class H5Fopen { * hid_t H5Fopen(const char *filename, unsigned int flags, hid_t fapl_id) * } */ - public static MemorySegment H5Fopen$address() { - return H5Fopen.ADDR; - } + public static MemorySegment H5Fopen$address() { return H5Fopen.ADDR; } /** * {@snippet lang=c : * hid_t H5Fopen(const char *filename, unsigned int flags, hid_t fapl_id) * } */ - public static long H5Fopen(MemorySegment filename, int flags, long fapl_id) { + public static long H5Fopen(MemorySegment filename, int flags, long fapl_id) + { var mh$ = H5Fopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fopen", filename, flags, fapl_id); } return (long)mh$.invokeExact(filename, flags, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fopen_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fopen_async"); @@ -28953,55 +26765,54 @@ private static class H5Fopen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t access_plist, hid_t es_id) + * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t access_plist, hid_t es_id) * } */ - public static FunctionDescriptor H5Fopen_async$descriptor() { - return H5Fopen_async.DESC; - } + public static FunctionDescriptor H5Fopen_async$descriptor() { return H5Fopen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t access_plist, hid_t es_id) + * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t access_plist, hid_t es_id) * } */ - public static MethodHandle H5Fopen_async$handle() { - return H5Fopen_async.HANDLE; - } + public static MethodHandle H5Fopen_async$handle() { return H5Fopen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t access_plist, hid_t es_id) + * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t access_plist, hid_t es_id) * } */ - public static MemorySegment H5Fopen_async$address() { - return H5Fopen_async.ADDR; - } + public static MemorySegment H5Fopen_async$address() { return H5Fopen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char *filename, unsigned int flags, hid_t access_plist, hid_t es_id) + * hid_t H5Fopen_async(const char *app_file, const char *app_func, unsigned int app_line, const char + * *filename, unsigned int flags, hid_t access_plist, hid_t es_id) * } */ - public static long H5Fopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment filename, int flags, long access_plist, long es_id) { + public static long H5Fopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment filename, int flags, long access_plist, long es_id) + { var mh$ = H5Fopen_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Fopen_async", app_file, app_func, app_line, filename, flags, access_plist, es_id); + traceDowncall("H5Fopen_async", app_file, app_func, app_line, filename, flags, access_plist, + es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, filename, flags, access_plist, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Freopen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Freopen"); @@ -29014,9 +26825,7 @@ private static class H5Freopen { * hid_t H5Freopen(hid_t file_id) * } */ - public static FunctionDescriptor H5Freopen$descriptor() { - return H5Freopen.DESC; - } + public static FunctionDescriptor H5Freopen$descriptor() { return H5Freopen.DESC; } /** * Downcall method handle for: @@ -29024,9 +26833,7 @@ private static class H5Freopen { * hid_t H5Freopen(hid_t file_id) * } */ - public static MethodHandle H5Freopen$handle() { - return H5Freopen.HANDLE; - } + public static MethodHandle H5Freopen$handle() { return H5Freopen.HANDLE; } /** * Address for: @@ -29034,36 +26841,30 @@ private static class H5Freopen { * hid_t H5Freopen(hid_t file_id) * } */ - public static MemorySegment H5Freopen$address() { - return H5Freopen.ADDR; - } + public static MemorySegment H5Freopen$address() { return H5Freopen.ADDR; } /** * {@snippet lang=c : * hid_t H5Freopen(hid_t file_id) * } */ - public static long H5Freopen(long file_id) { + public static long H5Freopen(long file_id) + { var mh$ = H5Freopen.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Freopen", file_id); } return (long)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Freopen_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Freopen_async"); @@ -29073,56 +26874,54 @@ private static class H5Freopen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Freopen_async$descriptor() { - return H5Freopen_async.DESC; - } + public static FunctionDescriptor H5Freopen_async$descriptor() { return H5Freopen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static MethodHandle H5Freopen_async$handle() { - return H5Freopen_async.HANDLE; - } + public static MethodHandle H5Freopen_async$handle() { return H5Freopen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static MemorySegment H5Freopen_async$address() { - return H5Freopen_async.ADDR; - } + public static MemorySegment H5Freopen_async$address() { return H5Freopen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * hid_t H5Freopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static long H5Freopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, long file_id, long es_id) { + public static long H5Freopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long file_id, long es_id) + { var mh$ = H5Freopen_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Freopen_async", app_file, app_func, app_line, file_id, es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, file_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fflush"); @@ -29135,9 +26934,7 @@ private static class H5Fflush { * herr_t H5Fflush(hid_t object_id, H5F_scope_t scope) * } */ - public static FunctionDescriptor H5Fflush$descriptor() { - return H5Fflush.DESC; - } + public static FunctionDescriptor H5Fflush$descriptor() { return H5Fflush.DESC; } /** * Downcall method handle for: @@ -29145,9 +26942,7 @@ private static class H5Fflush { * herr_t H5Fflush(hid_t object_id, H5F_scope_t scope) * } */ - public static MethodHandle H5Fflush$handle() { - return H5Fflush.HANDLE; - } + public static MethodHandle H5Fflush$handle() { return H5Fflush.HANDLE; } /** * Address for: @@ -29155,37 +26950,31 @@ private static class H5Fflush { * herr_t H5Fflush(hid_t object_id, H5F_scope_t scope) * } */ - public static MemorySegment H5Fflush$address() { - return H5Fflush.ADDR; - } + public static MemorySegment H5Fflush$address() { return H5Fflush.ADDR; } /** * {@snippet lang=c : * herr_t H5Fflush(hid_t object_id, H5F_scope_t scope) * } */ - public static int H5Fflush(long object_id, int scope) { + public static int H5Fflush(long object_id, int scope) + { var mh$ = H5Fflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fflush", object_id, scope); } return (int)mh$.invokeExact(object_id, scope); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fflush_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fflush_async"); @@ -29195,55 +26984,53 @@ private static class H5Fflush_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t object_id, H5F_scope_t scope, hid_t es_id) + * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * object_id, H5F_scope_t scope, hid_t es_id) * } */ - public static FunctionDescriptor H5Fflush_async$descriptor() { - return H5Fflush_async.DESC; - } + public static FunctionDescriptor H5Fflush_async$descriptor() { return H5Fflush_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t object_id, H5F_scope_t scope, hid_t es_id) + * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * object_id, H5F_scope_t scope, hid_t es_id) * } */ - public static MethodHandle H5Fflush_async$handle() { - return H5Fflush_async.HANDLE; - } + public static MethodHandle H5Fflush_async$handle() { return H5Fflush_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t object_id, H5F_scope_t scope, hid_t es_id) + * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * object_id, H5F_scope_t scope, hid_t es_id) * } */ - public static MemorySegment H5Fflush_async$address() { - return H5Fflush_async.ADDR; - } + public static MemorySegment H5Fflush_async$address() { return H5Fflush_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t object_id, H5F_scope_t scope, hid_t es_id) + * herr_t H5Fflush_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * object_id, H5F_scope_t scope, hid_t es_id) * } */ - public static int H5Fflush_async(MemorySegment app_file, MemorySegment app_func, int app_line, long object_id, int scope, long es_id) { + public static int H5Fflush_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long object_id, int scope, long es_id) + { var mh$ = H5Fflush_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fflush_async", app_file, app_func, app_line, object_id, scope, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, object_id, scope, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fclose"); @@ -29256,9 +27043,7 @@ private static class H5Fclose { * herr_t H5Fclose(hid_t file_id) * } */ - public static FunctionDescriptor H5Fclose$descriptor() { - return H5Fclose.DESC; - } + public static FunctionDescriptor H5Fclose$descriptor() { return H5Fclose.DESC; } /** * Downcall method handle for: @@ -29266,9 +27051,7 @@ private static class H5Fclose { * herr_t H5Fclose(hid_t file_id) * } */ - public static MethodHandle H5Fclose$handle() { - return H5Fclose.HANDLE; - } + public static MethodHandle H5Fclose$handle() { return H5Fclose.HANDLE; } /** * Address for: @@ -29276,36 +27059,30 @@ private static class H5Fclose { * herr_t H5Fclose(hid_t file_id) * } */ - public static MemorySegment H5Fclose$address() { - return H5Fclose.ADDR; - } + public static MemorySegment H5Fclose$address() { return H5Fclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Fclose(hid_t file_id) * } */ - public static int H5Fclose(long file_id) { + public static int H5Fclose(long file_id) + { var mh$ = H5Fclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fclose", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fclose_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fclose_async"); @@ -29315,56 +27092,54 @@ private static class H5Fclose_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Fclose_async$descriptor() { - return H5Fclose_async.DESC; - } + public static FunctionDescriptor H5Fclose_async$descriptor() { return H5Fclose_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static MethodHandle H5Fclose_async$handle() { - return H5Fclose_async.HANDLE; - } + public static MethodHandle H5Fclose_async$handle() { return H5Fclose_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static MemorySegment H5Fclose_async$address() { - return H5Fclose_async.ADDR; - } + public static MemorySegment H5Fclose_async$address() { return H5Fclose_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, hid_t es_id) + * herr_t H5Fclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, + * hid_t es_id) * } */ - public static int H5Fclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, long file_id, long es_id) { + public static int H5Fclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long file_id, long es_id) + { var mh$ = H5Fclose_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fclose_async", app_file, app_func, app_line, file_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, file_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fdelete { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fdelete"); @@ -29377,9 +27152,7 @@ private static class H5Fdelete { * herr_t H5Fdelete(const char *filename, hid_t fapl_id) * } */ - public static FunctionDescriptor H5Fdelete$descriptor() { - return H5Fdelete.DESC; - } + public static FunctionDescriptor H5Fdelete$descriptor() { return H5Fdelete.DESC; } /** * Downcall method handle for: @@ -29387,9 +27160,7 @@ private static class H5Fdelete { * herr_t H5Fdelete(const char *filename, hid_t fapl_id) * } */ - public static MethodHandle H5Fdelete$handle() { - return H5Fdelete.HANDLE; - } + public static MethodHandle H5Fdelete$handle() { return H5Fdelete.HANDLE; } /** * Address for: @@ -29397,32 +27168,29 @@ private static class H5Fdelete { * herr_t H5Fdelete(const char *filename, hid_t fapl_id) * } */ - public static MemorySegment H5Fdelete$address() { - return H5Fdelete.ADDR; - } + public static MemorySegment H5Fdelete$address() { return H5Fdelete.ADDR; } /** * {@snippet lang=c : * herr_t H5Fdelete(const char *filename, hid_t fapl_id) * } */ - public static int H5Fdelete(MemorySegment filename, long fapl_id) { + public static int H5Fdelete(MemorySegment filename, long fapl_id) + { var mh$ = H5Fdelete.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fdelete", filename, fapl_id); } return (int)mh$.invokeExact(filename, fapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_create_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_create_plist"); @@ -29435,9 +27203,7 @@ private static class H5Fget_create_plist { * hid_t H5Fget_create_plist(hid_t file_id) * } */ - public static FunctionDescriptor H5Fget_create_plist$descriptor() { - return H5Fget_create_plist.DESC; - } + public static FunctionDescriptor H5Fget_create_plist$descriptor() { return H5Fget_create_plist.DESC; } /** * Downcall method handle for: @@ -29445,9 +27211,7 @@ private static class H5Fget_create_plist { * hid_t H5Fget_create_plist(hid_t file_id) * } */ - public static MethodHandle H5Fget_create_plist$handle() { - return H5Fget_create_plist.HANDLE; - } + public static MethodHandle H5Fget_create_plist$handle() { return H5Fget_create_plist.HANDLE; } /** * Address for: @@ -29455,32 +27219,29 @@ private static class H5Fget_create_plist { * hid_t H5Fget_create_plist(hid_t file_id) * } */ - public static MemorySegment H5Fget_create_plist$address() { - return H5Fget_create_plist.ADDR; - } + public static MemorySegment H5Fget_create_plist$address() { return H5Fget_create_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Fget_create_plist(hid_t file_id) * } */ - public static long H5Fget_create_plist(long file_id) { + public static long H5Fget_create_plist(long file_id) + { var mh$ = H5Fget_create_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_create_plist", file_id); } return (long)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_access_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_access_plist"); @@ -29493,9 +27254,7 @@ private static class H5Fget_access_plist { * hid_t H5Fget_access_plist(hid_t file_id) * } */ - public static FunctionDescriptor H5Fget_access_plist$descriptor() { - return H5Fget_access_plist.DESC; - } + public static FunctionDescriptor H5Fget_access_plist$descriptor() { return H5Fget_access_plist.DESC; } /** * Downcall method handle for: @@ -29503,9 +27262,7 @@ private static class H5Fget_access_plist { * hid_t H5Fget_access_plist(hid_t file_id) * } */ - public static MethodHandle H5Fget_access_plist$handle() { - return H5Fget_access_plist.HANDLE; - } + public static MethodHandle H5Fget_access_plist$handle() { return H5Fget_access_plist.HANDLE; } /** * Address for: @@ -29513,33 +27270,30 @@ private static class H5Fget_access_plist { * hid_t H5Fget_access_plist(hid_t file_id) * } */ - public static MemorySegment H5Fget_access_plist$address() { - return H5Fget_access_plist.ADDR; - } + public static MemorySegment H5Fget_access_plist$address() { return H5Fget_access_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Fget_access_plist(hid_t file_id) * } */ - public static long H5Fget_access_plist(long file_id) { + public static long H5Fget_access_plist(long file_id) + { var mh$ = H5Fget_access_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_access_plist", file_id); } return (long)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_intent { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_intent"); @@ -29552,9 +27306,7 @@ private static class H5Fget_intent { * herr_t H5Fget_intent(hid_t file_id, unsigned int *intent) * } */ - public static FunctionDescriptor H5Fget_intent$descriptor() { - return H5Fget_intent.DESC; - } + public static FunctionDescriptor H5Fget_intent$descriptor() { return H5Fget_intent.DESC; } /** * Downcall method handle for: @@ -29562,9 +27314,7 @@ private static class H5Fget_intent { * herr_t H5Fget_intent(hid_t file_id, unsigned int *intent) * } */ - public static MethodHandle H5Fget_intent$handle() { - return H5Fget_intent.HANDLE; - } + public static MethodHandle H5Fget_intent$handle() { return H5Fget_intent.HANDLE; } /** * Address for: @@ -29572,33 +27322,30 @@ private static class H5Fget_intent { * herr_t H5Fget_intent(hid_t file_id, unsigned int *intent) * } */ - public static MemorySegment H5Fget_intent$address() { - return H5Fget_intent.ADDR; - } + public static MemorySegment H5Fget_intent$address() { return H5Fget_intent.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_intent(hid_t file_id, unsigned int *intent) * } */ - public static int H5Fget_intent(long file_id, MemorySegment intent) { + public static int H5Fget_intent(long file_id, MemorySegment intent) + { var mh$ = H5Fget_intent.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_intent", file_id, intent); } return (int)mh$.invokeExact(file_id, intent); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_fileno { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_fileno"); @@ -29611,9 +27358,7 @@ private static class H5Fget_fileno { * herr_t H5Fget_fileno(hid_t file_id, unsigned long *fileno) * } */ - public static FunctionDescriptor H5Fget_fileno$descriptor() { - return H5Fget_fileno.DESC; - } + public static FunctionDescriptor H5Fget_fileno$descriptor() { return H5Fget_fileno.DESC; } /** * Downcall method handle for: @@ -29621,9 +27366,7 @@ private static class H5Fget_fileno { * herr_t H5Fget_fileno(hid_t file_id, unsigned long *fileno) * } */ - public static MethodHandle H5Fget_fileno$handle() { - return H5Fget_fileno.HANDLE; - } + public static MethodHandle H5Fget_fileno$handle() { return H5Fget_fileno.HANDLE; } /** * Address for: @@ -29631,33 +27374,30 @@ private static class H5Fget_fileno { * herr_t H5Fget_fileno(hid_t file_id, unsigned long *fileno) * } */ - public static MemorySegment H5Fget_fileno$address() { - return H5Fget_fileno.ADDR; - } + public static MemorySegment H5Fget_fileno$address() { return H5Fget_fileno.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_fileno(hid_t file_id, unsigned long *fileno) * } */ - public static int H5Fget_fileno(long file_id, MemorySegment fileno) { + public static int H5Fget_fileno(long file_id, MemorySegment fileno) + { var mh$ = H5Fget_fileno.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_fileno", file_id, fileno); } return (int)mh$.invokeExact(file_id, fileno); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_obj_count { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_obj_count"); @@ -29670,9 +27410,7 @@ private static class H5Fget_obj_count { * ssize_t H5Fget_obj_count(hid_t file_id, unsigned int types) * } */ - public static FunctionDescriptor H5Fget_obj_count$descriptor() { - return H5Fget_obj_count.DESC; - } + public static FunctionDescriptor H5Fget_obj_count$descriptor() { return H5Fget_obj_count.DESC; } /** * Downcall method handle for: @@ -29680,9 +27418,7 @@ private static class H5Fget_obj_count { * ssize_t H5Fget_obj_count(hid_t file_id, unsigned int types) * } */ - public static MethodHandle H5Fget_obj_count$handle() { - return H5Fget_obj_count.HANDLE; - } + public static MethodHandle H5Fget_obj_count$handle() { return H5Fget_obj_count.HANDLE; } /** * Address for: @@ -29690,35 +27426,30 @@ private static class H5Fget_obj_count { * ssize_t H5Fget_obj_count(hid_t file_id, unsigned int types) * } */ - public static MemorySegment H5Fget_obj_count$address() { - return H5Fget_obj_count.ADDR; - } + public static MemorySegment H5Fget_obj_count$address() { return H5Fget_obj_count.ADDR; } /** * {@snippet lang=c : * ssize_t H5Fget_obj_count(hid_t file_id, unsigned int types) * } */ - public static long H5Fget_obj_count(long file_id, int types) { + public static long H5Fget_obj_count(long file_id, int types) + { var mh$ = H5Fget_obj_count.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_obj_count", file_id, types); } return (long)mh$.invokeExact(file_id, types); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_obj_ids { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_obj_ids"); @@ -29731,9 +27462,7 @@ private static class H5Fget_obj_ids { * ssize_t H5Fget_obj_ids(hid_t file_id, unsigned int types, size_t max_objs, hid_t *obj_id_list) * } */ - public static FunctionDescriptor H5Fget_obj_ids$descriptor() { - return H5Fget_obj_ids.DESC; - } + public static FunctionDescriptor H5Fget_obj_ids$descriptor() { return H5Fget_obj_ids.DESC; } /** * Downcall method handle for: @@ -29741,9 +27470,7 @@ private static class H5Fget_obj_ids { * ssize_t H5Fget_obj_ids(hid_t file_id, unsigned int types, size_t max_objs, hid_t *obj_id_list) * } */ - public static MethodHandle H5Fget_obj_ids$handle() { - return H5Fget_obj_ids.HANDLE; - } + public static MethodHandle H5Fget_obj_ids$handle() { return H5Fget_obj_ids.HANDLE; } /** * Address for: @@ -29751,34 +27478,30 @@ private static class H5Fget_obj_ids { * ssize_t H5Fget_obj_ids(hid_t file_id, unsigned int types, size_t max_objs, hid_t *obj_id_list) * } */ - public static MemorySegment H5Fget_obj_ids$address() { - return H5Fget_obj_ids.ADDR; - } + public static MemorySegment H5Fget_obj_ids$address() { return H5Fget_obj_ids.ADDR; } /** * {@snippet lang=c : * ssize_t H5Fget_obj_ids(hid_t file_id, unsigned int types, size_t max_objs, hid_t *obj_id_list) * } */ - public static long H5Fget_obj_ids(long file_id, int types, long max_objs, MemorySegment obj_id_list) { + public static long H5Fget_obj_ids(long file_id, int types, long max_objs, MemorySegment obj_id_list) + { var mh$ = H5Fget_obj_ids.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_obj_ids", file_id, types, max_objs, obj_id_list); } return (long)mh$.invokeExact(file_id, types, max_objs, obj_id_list); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_vfd_handle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_vfd_handle"); @@ -29791,9 +27514,7 @@ private static class H5Fget_vfd_handle { * herr_t H5Fget_vfd_handle(hid_t file_id, hid_t fapl, void **file_handle) * } */ - public static FunctionDescriptor H5Fget_vfd_handle$descriptor() { - return H5Fget_vfd_handle.DESC; - } + public static FunctionDescriptor H5Fget_vfd_handle$descriptor() { return H5Fget_vfd_handle.DESC; } /** * Downcall method handle for: @@ -29801,9 +27522,7 @@ private static class H5Fget_vfd_handle { * herr_t H5Fget_vfd_handle(hid_t file_id, hid_t fapl, void **file_handle) * } */ - public static MethodHandle H5Fget_vfd_handle$handle() { - return H5Fget_vfd_handle.HANDLE; - } + public static MethodHandle H5Fget_vfd_handle$handle() { return H5Fget_vfd_handle.HANDLE; } /** * Address for: @@ -29811,35 +27530,30 @@ private static class H5Fget_vfd_handle { * herr_t H5Fget_vfd_handle(hid_t file_id, hid_t fapl, void **file_handle) * } */ - public static MemorySegment H5Fget_vfd_handle$address() { - return H5Fget_vfd_handle.ADDR; - } + public static MemorySegment H5Fget_vfd_handle$address() { return H5Fget_vfd_handle.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_vfd_handle(hid_t file_id, hid_t fapl, void **file_handle) * } */ - public static int H5Fget_vfd_handle(long file_id, long fapl, MemorySegment file_handle) { + public static int H5Fget_vfd_handle(long file_id, long fapl, MemorySegment file_handle) + { var mh$ = H5Fget_vfd_handle.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_vfd_handle", file_id, fapl, file_handle); } return (int)mh$.invokeExact(file_id, fapl, file_handle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fmount { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fmount"); @@ -29852,9 +27566,7 @@ private static class H5Fmount { * herr_t H5Fmount(hid_t loc_id, const char *name, hid_t child, hid_t plist) * } */ - public static FunctionDescriptor H5Fmount$descriptor() { - return H5Fmount.DESC; - } + public static FunctionDescriptor H5Fmount$descriptor() { return H5Fmount.DESC; } /** * Downcall method handle for: @@ -29862,9 +27574,7 @@ private static class H5Fmount { * herr_t H5Fmount(hid_t loc_id, const char *name, hid_t child, hid_t plist) * } */ - public static MethodHandle H5Fmount$handle() { - return H5Fmount.HANDLE; - } + public static MethodHandle H5Fmount$handle() { return H5Fmount.HANDLE; } /** * Address for: @@ -29872,33 +27582,30 @@ private static class H5Fmount { * herr_t H5Fmount(hid_t loc_id, const char *name, hid_t child, hid_t plist) * } */ - public static MemorySegment H5Fmount$address() { - return H5Fmount.ADDR; - } + public static MemorySegment H5Fmount$address() { return H5Fmount.ADDR; } /** * {@snippet lang=c : * herr_t H5Fmount(hid_t loc_id, const char *name, hid_t child, hid_t plist) * } */ - public static int H5Fmount(long loc_id, MemorySegment name, long child, long plist) { + public static int H5Fmount(long loc_id, MemorySegment name, long child, long plist) + { var mh$ = H5Fmount.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fmount", loc_id, name, child, plist); } return (int)mh$.invokeExact(loc_id, name, child, plist); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Funmount { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Funmount"); @@ -29911,9 +27618,7 @@ private static class H5Funmount { * herr_t H5Funmount(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Funmount$descriptor() { - return H5Funmount.DESC; - } + public static FunctionDescriptor H5Funmount$descriptor() { return H5Funmount.DESC; } /** * Downcall method handle for: @@ -29921,9 +27626,7 @@ private static class H5Funmount { * herr_t H5Funmount(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Funmount$handle() { - return H5Funmount.HANDLE; - } + public static MethodHandle H5Funmount$handle() { return H5Funmount.HANDLE; } /** * Address for: @@ -29931,32 +27634,29 @@ private static class H5Funmount { * herr_t H5Funmount(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Funmount$address() { - return H5Funmount.ADDR; - } + public static MemorySegment H5Funmount$address() { return H5Funmount.ADDR; } /** * {@snippet lang=c : * herr_t H5Funmount(hid_t loc_id, const char *name) * } */ - public static int H5Funmount(long loc_id, MemorySegment name) { + public static int H5Funmount(long loc_id, MemorySegment name) + { var mh$ = H5Funmount.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Funmount", loc_id, name); } return (int)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_freespace { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_freespace"); @@ -29969,9 +27669,7 @@ private static class H5Fget_freespace { * hssize_t H5Fget_freespace(hid_t file_id) * } */ - public static FunctionDescriptor H5Fget_freespace$descriptor() { - return H5Fget_freespace.DESC; - } + public static FunctionDescriptor H5Fget_freespace$descriptor() { return H5Fget_freespace.DESC; } /** * Downcall method handle for: @@ -29979,9 +27677,7 @@ private static class H5Fget_freespace { * hssize_t H5Fget_freespace(hid_t file_id) * } */ - public static MethodHandle H5Fget_freespace$handle() { - return H5Fget_freespace.HANDLE; - } + public static MethodHandle H5Fget_freespace$handle() { return H5Fget_freespace.HANDLE; } /** * Address for: @@ -29989,33 +27685,30 @@ private static class H5Fget_freespace { * hssize_t H5Fget_freespace(hid_t file_id) * } */ - public static MemorySegment H5Fget_freespace$address() { - return H5Fget_freespace.ADDR; - } + public static MemorySegment H5Fget_freespace$address() { return H5Fget_freespace.ADDR; } /** * {@snippet lang=c : * hssize_t H5Fget_freespace(hid_t file_id) * } */ - public static long H5Fget_freespace(long file_id) { + public static long H5Fget_freespace(long file_id) + { var mh$ = H5Fget_freespace.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_freespace", file_id); } return (long)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_filesize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_filesize"); @@ -30028,9 +27721,7 @@ private static class H5Fget_filesize { * herr_t H5Fget_filesize(hid_t file_id, hsize_t *size) * } */ - public static FunctionDescriptor H5Fget_filesize$descriptor() { - return H5Fget_filesize.DESC; - } + public static FunctionDescriptor H5Fget_filesize$descriptor() { return H5Fget_filesize.DESC; } /** * Downcall method handle for: @@ -30038,9 +27729,7 @@ private static class H5Fget_filesize { * herr_t H5Fget_filesize(hid_t file_id, hsize_t *size) * } */ - public static MethodHandle H5Fget_filesize$handle() { - return H5Fget_filesize.HANDLE; - } + public static MethodHandle H5Fget_filesize$handle() { return H5Fget_filesize.HANDLE; } /** * Address for: @@ -30048,33 +27737,30 @@ private static class H5Fget_filesize { * herr_t H5Fget_filesize(hid_t file_id, hsize_t *size) * } */ - public static MemorySegment H5Fget_filesize$address() { - return H5Fget_filesize.ADDR; - } + public static MemorySegment H5Fget_filesize$address() { return H5Fget_filesize.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_filesize(hid_t file_id, hsize_t *size) * } */ - public static int H5Fget_filesize(long file_id, MemorySegment size) { + public static int H5Fget_filesize(long file_id, MemorySegment size) + { var mh$ = H5Fget_filesize.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_filesize", file_id, size); } return (int)mh$.invokeExact(file_id, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_eoa { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_eoa"); @@ -30087,9 +27773,7 @@ private static class H5Fget_eoa { * herr_t H5Fget_eoa(hid_t file_id, haddr_t *eoa) * } */ - public static FunctionDescriptor H5Fget_eoa$descriptor() { - return H5Fget_eoa.DESC; - } + public static FunctionDescriptor H5Fget_eoa$descriptor() { return H5Fget_eoa.DESC; } /** * Downcall method handle for: @@ -30097,9 +27781,7 @@ private static class H5Fget_eoa { * herr_t H5Fget_eoa(hid_t file_id, haddr_t *eoa) * } */ - public static MethodHandle H5Fget_eoa$handle() { - return H5Fget_eoa.HANDLE; - } + public static MethodHandle H5Fget_eoa$handle() { return H5Fget_eoa.HANDLE; } /** * Address for: @@ -30107,33 +27789,30 @@ private static class H5Fget_eoa { * herr_t H5Fget_eoa(hid_t file_id, haddr_t *eoa) * } */ - public static MemorySegment H5Fget_eoa$address() { - return H5Fget_eoa.ADDR; - } + public static MemorySegment H5Fget_eoa$address() { return H5Fget_eoa.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_eoa(hid_t file_id, haddr_t *eoa) * } */ - public static int H5Fget_eoa(long file_id, MemorySegment eoa) { + public static int H5Fget_eoa(long file_id, MemorySegment eoa) + { var mh$ = H5Fget_eoa.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_eoa", file_id, eoa); } return (int)mh$.invokeExact(file_id, eoa); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fincrement_filesize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fincrement_filesize"); @@ -30146,9 +27825,7 @@ private static class H5Fincrement_filesize { * herr_t H5Fincrement_filesize(hid_t file_id, hsize_t increment) * } */ - public static FunctionDescriptor H5Fincrement_filesize$descriptor() { - return H5Fincrement_filesize.DESC; - } + public static FunctionDescriptor H5Fincrement_filesize$descriptor() { return H5Fincrement_filesize.DESC; } /** * Downcall method handle for: @@ -30156,9 +27833,7 @@ private static class H5Fincrement_filesize { * herr_t H5Fincrement_filesize(hid_t file_id, hsize_t increment) * } */ - public static MethodHandle H5Fincrement_filesize$handle() { - return H5Fincrement_filesize.HANDLE; - } + public static MethodHandle H5Fincrement_filesize$handle() { return H5Fincrement_filesize.HANDLE; } /** * Address for: @@ -30166,34 +27841,30 @@ private static class H5Fincrement_filesize { * herr_t H5Fincrement_filesize(hid_t file_id, hsize_t increment) * } */ - public static MemorySegment H5Fincrement_filesize$address() { - return H5Fincrement_filesize.ADDR; - } + public static MemorySegment H5Fincrement_filesize$address() { return H5Fincrement_filesize.ADDR; } /** * {@snippet lang=c : * herr_t H5Fincrement_filesize(hid_t file_id, hsize_t increment) * } */ - public static int H5Fincrement_filesize(long file_id, long increment) { + public static int H5Fincrement_filesize(long file_id, long increment) + { var mh$ = H5Fincrement_filesize.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fincrement_filesize", file_id, increment); } return (int)mh$.invokeExact(file_id, increment); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_file_image { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_file_image"); @@ -30206,9 +27877,7 @@ private static class H5Fget_file_image { * ssize_t H5Fget_file_image(hid_t file_id, void *buf_ptr, size_t buf_len) * } */ - public static FunctionDescriptor H5Fget_file_image$descriptor() { - return H5Fget_file_image.DESC; - } + public static FunctionDescriptor H5Fget_file_image$descriptor() { return H5Fget_file_image.DESC; } /** * Downcall method handle for: @@ -30216,9 +27885,7 @@ private static class H5Fget_file_image { * ssize_t H5Fget_file_image(hid_t file_id, void *buf_ptr, size_t buf_len) * } */ - public static MethodHandle H5Fget_file_image$handle() { - return H5Fget_file_image.HANDLE; - } + public static MethodHandle H5Fget_file_image$handle() { return H5Fget_file_image.HANDLE; } /** * Address for: @@ -30226,33 +27893,30 @@ private static class H5Fget_file_image { * ssize_t H5Fget_file_image(hid_t file_id, void *buf_ptr, size_t buf_len) * } */ - public static MemorySegment H5Fget_file_image$address() { - return H5Fget_file_image.ADDR; - } + public static MemorySegment H5Fget_file_image$address() { return H5Fget_file_image.ADDR; } /** * {@snippet lang=c : * ssize_t H5Fget_file_image(hid_t file_id, void *buf_ptr, size_t buf_len) * } */ - public static long H5Fget_file_image(long file_id, MemorySegment buf_ptr, long buf_len) { + public static long H5Fget_file_image(long file_id, MemorySegment buf_ptr, long buf_len) + { var mh$ = H5Fget_file_image.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_file_image", file_id, buf_ptr, buf_len); } return (long)mh$.invokeExact(file_id, buf_ptr, buf_len); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_mdc_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_mdc_config"); @@ -30265,9 +27929,7 @@ private static class H5Fget_mdc_config { * herr_t H5Fget_mdc_config(hid_t file_id, H5AC_cache_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Fget_mdc_config$descriptor() { - return H5Fget_mdc_config.DESC; - } + public static FunctionDescriptor H5Fget_mdc_config$descriptor() { return H5Fget_mdc_config.DESC; } /** * Downcall method handle for: @@ -30275,9 +27937,7 @@ private static class H5Fget_mdc_config { * herr_t H5Fget_mdc_config(hid_t file_id, H5AC_cache_config_t *config_ptr) * } */ - public static MethodHandle H5Fget_mdc_config$handle() { - return H5Fget_mdc_config.HANDLE; - } + public static MethodHandle H5Fget_mdc_config$handle() { return H5Fget_mdc_config.HANDLE; } /** * Address for: @@ -30285,33 +27945,30 @@ private static class H5Fget_mdc_config { * herr_t H5Fget_mdc_config(hid_t file_id, H5AC_cache_config_t *config_ptr) * } */ - public static MemorySegment H5Fget_mdc_config$address() { - return H5Fget_mdc_config.ADDR; - } + public static MemorySegment H5Fget_mdc_config$address() { return H5Fget_mdc_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_mdc_config(hid_t file_id, H5AC_cache_config_t *config_ptr) * } */ - public static int H5Fget_mdc_config(long file_id, MemorySegment config_ptr) { + public static int H5Fget_mdc_config(long file_id, MemorySegment config_ptr) + { var mh$ = H5Fget_mdc_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_mdc_config", file_id, config_ptr); } return (int)mh$.invokeExact(file_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fset_mdc_config { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fset_mdc_config"); @@ -30324,9 +27981,7 @@ private static class H5Fset_mdc_config { * herr_t H5Fset_mdc_config(hid_t file_id, const H5AC_cache_config_t *config_ptr) * } */ - public static FunctionDescriptor H5Fset_mdc_config$descriptor() { - return H5Fset_mdc_config.DESC; - } + public static FunctionDescriptor H5Fset_mdc_config$descriptor() { return H5Fset_mdc_config.DESC; } /** * Downcall method handle for: @@ -30334,9 +27989,7 @@ private static class H5Fset_mdc_config { * herr_t H5Fset_mdc_config(hid_t file_id, const H5AC_cache_config_t *config_ptr) * } */ - public static MethodHandle H5Fset_mdc_config$handle() { - return H5Fset_mdc_config.HANDLE; - } + public static MethodHandle H5Fset_mdc_config$handle() { return H5Fset_mdc_config.HANDLE; } /** * Address for: @@ -30344,33 +27997,30 @@ private static class H5Fset_mdc_config { * herr_t H5Fset_mdc_config(hid_t file_id, const H5AC_cache_config_t *config_ptr) * } */ - public static MemorySegment H5Fset_mdc_config$address() { - return H5Fset_mdc_config.ADDR; - } + public static MemorySegment H5Fset_mdc_config$address() { return H5Fset_mdc_config.ADDR; } /** * {@snippet lang=c : * herr_t H5Fset_mdc_config(hid_t file_id, const H5AC_cache_config_t *config_ptr) * } */ - public static int H5Fset_mdc_config(long file_id, MemorySegment config_ptr) { + public static int H5Fset_mdc_config(long file_id, MemorySegment config_ptr) + { var mh$ = H5Fset_mdc_config.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fset_mdc_config", file_id, config_ptr); } return (int)mh$.invokeExact(file_id, config_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_mdc_hit_rate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_mdc_hit_rate"); @@ -30383,9 +28033,7 @@ private static class H5Fget_mdc_hit_rate { * herr_t H5Fget_mdc_hit_rate(hid_t file_id, double *hit_rate_ptr) * } */ - public static FunctionDescriptor H5Fget_mdc_hit_rate$descriptor() { - return H5Fget_mdc_hit_rate.DESC; - } + public static FunctionDescriptor H5Fget_mdc_hit_rate$descriptor() { return H5Fget_mdc_hit_rate.DESC; } /** * Downcall method handle for: @@ -30393,9 +28041,7 @@ private static class H5Fget_mdc_hit_rate { * herr_t H5Fget_mdc_hit_rate(hid_t file_id, double *hit_rate_ptr) * } */ - public static MethodHandle H5Fget_mdc_hit_rate$handle() { - return H5Fget_mdc_hit_rate.HANDLE; - } + public static MethodHandle H5Fget_mdc_hit_rate$handle() { return H5Fget_mdc_hit_rate.HANDLE; } /** * Address for: @@ -30403,36 +28049,31 @@ private static class H5Fget_mdc_hit_rate { * herr_t H5Fget_mdc_hit_rate(hid_t file_id, double *hit_rate_ptr) * } */ - public static MemorySegment H5Fget_mdc_hit_rate$address() { - return H5Fget_mdc_hit_rate.ADDR; - } + public static MemorySegment H5Fget_mdc_hit_rate$address() { return H5Fget_mdc_hit_rate.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_mdc_hit_rate(hid_t file_id, double *hit_rate_ptr) * } */ - public static int H5Fget_mdc_hit_rate(long file_id, MemorySegment hit_rate_ptr) { + public static int H5Fget_mdc_hit_rate(long file_id, MemorySegment hit_rate_ptr) + { var mh$ = H5Fget_mdc_hit_rate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_mdc_hit_rate", file_id, hit_rate_ptr); } return (int)mh$.invokeExact(file_id, hit_rate_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_mdc_size { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_mdc_size"); @@ -30442,55 +28083,56 @@ private static class H5Fget_mdc_size { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t *cur_size_ptr, int *cur_num_entries_ptr) + * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t + * *cur_size_ptr, int *cur_num_entries_ptr) * } */ - public static FunctionDescriptor H5Fget_mdc_size$descriptor() { - return H5Fget_mdc_size.DESC; - } + public static FunctionDescriptor H5Fget_mdc_size$descriptor() { return H5Fget_mdc_size.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t *cur_size_ptr, int *cur_num_entries_ptr) + * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t + * *cur_size_ptr, int *cur_num_entries_ptr) * } */ - public static MethodHandle H5Fget_mdc_size$handle() { - return H5Fget_mdc_size.HANDLE; - } + public static MethodHandle H5Fget_mdc_size$handle() { return H5Fget_mdc_size.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t *cur_size_ptr, int *cur_num_entries_ptr) + * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t + * *cur_size_ptr, int *cur_num_entries_ptr) * } */ - public static MemorySegment H5Fget_mdc_size$address() { - return H5Fget_mdc_size.ADDR; - } + public static MemorySegment H5Fget_mdc_size$address() { return H5Fget_mdc_size.ADDR; } /** * {@snippet lang=c : - * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t *cur_size_ptr, int *cur_num_entries_ptr) + * herr_t H5Fget_mdc_size(hid_t file_id, size_t *max_size_ptr, size_t *min_clean_size_ptr, size_t + * *cur_size_ptr, int *cur_num_entries_ptr) * } */ - public static int H5Fget_mdc_size(long file_id, MemorySegment max_size_ptr, MemorySegment min_clean_size_ptr, MemorySegment cur_size_ptr, MemorySegment cur_num_entries_ptr) { + public static int H5Fget_mdc_size(long file_id, MemorySegment max_size_ptr, + MemorySegment min_clean_size_ptr, MemorySegment cur_size_ptr, + MemorySegment cur_num_entries_ptr) + { var mh$ = H5Fget_mdc_size.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Fget_mdc_size", file_id, max_size_ptr, min_clean_size_ptr, cur_size_ptr, cur_num_entries_ptr); + traceDowncall("H5Fget_mdc_size", file_id, max_size_ptr, min_clean_size_ptr, cur_size_ptr, + cur_num_entries_ptr); } - return (int)mh$.invokeExact(file_id, max_size_ptr, min_clean_size_ptr, cur_size_ptr, cur_num_entries_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(file_id, max_size_ptr, min_clean_size_ptr, cur_size_ptr, + cur_num_entries_ptr); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Freset_mdc_hit_rate_stats { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Freset_mdc_hit_rate_stats"); @@ -30503,7 +28145,8 @@ private static class H5Freset_mdc_hit_rate_stats { * herr_t H5Freset_mdc_hit_rate_stats(hid_t file_id) * } */ - public static FunctionDescriptor H5Freset_mdc_hit_rate_stats$descriptor() { + public static FunctionDescriptor H5Freset_mdc_hit_rate_stats$descriptor() + { return H5Freset_mdc_hit_rate_stats.DESC; } @@ -30513,7 +28156,8 @@ private static class H5Freset_mdc_hit_rate_stats { * herr_t H5Freset_mdc_hit_rate_stats(hid_t file_id) * } */ - public static MethodHandle H5Freset_mdc_hit_rate_stats$handle() { + public static MethodHandle H5Freset_mdc_hit_rate_stats$handle() + { return H5Freset_mdc_hit_rate_stats.HANDLE; } @@ -30523,7 +28167,8 @@ private static class H5Freset_mdc_hit_rate_stats { * herr_t H5Freset_mdc_hit_rate_stats(hid_t file_id) * } */ - public static MemorySegment H5Freset_mdc_hit_rate_stats$address() { + public static MemorySegment H5Freset_mdc_hit_rate_stats$address() + { return H5Freset_mdc_hit_rate_stats.ADDR; } @@ -30532,25 +28177,23 @@ private static class H5Freset_mdc_hit_rate_stats { * herr_t H5Freset_mdc_hit_rate_stats(hid_t file_id) * } */ - public static int H5Freset_mdc_hit_rate_stats(long file_id) { + public static int H5Freset_mdc_hit_rate_stats(long file_id) + { var mh$ = H5Freset_mdc_hit_rate_stats.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Freset_mdc_hit_rate_stats", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_name"); @@ -30563,9 +28206,7 @@ private static class H5Fget_name { * ssize_t H5Fget_name(hid_t obj_id, char *name, size_t size) * } */ - public static FunctionDescriptor H5Fget_name$descriptor() { - return H5Fget_name.DESC; - } + public static FunctionDescriptor H5Fget_name$descriptor() { return H5Fget_name.DESC; } /** * Downcall method handle for: @@ -30573,9 +28214,7 @@ private static class H5Fget_name { * ssize_t H5Fget_name(hid_t obj_id, char *name, size_t size) * } */ - public static MethodHandle H5Fget_name$handle() { - return H5Fget_name.HANDLE; - } + public static MethodHandle H5Fget_name$handle() { return H5Fget_name.HANDLE; } /** * Address for: @@ -30583,33 +28222,30 @@ private static class H5Fget_name { * ssize_t H5Fget_name(hid_t obj_id, char *name, size_t size) * } */ - public static MemorySegment H5Fget_name$address() { - return H5Fget_name.ADDR; - } + public static MemorySegment H5Fget_name$address() { return H5Fget_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Fget_name(hid_t obj_id, char *name, size_t size) * } */ - public static long H5Fget_name(long obj_id, MemorySegment name, long size) { + public static long H5Fget_name(long obj_id, MemorySegment name, long size) + { var mh$ = H5Fget_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_name", obj_id, name, size); } return (long)mh$.invokeExact(obj_id, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_info2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_info2"); @@ -30622,9 +28258,7 @@ private static class H5Fget_info2 { * herr_t H5Fget_info2(hid_t obj_id, H5F_info2_t *file_info) * } */ - public static FunctionDescriptor H5Fget_info2$descriptor() { - return H5Fget_info2.DESC; - } + public static FunctionDescriptor H5Fget_info2$descriptor() { return H5Fget_info2.DESC; } /** * Downcall method handle for: @@ -30632,9 +28266,7 @@ private static class H5Fget_info2 { * herr_t H5Fget_info2(hid_t obj_id, H5F_info2_t *file_info) * } */ - public static MethodHandle H5Fget_info2$handle() { - return H5Fget_info2.HANDLE; - } + public static MethodHandle H5Fget_info2$handle() { return H5Fget_info2.HANDLE; } /** * Address for: @@ -30642,33 +28274,30 @@ private static class H5Fget_info2 { * herr_t H5Fget_info2(hid_t obj_id, H5F_info2_t *file_info) * } */ - public static MemorySegment H5Fget_info2$address() { - return H5Fget_info2.ADDR; - } + public static MemorySegment H5Fget_info2$address() { return H5Fget_info2.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_info2(hid_t obj_id, H5F_info2_t *file_info) * } */ - public static int H5Fget_info2(long obj_id, MemorySegment file_info) { + public static int H5Fget_info2(long obj_id, MemorySegment file_info) + { var mh$ = H5Fget_info2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_info2", obj_id, file_info); } return (int)mh$.invokeExact(obj_id, file_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_metadata_read_retry_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_metadata_read_retry_info"); @@ -30681,7 +28310,8 @@ private static class H5Fget_metadata_read_retry_info { * herr_t H5Fget_metadata_read_retry_info(hid_t file_id, H5F_retry_info_t *info) * } */ - public static FunctionDescriptor H5Fget_metadata_read_retry_info$descriptor() { + public static FunctionDescriptor H5Fget_metadata_read_retry_info$descriptor() + { return H5Fget_metadata_read_retry_info.DESC; } @@ -30691,7 +28321,8 @@ private static class H5Fget_metadata_read_retry_info { * herr_t H5Fget_metadata_read_retry_info(hid_t file_id, H5F_retry_info_t *info) * } */ - public static MethodHandle H5Fget_metadata_read_retry_info$handle() { + public static MethodHandle H5Fget_metadata_read_retry_info$handle() + { return H5Fget_metadata_read_retry_info.HANDLE; } @@ -30701,7 +28332,8 @@ private static class H5Fget_metadata_read_retry_info { * herr_t H5Fget_metadata_read_retry_info(hid_t file_id, H5F_retry_info_t *info) * } */ - public static MemorySegment H5Fget_metadata_read_retry_info$address() { + public static MemorySegment H5Fget_metadata_read_retry_info$address() + { return H5Fget_metadata_read_retry_info.ADDR; } @@ -30710,23 +28342,22 @@ private static class H5Fget_metadata_read_retry_info { * herr_t H5Fget_metadata_read_retry_info(hid_t file_id, H5F_retry_info_t *info) * } */ - public static int H5Fget_metadata_read_retry_info(long file_id, MemorySegment info) { + public static int H5Fget_metadata_read_retry_info(long file_id, MemorySegment info) + { var mh$ = H5Fget_metadata_read_retry_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_metadata_read_retry_info", file_id, info); } return (int)mh$.invokeExact(file_id, info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fstart_swmr_write { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fstart_swmr_write"); @@ -30739,9 +28370,7 @@ private static class H5Fstart_swmr_write { * herr_t H5Fstart_swmr_write(hid_t file_id) * } */ - public static FunctionDescriptor H5Fstart_swmr_write$descriptor() { - return H5Fstart_swmr_write.DESC; - } + public static FunctionDescriptor H5Fstart_swmr_write$descriptor() { return H5Fstart_swmr_write.DESC; } /** * Downcall method handle for: @@ -30749,9 +28378,7 @@ private static class H5Fstart_swmr_write { * herr_t H5Fstart_swmr_write(hid_t file_id) * } */ - public static MethodHandle H5Fstart_swmr_write$handle() { - return H5Fstart_swmr_write.HANDLE; - } + public static MethodHandle H5Fstart_swmr_write$handle() { return H5Fstart_swmr_write.HANDLE; } /** * Address for: @@ -30759,35 +28386,30 @@ private static class H5Fstart_swmr_write { * herr_t H5Fstart_swmr_write(hid_t file_id) * } */ - public static MemorySegment H5Fstart_swmr_write$address() { - return H5Fstart_swmr_write.ADDR; - } + public static MemorySegment H5Fstart_swmr_write$address() { return H5Fstart_swmr_write.ADDR; } /** * {@snippet lang=c : * herr_t H5Fstart_swmr_write(hid_t file_id) * } */ - public static int H5Fstart_swmr_write(long file_id) { + public static int H5Fstart_swmr_write(long file_id) + { var mh$ = H5Fstart_swmr_write.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fstart_swmr_write", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_free_sections { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_free_sections"); @@ -30800,9 +28422,7 @@ private static class H5Fget_free_sections { * ssize_t H5Fget_free_sections(hid_t file_id, H5F_mem_t type, size_t nsects, H5F_sect_info_t *sect_info) * } */ - public static FunctionDescriptor H5Fget_free_sections$descriptor() { - return H5Fget_free_sections.DESC; - } + public static FunctionDescriptor H5Fget_free_sections$descriptor() { return H5Fget_free_sections.DESC; } /** * Downcall method handle for: @@ -30810,9 +28430,7 @@ private static class H5Fget_free_sections { * ssize_t H5Fget_free_sections(hid_t file_id, H5F_mem_t type, size_t nsects, H5F_sect_info_t *sect_info) * } */ - public static MethodHandle H5Fget_free_sections$handle() { - return H5Fget_free_sections.HANDLE; - } + public static MethodHandle H5Fget_free_sections$handle() { return H5Fget_free_sections.HANDLE; } /** * Address for: @@ -30820,32 +28438,29 @@ private static class H5Fget_free_sections { * ssize_t H5Fget_free_sections(hid_t file_id, H5F_mem_t type, size_t nsects, H5F_sect_info_t *sect_info) * } */ - public static MemorySegment H5Fget_free_sections$address() { - return H5Fget_free_sections.ADDR; - } + public static MemorySegment H5Fget_free_sections$address() { return H5Fget_free_sections.ADDR; } /** * {@snippet lang=c : * ssize_t H5Fget_free_sections(hid_t file_id, H5F_mem_t type, size_t nsects, H5F_sect_info_t *sect_info) * } */ - public static long H5Fget_free_sections(long file_id, int type, long nsects, MemorySegment sect_info) { + public static long H5Fget_free_sections(long file_id, int type, long nsects, MemorySegment sect_info) + { var mh$ = H5Fget_free_sections.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_free_sections", file_id, type, nsects, sect_info); } return (long)mh$.invokeExact(file_id, type, nsects, sect_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fclear_elink_file_cache { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fclear_elink_file_cache"); @@ -30858,7 +28473,8 @@ private static class H5Fclear_elink_file_cache { * herr_t H5Fclear_elink_file_cache(hid_t file_id) * } */ - public static FunctionDescriptor H5Fclear_elink_file_cache$descriptor() { + public static FunctionDescriptor H5Fclear_elink_file_cache$descriptor() + { return H5Fclear_elink_file_cache.DESC; } @@ -30868,9 +28484,7 @@ private static class H5Fclear_elink_file_cache { * herr_t H5Fclear_elink_file_cache(hid_t file_id) * } */ - public static MethodHandle H5Fclear_elink_file_cache$handle() { - return H5Fclear_elink_file_cache.HANDLE; - } + public static MethodHandle H5Fclear_elink_file_cache$handle() { return H5Fclear_elink_file_cache.HANDLE; } /** * Address for: @@ -30878,34 +28492,30 @@ private static class H5Fclear_elink_file_cache { * herr_t H5Fclear_elink_file_cache(hid_t file_id) * } */ - public static MemorySegment H5Fclear_elink_file_cache$address() { - return H5Fclear_elink_file_cache.ADDR; - } + public static MemorySegment H5Fclear_elink_file_cache$address() { return H5Fclear_elink_file_cache.ADDR; } /** * {@snippet lang=c : * herr_t H5Fclear_elink_file_cache(hid_t file_id) * } */ - public static int H5Fclear_elink_file_cache(long file_id) { + public static int H5Fclear_elink_file_cache(long file_id) + { var mh$ = H5Fclear_elink_file_cache.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fclear_elink_file_cache", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fset_libver_bounds { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fset_libver_bounds"); @@ -30918,9 +28528,7 @@ private static class H5Fset_libver_bounds { * herr_t H5Fset_libver_bounds(hid_t file_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static FunctionDescriptor H5Fset_libver_bounds$descriptor() { - return H5Fset_libver_bounds.DESC; - } + public static FunctionDescriptor H5Fset_libver_bounds$descriptor() { return H5Fset_libver_bounds.DESC; } /** * Downcall method handle for: @@ -30928,9 +28536,7 @@ private static class H5Fset_libver_bounds { * herr_t H5Fset_libver_bounds(hid_t file_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static MethodHandle H5Fset_libver_bounds$handle() { - return H5Fset_libver_bounds.HANDLE; - } + public static MethodHandle H5Fset_libver_bounds$handle() { return H5Fset_libver_bounds.HANDLE; } /** * Address for: @@ -30938,32 +28544,29 @@ private static class H5Fset_libver_bounds { * herr_t H5Fset_libver_bounds(hid_t file_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static MemorySegment H5Fset_libver_bounds$address() { - return H5Fset_libver_bounds.ADDR; - } + public static MemorySegment H5Fset_libver_bounds$address() { return H5Fset_libver_bounds.ADDR; } /** * {@snippet lang=c : * herr_t H5Fset_libver_bounds(hid_t file_id, H5F_libver_t low, H5F_libver_t high) * } */ - public static int H5Fset_libver_bounds(long file_id, int low, int high) { + public static int H5Fset_libver_bounds(long file_id, int low, int high) + { var mh$ = H5Fset_libver_bounds.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fset_libver_bounds", file_id, low, high); } return (int)mh$.invokeExact(file_id, low, high); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fstart_mdc_logging { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fstart_mdc_logging"); @@ -30976,9 +28579,7 @@ private static class H5Fstart_mdc_logging { * herr_t H5Fstart_mdc_logging(hid_t file_id) * } */ - public static FunctionDescriptor H5Fstart_mdc_logging$descriptor() { - return H5Fstart_mdc_logging.DESC; - } + public static FunctionDescriptor H5Fstart_mdc_logging$descriptor() { return H5Fstart_mdc_logging.DESC; } /** * Downcall method handle for: @@ -30986,9 +28587,7 @@ private static class H5Fstart_mdc_logging { * herr_t H5Fstart_mdc_logging(hid_t file_id) * } */ - public static MethodHandle H5Fstart_mdc_logging$handle() { - return H5Fstart_mdc_logging.HANDLE; - } + public static MethodHandle H5Fstart_mdc_logging$handle() { return H5Fstart_mdc_logging.HANDLE; } /** * Address for: @@ -30996,32 +28595,29 @@ private static class H5Fstart_mdc_logging { * herr_t H5Fstart_mdc_logging(hid_t file_id) * } */ - public static MemorySegment H5Fstart_mdc_logging$address() { - return H5Fstart_mdc_logging.ADDR; - } + public static MemorySegment H5Fstart_mdc_logging$address() { return H5Fstart_mdc_logging.ADDR; } /** * {@snippet lang=c : * herr_t H5Fstart_mdc_logging(hid_t file_id) * } */ - public static int H5Fstart_mdc_logging(long file_id) { + public static int H5Fstart_mdc_logging(long file_id) + { var mh$ = H5Fstart_mdc_logging.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fstart_mdc_logging", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fstop_mdc_logging { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fstop_mdc_logging"); @@ -31034,9 +28630,7 @@ private static class H5Fstop_mdc_logging { * herr_t H5Fstop_mdc_logging(hid_t file_id) * } */ - public static FunctionDescriptor H5Fstop_mdc_logging$descriptor() { - return H5Fstop_mdc_logging.DESC; - } + public static FunctionDescriptor H5Fstop_mdc_logging$descriptor() { return H5Fstop_mdc_logging.DESC; } /** * Downcall method handle for: @@ -31044,9 +28638,7 @@ private static class H5Fstop_mdc_logging { * herr_t H5Fstop_mdc_logging(hid_t file_id) * } */ - public static MethodHandle H5Fstop_mdc_logging$handle() { - return H5Fstop_mdc_logging.HANDLE; - } + public static MethodHandle H5Fstop_mdc_logging$handle() { return H5Fstop_mdc_logging.HANDLE; } /** * Address for: @@ -31054,34 +28646,30 @@ private static class H5Fstop_mdc_logging { * herr_t H5Fstop_mdc_logging(hid_t file_id) * } */ - public static MemorySegment H5Fstop_mdc_logging$address() { - return H5Fstop_mdc_logging.ADDR; - } + public static MemorySegment H5Fstop_mdc_logging$address() { return H5Fstop_mdc_logging.ADDR; } /** * {@snippet lang=c : * herr_t H5Fstop_mdc_logging(hid_t file_id) * } */ - public static int H5Fstop_mdc_logging(long file_id) { + public static int H5Fstop_mdc_logging(long file_id) + { var mh$ = H5Fstop_mdc_logging.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fstop_mdc_logging", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_mdc_logging_status { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_mdc_logging_status"); @@ -31094,7 +28682,8 @@ private static class H5Fget_mdc_logging_status { * herr_t H5Fget_mdc_logging_status(hid_t file_id, hbool_t *is_enabled, hbool_t *is_currently_logging) * } */ - public static FunctionDescriptor H5Fget_mdc_logging_status$descriptor() { + public static FunctionDescriptor H5Fget_mdc_logging_status$descriptor() + { return H5Fget_mdc_logging_status.DESC; } @@ -31104,9 +28693,7 @@ private static class H5Fget_mdc_logging_status { * herr_t H5Fget_mdc_logging_status(hid_t file_id, hbool_t *is_enabled, hbool_t *is_currently_logging) * } */ - public static MethodHandle H5Fget_mdc_logging_status$handle() { - return H5Fget_mdc_logging_status.HANDLE; - } + public static MethodHandle H5Fget_mdc_logging_status$handle() { return H5Fget_mdc_logging_status.HANDLE; } /** * Address for: @@ -31114,32 +28701,30 @@ private static class H5Fget_mdc_logging_status { * herr_t H5Fget_mdc_logging_status(hid_t file_id, hbool_t *is_enabled, hbool_t *is_currently_logging) * } */ - public static MemorySegment H5Fget_mdc_logging_status$address() { - return H5Fget_mdc_logging_status.ADDR; - } + public static MemorySegment H5Fget_mdc_logging_status$address() { return H5Fget_mdc_logging_status.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_mdc_logging_status(hid_t file_id, hbool_t *is_enabled, hbool_t *is_currently_logging) * } */ - public static int H5Fget_mdc_logging_status(long file_id, MemorySegment is_enabled, MemorySegment is_currently_logging) { + public static int H5Fget_mdc_logging_status(long file_id, MemorySegment is_enabled, + MemorySegment is_currently_logging) + { var mh$ = H5Fget_mdc_logging_status.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_mdc_logging_status", file_id, is_enabled, is_currently_logging); } return (int)mh$.invokeExact(file_id, is_enabled, is_currently_logging); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Freset_page_buffering_stats { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Freset_page_buffering_stats"); @@ -31152,7 +28737,8 @@ private static class H5Freset_page_buffering_stats { * herr_t H5Freset_page_buffering_stats(hid_t file_id) * } */ - public static FunctionDescriptor H5Freset_page_buffering_stats$descriptor() { + public static FunctionDescriptor H5Freset_page_buffering_stats$descriptor() + { return H5Freset_page_buffering_stats.DESC; } @@ -31162,7 +28748,8 @@ private static class H5Freset_page_buffering_stats { * herr_t H5Freset_page_buffering_stats(hid_t file_id) * } */ - public static MethodHandle H5Freset_page_buffering_stats$handle() { + public static MethodHandle H5Freset_page_buffering_stats$handle() + { return H5Freset_page_buffering_stats.HANDLE; } @@ -31172,7 +28759,8 @@ private static class H5Freset_page_buffering_stats { * herr_t H5Freset_page_buffering_stats(hid_t file_id) * } */ - public static MemorySegment H5Freset_page_buffering_stats$address() { + public static MemorySegment H5Freset_page_buffering_stats$address() + { return H5Freset_page_buffering_stats.ADDR; } @@ -31181,28 +28769,24 @@ private static class H5Freset_page_buffering_stats { * herr_t H5Freset_page_buffering_stats(hid_t file_id) * } */ - public static int H5Freset_page_buffering_stats(long file_id) { + public static int H5Freset_page_buffering_stats(long file_id) + { var mh$ = H5Freset_page_buffering_stats.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Freset_page_buffering_stats", file_id); } return (int)mh$.invokeExact(file_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_page_buffering_stats { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_page_buffering_stats"); @@ -31212,57 +28796,65 @@ private static class H5Fget_page_buffering_stats { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) + * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], + * unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) * } */ - public static FunctionDescriptor H5Fget_page_buffering_stats$descriptor() { + public static FunctionDescriptor H5Fget_page_buffering_stats$descriptor() + { return H5Fget_page_buffering_stats.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) + * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], + * unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) * } */ - public static MethodHandle H5Fget_page_buffering_stats$handle() { + public static MethodHandle H5Fget_page_buffering_stats$handle() + { return H5Fget_page_buffering_stats.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) + * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], + * unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) * } */ - public static MemorySegment H5Fget_page_buffering_stats$address() { + public static MemorySegment H5Fget_page_buffering_stats$address() + { return H5Fget_page_buffering_stats.ADDR; } /** * {@snippet lang=c : - * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) + * herr_t H5Fget_page_buffering_stats(hid_t file_id, unsigned int accesses[2], unsigned int hits[2], + * unsigned int misses[2], unsigned int evictions[2], unsigned int bypasses[2]) * } */ - public static int H5Fget_page_buffering_stats(long file_id, MemorySegment accesses, MemorySegment hits, MemorySegment misses, MemorySegment evictions, MemorySegment bypasses) { + public static int H5Fget_page_buffering_stats(long file_id, MemorySegment accesses, MemorySegment hits, + MemorySegment misses, MemorySegment evictions, + MemorySegment bypasses) + { var mh$ = H5Fget_page_buffering_stats.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Fget_page_buffering_stats", file_id, accesses, hits, misses, evictions, bypasses); + traceDowncall("H5Fget_page_buffering_stats", file_id, accesses, hits, misses, evictions, + bypasses); } return (int)mh$.invokeExact(file_id, accesses, hits, misses, evictions, bypasses); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_mdc_image_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_mdc_image_info"); @@ -31275,9 +28867,7 @@ private static class H5Fget_mdc_image_info { * herr_t H5Fget_mdc_image_info(hid_t file_id, haddr_t *image_addr, hsize_t *image_size) * } */ - public static FunctionDescriptor H5Fget_mdc_image_info$descriptor() { - return H5Fget_mdc_image_info.DESC; - } + public static FunctionDescriptor H5Fget_mdc_image_info$descriptor() { return H5Fget_mdc_image_info.DESC; } /** * Downcall method handle for: @@ -31285,9 +28875,7 @@ private static class H5Fget_mdc_image_info { * herr_t H5Fget_mdc_image_info(hid_t file_id, haddr_t *image_addr, hsize_t *image_size) * } */ - public static MethodHandle H5Fget_mdc_image_info$handle() { - return H5Fget_mdc_image_info.HANDLE; - } + public static MethodHandle H5Fget_mdc_image_info$handle() { return H5Fget_mdc_image_info.HANDLE; } /** * Address for: @@ -31295,33 +28883,30 @@ private static class H5Fget_mdc_image_info { * herr_t H5Fget_mdc_image_info(hid_t file_id, haddr_t *image_addr, hsize_t *image_size) * } */ - public static MemorySegment H5Fget_mdc_image_info$address() { - return H5Fget_mdc_image_info.ADDR; - } + public static MemorySegment H5Fget_mdc_image_info$address() { return H5Fget_mdc_image_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_mdc_image_info(hid_t file_id, haddr_t *image_addr, hsize_t *image_size) * } */ - public static int H5Fget_mdc_image_info(long file_id, MemorySegment image_addr, MemorySegment image_size) { + public static int H5Fget_mdc_image_info(long file_id, MemorySegment image_addr, MemorySegment image_size) + { var mh$ = H5Fget_mdc_image_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_mdc_image_info", file_id, image_addr, image_size); } return (int)mh$.invokeExact(file_id, image_addr, image_size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_dset_no_attrs_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_dset_no_attrs_hint"); @@ -31334,7 +28919,8 @@ private static class H5Fget_dset_no_attrs_hint { * herr_t H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize) * } */ - public static FunctionDescriptor H5Fget_dset_no_attrs_hint$descriptor() { + public static FunctionDescriptor H5Fget_dset_no_attrs_hint$descriptor() + { return H5Fget_dset_no_attrs_hint.DESC; } @@ -31344,9 +28930,7 @@ private static class H5Fget_dset_no_attrs_hint { * herr_t H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize) * } */ - public static MethodHandle H5Fget_dset_no_attrs_hint$handle() { - return H5Fget_dset_no_attrs_hint.HANDLE; - } + public static MethodHandle H5Fget_dset_no_attrs_hint$handle() { return H5Fget_dset_no_attrs_hint.HANDLE; } /** * Address for: @@ -31354,33 +28938,30 @@ private static class H5Fget_dset_no_attrs_hint { * herr_t H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize) * } */ - public static MemorySegment H5Fget_dset_no_attrs_hint$address() { - return H5Fget_dset_no_attrs_hint.ADDR; - } + public static MemorySegment H5Fget_dset_no_attrs_hint$address() { return H5Fget_dset_no_attrs_hint.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize) * } */ - public static int H5Fget_dset_no_attrs_hint(long file_id, MemorySegment minimize) { + public static int H5Fget_dset_no_attrs_hint(long file_id, MemorySegment minimize) + { var mh$ = H5Fget_dset_no_attrs_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_dset_no_attrs_hint", file_id, minimize); } return (int)mh$.invokeExact(file_id, minimize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fset_dset_no_attrs_hint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fset_dset_no_attrs_hint"); @@ -31393,7 +28974,8 @@ private static class H5Fset_dset_no_attrs_hint { * herr_t H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize) * } */ - public static FunctionDescriptor H5Fset_dset_no_attrs_hint$descriptor() { + public static FunctionDescriptor H5Fset_dset_no_attrs_hint$descriptor() + { return H5Fset_dset_no_attrs_hint.DESC; } @@ -31403,9 +28985,7 @@ private static class H5Fset_dset_no_attrs_hint { * herr_t H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize) * } */ - public static MethodHandle H5Fset_dset_no_attrs_hint$handle() { - return H5Fset_dset_no_attrs_hint.HANDLE; - } + public static MethodHandle H5Fset_dset_no_attrs_hint$handle() { return H5Fset_dset_no_attrs_hint.HANDLE; } /** * Address for: @@ -31413,32 +28993,29 @@ private static class H5Fset_dset_no_attrs_hint { * herr_t H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize) * } */ - public static MemorySegment H5Fset_dset_no_attrs_hint$address() { - return H5Fset_dset_no_attrs_hint.ADDR; - } + public static MemorySegment H5Fset_dset_no_attrs_hint$address() { return H5Fset_dset_no_attrs_hint.ADDR; } /** * {@snippet lang=c : * herr_t H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize) * } */ - public static int H5Fset_dset_no_attrs_hint(long file_id, boolean minimize) { + public static int H5Fset_dset_no_attrs_hint(long file_id, boolean minimize) + { var mh$ = H5Fset_dset_no_attrs_hint.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fset_dset_no_attrs_hint", file_id, minimize); } return (int)mh$.invokeExact(file_id, minimize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fformat_convert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fformat_convert"); @@ -31451,9 +29028,7 @@ private static class H5Fformat_convert { * herr_t H5Fformat_convert(hid_t fid) * } */ - public static FunctionDescriptor H5Fformat_convert$descriptor() { - return H5Fformat_convert.DESC; - } + public static FunctionDescriptor H5Fformat_convert$descriptor() { return H5Fformat_convert.DESC; } /** * Downcall method handle for: @@ -31461,9 +29036,7 @@ private static class H5Fformat_convert { * herr_t H5Fformat_convert(hid_t fid) * } */ - public static MethodHandle H5Fformat_convert$handle() { - return H5Fformat_convert.HANDLE; - } + public static MethodHandle H5Fformat_convert$handle() { return H5Fformat_convert.HANDLE; } /** * Address for: @@ -31471,33 +29044,30 @@ private static class H5Fformat_convert { * herr_t H5Fformat_convert(hid_t fid) * } */ - public static MemorySegment H5Fformat_convert$address() { - return H5Fformat_convert.ADDR; - } + public static MemorySegment H5Fformat_convert$address() { return H5Fformat_convert.ADDR; } /** * {@snippet lang=c : * herr_t H5Fformat_convert(hid_t fid) * } */ - public static int H5Fformat_convert(long fid) { + public static int H5Fformat_convert(long fid) + { var mh$ = H5Fformat_convert.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fformat_convert", fid); } return (int)mh$.invokeExact(fid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fget_info1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fget_info1"); @@ -31510,9 +29080,7 @@ private static class H5Fget_info1 { * herr_t H5Fget_info1(hid_t obj_id, H5F_info1_t *file_info) * } */ - public static FunctionDescriptor H5Fget_info1$descriptor() { - return H5Fget_info1.DESC; - } + public static FunctionDescriptor H5Fget_info1$descriptor() { return H5Fget_info1.DESC; } /** * Downcall method handle for: @@ -31520,9 +29088,7 @@ private static class H5Fget_info1 { * herr_t H5Fget_info1(hid_t obj_id, H5F_info1_t *file_info) * } */ - public static MethodHandle H5Fget_info1$handle() { - return H5Fget_info1.HANDLE; - } + public static MethodHandle H5Fget_info1$handle() { return H5Fget_info1.HANDLE; } /** * Address for: @@ -31530,33 +29096,30 @@ private static class H5Fget_info1 { * herr_t H5Fget_info1(hid_t obj_id, H5F_info1_t *file_info) * } */ - public static MemorySegment H5Fget_info1$address() { - return H5Fget_info1.ADDR; - } + public static MemorySegment H5Fget_info1$address() { return H5Fget_info1.ADDR; } /** * {@snippet lang=c : * herr_t H5Fget_info1(hid_t obj_id, H5F_info1_t *file_info) * } */ - public static int H5Fget_info1(long obj_id, MemorySegment file_info) { + public static int H5Fget_info1(long obj_id, MemorySegment file_info) + { var mh$ = H5Fget_info1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fget_info1", obj_id, file_info); } return (int)mh$.invokeExact(obj_id, file_info); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fset_latest_format { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_BOOL - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_BOOL); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fset_latest_format"); @@ -31569,9 +29132,7 @@ private static class H5Fset_latest_format { * herr_t H5Fset_latest_format(hid_t file_id, hbool_t latest_format) * } */ - public static FunctionDescriptor H5Fset_latest_format$descriptor() { - return H5Fset_latest_format.DESC; - } + public static FunctionDescriptor H5Fset_latest_format$descriptor() { return H5Fset_latest_format.DESC; } /** * Downcall method handle for: @@ -31579,9 +29140,7 @@ private static class H5Fset_latest_format { * herr_t H5Fset_latest_format(hid_t file_id, hbool_t latest_format) * } */ - public static MethodHandle H5Fset_latest_format$handle() { - return H5Fset_latest_format.HANDLE; - } + public static MethodHandle H5Fset_latest_format$handle() { return H5Fset_latest_format.HANDLE; } /** * Address for: @@ -31589,32 +29148,29 @@ private static class H5Fset_latest_format { * herr_t H5Fset_latest_format(hid_t file_id, hbool_t latest_format) * } */ - public static MemorySegment H5Fset_latest_format$address() { - return H5Fset_latest_format.ADDR; - } + public static MemorySegment H5Fset_latest_format$address() { return H5Fset_latest_format.ADDR; } /** * {@snippet lang=c : * herr_t H5Fset_latest_format(hid_t file_id, hbool_t latest_format) * } */ - public static int H5Fset_latest_format(long file_id, boolean latest_format) { + public static int H5Fset_latest_format(long file_id, boolean latest_format) + { var mh$ = H5Fset_latest_format.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fset_latest_format", file_id, latest_format); } return (int)mh$.invokeExact(file_id, latest_format); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Fis_hdf5 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Fis_hdf5"); @@ -31627,9 +29183,7 @@ private static class H5Fis_hdf5 { * htri_t H5Fis_hdf5(const char *file_name) * } */ - public static FunctionDescriptor H5Fis_hdf5$descriptor() { - return H5Fis_hdf5.DESC; - } + public static FunctionDescriptor H5Fis_hdf5$descriptor() { return H5Fis_hdf5.DESC; } /** * Downcall method handle for: @@ -31637,9 +29191,7 @@ private static class H5Fis_hdf5 { * htri_t H5Fis_hdf5(const char *file_name) * } */ - public static MethodHandle H5Fis_hdf5$handle() { - return H5Fis_hdf5.HANDLE; - } + public static MethodHandle H5Fis_hdf5$handle() { return H5Fis_hdf5.HANDLE; } /** * Address for: @@ -31647,24 +29199,24 @@ private static class H5Fis_hdf5 { * htri_t H5Fis_hdf5(const char *file_name) * } */ - public static MemorySegment H5Fis_hdf5$address() { - return H5Fis_hdf5.ADDR; - } + public static MemorySegment H5Fis_hdf5$address() { return H5Fis_hdf5.ADDR; } /** * {@snippet lang=c : * htri_t H5Fis_hdf5(const char *file_name) * } */ - public static int H5Fis_hdf5(MemorySegment file_name) { + public static int H5Fis_hdf5(MemorySegment file_name) + { var mh$ = H5Fis_hdf5.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Fis_hdf5", file_name); } return (int)mh$.invokeExact(file_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } /** @@ -31672,32 +29224,29 @@ public static int H5Fis_hdf5(MemorySegment file_name) { * typedef int H5FD_class_value_t * } */ - public static final OfInt H5FD_class_value_t = hdf5_h.C_INT; + public static final OfInt H5FD_class_value_t = hdf5_h.C_INT; private static final int H5FD_FILE_IMAGE_OP_NO_OP = (int)0L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_NO_OP = 0 * } */ - public static int H5FD_FILE_IMAGE_OP_NO_OP() { - return H5FD_FILE_IMAGE_OP_NO_OP; - } + public static int H5FD_FILE_IMAGE_OP_NO_OP() { return H5FD_FILE_IMAGE_OP_NO_OP; } private static final int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET = (int)1L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET = 1 * } */ - public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET() { - return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET; - } + public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET() { return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET; } private static final int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY = (int)2L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY = 2 * } */ - public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY() { + public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY() + { return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY; } private static final int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET = (int)3L; @@ -31706,16 +29255,15 @@ public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY() { * enum .H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET = 3 * } */ - public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET() { - return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET; - } + public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET() { return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET; } private static final int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE = (int)4L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE = 4 * } */ - public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE() { + public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE() + { return H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE; } private static final int H5FD_FILE_IMAGE_OP_FILE_OPEN = (int)5L; @@ -31724,34 +29272,25 @@ public static int H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE() { * enum .H5FD_FILE_IMAGE_OP_FILE_OPEN = 5 * } */ - public static int H5FD_FILE_IMAGE_OP_FILE_OPEN() { - return H5FD_FILE_IMAGE_OP_FILE_OPEN; - } + public static int H5FD_FILE_IMAGE_OP_FILE_OPEN() { return H5FD_FILE_IMAGE_OP_FILE_OPEN; } private static final int H5FD_FILE_IMAGE_OP_FILE_RESIZE = (int)6L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_FILE_RESIZE = 6 * } */ - public static int H5FD_FILE_IMAGE_OP_FILE_RESIZE() { - return H5FD_FILE_IMAGE_OP_FILE_RESIZE; - } + public static int H5FD_FILE_IMAGE_OP_FILE_RESIZE() { return H5FD_FILE_IMAGE_OP_FILE_RESIZE; } private static final int H5FD_FILE_IMAGE_OP_FILE_CLOSE = (int)7L; /** * {@snippet lang=c : * enum .H5FD_FILE_IMAGE_OP_FILE_CLOSE = 7 * } */ - public static int H5FD_FILE_IMAGE_OP_FILE_CLOSE() { - return H5FD_FILE_IMAGE_OP_FILE_CLOSE; - } + public static int H5FD_FILE_IMAGE_OP_FILE_CLOSE() { return H5FD_FILE_IMAGE_OP_FILE_CLOSE; } private static class H5FDdriver_query { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5FDdriver_query"); @@ -31764,9 +29303,7 @@ private static class H5FDdriver_query { * herr_t H5FDdriver_query(hid_t driver_id, unsigned long *flags) * } */ - public static FunctionDescriptor H5FDdriver_query$descriptor() { - return H5FDdriver_query.DESC; - } + public static FunctionDescriptor H5FDdriver_query$descriptor() { return H5FDdriver_query.DESC; } /** * Downcall method handle for: @@ -31774,9 +29311,7 @@ private static class H5FDdriver_query { * herr_t H5FDdriver_query(hid_t driver_id, unsigned long *flags) * } */ - public static MethodHandle H5FDdriver_query$handle() { - return H5FDdriver_query.HANDLE; - } + public static MethodHandle H5FDdriver_query$handle() { return H5FDdriver_query.HANDLE; } /** * Address for: @@ -31784,24 +29319,24 @@ private static class H5FDdriver_query { * herr_t H5FDdriver_query(hid_t driver_id, unsigned long *flags) * } */ - public static MemorySegment H5FDdriver_query$address() { - return H5FDdriver_query.ADDR; - } + public static MemorySegment H5FDdriver_query$address() { return H5FDdriver_query.ADDR; } /** * {@snippet lang=c : * herr_t H5FDdriver_query(hid_t driver_id, unsigned long *flags) * } */ - public static int H5FDdriver_query(long driver_id, MemorySegment flags) { + public static int H5FDdriver_query(long driver_id, MemorySegment flags) + { var mh$ = H5FDdriver_query.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5FDdriver_query", driver_id, flags); } return (int)mh$.invokeExact(driver_id, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5L_TYPE_ERROR = (int)-1L; @@ -31810,56 +29345,40 @@ public static int H5FDdriver_query(long driver_id, MemorySegment flags) { * enum .H5L_TYPE_ERROR = -1 * } */ - public static int H5L_TYPE_ERROR() { - return H5L_TYPE_ERROR; - } + public static int H5L_TYPE_ERROR() { return H5L_TYPE_ERROR; } private static final int H5L_TYPE_HARD = (int)0L; /** * {@snippet lang=c : * enum .H5L_TYPE_HARD = 0 * } */ - public static int H5L_TYPE_HARD() { - return H5L_TYPE_HARD; - } + public static int H5L_TYPE_HARD() { return H5L_TYPE_HARD; } private static final int H5L_TYPE_SOFT = (int)1L; /** * {@snippet lang=c : * enum .H5L_TYPE_SOFT = 1 * } */ - public static int H5L_TYPE_SOFT() { - return H5L_TYPE_SOFT; - } + public static int H5L_TYPE_SOFT() { return H5L_TYPE_SOFT; } private static final int H5L_TYPE_EXTERNAL = (int)64L; /** * {@snippet lang=c : * enum .H5L_TYPE_EXTERNAL = 64 * } */ - public static int H5L_TYPE_EXTERNAL() { - return H5L_TYPE_EXTERNAL; - } + public static int H5L_TYPE_EXTERNAL() { return H5L_TYPE_EXTERNAL; } private static final int H5L_TYPE_MAX = (int)255L; /** * {@snippet lang=c : * enum .H5L_TYPE_MAX = 255 * } */ - public static int H5L_TYPE_MAX() { - return H5L_TYPE_MAX; - } + public static int H5L_TYPE_MAX() { return H5L_TYPE_MAX; } private static class H5Lmove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lmove"); @@ -31869,60 +29388,55 @@ private static class H5Lmove { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lmove$descriptor() { - return H5Lmove.DESC; - } + public static FunctionDescriptor H5Lmove$descriptor() { return H5Lmove.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MethodHandle H5Lmove$handle() { - return H5Lmove.HANDLE; - } + public static MethodHandle H5Lmove$handle() { return H5Lmove.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MemorySegment H5Lmove$address() { - return H5Lmove.ADDR; - } + public static MemorySegment H5Lmove$address() { return H5Lmove.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static int H5Lmove(long src_loc, MemorySegment src_name, long dst_loc, MemorySegment dst_name, long lcpl_id, long lapl_id) { + public static int H5Lmove(long src_loc, MemorySegment src_name, long dst_loc, MemorySegment dst_name, + long lcpl_id, long lapl_id) + { var mh$ = H5Lmove.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lmove", src_loc, src_name, dst_loc, dst_name, lcpl_id, lapl_id); } return (int)mh$.invokeExact(src_loc, src_name, dst_loc, dst_name, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcopy"); @@ -31932,60 +29446,55 @@ private static class H5Lcopy { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lcopy$descriptor() { - return H5Lcopy.DESC; - } + public static FunctionDescriptor H5Lcopy$descriptor() { return H5Lcopy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MethodHandle H5Lcopy$handle() { - return H5Lcopy.HANDLE; - } + public static MethodHandle H5Lcopy$handle() { return H5Lcopy.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MemorySegment H5Lcopy$address() { - return H5Lcopy.ADDR; - } + public static MemorySegment H5Lcopy$address() { return H5Lcopy.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static int H5Lcopy(long src_loc, MemorySegment src_name, long dst_loc, MemorySegment dst_name, long lcpl_id, long lapl_id) { + public static int H5Lcopy(long src_loc, MemorySegment src_name, long dst_loc, MemorySegment dst_name, + long lcpl_id, long lapl_id) + { var mh$ = H5Lcopy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lcopy", src_loc, src_name, dst_loc, dst_name, lcpl_id, lapl_id); } return (int)mh$.invokeExact(src_loc, src_name, dst_loc, dst_name, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_hard { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_hard"); @@ -31995,64 +29504,55 @@ private static class H5Lcreate_hard { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t + * lcpl_id, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lcreate_hard$descriptor() { - return H5Lcreate_hard.DESC; - } + public static FunctionDescriptor H5Lcreate_hard$descriptor() { return H5Lcreate_hard.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t + * lcpl_id, hid_t lapl_id) * } */ - public static MethodHandle H5Lcreate_hard$handle() { - return H5Lcreate_hard.HANDLE; - } + public static MethodHandle H5Lcreate_hard$handle() { return H5Lcreate_hard.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t + * lcpl_id, hid_t lapl_id) * } */ - public static MemorySegment H5Lcreate_hard$address() { - return H5Lcreate_hard.ADDR; - } + public static MemorySegment H5Lcreate_hard$address() { return H5Lcreate_hard.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_hard(hid_t cur_loc, const char *cur_name, hid_t dst_loc, const char *dst_name, hid_t + * lcpl_id, hid_t lapl_id) * } */ - public static int H5Lcreate_hard(long cur_loc, MemorySegment cur_name, long dst_loc, MemorySegment dst_name, long lcpl_id, long lapl_id) { + public static int H5Lcreate_hard(long cur_loc, MemorySegment cur_name, long dst_loc, + MemorySegment dst_name, long lcpl_id, long lapl_id) + { var mh$ = H5Lcreate_hard.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lcreate_hard", cur_loc, cur_name, dst_loc, dst_name, lcpl_id, lapl_id); } return (int)mh$.invokeExact(cur_loc, cur_name, dst_loc, dst_name, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_hard_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_hard_async"); @@ -32062,59 +29562,61 @@ private static class H5Lcreate_hard_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Lcreate_hard_async$descriptor() { - return H5Lcreate_hard_async.DESC; - } + public static FunctionDescriptor H5Lcreate_hard_async$descriptor() { return H5Lcreate_hard_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, + * hid_t es_id) * } */ - public static MethodHandle H5Lcreate_hard_async$handle() { - return H5Lcreate_hard_async.HANDLE; - } + public static MethodHandle H5Lcreate_hard_async$handle() { return H5Lcreate_hard_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, + * hid_t es_id) * } */ - public static MemorySegment H5Lcreate_hard_async$address() { - return H5Lcreate_hard_async.ADDR; - } + public static MemorySegment H5Lcreate_hard_async$address() { return H5Lcreate_hard_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_hard_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * cur_loc_id, const char *cur_name, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id, + * hid_t es_id) * } */ - public static int H5Lcreate_hard_async(MemorySegment app_file, MemorySegment app_func, int app_line, long cur_loc_id, MemorySegment cur_name, long new_loc_id, MemorySegment new_name, long lcpl_id, long lapl_id, long es_id) { + public static int H5Lcreate_hard_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long cur_loc_id, MemorySegment cur_name, long new_loc_id, + MemorySegment new_name, long lcpl_id, long lapl_id, long es_id) + { var mh$ = H5Lcreate_hard_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lcreate_hard_async", app_file, app_func, app_line, cur_loc_id, cur_name, new_loc_id, new_name, lcpl_id, lapl_id, es_id); + traceDowncall("H5Lcreate_hard_async", app_file, app_func, app_line, cur_loc_id, cur_name, + new_loc_id, new_name, lcpl_id, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, cur_loc_id, cur_name, new_loc_id, new_name, lcpl_id, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, cur_loc_id, cur_name, new_loc_id, + new_name, lcpl_id, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_soft { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_soft"); @@ -32124,63 +29626,55 @@ private static class H5Lcreate_soft { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lcreate_soft$descriptor() { - return H5Lcreate_soft.DESC; - } + public static FunctionDescriptor H5Lcreate_soft$descriptor() { return H5Lcreate_soft.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MethodHandle H5Lcreate_soft$handle() { - return H5Lcreate_soft.HANDLE; - } + public static MethodHandle H5Lcreate_soft$handle() { return H5Lcreate_soft.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static MemorySegment H5Lcreate_soft$address() { - return H5Lcreate_soft.ADDR; - } + public static MemorySegment H5Lcreate_soft$address() { return H5Lcreate_soft.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, + * hid_t lapl_id) * } */ - public static int H5Lcreate_soft(MemorySegment link_target, long link_loc_id, MemorySegment link_name, long lcpl_id, long lapl_id) { + public static int H5Lcreate_soft(MemorySegment link_target, long link_loc_id, MemorySegment link_name, + long lcpl_id, long lapl_id) + { var mh$ = H5Lcreate_soft.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lcreate_soft", link_target, link_loc_id, link_name, lcpl_id, lapl_id); } return (int)mh$.invokeExact(link_target, link_loc_id, link_name, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_soft_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_soft_async"); @@ -32190,57 +29684,57 @@ private static class H5Lcreate_soft_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const + * char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Lcreate_soft_async$descriptor() { - return H5Lcreate_soft_async.DESC; - } + public static FunctionDescriptor H5Lcreate_soft_async$descriptor() { return H5Lcreate_soft_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const + * char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Lcreate_soft_async$handle() { - return H5Lcreate_soft_async.HANDLE; - } + public static MethodHandle H5Lcreate_soft_async$handle() { return H5Lcreate_soft_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const + * char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Lcreate_soft_async$address() { - return H5Lcreate_soft_async.ADDR; - } + public static MemorySegment H5Lcreate_soft_async$address() { return H5Lcreate_soft_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) + * herr_t H5Lcreate_soft_async(const char *app_file, const char *app_func, unsigned int app_line, const + * char *link_target, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Lcreate_soft_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment link_target, long link_loc_id, MemorySegment link_name, long lcpl_id, long lapl_id, long es_id) { + public static int H5Lcreate_soft_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment link_target, long link_loc_id, + MemorySegment link_name, long lcpl_id, long lapl_id, long es_id) + { var mh$ = H5Lcreate_soft_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lcreate_soft_async", app_file, app_func, app_line, link_target, link_loc_id, link_name, lcpl_id, lapl_id, es_id); + traceDowncall("H5Lcreate_soft_async", app_file, app_func, app_line, link_target, link_loc_id, + link_name, lcpl_id, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, link_target, link_loc_id, link_name, lcpl_id, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, link_target, link_loc_id, link_name, + lcpl_id, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ldelete { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ldelete"); @@ -32253,9 +29747,7 @@ private static class H5Ldelete { * herr_t H5Ldelete(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Ldelete$descriptor() { - return H5Ldelete.DESC; - } + public static FunctionDescriptor H5Ldelete$descriptor() { return H5Ldelete.DESC; } /** * Downcall method handle for: @@ -32263,9 +29755,7 @@ private static class H5Ldelete { * herr_t H5Ldelete(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static MethodHandle H5Ldelete$handle() { - return H5Ldelete.HANDLE; - } + public static MethodHandle H5Ldelete$handle() { return H5Ldelete.HANDLE; } /** * Address for: @@ -32273,38 +29763,31 @@ private static class H5Ldelete { * herr_t H5Ldelete(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static MemorySegment H5Ldelete$address() { - return H5Ldelete.ADDR; - } + public static MemorySegment H5Ldelete$address() { return H5Ldelete.ADDR; } /** * {@snippet lang=c : * herr_t H5Ldelete(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static int H5Ldelete(long loc_id, MemorySegment name, long lapl_id) { + public static int H5Ldelete(long loc_id, MemorySegment name, long lapl_id) + { var mh$ = H5Ldelete.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ldelete", loc_id, name, lapl_id); } return (int)mh$.invokeExact(loc_id, name, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ldelete_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ldelete_async"); @@ -32314,60 +29797,55 @@ private static class H5Ldelete_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Ldelete_async$descriptor() { - return H5Ldelete_async.DESC; - } + public static FunctionDescriptor H5Ldelete_async$descriptor() { return H5Ldelete_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Ldelete_async$handle() { - return H5Ldelete_async.HANDLE; - } + public static MethodHandle H5Ldelete_async$handle() { return H5Ldelete_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Ldelete_async$address() { - return H5Ldelete_async.ADDR; - } + public static MemorySegment H5Ldelete_async$address() { return H5Ldelete_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Ldelete_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long lapl_id, long es_id) { + public static int H5Ldelete_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long lapl_id, long es_id) + { var mh$ = H5Ldelete_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ldelete_async", app_file, app_func, app_line, loc_id, name, lapl_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ldelete_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ldelete_by_idx"); @@ -32377,64 +29855,55 @@ private static class H5Ldelete_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Ldelete_by_idx$descriptor() { - return H5Ldelete_by_idx.DESC; - } + public static FunctionDescriptor H5Ldelete_by_idx$descriptor() { return H5Ldelete_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, hid_t lapl_id) * } */ - public static MethodHandle H5Ldelete_by_idx$handle() { - return H5Ldelete_by_idx.HANDLE; - } + public static MethodHandle H5Ldelete_by_idx$handle() { return H5Ldelete_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, hid_t lapl_id) * } */ - public static MemorySegment H5Ldelete_by_idx$address() { - return H5Ldelete_by_idx.ADDR; - } + public static MemorySegment H5Ldelete_by_idx$address() { return H5Ldelete_by_idx.ADDR; } /** * {@snippet lang=c : - * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) + * herr_t H5Ldelete_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, hid_t lapl_id) * } */ - public static int H5Ldelete_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, long n, long lapl_id) { + public static int H5Ldelete_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, long n, + long lapl_id) + { var mh$ = H5Ldelete_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ldelete_by_idx", loc_id, group_name, idx_type, order, n, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, n, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ldelete_by_idx_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ldelete_by_idx_async"); @@ -32444,59 +29913,64 @@ private static class H5Ldelete_by_idx_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Ldelete_by_idx_async$descriptor() { + public static FunctionDescriptor H5Ldelete_by_idx_async$descriptor() + { return H5Ldelete_by_idx_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, + * hid_t es_id) * } */ - public static MethodHandle H5Ldelete_by_idx_async$handle() { - return H5Ldelete_by_idx_async.HANDLE; - } + public static MethodHandle H5Ldelete_by_idx_async$handle() { return H5Ldelete_by_idx_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, + * hid_t es_id) * } */ - public static MemorySegment H5Ldelete_by_idx_async$address() { - return H5Ldelete_by_idx_async.ADDR; - } + public static MemorySegment H5Ldelete_by_idx_async$address() { return H5Ldelete_by_idx_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id) + * herr_t H5Ldelete_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id, + * hid_t es_id) * } */ - public static int H5Ldelete_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment group_name, int idx_type, int order, long n, long lapl_id, long es_id) { + public static int H5Ldelete_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment group_name, int idx_type, int order, + long n, long lapl_id, long es_id) + { var mh$ = H5Ldelete_by_idx_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Ldelete_by_idx_async", app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, lapl_id, es_id); + traceDowncall("H5Ldelete_by_idx_async", app_file, app_func, app_line, loc_id, group_name, + idx_type, order, n, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, + lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_val { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_val"); @@ -32509,9 +29983,7 @@ private static class H5Lget_val { * herr_t H5Lget_val(hid_t loc_id, const char *name, void *buf, size_t size, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_val$descriptor() { - return H5Lget_val.DESC; - } + public static FunctionDescriptor H5Lget_val$descriptor() { return H5Lget_val.DESC; } /** * Downcall method handle for: @@ -32519,9 +29991,7 @@ private static class H5Lget_val { * herr_t H5Lget_val(hid_t loc_id, const char *name, void *buf, size_t size, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_val$handle() { - return H5Lget_val.HANDLE; - } + public static MethodHandle H5Lget_val$handle() { return H5Lget_val.HANDLE; } /** * Address for: @@ -32529,39 +29999,31 @@ private static class H5Lget_val { * herr_t H5Lget_val(hid_t loc_id, const char *name, void *buf, size_t size, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_val$address() { - return H5Lget_val.ADDR; - } + public static MemorySegment H5Lget_val$address() { return H5Lget_val.ADDR; } /** * {@snippet lang=c : * herr_t H5Lget_val(hid_t loc_id, const char *name, void *buf, size_t size, hid_t lapl_id) * } */ - public static int H5Lget_val(long loc_id, MemorySegment name, MemorySegment buf, long size, long lapl_id) { + public static int H5Lget_val(long loc_id, MemorySegment name, MemorySegment buf, long size, long lapl_id) + { var mh$ = H5Lget_val.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lget_val", loc_id, name, buf, size, lapl_id); } return (int)mh$.invokeExact(loc_id, name, buf, size, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_val_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_val_by_idx"); @@ -32571,57 +30033,55 @@ private static class H5Lget_val_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, void *buf, size_t size, hid_t lapl_id) + * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, void *buf, size_t size, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_val_by_idx$descriptor() { - return H5Lget_val_by_idx.DESC; - } + public static FunctionDescriptor H5Lget_val_by_idx$descriptor() { return H5Lget_val_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, void *buf, size_t size, hid_t lapl_id) + * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, void *buf, size_t size, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_val_by_idx$handle() { - return H5Lget_val_by_idx.HANDLE; - } + public static MethodHandle H5Lget_val_by_idx$handle() { return H5Lget_val_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, void *buf, size_t size, hid_t lapl_id) + * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, void *buf, size_t size, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_val_by_idx$address() { - return H5Lget_val_by_idx.ADDR; - } + public static MemorySegment H5Lget_val_by_idx$address() { return H5Lget_val_by_idx.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, void *buf, size_t size, hid_t lapl_id) + * herr_t H5Lget_val_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, void *buf, size_t size, hid_t lapl_id) * } */ - public static int H5Lget_val_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment buf, long size, long lapl_id) { + public static int H5Lget_val_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment buf, long size, long lapl_id) + { var mh$ = H5Lget_val_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lget_val_by_idx", loc_id, group_name, idx_type, order, n, buf, size, lapl_id); + traceDowncall("H5Lget_val_by_idx", loc_id, group_name, idx_type, order, n, buf, size, + lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, n, buf, size, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lexists { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lexists"); @@ -32634,9 +30094,7 @@ private static class H5Lexists { * htri_t H5Lexists(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lexists$descriptor() { - return H5Lexists.DESC; - } + public static FunctionDescriptor H5Lexists$descriptor() { return H5Lexists.DESC; } /** * Downcall method handle for: @@ -32644,9 +30102,7 @@ private static class H5Lexists { * htri_t H5Lexists(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static MethodHandle H5Lexists$handle() { - return H5Lexists.HANDLE; - } + public static MethodHandle H5Lexists$handle() { return H5Lexists.HANDLE; } /** * Address for: @@ -32654,39 +30110,31 @@ private static class H5Lexists { * htri_t H5Lexists(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static MemorySegment H5Lexists$address() { - return H5Lexists.ADDR; - } + public static MemorySegment H5Lexists$address() { return H5Lexists.ADDR; } /** * {@snippet lang=c : * htri_t H5Lexists(hid_t loc_id, const char *name, hid_t lapl_id) * } */ - public static int H5Lexists(long loc_id, MemorySegment name, long lapl_id) { + public static int H5Lexists(long loc_id, MemorySegment name, long lapl_id) + { var mh$ = H5Lexists.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lexists", loc_id, name, lapl_id); } return (int)mh$.invokeExact(loc_id, name, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lexists_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lexists_async"); @@ -32696,58 +30144,56 @@ private static class H5Lexists_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Lexists_async$descriptor() { - return H5Lexists_async.DESC; - } + public static FunctionDescriptor H5Lexists_async$descriptor() { return H5Lexists_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Lexists_async$handle() { - return H5Lexists_async.HANDLE; - } + public static MethodHandle H5Lexists_async$handle() { return H5Lexists_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Lexists_async$address() { - return H5Lexists_async.ADDR; - } + public static MemorySegment H5Lexists_async$address() { return H5Lexists_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) + * herr_t H5Lexists_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hbool_t *exists, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Lexists_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, MemorySegment exists, long lapl_id, long es_id) { + public static int H5Lexists_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, MemorySegment exists, long lapl_id, + long es_id) + { var mh$ = H5Lexists_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lexists_async", app_file, app_func, app_line, loc_id, name, exists, lapl_id, es_id); + traceDowncall("H5Lexists_async", app_file, app_func, app_line, loc_id, name, exists, lapl_id, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, exists, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_info2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_info2"); @@ -32760,9 +30206,7 @@ private static class H5Lget_info2 { * herr_t H5Lget_info2(hid_t loc_id, const char *name, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_info2$descriptor() { - return H5Lget_info2.DESC; - } + public static FunctionDescriptor H5Lget_info2$descriptor() { return H5Lget_info2.DESC; } /** * Downcall method handle for: @@ -32770,9 +30214,7 @@ private static class H5Lget_info2 { * herr_t H5Lget_info2(hid_t loc_id, const char *name, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_info2$handle() { - return H5Lget_info2.HANDLE; - } + public static MethodHandle H5Lget_info2$handle() { return H5Lget_info2.HANDLE; } /** * Address for: @@ -32780,38 +30222,31 @@ private static class H5Lget_info2 { * herr_t H5Lget_info2(hid_t loc_id, const char *name, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_info2$address() { - return H5Lget_info2.ADDR; - } + public static MemorySegment H5Lget_info2$address() { return H5Lget_info2.ADDR; } /** * {@snippet lang=c : * herr_t H5Lget_info2(hid_t loc_id, const char *name, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static int H5Lget_info2(long loc_id, MemorySegment name, MemorySegment linfo, long lapl_id) { + public static int H5Lget_info2(long loc_id, MemorySegment name, MemorySegment linfo, long lapl_id) + { var mh$ = H5Lget_info2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lget_info2", loc_id, name, linfo, lapl_id); } return (int)mh$.invokeExact(loc_id, name, linfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_info_by_idx2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_info_by_idx2"); @@ -32821,62 +30256,55 @@ private static class H5Lget_info_by_idx2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_info_by_idx2$descriptor() { - return H5Lget_info_by_idx2.DESC; - } + public static FunctionDescriptor H5Lget_info_by_idx2$descriptor() { return H5Lget_info_by_idx2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_info_by_idx2$handle() { - return H5Lget_info_by_idx2.HANDLE; - } + public static MethodHandle H5Lget_info_by_idx2$handle() { return H5Lget_info_by_idx2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_info_by_idx2$address() { - return H5Lget_info_by_idx2.ADDR; - } + public static MemorySegment H5Lget_info_by_idx2$address() { return H5Lget_info_by_idx2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info2_t *linfo, hid_t lapl_id) * } */ - public static int H5Lget_info_by_idx2(long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment linfo, long lapl_id) { + public static int H5Lget_info_by_idx2(long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment linfo, long lapl_id) + { var mh$ = H5Lget_info_by_idx2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lget_info_by_idx2", loc_id, group_name, idx_type, order, n, linfo, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, n, linfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_name_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_name_by_idx"); @@ -32886,60 +30314,56 @@ private static class H5Lget_name_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_name_by_idx$descriptor() { - return H5Lget_name_by_idx.DESC; - } + public static FunctionDescriptor H5Lget_name_by_idx$descriptor() { return H5Lget_name_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_name_by_idx$handle() { - return H5Lget_name_by_idx.HANDLE; - } + public static MethodHandle H5Lget_name_by_idx$handle() { return H5Lget_name_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_name_by_idx$address() { - return H5Lget_name_by_idx.ADDR; - } + public static MemorySegment H5Lget_name_by_idx$address() { return H5Lget_name_by_idx.ADDR; } /** * {@snippet lang=c : - * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id) + * ssize_t H5Lget_name_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, char *name, size_t size, hid_t lapl_id) * } */ - public static long H5Lget_name_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment name, long size, long lapl_id) { + public static long H5Lget_name_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment name, long size, long lapl_id) + { var mh$ = H5Lget_name_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lget_name_by_idx", loc_id, group_name, idx_type, order, n, name, size, lapl_id); + traceDowncall("H5Lget_name_by_idx", loc_id, group_name, idx_type, order, n, name, size, + lapl_id); } return (long)mh$.invokeExact(loc_id, group_name, idx_type, order, n, name, size, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Literate2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Literate2"); @@ -32949,64 +30373,55 @@ private static class H5Literate2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data) + * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate2_t op, void *op_data) * } */ - public static FunctionDescriptor H5Literate2$descriptor() { - return H5Literate2.DESC; - } + public static FunctionDescriptor H5Literate2$descriptor() { return H5Literate2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data) + * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate2_t op, void *op_data) * } */ - public static MethodHandle H5Literate2$handle() { - return H5Literate2.HANDLE; - } + public static MethodHandle H5Literate2$handle() { return H5Literate2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data) + * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate2_t op, void *op_data) * } */ - public static MemorySegment H5Literate2$address() { - return H5Literate2.ADDR; - } + public static MemorySegment H5Literate2$address() { return H5Literate2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data) + * herr_t H5Literate2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate2_t op, void *op_data) * } */ - public static int H5Literate2(long grp_id, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data) { + public static int H5Literate2(long grp_id, int idx_type, int order, MemorySegment idx, MemorySegment op, + MemorySegment op_data) + { var mh$ = H5Literate2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Literate2", grp_id, idx_type, order, idx, op, op_data); } return (int)mh$.invokeExact(grp_id, idx_type, order, idx, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Literate_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Literate_async"); @@ -33016,62 +30431,62 @@ private static class H5Literate_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, hid_t es_id) + * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, + * hid_t es_id) * } */ - public static FunctionDescriptor H5Literate_async$descriptor() { - return H5Literate_async.DESC; - } + public static FunctionDescriptor H5Literate_async$descriptor() { return H5Literate_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, hid_t es_id) + * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, + * hid_t es_id) * } */ - public static MethodHandle H5Literate_async$handle() { - return H5Literate_async.HANDLE; - } + public static MethodHandle H5Literate_async$handle() { return H5Literate_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, hid_t es_id) + * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, + * hid_t es_id) * } */ - public static MemorySegment H5Literate_async$address() { - return H5Literate_async.ADDR; - } + public static MemorySegment H5Literate_async$address() { return H5Literate_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, hid_t es_id) + * herr_t H5Literate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx_p, H5L_iterate2_t op, void *op_data, + * hid_t es_id) * } */ - public static int H5Literate_async(MemorySegment app_file, MemorySegment app_func, int app_line, long group_id, int idx_type, int order, MemorySegment idx_p, MemorySegment op, MemorySegment op_data, long es_id) { + public static int H5Literate_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long group_id, int idx_type, int order, MemorySegment idx_p, + MemorySegment op, MemorySegment op_data, long es_id) + { var mh$ = H5Literate_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Literate_async", app_file, app_func, app_line, group_id, idx_type, order, idx_p, op, op_data, es_id); + traceDowncall("H5Literate_async", app_file, app_func, app_line, group_id, idx_type, order, + idx_p, op, op_data, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, group_id, idx_type, order, idx_p, op, op_data, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, group_id, idx_type, order, idx_p, op, + op_data, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Literate_by_name2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Literate_by_name2"); @@ -33081,59 +30496,56 @@ private static class H5Literate_by_name2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Literate_by_name2$descriptor() { - return H5Literate_by_name2.DESC; - } + public static FunctionDescriptor H5Literate_by_name2$descriptor() { return H5Literate_by_name2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static MethodHandle H5Literate_by_name2$handle() { - return H5Literate_by_name2.HANDLE; - } + public static MethodHandle H5Literate_by_name2$handle() { return H5Literate_by_name2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static MemorySegment H5Literate_by_name2$address() { - return H5Literate_by_name2.ADDR; - } + public static MemorySegment H5Literate_by_name2$address() { return H5Literate_by_name2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static int H5Literate_by_name2(long loc_id, MemorySegment group_name, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data, long lapl_id) { + public static int H5Literate_by_name2(long loc_id, MemorySegment group_name, int idx_type, int order, + MemorySegment idx, MemorySegment op, MemorySegment op_data, + long lapl_id) + { var mh$ = H5Literate_by_name2.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Literate_by_name2", loc_id, group_name, idx_type, order, idx, op, op_data, lapl_id); + traceDowncall("H5Literate_by_name2", loc_id, group_name, idx_type, order, idx, op, op_data, + lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, idx, op, op_data, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lvisit2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lvisit2"); @@ -33143,61 +30555,54 @@ private static class H5Lvisit2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data) + * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void + * *op_data) * } */ - public static FunctionDescriptor H5Lvisit2$descriptor() { - return H5Lvisit2.DESC; - } + public static FunctionDescriptor H5Lvisit2$descriptor() { return H5Lvisit2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data) + * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void + * *op_data) * } */ - public static MethodHandle H5Lvisit2$handle() { - return H5Lvisit2.HANDLE; - } + public static MethodHandle H5Lvisit2$handle() { return H5Lvisit2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data) + * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void + * *op_data) * } */ - public static MemorySegment H5Lvisit2$address() { - return H5Lvisit2.ADDR; - } + public static MemorySegment H5Lvisit2$address() { return H5Lvisit2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data) + * herr_t H5Lvisit2(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void + * *op_data) * } */ - public static int H5Lvisit2(long grp_id, int idx_type, int order, MemorySegment op, MemorySegment op_data) { + public static int H5Lvisit2(long grp_id, int idx_type, int order, MemorySegment op, MemorySegment op_data) + { var mh$ = H5Lvisit2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lvisit2", grp_id, idx_type, order, op, op_data); } return (int)mh$.invokeExact(grp_id, idx_type, order, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lvisit_by_name2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lvisit_by_name2"); @@ -33207,61 +30612,55 @@ private static class H5Lvisit_by_name2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lvisit_by_name2$descriptor() { - return H5Lvisit_by_name2.DESC; - } + public static FunctionDescriptor H5Lvisit_by_name2$descriptor() { return H5Lvisit_by_name2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static MethodHandle H5Lvisit_by_name2$handle() { - return H5Lvisit_by_name2.HANDLE; - } + public static MethodHandle H5Lvisit_by_name2$handle() { return H5Lvisit_by_name2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static MemorySegment H5Lvisit_by_name2$address() { - return H5Lvisit_by_name2.ADDR; - } + public static MemorySegment H5Lvisit_by_name2$address() { return H5Lvisit_by_name2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name2(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate2_t op, void *op_data, hid_t lapl_id) * } */ - public static int H5Lvisit_by_name2(long loc_id, MemorySegment group_name, int idx_type, int order, MemorySegment op, MemorySegment op_data, long lapl_id) { + public static int H5Lvisit_by_name2(long loc_id, MemorySegment group_name, int idx_type, int order, + MemorySegment op, MemorySegment op_data, long lapl_id) + { var mh$ = H5Lvisit_by_name2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lvisit_by_name2", loc_id, group_name, idx_type, order, op, op_data, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, op, op_data, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_ud { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_ud"); @@ -33271,55 +30670,55 @@ private static class H5Lcreate_ud { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, size_t udata_size, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, + * size_t udata_size, hid_t lcpl_id, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lcreate_ud$descriptor() { - return H5Lcreate_ud.DESC; - } + public static FunctionDescriptor H5Lcreate_ud$descriptor() { return H5Lcreate_ud.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, size_t udata_size, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, + * size_t udata_size, hid_t lcpl_id, hid_t lapl_id) * } */ - public static MethodHandle H5Lcreate_ud$handle() { - return H5Lcreate_ud.HANDLE; - } + public static MethodHandle H5Lcreate_ud$handle() { return H5Lcreate_ud.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, size_t udata_size, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, + * size_t udata_size, hid_t lcpl_id, hid_t lapl_id) * } */ - public static MemorySegment H5Lcreate_ud$address() { - return H5Lcreate_ud.ADDR; - } + public static MemorySegment H5Lcreate_ud$address() { return H5Lcreate_ud.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, size_t udata_size, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, H5L_type_t link_type, const void *udata, + * size_t udata_size, hid_t lcpl_id, hid_t lapl_id) * } */ - public static int H5Lcreate_ud(long link_loc_id, MemorySegment link_name, int link_type, MemorySegment udata, long udata_size, long lcpl_id, long lapl_id) { + public static int H5Lcreate_ud(long link_loc_id, MemorySegment link_name, int link_type, + MemorySegment udata, long udata_size, long lcpl_id, long lapl_id) + { var mh$ = H5Lcreate_ud.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lcreate_ud", link_loc_id, link_name, link_type, udata, udata_size, lcpl_id, lapl_id); + traceDowncall("H5Lcreate_ud", link_loc_id, link_name, link_type, udata, udata_size, lcpl_id, + lapl_id); } - return (int)mh$.invokeExact(link_loc_id, link_name, link_type, udata, udata_size, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(link_loc_id, link_name, link_type, udata, udata_size, lcpl_id, + lapl_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lis_registered { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lis_registered"); @@ -33332,9 +30731,7 @@ private static class H5Lis_registered { * htri_t H5Lis_registered(H5L_type_t id) * } */ - public static FunctionDescriptor H5Lis_registered$descriptor() { - return H5Lis_registered.DESC; - } + public static FunctionDescriptor H5Lis_registered$descriptor() { return H5Lis_registered.DESC; } /** * Downcall method handle for: @@ -33342,9 +30739,7 @@ private static class H5Lis_registered { * htri_t H5Lis_registered(H5L_type_t id) * } */ - public static MethodHandle H5Lis_registered$handle() { - return H5Lis_registered.HANDLE; - } + public static MethodHandle H5Lis_registered$handle() { return H5Lis_registered.HANDLE; } /** * Address for: @@ -33352,36 +30747,31 @@ private static class H5Lis_registered { * htri_t H5Lis_registered(H5L_type_t id) * } */ - public static MemorySegment H5Lis_registered$address() { - return H5Lis_registered.ADDR; - } + public static MemorySegment H5Lis_registered$address() { return H5Lis_registered.ADDR; } /** * {@snippet lang=c : * htri_t H5Lis_registered(H5L_type_t id) * } */ - public static int H5Lis_registered(int id) { + public static int H5Lis_registered(int id) + { var mh$ = H5Lis_registered.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lis_registered", id); } return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lunpack_elink_val { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lunpack_elink_val"); @@ -33391,60 +30781,55 @@ private static class H5Lunpack_elink_val { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char **filename, const char **obj_path) + * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char + * **filename, const char **obj_path) * } */ - public static FunctionDescriptor H5Lunpack_elink_val$descriptor() { - return H5Lunpack_elink_val.DESC; - } + public static FunctionDescriptor H5Lunpack_elink_val$descriptor() { return H5Lunpack_elink_val.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char **filename, const char **obj_path) + * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char + * **filename, const char **obj_path) * } */ - public static MethodHandle H5Lunpack_elink_val$handle() { - return H5Lunpack_elink_val.HANDLE; - } + public static MethodHandle H5Lunpack_elink_val$handle() { return H5Lunpack_elink_val.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char **filename, const char **obj_path) + * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char + * **filename, const char **obj_path) * } */ - public static MemorySegment H5Lunpack_elink_val$address() { - return H5Lunpack_elink_val.ADDR; - } + public static MemorySegment H5Lunpack_elink_val$address() { return H5Lunpack_elink_val.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char **filename, const char **obj_path) + * herr_t H5Lunpack_elink_val(const void *ext_linkval, size_t link_size, unsigned int *flags, const char + * **filename, const char **obj_path) * } */ - public static int H5Lunpack_elink_val(MemorySegment ext_linkval, long link_size, MemorySegment flags, MemorySegment filename, MemorySegment obj_path) { + public static int H5Lunpack_elink_val(MemorySegment ext_linkval, long link_size, MemorySegment flags, + MemorySegment filename, MemorySegment obj_path) + { var mh$ = H5Lunpack_elink_val.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lunpack_elink_val", ext_linkval, link_size, flags, filename, obj_path); } return (int)mh$.invokeExact(ext_linkval, link_size, flags, filename, obj_path); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lcreate_external { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lcreate_external"); @@ -33454,58 +30839,55 @@ private static class H5Lcreate_external { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char + * *link_name, hid_t lcpl_id, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lcreate_external$descriptor() { - return H5Lcreate_external.DESC; - } + public static FunctionDescriptor H5Lcreate_external$descriptor() { return H5Lcreate_external.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char + * *link_name, hid_t lcpl_id, hid_t lapl_id) * } */ - public static MethodHandle H5Lcreate_external$handle() { - return H5Lcreate_external.HANDLE; - } + public static MethodHandle H5Lcreate_external$handle() { return H5Lcreate_external.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char + * *link_name, hid_t lcpl_id, hid_t lapl_id) * } */ - public static MemorySegment H5Lcreate_external$address() { - return H5Lcreate_external.ADDR; - } + public static MemorySegment H5Lcreate_external$address() { return H5Lcreate_external.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id) + * herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char + * *link_name, hid_t lcpl_id, hid_t lapl_id) * } */ - public static int H5Lcreate_external(MemorySegment file_name, MemorySegment obj_name, long link_loc_id, MemorySegment link_name, long lcpl_id, long lapl_id) { + public static int H5Lcreate_external(MemorySegment file_name, MemorySegment obj_name, long link_loc_id, + MemorySegment link_name, long lcpl_id, long lapl_id) + { var mh$ = H5Lcreate_external.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Lcreate_external", file_name, obj_name, link_loc_id, link_name, lcpl_id, lapl_id); + traceDowncall("H5Lcreate_external", file_name, obj_name, link_loc_id, link_name, lcpl_id, + lapl_id); } return (int)mh$.invokeExact(file_name, obj_name, link_loc_id, link_name, lcpl_id, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_info1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_info1"); @@ -33518,9 +30900,7 @@ private static class H5Lget_info1 { * herr_t H5Lget_info1(hid_t loc_id, const char *name, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_info1$descriptor() { - return H5Lget_info1.DESC; - } + public static FunctionDescriptor H5Lget_info1$descriptor() { return H5Lget_info1.DESC; } /** * Downcall method handle for: @@ -33528,9 +30908,7 @@ private static class H5Lget_info1 { * herr_t H5Lget_info1(hid_t loc_id, const char *name, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_info1$handle() { - return H5Lget_info1.HANDLE; - } + public static MethodHandle H5Lget_info1$handle() { return H5Lget_info1.HANDLE; } /** * Address for: @@ -33538,38 +30916,31 @@ private static class H5Lget_info1 { * herr_t H5Lget_info1(hid_t loc_id, const char *name, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_info1$address() { - return H5Lget_info1.ADDR; - } + public static MemorySegment H5Lget_info1$address() { return H5Lget_info1.ADDR; } /** * {@snippet lang=c : * herr_t H5Lget_info1(hid_t loc_id, const char *name, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static int H5Lget_info1(long loc_id, MemorySegment name, MemorySegment linfo, long lapl_id) { + public static int H5Lget_info1(long loc_id, MemorySegment name, MemorySegment linfo, long lapl_id) + { var mh$ = H5Lget_info1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lget_info1", loc_id, name, linfo, lapl_id); } return (int)mh$.invokeExact(loc_id, name, linfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lget_info_by_idx1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lget_info_by_idx1"); @@ -33579,60 +30950,55 @@ private static class H5Lget_info_by_idx1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lget_info_by_idx1$descriptor() { - return H5Lget_info_by_idx1.DESC; - } + public static FunctionDescriptor H5Lget_info_by_idx1$descriptor() { return H5Lget_info_by_idx1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static MethodHandle H5Lget_info_by_idx1$handle() { - return H5Lget_info_by_idx1.HANDLE; - } + public static MethodHandle H5Lget_info_by_idx1$handle() { return H5Lget_info_by_idx1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static MemorySegment H5Lget_info_by_idx1$address() { - return H5Lget_info_by_idx1.ADDR; - } + public static MemorySegment H5Lget_info_by_idx1$address() { return H5Lget_info_by_idx1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) + * herr_t H5Lget_info_by_idx1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5L_info1_t *linfo, hid_t lapl_id) * } */ - public static int H5Lget_info_by_idx1(long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment linfo, long lapl_id) { + public static int H5Lget_info_by_idx1(long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment linfo, long lapl_id) + { var mh$ = H5Lget_info_by_idx1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lget_info_by_idx1", loc_id, group_name, idx_type, order, n, linfo, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, n, linfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Literate1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Literate1"); @@ -33642,62 +31008,55 @@ private static class H5Literate1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data) + * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate1_t op, void *op_data) * } */ - public static FunctionDescriptor H5Literate1$descriptor() { - return H5Literate1.DESC; - } + public static FunctionDescriptor H5Literate1$descriptor() { return H5Literate1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data) + * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate1_t op, void *op_data) * } */ - public static MethodHandle H5Literate1$handle() { - return H5Literate1.HANDLE; - } + public static MethodHandle H5Literate1$handle() { return H5Literate1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data) + * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate1_t op, void *op_data) * } */ - public static MemorySegment H5Literate1$address() { - return H5Literate1.ADDR; - } + public static MemorySegment H5Literate1$address() { return H5Literate1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data) + * herr_t H5Literate1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, + * H5L_iterate1_t op, void *op_data) * } */ - public static int H5Literate1(long grp_id, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data) { + public static int H5Literate1(long grp_id, int idx_type, int order, MemorySegment idx, MemorySegment op, + MemorySegment op_data) + { var mh$ = H5Literate1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Literate1", grp_id, idx_type, order, idx, op, op_data); } return (int)mh$.invokeExact(grp_id, idx_type, order, idx, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Literate_by_name1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Literate_by_name1"); @@ -33707,59 +31066,56 @@ private static class H5Literate_by_name1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Literate_by_name1$descriptor() { - return H5Literate_by_name1.DESC; - } + public static FunctionDescriptor H5Literate_by_name1$descriptor() { return H5Literate_by_name1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static MethodHandle H5Literate_by_name1$handle() { - return H5Literate_by_name1.HANDLE; - } + public static MethodHandle H5Literate_by_name1$handle() { return H5Literate_by_name1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static MemorySegment H5Literate_by_name1$address() { - return H5Literate_by_name1.ADDR; - } + public static MemorySegment H5Literate_by_name1$address() { return H5Literate_by_name1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Literate_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t *idx, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static int H5Literate_by_name1(long loc_id, MemorySegment group_name, int idx_type, int order, MemorySegment idx, MemorySegment op, MemorySegment op_data, long lapl_id) { + public static int H5Literate_by_name1(long loc_id, MemorySegment group_name, int idx_type, int order, + MemorySegment idx, MemorySegment op, MemorySegment op_data, + long lapl_id) + { var mh$ = H5Literate_by_name1.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Literate_by_name1", loc_id, group_name, idx_type, order, idx, op, op_data, lapl_id); + traceDowncall("H5Literate_by_name1", loc_id, group_name, idx_type, order, idx, op, op_data, + lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, idx, op, op_data, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lvisit1 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lvisit1"); @@ -33769,61 +31125,54 @@ private static class H5Lvisit1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data) + * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void + * *op_data) * } */ - public static FunctionDescriptor H5Lvisit1$descriptor() { - return H5Lvisit1.DESC; - } + public static FunctionDescriptor H5Lvisit1$descriptor() { return H5Lvisit1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data) + * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void + * *op_data) * } */ - public static MethodHandle H5Lvisit1$handle() { - return H5Lvisit1.HANDLE; - } + public static MethodHandle H5Lvisit1$handle() { return H5Lvisit1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data) + * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void + * *op_data) * } */ - public static MemorySegment H5Lvisit1$address() { - return H5Lvisit1.ADDR; - } + public static MemorySegment H5Lvisit1$address() { return H5Lvisit1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data) + * herr_t H5Lvisit1(hid_t grp_id, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void + * *op_data) * } */ - public static int H5Lvisit1(long grp_id, int idx_type, int order, MemorySegment op, MemorySegment op_data) { + public static int H5Lvisit1(long grp_id, int idx_type, int order, MemorySegment op, MemorySegment op_data) + { var mh$ = H5Lvisit1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lvisit1", grp_id, idx_type, order, op, op_data); } return (int)mh$.invokeExact(grp_id, idx_type, order, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Lvisit_by_name1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Lvisit_by_name1"); @@ -33833,47 +31182,48 @@ private static class H5Lvisit_by_name1 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Lvisit_by_name1$descriptor() { - return H5Lvisit_by_name1.DESC; - } + public static FunctionDescriptor H5Lvisit_by_name1$descriptor() { return H5Lvisit_by_name1.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static MethodHandle H5Lvisit_by_name1$handle() { - return H5Lvisit_by_name1.HANDLE; - } + public static MethodHandle H5Lvisit_by_name1$handle() { return H5Lvisit_by_name1.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static MemorySegment H5Lvisit_by_name1$address() { - return H5Lvisit_by_name1.ADDR; - } + public static MemorySegment H5Lvisit_by_name1$address() { return H5Lvisit_by_name1.ADDR; } /** * {@snippet lang=c : - * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) + * herr_t H5Lvisit_by_name1(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, H5L_iterate1_t op, void *op_data, hid_t lapl_id) * } */ - public static int H5Lvisit_by_name1(long loc_id, MemorySegment group_name, int idx_type, int order, MemorySegment op, MemorySegment op_data, long lapl_id) { + public static int H5Lvisit_by_name1(long loc_id, MemorySegment group_name, int idx_type, int order, + MemorySegment op, MemorySegment op_data, long lapl_id) + { var mh$ = H5Lvisit_by_name1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Lvisit_by_name1", loc_id, group_name, idx_type, order, op, op_data, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, op, op_data, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5G_STORAGE_TYPE_UNKNOWN = (int)-1L; @@ -33882,46 +31232,32 @@ public static int H5Lvisit_by_name1(long loc_id, MemorySegment group_name, int i * enum H5G_storage_type_t.H5G_STORAGE_TYPE_UNKNOWN = -1 * } */ - public static int H5G_STORAGE_TYPE_UNKNOWN() { - return H5G_STORAGE_TYPE_UNKNOWN; - } + public static int H5G_STORAGE_TYPE_UNKNOWN() { return H5G_STORAGE_TYPE_UNKNOWN; } private static final int H5G_STORAGE_TYPE_SYMBOL_TABLE = (int)0L; /** * {@snippet lang=c : * enum H5G_storage_type_t.H5G_STORAGE_TYPE_SYMBOL_TABLE = 0 * } */ - public static int H5G_STORAGE_TYPE_SYMBOL_TABLE() { - return H5G_STORAGE_TYPE_SYMBOL_TABLE; - } + public static int H5G_STORAGE_TYPE_SYMBOL_TABLE() { return H5G_STORAGE_TYPE_SYMBOL_TABLE; } private static final int H5G_STORAGE_TYPE_COMPACT = (int)1L; /** * {@snippet lang=c : * enum H5G_storage_type_t.H5G_STORAGE_TYPE_COMPACT = 1 * } */ - public static int H5G_STORAGE_TYPE_COMPACT() { - return H5G_STORAGE_TYPE_COMPACT; - } + public static int H5G_STORAGE_TYPE_COMPACT() { return H5G_STORAGE_TYPE_COMPACT; } private static final int H5G_STORAGE_TYPE_DENSE = (int)2L; /** * {@snippet lang=c : * enum H5G_storage_type_t.H5G_STORAGE_TYPE_DENSE = 2 * } */ - public static int H5G_STORAGE_TYPE_DENSE() { - return H5G_STORAGE_TYPE_DENSE; - } + public static int H5G_STORAGE_TYPE_DENSE() { return H5G_STORAGE_TYPE_DENSE; } private static class H5Gcreate2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gcreate2"); @@ -33934,9 +31270,7 @@ private static class H5Gcreate2 { * hid_t H5Gcreate2(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static FunctionDescriptor H5Gcreate2$descriptor() { - return H5Gcreate2.DESC; - } + public static FunctionDescriptor H5Gcreate2$descriptor() { return H5Gcreate2.DESC; } /** * Downcall method handle for: @@ -33944,9 +31278,7 @@ private static class H5Gcreate2 { * hid_t H5Gcreate2(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static MethodHandle H5Gcreate2$handle() { - return H5Gcreate2.HANDLE; - } + public static MethodHandle H5Gcreate2$handle() { return H5Gcreate2.HANDLE; } /** * Address for: @@ -33954,40 +31286,31 @@ private static class H5Gcreate2 { * hid_t H5Gcreate2(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static MemorySegment H5Gcreate2$address() { - return H5Gcreate2.ADDR; - } + public static MemorySegment H5Gcreate2$address() { return H5Gcreate2.ADDR; } /** * {@snippet lang=c : * hid_t H5Gcreate2(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static long H5Gcreate2(long loc_id, MemorySegment name, long lcpl_id, long gcpl_id, long gapl_id) { + public static long H5Gcreate2(long loc_id, MemorySegment name, long lcpl_id, long gcpl_id, long gapl_id) + { var mh$ = H5Gcreate2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gcreate2", loc_id, name, lcpl_id, gcpl_id, gapl_id); } return (long)mh$.invokeExact(loc_id, name, lcpl_id, gcpl_id, gapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gcreate_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gcreate_async"); @@ -33997,57 +31320,57 @@ private static class H5Gcreate_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) + * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Gcreate_async$descriptor() { - return H5Gcreate_async.DESC; - } + public static FunctionDescriptor H5Gcreate_async$descriptor() { return H5Gcreate_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) + * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) * } */ - public static MethodHandle H5Gcreate_async$handle() { - return H5Gcreate_async.HANDLE; - } + public static MethodHandle H5Gcreate_async$handle() { return H5Gcreate_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) + * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) * } */ - public static MemorySegment H5Gcreate_async$address() { - return H5Gcreate_async.ADDR; - } + public static MemorySegment H5Gcreate_async$address() { return H5Gcreate_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) + * hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id) * } */ - public static long H5Gcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long lcpl_id, long gcpl_id, long gapl_id, long es_id) { + public static long H5Gcreate_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long lcpl_id, long gcpl_id, + long gapl_id, long es_id) + { var mh$ = H5Gcreate_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Gcreate_async", app_file, app_func, app_line, loc_id, name, lcpl_id, gcpl_id, gapl_id, es_id); + traceDowncall("H5Gcreate_async", app_file, app_func, app_line, loc_id, name, lcpl_id, gcpl_id, + gapl_id, es_id); } - return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lcpl_id, gcpl_id, gapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lcpl_id, gcpl_id, + gapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gcreate_anon { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gcreate_anon"); @@ -34060,9 +31383,7 @@ private static class H5Gcreate_anon { * hid_t H5Gcreate_anon(hid_t loc_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static FunctionDescriptor H5Gcreate_anon$descriptor() { - return H5Gcreate_anon.DESC; - } + public static FunctionDescriptor H5Gcreate_anon$descriptor() { return H5Gcreate_anon.DESC; } /** * Downcall method handle for: @@ -34070,9 +31391,7 @@ private static class H5Gcreate_anon { * hid_t H5Gcreate_anon(hid_t loc_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static MethodHandle H5Gcreate_anon$handle() { - return H5Gcreate_anon.HANDLE; - } + public static MethodHandle H5Gcreate_anon$handle() { return H5Gcreate_anon.HANDLE; } /** * Address for: @@ -34080,34 +31399,30 @@ private static class H5Gcreate_anon { * hid_t H5Gcreate_anon(hid_t loc_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static MemorySegment H5Gcreate_anon$address() { - return H5Gcreate_anon.ADDR; - } + public static MemorySegment H5Gcreate_anon$address() { return H5Gcreate_anon.ADDR; } /** * {@snippet lang=c : * hid_t H5Gcreate_anon(hid_t loc_id, hid_t gcpl_id, hid_t gapl_id) * } */ - public static long H5Gcreate_anon(long loc_id, long gcpl_id, long gapl_id) { + public static long H5Gcreate_anon(long loc_id, long gcpl_id, long gapl_id) + { var mh$ = H5Gcreate_anon.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gcreate_anon", loc_id, gcpl_id, gapl_id); } return (long)mh$.invokeExact(loc_id, gcpl_id, gapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gopen2 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gopen2"); @@ -34120,9 +31435,7 @@ private static class H5Gopen2 { * hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id) * } */ - public static FunctionDescriptor H5Gopen2$descriptor() { - return H5Gopen2.DESC; - } + public static FunctionDescriptor H5Gopen2$descriptor() { return H5Gopen2.DESC; } /** * Downcall method handle for: @@ -34130,9 +31443,7 @@ private static class H5Gopen2 { * hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id) * } */ - public static MethodHandle H5Gopen2$handle() { - return H5Gopen2.HANDLE; - } + public static MethodHandle H5Gopen2$handle() { return H5Gopen2.HANDLE; } /** * Address for: @@ -34140,38 +31451,31 @@ private static class H5Gopen2 { * hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id) * } */ - public static MemorySegment H5Gopen2$address() { - return H5Gopen2.ADDR; - } + public static MemorySegment H5Gopen2$address() { return H5Gopen2.ADDR; } /** * {@snippet lang=c : * hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id) * } */ - public static long H5Gopen2(long loc_id, MemorySegment name, long gapl_id) { + public static long H5Gopen2(long loc_id, MemorySegment name, long gapl_id) + { var mh$ = H5Gopen2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gopen2", loc_id, name, gapl_id); } return (long)mh$.invokeExact(loc_id, name, gapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gopen_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gopen_async"); @@ -34181,55 +31485,53 @@ private static class H5Gopen_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id) + * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t gapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Gopen_async$descriptor() { - return H5Gopen_async.DESC; - } + public static FunctionDescriptor H5Gopen_async$descriptor() { return H5Gopen_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id) + * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t gapl_id, hid_t es_id) * } */ - public static MethodHandle H5Gopen_async$handle() { - return H5Gopen_async.HANDLE; - } + public static MethodHandle H5Gopen_async$handle() { return H5Gopen_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id) + * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t gapl_id, hid_t es_id) * } */ - public static MemorySegment H5Gopen_async$address() { - return H5Gopen_async.ADDR; - } + public static MemorySegment H5Gopen_async$address() { return H5Gopen_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id) + * hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, + * const char *name, hid_t gapl_id, hid_t es_id) * } */ - public static long H5Gopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long gapl_id, long es_id) { + public static long H5Gopen_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long gapl_id, long es_id) + { var mh$ = H5Gopen_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gopen_async", app_file, app_func, app_line, loc_id, name, gapl_id, es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, gapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_create_plist { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_create_plist"); @@ -34242,9 +31544,7 @@ private static class H5Gget_create_plist { * hid_t H5Gget_create_plist(hid_t group_id) * } */ - public static FunctionDescriptor H5Gget_create_plist$descriptor() { - return H5Gget_create_plist.DESC; - } + public static FunctionDescriptor H5Gget_create_plist$descriptor() { return H5Gget_create_plist.DESC; } /** * Downcall method handle for: @@ -34252,9 +31552,7 @@ private static class H5Gget_create_plist { * hid_t H5Gget_create_plist(hid_t group_id) * } */ - public static MethodHandle H5Gget_create_plist$handle() { - return H5Gget_create_plist.HANDLE; - } + public static MethodHandle H5Gget_create_plist$handle() { return H5Gget_create_plist.HANDLE; } /** * Address for: @@ -34262,33 +31560,30 @@ private static class H5Gget_create_plist { * hid_t H5Gget_create_plist(hid_t group_id) * } */ - public static MemorySegment H5Gget_create_plist$address() { - return H5Gget_create_plist.ADDR; - } + public static MemorySegment H5Gget_create_plist$address() { return H5Gget_create_plist.ADDR; } /** * {@snippet lang=c : * hid_t H5Gget_create_plist(hid_t group_id) * } */ - public static long H5Gget_create_plist(long group_id) { + public static long H5Gget_create_plist(long group_id) + { var mh$ = H5Gget_create_plist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_create_plist", group_id); } return (long)mh$.invokeExact(group_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info"); @@ -34301,9 +31596,7 @@ private static class H5Gget_info { * herr_t H5Gget_info(hid_t loc_id, H5G_info_t *ginfo) * } */ - public static FunctionDescriptor H5Gget_info$descriptor() { - return H5Gget_info.DESC; - } + public static FunctionDescriptor H5Gget_info$descriptor() { return H5Gget_info.DESC; } /** * Downcall method handle for: @@ -34311,9 +31604,7 @@ private static class H5Gget_info { * herr_t H5Gget_info(hid_t loc_id, H5G_info_t *ginfo) * } */ - public static MethodHandle H5Gget_info$handle() { - return H5Gget_info.HANDLE; - } + public static MethodHandle H5Gget_info$handle() { return H5Gget_info.HANDLE; } /** * Address for: @@ -34321,37 +31612,31 @@ private static class H5Gget_info { * herr_t H5Gget_info(hid_t loc_id, H5G_info_t *ginfo) * } */ - public static MemorySegment H5Gget_info$address() { - return H5Gget_info.ADDR; - } + public static MemorySegment H5Gget_info$address() { return H5Gget_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Gget_info(hid_t loc_id, H5G_info_t *ginfo) * } */ - public static int H5Gget_info(long loc_id, MemorySegment ginfo) { + public static int H5Gget_info(long loc_id, MemorySegment ginfo) + { var mh$ = H5Gget_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_info", loc_id, ginfo); } return (int)mh$.invokeExact(loc_id, ginfo); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info_async"); @@ -34361,58 +31646,54 @@ private static class H5Gget_info_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, H5G_info_t *ginfo, hid_t es_id) + * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, H5G_info_t *ginfo, hid_t es_id) * } */ - public static FunctionDescriptor H5Gget_info_async$descriptor() { - return H5Gget_info_async.DESC; - } + public static FunctionDescriptor H5Gget_info_async$descriptor() { return H5Gget_info_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, H5G_info_t *ginfo, hid_t es_id) + * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, H5G_info_t *ginfo, hid_t es_id) * } */ - public static MethodHandle H5Gget_info_async$handle() { - return H5Gget_info_async.HANDLE; - } + public static MethodHandle H5Gget_info_async$handle() { return H5Gget_info_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, H5G_info_t *ginfo, hid_t es_id) + * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, H5G_info_t *ginfo, hid_t es_id) * } */ - public static MemorySegment H5Gget_info_async$address() { - return H5Gget_info_async.ADDR; - } + public static MemorySegment H5Gget_info_async$address() { return H5Gget_info_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, H5G_info_t *ginfo, hid_t es_id) + * herr_t H5Gget_info_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, H5G_info_t *ginfo, hid_t es_id) * } */ - public static int H5Gget_info_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment ginfo, long es_id) { + public static int H5Gget_info_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment ginfo, long es_id) + { var mh$ = H5Gget_info_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_info_async", app_file, app_func, app_line, loc_id, ginfo, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, ginfo, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info_by_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info_by_name"); @@ -34425,9 +31706,7 @@ private static class H5Gget_info_by_name { * herr_t H5Gget_info_by_name(hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Gget_info_by_name$descriptor() { - return H5Gget_info_by_name.DESC; - } + public static FunctionDescriptor H5Gget_info_by_name$descriptor() { return H5Gget_info_by_name.DESC; } /** * Downcall method handle for: @@ -34435,9 +31714,7 @@ private static class H5Gget_info_by_name { * herr_t H5Gget_info_by_name(hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static MethodHandle H5Gget_info_by_name$handle() { - return H5Gget_info_by_name.HANDLE; - } + public static MethodHandle H5Gget_info_by_name$handle() { return H5Gget_info_by_name.HANDLE; } /** * Address for: @@ -34445,39 +31722,31 @@ private static class H5Gget_info_by_name { * herr_t H5Gget_info_by_name(hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static MemorySegment H5Gget_info_by_name$address() { - return H5Gget_info_by_name.ADDR; - } + public static MemorySegment H5Gget_info_by_name$address() { return H5Gget_info_by_name.ADDR; } /** * {@snippet lang=c : * herr_t H5Gget_info_by_name(hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static int H5Gget_info_by_name(long loc_id, MemorySegment name, MemorySegment ginfo, long lapl_id) { + public static int H5Gget_info_by_name(long loc_id, MemorySegment name, MemorySegment ginfo, long lapl_id) + { var mh$ = H5Gget_info_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_info_by_name", loc_id, name, ginfo, lapl_id); } return (int)mh$.invokeExact(loc_id, name, ginfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info_by_name_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info_by_name_async"); @@ -34487,61 +31756,60 @@ private static class H5Gget_info_by_name_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Gget_info_by_name_async$descriptor() { + public static FunctionDescriptor H5Gget_info_by_name_async$descriptor() + { return H5Gget_info_by_name_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Gget_info_by_name_async$handle() { - return H5Gget_info_by_name_async.HANDLE; - } + public static MethodHandle H5Gget_info_by_name_async$handle() { return H5Gget_info_by_name_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Gget_info_by_name_async$address() { - return H5Gget_info_by_name_async.ADDR; - } + public static MemorySegment H5Gget_info_by_name_async$address() { return H5Gget_info_by_name_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_name_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *name, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Gget_info_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, MemorySegment ginfo, long lapl_id, long es_id) { + public static int H5Gget_info_by_name_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, MemorySegment ginfo, + long lapl_id, long es_id) + { var mh$ = H5Gget_info_by_name_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Gget_info_by_name_async", app_file, app_func, app_line, loc_id, name, ginfo, lapl_id, es_id); + traceDowncall("H5Gget_info_by_name_async", app_file, app_func, app_line, loc_id, name, ginfo, + lapl_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, ginfo, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info_by_idx"); @@ -34551,65 +31819,55 @@ private static class H5Gget_info_by_idx { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) + * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static FunctionDescriptor H5Gget_info_by_idx$descriptor() { - return H5Gget_info_by_idx.DESC; - } + public static FunctionDescriptor H5Gget_info_by_idx$descriptor() { return H5Gget_info_by_idx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) + * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static MethodHandle H5Gget_info_by_idx$handle() { - return H5Gget_info_by_idx.HANDLE; - } + public static MethodHandle H5Gget_info_by_idx$handle() { return H5Gget_info_by_idx.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) + * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static MemorySegment H5Gget_info_by_idx$address() { - return H5Gget_info_by_idx.ADDR; - } + public static MemorySegment H5Gget_info_by_idx$address() { return H5Gget_info_by_idx.ADDR; } /** * {@snippet lang=c : - * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) + * herr_t H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t + * order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id) * } */ - public static int H5Gget_info_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment ginfo, long lapl_id) { + public static int H5Gget_info_by_idx(long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment ginfo, long lapl_id) + { var mh$ = H5Gget_info_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_info_by_idx", loc_id, group_name, idx_type, order, n, ginfo, lapl_id); } return (int)mh$.invokeExact(loc_id, group_name, idx_type, order, n, ginfo, lapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_info_by_idx_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_info_by_idx_async"); @@ -34619,55 +31877,63 @@ private static class H5Gget_info_by_idx_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t + * *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Gget_info_by_idx_async$descriptor() { + public static FunctionDescriptor H5Gget_info_by_idx_async$descriptor() + { return H5Gget_info_by_idx_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t + * *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static MethodHandle H5Gget_info_by_idx_async$handle() { - return H5Gget_info_by_idx_async.HANDLE; - } + public static MethodHandle H5Gget_info_by_idx_async$handle() { return H5Gget_info_by_idx_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t + * *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static MemorySegment H5Gget_info_by_idx_async$address() { - return H5Gget_info_by_idx_async.ADDR; - } + public static MemorySegment H5Gget_info_by_idx_async$address() { return H5Gget_info_by_idx_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t *ginfo, hid_t lapl_id, hid_t es_id) + * herr_t H5Gget_info_by_idx_async(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5G_info_t + * *ginfo, hid_t lapl_id, hid_t es_id) * } */ - public static int H5Gget_info_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment group_name, int idx_type, int order, long n, MemorySegment ginfo, long lapl_id, long es_id) { + public static int H5Gget_info_by_idx_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment group_name, int idx_type, int order, + long n, MemorySegment ginfo, long lapl_id, long es_id) + { var mh$ = H5Gget_info_by_idx_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Gget_info_by_idx_async", app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, ginfo, lapl_id, es_id); + traceDowncall("H5Gget_info_by_idx_async", app_file, app_func, app_line, loc_id, group_name, + idx_type, order, n, ginfo, lapl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, ginfo, lapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, group_name, idx_type, order, n, + ginfo, lapl_id, es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gflush { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gflush"); @@ -34680,9 +31946,7 @@ private static class H5Gflush { * herr_t H5Gflush(hid_t group_id) * } */ - public static FunctionDescriptor H5Gflush$descriptor() { - return H5Gflush.DESC; - } + public static FunctionDescriptor H5Gflush$descriptor() { return H5Gflush.DESC; } /** * Downcall method handle for: @@ -34690,9 +31954,7 @@ private static class H5Gflush { * herr_t H5Gflush(hid_t group_id) * } */ - public static MethodHandle H5Gflush$handle() { - return H5Gflush.HANDLE; - } + public static MethodHandle H5Gflush$handle() { return H5Gflush.HANDLE; } /** * Address for: @@ -34700,32 +31962,29 @@ private static class H5Gflush { * herr_t H5Gflush(hid_t group_id) * } */ - public static MemorySegment H5Gflush$address() { - return H5Gflush.ADDR; - } + public static MemorySegment H5Gflush$address() { return H5Gflush.ADDR; } /** * {@snippet lang=c : * herr_t H5Gflush(hid_t group_id) * } */ - public static int H5Gflush(long group_id) { + public static int H5Gflush(long group_id) + { var mh$ = H5Gflush.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gflush", group_id); } return (int)mh$.invokeExact(group_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Grefresh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Grefresh"); @@ -34738,9 +31997,7 @@ private static class H5Grefresh { * herr_t H5Grefresh(hid_t group_id) * } */ - public static FunctionDescriptor H5Grefresh$descriptor() { - return H5Grefresh.DESC; - } + public static FunctionDescriptor H5Grefresh$descriptor() { return H5Grefresh.DESC; } /** * Downcall method handle for: @@ -34748,9 +32005,7 @@ private static class H5Grefresh { * herr_t H5Grefresh(hid_t group_id) * } */ - public static MethodHandle H5Grefresh$handle() { - return H5Grefresh.HANDLE; - } + public static MethodHandle H5Grefresh$handle() { return H5Grefresh.HANDLE; } /** * Address for: @@ -34758,32 +32013,29 @@ private static class H5Grefresh { * herr_t H5Grefresh(hid_t group_id) * } */ - public static MemorySegment H5Grefresh$address() { - return H5Grefresh.ADDR; - } + public static MemorySegment H5Grefresh$address() { return H5Grefresh.ADDR; } /** * {@snippet lang=c : * herr_t H5Grefresh(hid_t group_id) * } */ - public static int H5Grefresh(long group_id) { + public static int H5Grefresh(long group_id) + { var mh$ = H5Grefresh.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Grefresh", group_id); } return (int)mh$.invokeExact(group_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gclose"); @@ -34796,9 +32048,7 @@ private static class H5Gclose { * herr_t H5Gclose(hid_t group_id) * } */ - public static FunctionDescriptor H5Gclose$descriptor() { - return H5Gclose.DESC; - } + public static FunctionDescriptor H5Gclose$descriptor() { return H5Gclose.DESC; } /** * Downcall method handle for: @@ -34806,9 +32056,7 @@ private static class H5Gclose { * herr_t H5Gclose(hid_t group_id) * } */ - public static MethodHandle H5Gclose$handle() { - return H5Gclose.HANDLE; - } + public static MethodHandle H5Gclose$handle() { return H5Gclose.HANDLE; } /** * Address for: @@ -34816,36 +32064,30 @@ private static class H5Gclose { * herr_t H5Gclose(hid_t group_id) * } */ - public static MemorySegment H5Gclose$address() { - return H5Gclose.ADDR; - } + public static MemorySegment H5Gclose$address() { return H5Gclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Gclose(hid_t group_id) * } */ - public static int H5Gclose(long group_id) { + public static int H5Gclose(long group_id) + { var mh$ = H5Gclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gclose", group_id); } return (int)mh$.invokeExact(group_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gclose_async { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gclose_async"); @@ -34855,47 +32097,48 @@ private static class H5Gclose_async { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, hid_t es_id) + * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Gclose_async$descriptor() { - return H5Gclose_async.DESC; - } + public static FunctionDescriptor H5Gclose_async$descriptor() { return H5Gclose_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, hid_t es_id) + * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, hid_t es_id) * } */ - public static MethodHandle H5Gclose_async$handle() { - return H5Gclose_async.HANDLE; - } + public static MethodHandle H5Gclose_async$handle() { return H5Gclose_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, hid_t es_id) + * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, hid_t es_id) * } */ - public static MemorySegment H5Gclose_async$address() { - return H5Gclose_async.ADDR; - } + public static MemorySegment H5Gclose_async$address() { return H5Gclose_async.ADDR; } /** * {@snippet lang=c : - * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, hid_t es_id) + * herr_t H5Gclose_async(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, hid_t es_id) * } */ - public static int H5Gclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, long group_id, long es_id) { + public static int H5Gclose_async(MemorySegment app_file, MemorySegment app_func, int app_line, + long group_id, long es_id) + { var mh$ = H5Gclose_async.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gclose_async", app_file, app_func, app_line, group_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, group_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5G_UNKNOWN = (int)-1L; @@ -34904,89 +32147,67 @@ public static int H5Gclose_async(MemorySegment app_file, MemorySegment app_func, * enum H5G_obj_t.H5G_UNKNOWN = -1 * } */ - public static int H5G_UNKNOWN() { - return H5G_UNKNOWN; - } + public static int H5G_UNKNOWN() { return H5G_UNKNOWN; } private static final int H5G_GROUP = (int)0L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_GROUP = 0 * } */ - public static int H5G_GROUP() { - return H5G_GROUP; - } + public static int H5G_GROUP() { return H5G_GROUP; } private static final int H5G_DATASET = (int)1L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_DATASET = 1 * } */ - public static int H5G_DATASET() { - return H5G_DATASET; - } + public static int H5G_DATASET() { return H5G_DATASET; } private static final int H5G_TYPE = (int)2L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_TYPE = 2 * } */ - public static int H5G_TYPE() { - return H5G_TYPE; - } + public static int H5G_TYPE() { return H5G_TYPE; } private static final int H5G_LINK = (int)3L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_LINK = 3 * } */ - public static int H5G_LINK() { - return H5G_LINK; - } + public static int H5G_LINK() { return H5G_LINK; } private static final int H5G_UDLINK = (int)4L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_UDLINK = 4 * } */ - public static int H5G_UDLINK() { - return H5G_UDLINK; - } + public static int H5G_UDLINK() { return H5G_UDLINK; } private static final int H5G_RESERVED_5 = (int)5L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_RESERVED_5 = 5 * } */ - public static int H5G_RESERVED_5() { - return H5G_RESERVED_5; - } + public static int H5G_RESERVED_5() { return H5G_RESERVED_5; } private static final int H5G_RESERVED_6 = (int)6L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_RESERVED_6 = 6 * } */ - public static int H5G_RESERVED_6() { - return H5G_RESERVED_6; - } + public static int H5G_RESERVED_6() { return H5G_RESERVED_6; } private static final int H5G_RESERVED_7 = (int)7L; /** * {@snippet lang=c : * enum H5G_obj_t.H5G_RESERVED_7 = 7 * } */ - public static int H5G_RESERVED_7() { - return H5G_RESERVED_7; - } + public static int H5G_RESERVED_7() { return H5G_RESERVED_7; } private static class H5Gcreate1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gcreate1"); @@ -34999,9 +32220,7 @@ private static class H5Gcreate1 { * hid_t H5Gcreate1(hid_t loc_id, const char *name, size_t size_hint) * } */ - public static FunctionDescriptor H5Gcreate1$descriptor() { - return H5Gcreate1.DESC; - } + public static FunctionDescriptor H5Gcreate1$descriptor() { return H5Gcreate1.DESC; } /** * Downcall method handle for: @@ -35009,9 +32228,7 @@ private static class H5Gcreate1 { * hid_t H5Gcreate1(hid_t loc_id, const char *name, size_t size_hint) * } */ - public static MethodHandle H5Gcreate1$handle() { - return H5Gcreate1.HANDLE; - } + public static MethodHandle H5Gcreate1$handle() { return H5Gcreate1.HANDLE; } /** * Address for: @@ -35019,33 +32236,30 @@ private static class H5Gcreate1 { * hid_t H5Gcreate1(hid_t loc_id, const char *name, size_t size_hint) * } */ - public static MemorySegment H5Gcreate1$address() { - return H5Gcreate1.ADDR; - } + public static MemorySegment H5Gcreate1$address() { return H5Gcreate1.ADDR; } /** * {@snippet lang=c : * hid_t H5Gcreate1(hid_t loc_id, const char *name, size_t size_hint) * } */ - public static long H5Gcreate1(long loc_id, MemorySegment name, long size_hint) { + public static long H5Gcreate1(long loc_id, MemorySegment name, long size_hint) + { var mh$ = H5Gcreate1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gcreate1", loc_id, name, size_hint); } return (long)mh$.invokeExact(loc_id, name, size_hint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gopen1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gopen1"); @@ -35058,9 +32272,7 @@ private static class H5Gopen1 { * hid_t H5Gopen1(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Gopen1$descriptor() { - return H5Gopen1.DESC; - } + public static FunctionDescriptor H5Gopen1$descriptor() { return H5Gopen1.DESC; } /** * Downcall method handle for: @@ -35068,9 +32280,7 @@ private static class H5Gopen1 { * hid_t H5Gopen1(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Gopen1$handle() { - return H5Gopen1.HANDLE; - } + public static MethodHandle H5Gopen1$handle() { return H5Gopen1.HANDLE; } /** * Address for: @@ -35078,35 +32288,30 @@ private static class H5Gopen1 { * hid_t H5Gopen1(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Gopen1$address() { - return H5Gopen1.ADDR; - } + public static MemorySegment H5Gopen1$address() { return H5Gopen1.ADDR; } /** * {@snippet lang=c : * hid_t H5Gopen1(hid_t loc_id, const char *name) * } */ - public static long H5Gopen1(long loc_id, MemorySegment name) { + public static long H5Gopen1(long loc_id, MemorySegment name) + { var mh$ = H5Gopen1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gopen1", loc_id, name); } return (long)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Glink { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Glink"); @@ -35119,9 +32324,7 @@ private static class H5Glink { * herr_t H5Glink(hid_t cur_loc_id, H5L_type_t type, const char *cur_name, const char *new_name) * } */ - public static FunctionDescriptor H5Glink$descriptor() { - return H5Glink.DESC; - } + public static FunctionDescriptor H5Glink$descriptor() { return H5Glink.DESC; } /** * Downcall method handle for: @@ -35129,9 +32332,7 @@ private static class H5Glink { * herr_t H5Glink(hid_t cur_loc_id, H5L_type_t type, const char *cur_name, const char *new_name) * } */ - public static MethodHandle H5Glink$handle() { - return H5Glink.HANDLE; - } + public static MethodHandle H5Glink$handle() { return H5Glink.HANDLE; } /** * Address for: @@ -35139,36 +32340,30 @@ private static class H5Glink { * herr_t H5Glink(hid_t cur_loc_id, H5L_type_t type, const char *cur_name, const char *new_name) * } */ - public static MemorySegment H5Glink$address() { - return H5Glink.ADDR; - } + public static MemorySegment H5Glink$address() { return H5Glink.ADDR; } /** * {@snippet lang=c : * herr_t H5Glink(hid_t cur_loc_id, H5L_type_t type, const char *cur_name, const char *new_name) * } */ - public static int H5Glink(long cur_loc_id, int type, MemorySegment cur_name, MemorySegment new_name) { + public static int H5Glink(long cur_loc_id, int type, MemorySegment cur_name, MemorySegment new_name) + { var mh$ = H5Glink.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Glink", cur_loc_id, type, cur_name, new_name); } return (int)mh$.invokeExact(cur_loc_id, type, cur_name, new_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Glink2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Glink2"); @@ -35178,57 +32373,54 @@ private static class H5Glink2 { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char *new_name) + * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char + * *new_name) * } */ - public static FunctionDescriptor H5Glink2$descriptor() { - return H5Glink2.DESC; - } + public static FunctionDescriptor H5Glink2$descriptor() { return H5Glink2.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char *new_name) + * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char + * *new_name) * } */ - public static MethodHandle H5Glink2$handle() { - return H5Glink2.HANDLE; - } + public static MethodHandle H5Glink2$handle() { return H5Glink2.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char *new_name) + * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char + * *new_name) * } */ - public static MemorySegment H5Glink2$address() { - return H5Glink2.ADDR; - } + public static MemorySegment H5Glink2$address() { return H5Glink2.ADDR; } /** * {@snippet lang=c : - * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char *new_name) + * herr_t H5Glink2(hid_t cur_loc_id, const char *cur_name, H5L_type_t type, hid_t new_loc_id, const char + * *new_name) * } */ - public static int H5Glink2(long cur_loc_id, MemorySegment cur_name, int type, long new_loc_id, MemorySegment new_name) { + public static int H5Glink2(long cur_loc_id, MemorySegment cur_name, int type, long new_loc_id, + MemorySegment new_name) + { var mh$ = H5Glink2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Glink2", cur_loc_id, cur_name, type, new_loc_id, new_name); } return (int)mh$.invokeExact(cur_loc_id, cur_name, type, new_loc_id, new_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gmove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gmove"); @@ -35241,9 +32433,7 @@ private static class H5Gmove { * herr_t H5Gmove(hid_t src_loc_id, const char *src_name, const char *dst_name) * } */ - public static FunctionDescriptor H5Gmove$descriptor() { - return H5Gmove.DESC; - } + public static FunctionDescriptor H5Gmove$descriptor() { return H5Gmove.DESC; } /** * Downcall method handle for: @@ -35251,9 +32441,7 @@ private static class H5Gmove { * herr_t H5Gmove(hid_t src_loc_id, const char *src_name, const char *dst_name) * } */ - public static MethodHandle H5Gmove$handle() { - return H5Gmove.HANDLE; - } + public static MethodHandle H5Gmove$handle() { return H5Gmove.HANDLE; } /** * Address for: @@ -35261,35 +32449,30 @@ private static class H5Gmove { * herr_t H5Gmove(hid_t src_loc_id, const char *src_name, const char *dst_name) * } */ - public static MemorySegment H5Gmove$address() { - return H5Gmove.ADDR; - } + public static MemorySegment H5Gmove$address() { return H5Gmove.ADDR; } /** * {@snippet lang=c : * herr_t H5Gmove(hid_t src_loc_id, const char *src_name, const char *dst_name) * } */ - public static int H5Gmove(long src_loc_id, MemorySegment src_name, MemorySegment dst_name) { + public static int H5Gmove(long src_loc_id, MemorySegment src_name, MemorySegment dst_name) + { var mh$ = H5Gmove.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gmove", src_loc_id, src_name, dst_name); } return (int)mh$.invokeExact(src_loc_id, src_name, dst_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gmove2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gmove2"); @@ -35302,9 +32485,7 @@ private static class H5Gmove2 { * herr_t H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id, const char *dst_name) * } */ - public static FunctionDescriptor H5Gmove2$descriptor() { - return H5Gmove2.DESC; - } + public static FunctionDescriptor H5Gmove2$descriptor() { return H5Gmove2.DESC; } /** * Downcall method handle for: @@ -35312,9 +32493,7 @@ private static class H5Gmove2 { * herr_t H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id, const char *dst_name) * } */ - public static MethodHandle H5Gmove2$handle() { - return H5Gmove2.HANDLE; - } + public static MethodHandle H5Gmove2$handle() { return H5Gmove2.HANDLE; } /** * Address for: @@ -35322,33 +32501,31 @@ private static class H5Gmove2 { * herr_t H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id, const char *dst_name) * } */ - public static MemorySegment H5Gmove2$address() { - return H5Gmove2.ADDR; - } + public static MemorySegment H5Gmove2$address() { return H5Gmove2.ADDR; } /** * {@snippet lang=c : * herr_t H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id, const char *dst_name) * } */ - public static int H5Gmove2(long src_loc_id, MemorySegment src_name, long dst_loc_id, MemorySegment dst_name) { + public static int H5Gmove2(long src_loc_id, MemorySegment src_name, long dst_loc_id, + MemorySegment dst_name) + { var mh$ = H5Gmove2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gmove2", src_loc_id, src_name, dst_loc_id, dst_name); } return (int)mh$.invokeExact(src_loc_id, src_name, dst_loc_id, dst_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gunlink { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gunlink"); @@ -35361,9 +32538,7 @@ private static class H5Gunlink { * herr_t H5Gunlink(hid_t loc_id, const char *name) * } */ - public static FunctionDescriptor H5Gunlink$descriptor() { - return H5Gunlink.DESC; - } + public static FunctionDescriptor H5Gunlink$descriptor() { return H5Gunlink.DESC; } /** * Downcall method handle for: @@ -35371,9 +32546,7 @@ private static class H5Gunlink { * herr_t H5Gunlink(hid_t loc_id, const char *name) * } */ - public static MethodHandle H5Gunlink$handle() { - return H5Gunlink.HANDLE; - } + public static MethodHandle H5Gunlink$handle() { return H5Gunlink.HANDLE; } /** * Address for: @@ -35381,35 +32554,30 @@ private static class H5Gunlink { * herr_t H5Gunlink(hid_t loc_id, const char *name) * } */ - public static MemorySegment H5Gunlink$address() { - return H5Gunlink.ADDR; - } + public static MemorySegment H5Gunlink$address() { return H5Gunlink.ADDR; } /** * {@snippet lang=c : * herr_t H5Gunlink(hid_t loc_id, const char *name) * } */ - public static int H5Gunlink(long loc_id, MemorySegment name) { + public static int H5Gunlink(long loc_id, MemorySegment name) + { var mh$ = H5Gunlink.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gunlink", loc_id, name); } return (int)mh$.invokeExact(loc_id, name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_linkval { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_linkval"); @@ -35422,9 +32590,7 @@ private static class H5Gget_linkval { * herr_t H5Gget_linkval(hid_t loc_id, const char *name, size_t size, char *buf) * } */ - public static FunctionDescriptor H5Gget_linkval$descriptor() { - return H5Gget_linkval.DESC; - } + public static FunctionDescriptor H5Gget_linkval$descriptor() { return H5Gget_linkval.DESC; } /** * Downcall method handle for: @@ -35432,9 +32598,7 @@ private static class H5Gget_linkval { * herr_t H5Gget_linkval(hid_t loc_id, const char *name, size_t size, char *buf) * } */ - public static MethodHandle H5Gget_linkval$handle() { - return H5Gget_linkval.HANDLE; - } + public static MethodHandle H5Gget_linkval$handle() { return H5Gget_linkval.HANDLE; } /** * Address for: @@ -35442,34 +32606,30 @@ private static class H5Gget_linkval { * herr_t H5Gget_linkval(hid_t loc_id, const char *name, size_t size, char *buf) * } */ - public static MemorySegment H5Gget_linkval$address() { - return H5Gget_linkval.ADDR; - } + public static MemorySegment H5Gget_linkval$address() { return H5Gget_linkval.ADDR; } /** * {@snippet lang=c : * herr_t H5Gget_linkval(hid_t loc_id, const char *name, size_t size, char *buf) * } */ - public static int H5Gget_linkval(long loc_id, MemorySegment name, long size, MemorySegment buf) { + public static int H5Gget_linkval(long loc_id, MemorySegment name, long size, MemorySegment buf) + { var mh$ = H5Gget_linkval.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_linkval", loc_id, name, size, buf); } return (int)mh$.invokeExact(loc_id, name, size, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gset_comment { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gset_comment"); @@ -35482,9 +32642,7 @@ private static class H5Gset_comment { * herr_t H5Gset_comment(hid_t loc_id, const char *name, const char *comment) * } */ - public static FunctionDescriptor H5Gset_comment$descriptor() { - return H5Gset_comment.DESC; - } + public static FunctionDescriptor H5Gset_comment$descriptor() { return H5Gset_comment.DESC; } /** * Downcall method handle for: @@ -35492,9 +32650,7 @@ private static class H5Gset_comment { * herr_t H5Gset_comment(hid_t loc_id, const char *name, const char *comment) * } */ - public static MethodHandle H5Gset_comment$handle() { - return H5Gset_comment.HANDLE; - } + public static MethodHandle H5Gset_comment$handle() { return H5Gset_comment.HANDLE; } /** * Address for: @@ -35502,35 +32658,30 @@ private static class H5Gset_comment { * herr_t H5Gset_comment(hid_t loc_id, const char *name, const char *comment) * } */ - public static MemorySegment H5Gset_comment$address() { - return H5Gset_comment.ADDR; - } + public static MemorySegment H5Gset_comment$address() { return H5Gset_comment.ADDR; } /** * {@snippet lang=c : * herr_t H5Gset_comment(hid_t loc_id, const char *name, const char *comment) * } */ - public static int H5Gset_comment(long loc_id, MemorySegment name, MemorySegment comment) { + public static int H5Gset_comment(long loc_id, MemorySegment name, MemorySegment comment) + { var mh$ = H5Gset_comment.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gset_comment", loc_id, name, comment); } return (int)mh$.invokeExact(loc_id, name, comment); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_comment { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_comment"); @@ -35543,9 +32694,7 @@ private static class H5Gget_comment { * int H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) * } */ - public static FunctionDescriptor H5Gget_comment$descriptor() { - return H5Gget_comment.DESC; - } + public static FunctionDescriptor H5Gget_comment$descriptor() { return H5Gget_comment.DESC; } /** * Downcall method handle for: @@ -35553,9 +32702,7 @@ private static class H5Gget_comment { * int H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) * } */ - public static MethodHandle H5Gget_comment$handle() { - return H5Gget_comment.HANDLE; - } + public static MethodHandle H5Gget_comment$handle() { return H5Gget_comment.HANDLE; } /** * Address for: @@ -35563,36 +32710,31 @@ private static class H5Gget_comment { * int H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) * } */ - public static MemorySegment H5Gget_comment$address() { - return H5Gget_comment.ADDR; - } + public static MemorySegment H5Gget_comment$address() { return H5Gget_comment.ADDR; } /** * {@snippet lang=c : * int H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) * } */ - public static int H5Gget_comment(long loc_id, MemorySegment name, long bufsize, MemorySegment buf) { + public static int H5Gget_comment(long loc_id, MemorySegment name, long bufsize, MemorySegment buf) + { var mh$ = H5Gget_comment.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_comment", loc_id, name, bufsize, buf); } return (int)mh$.invokeExact(loc_id, name, bufsize, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Giterate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Giterate"); @@ -35605,9 +32747,7 @@ private static class H5Giterate { * herr_t H5Giterate(hid_t loc_id, const char *name, int *idx, H5G_iterate_t op, void *op_data) * } */ - public static FunctionDescriptor H5Giterate$descriptor() { - return H5Giterate.DESC; - } + public static FunctionDescriptor H5Giterate$descriptor() { return H5Giterate.DESC; } /** * Downcall method handle for: @@ -35615,9 +32755,7 @@ private static class H5Giterate { * herr_t H5Giterate(hid_t loc_id, const char *name, int *idx, H5G_iterate_t op, void *op_data) * } */ - public static MethodHandle H5Giterate$handle() { - return H5Giterate.HANDLE; - } + public static MethodHandle H5Giterate$handle() { return H5Giterate.HANDLE; } /** * Address for: @@ -35625,33 +32763,31 @@ private static class H5Giterate { * herr_t H5Giterate(hid_t loc_id, const char *name, int *idx, H5G_iterate_t op, void *op_data) * } */ - public static MemorySegment H5Giterate$address() { - return H5Giterate.ADDR; - } + public static MemorySegment H5Giterate$address() { return H5Giterate.ADDR; } /** * {@snippet lang=c : * herr_t H5Giterate(hid_t loc_id, const char *name, int *idx, H5G_iterate_t op, void *op_data) * } */ - public static int H5Giterate(long loc_id, MemorySegment name, MemorySegment idx, MemorySegment op, MemorySegment op_data) { + public static int H5Giterate(long loc_id, MemorySegment name, MemorySegment idx, MemorySegment op, + MemorySegment op_data) + { var mh$ = H5Giterate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Giterate", loc_id, name, idx, op, op_data); } return (int)mh$.invokeExact(loc_id, name, idx, op, op_data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_num_objs { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_num_objs"); @@ -35664,9 +32800,7 @@ private static class H5Gget_num_objs { * herr_t H5Gget_num_objs(hid_t loc_id, hsize_t *num_objs) * } */ - public static FunctionDescriptor H5Gget_num_objs$descriptor() { - return H5Gget_num_objs.DESC; - } + public static FunctionDescriptor H5Gget_num_objs$descriptor() { return H5Gget_num_objs.DESC; } /** * Downcall method handle for: @@ -35674,9 +32808,7 @@ private static class H5Gget_num_objs { * herr_t H5Gget_num_objs(hid_t loc_id, hsize_t *num_objs) * } */ - public static MethodHandle H5Gget_num_objs$handle() { - return H5Gget_num_objs.HANDLE; - } + public static MethodHandle H5Gget_num_objs$handle() { return H5Gget_num_objs.HANDLE; } /** * Address for: @@ -35684,35 +32816,30 @@ private static class H5Gget_num_objs { * herr_t H5Gget_num_objs(hid_t loc_id, hsize_t *num_objs) * } */ - public static MemorySegment H5Gget_num_objs$address() { - return H5Gget_num_objs.ADDR; - } + public static MemorySegment H5Gget_num_objs$address() { return H5Gget_num_objs.ADDR; } /** * {@snippet lang=c : * herr_t H5Gget_num_objs(hid_t loc_id, hsize_t *num_objs) * } */ - public static int H5Gget_num_objs(long loc_id, MemorySegment num_objs) { + public static int H5Gget_num_objs(long loc_id, MemorySegment num_objs) + { var mh$ = H5Gget_num_objs.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_num_objs", loc_id, num_objs); } return (int)mh$.invokeExact(loc_id, num_objs); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_objinfo { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_BOOL, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_BOOL, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_objinfo"); @@ -35725,9 +32852,7 @@ private static class H5Gget_objinfo { * herr_t H5Gget_objinfo(hid_t loc_id, const char *name, hbool_t follow_link, H5G_stat_t *statbuf) * } */ - public static FunctionDescriptor H5Gget_objinfo$descriptor() { - return H5Gget_objinfo.DESC; - } + public static FunctionDescriptor H5Gget_objinfo$descriptor() { return H5Gget_objinfo.DESC; } /** * Downcall method handle for: @@ -35735,9 +32860,7 @@ private static class H5Gget_objinfo { * herr_t H5Gget_objinfo(hid_t loc_id, const char *name, hbool_t follow_link, H5G_stat_t *statbuf) * } */ - public static MethodHandle H5Gget_objinfo$handle() { - return H5Gget_objinfo.HANDLE; - } + public static MethodHandle H5Gget_objinfo$handle() { return H5Gget_objinfo.HANDLE; } /** * Address for: @@ -35745,35 +32868,31 @@ private static class H5Gget_objinfo { * herr_t H5Gget_objinfo(hid_t loc_id, const char *name, hbool_t follow_link, H5G_stat_t *statbuf) * } */ - public static MemorySegment H5Gget_objinfo$address() { - return H5Gget_objinfo.ADDR; - } + public static MemorySegment H5Gget_objinfo$address() { return H5Gget_objinfo.ADDR; } /** * {@snippet lang=c : * herr_t H5Gget_objinfo(hid_t loc_id, const char *name, hbool_t follow_link, H5G_stat_t *statbuf) * } */ - public static int H5Gget_objinfo(long loc_id, MemorySegment name, boolean follow_link, MemorySegment statbuf) { + public static int H5Gget_objinfo(long loc_id, MemorySegment name, boolean follow_link, + MemorySegment statbuf) + { var mh$ = H5Gget_objinfo.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_objinfo", loc_id, name, follow_link, statbuf); } return (int)mh$.invokeExact(loc_id, name, follow_link, statbuf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_objname_by_idx { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_objname_by_idx"); @@ -35786,9 +32905,7 @@ private static class H5Gget_objname_by_idx { * ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char *name, size_t size) * } */ - public static FunctionDescriptor H5Gget_objname_by_idx$descriptor() { - return H5Gget_objname_by_idx.DESC; - } + public static FunctionDescriptor H5Gget_objname_by_idx$descriptor() { return H5Gget_objname_by_idx.DESC; } /** * Downcall method handle for: @@ -35796,9 +32913,7 @@ private static class H5Gget_objname_by_idx { * ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char *name, size_t size) * } */ - public static MethodHandle H5Gget_objname_by_idx$handle() { - return H5Gget_objname_by_idx.HANDLE; - } + public static MethodHandle H5Gget_objname_by_idx$handle() { return H5Gget_objname_by_idx.HANDLE; } /** * Address for: @@ -35806,33 +32921,30 @@ private static class H5Gget_objname_by_idx { * ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char *name, size_t size) * } */ - public static MemorySegment H5Gget_objname_by_idx$address() { - return H5Gget_objname_by_idx.ADDR; - } + public static MemorySegment H5Gget_objname_by_idx$address() { return H5Gget_objname_by_idx.ADDR; } /** * {@snippet lang=c : * ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char *name, size_t size) * } */ - public static long H5Gget_objname_by_idx(long loc_id, long idx, MemorySegment name, long size) { + public static long H5Gget_objname_by_idx(long loc_id, long idx, MemorySegment name, long size) + { var mh$ = H5Gget_objname_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_objname_by_idx", loc_id, idx, name, size); } return (long)mh$.invokeExact(loc_id, idx, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Gget_objtype_by_idx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Gget_objtype_by_idx"); @@ -35845,9 +32957,7 @@ private static class H5Gget_objtype_by_idx { * H5G_obj_t H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx) * } */ - public static FunctionDescriptor H5Gget_objtype_by_idx$descriptor() { - return H5Gget_objtype_by_idx.DESC; - } + public static FunctionDescriptor H5Gget_objtype_by_idx$descriptor() { return H5Gget_objtype_by_idx.DESC; } /** * Downcall method handle for: @@ -35855,9 +32965,7 @@ private static class H5Gget_objtype_by_idx { * H5G_obj_t H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx) * } */ - public static MethodHandle H5Gget_objtype_by_idx$handle() { - return H5Gget_objtype_by_idx.HANDLE; - } + public static MethodHandle H5Gget_objtype_by_idx$handle() { return H5Gget_objtype_by_idx.HANDLE; } /** * Address for: @@ -35865,24 +32973,24 @@ private static class H5Gget_objtype_by_idx { * H5G_obj_t H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx) * } */ - public static MemorySegment H5Gget_objtype_by_idx$address() { - return H5Gget_objtype_by_idx.ADDR; - } + public static MemorySegment H5Gget_objtype_by_idx$address() { return H5Gget_objtype_by_idx.ADDR; } /** * {@snippet lang=c : * H5G_obj_t H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx) * } */ - public static int H5Gget_objtype_by_idx(long loc_id, long idx) { + public static int H5Gget_objtype_by_idx(long loc_id, long idx) + { var mh$ = H5Gget_objtype_by_idx.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Gget_objtype_by_idx", loc_id, idx); } return (int)mh$.invokeExact(loc_id, idx); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } /** @@ -35891,130 +32999,101 @@ public static int H5Gget_objtype_by_idx(long loc_id, long idx) { * } */ public static final OfInt H5VL_class_value_t = hdf5_h.C_INT; - private static final int H5VL_SUBCLS_NONE = (int)0L; + private static final int H5VL_SUBCLS_NONE = (int)0L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_NONE = 0 * } */ - public static int H5VL_SUBCLS_NONE() { - return H5VL_SUBCLS_NONE; - } + public static int H5VL_SUBCLS_NONE() { return H5VL_SUBCLS_NONE; } private static final int H5VL_SUBCLS_INFO = (int)1L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_INFO = 1 * } */ - public static int H5VL_SUBCLS_INFO() { - return H5VL_SUBCLS_INFO; - } + public static int H5VL_SUBCLS_INFO() { return H5VL_SUBCLS_INFO; } private static final int H5VL_SUBCLS_WRAP = (int)2L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_WRAP = 2 * } */ - public static int H5VL_SUBCLS_WRAP() { - return H5VL_SUBCLS_WRAP; - } + public static int H5VL_SUBCLS_WRAP() { return H5VL_SUBCLS_WRAP; } private static final int H5VL_SUBCLS_ATTR = (int)3L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_ATTR = 3 * } */ - public static int H5VL_SUBCLS_ATTR() { - return H5VL_SUBCLS_ATTR; - } + public static int H5VL_SUBCLS_ATTR() { return H5VL_SUBCLS_ATTR; } private static final int H5VL_SUBCLS_DATASET = (int)4L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_DATASET = 4 * } */ - public static int H5VL_SUBCLS_DATASET() { - return H5VL_SUBCLS_DATASET; - } + public static int H5VL_SUBCLS_DATASET() { return H5VL_SUBCLS_DATASET; } private static final int H5VL_SUBCLS_DATATYPE = (int)5L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_DATATYPE = 5 * } */ - public static int H5VL_SUBCLS_DATATYPE() { - return H5VL_SUBCLS_DATATYPE; - } + public static int H5VL_SUBCLS_DATATYPE() { return H5VL_SUBCLS_DATATYPE; } private static final int H5VL_SUBCLS_FILE = (int)6L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_FILE = 6 * } */ - public static int H5VL_SUBCLS_FILE() { - return H5VL_SUBCLS_FILE; - } + public static int H5VL_SUBCLS_FILE() { return H5VL_SUBCLS_FILE; } private static final int H5VL_SUBCLS_GROUP = (int)7L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_GROUP = 7 * } */ - public static int H5VL_SUBCLS_GROUP() { - return H5VL_SUBCLS_GROUP; - } + public static int H5VL_SUBCLS_GROUP() { return H5VL_SUBCLS_GROUP; } private static final int H5VL_SUBCLS_LINK = (int)8L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_LINK = 8 * } */ - public static int H5VL_SUBCLS_LINK() { - return H5VL_SUBCLS_LINK; - } + public static int H5VL_SUBCLS_LINK() { return H5VL_SUBCLS_LINK; } private static final int H5VL_SUBCLS_OBJECT = (int)9L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_OBJECT = 9 * } */ - public static int H5VL_SUBCLS_OBJECT() { - return H5VL_SUBCLS_OBJECT; - } + public static int H5VL_SUBCLS_OBJECT() { return H5VL_SUBCLS_OBJECT; } private static final int H5VL_SUBCLS_REQUEST = (int)10L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_REQUEST = 10 * } */ - public static int H5VL_SUBCLS_REQUEST() { - return H5VL_SUBCLS_REQUEST; - } + public static int H5VL_SUBCLS_REQUEST() { return H5VL_SUBCLS_REQUEST; } private static final int H5VL_SUBCLS_BLOB = (int)11L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_BLOB = 11 * } */ - public static int H5VL_SUBCLS_BLOB() { - return H5VL_SUBCLS_BLOB; - } + public static int H5VL_SUBCLS_BLOB() { return H5VL_SUBCLS_BLOB; } private static final int H5VL_SUBCLS_TOKEN = (int)12L; /** * {@snippet lang=c : * enum H5VL_subclass_t.H5VL_SUBCLS_TOKEN = 12 * } */ - public static int H5VL_SUBCLS_TOKEN() { - return H5VL_SUBCLS_TOKEN; - } + public static int H5VL_SUBCLS_TOKEN() { return H5VL_SUBCLS_TOKEN; } private static class H5VLregister_connector_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLregister_connector_by_name"); @@ -36027,7 +33106,8 @@ private static class H5VLregister_connector_by_name { * hid_t H5VLregister_connector_by_name(const char *connector_name, hid_t vipl_id) * } */ - public static FunctionDescriptor H5VLregister_connector_by_name$descriptor() { + public static FunctionDescriptor H5VLregister_connector_by_name$descriptor() + { return H5VLregister_connector_by_name.DESC; } @@ -36037,7 +33117,8 @@ private static class H5VLregister_connector_by_name { * hid_t H5VLregister_connector_by_name(const char *connector_name, hid_t vipl_id) * } */ - public static MethodHandle H5VLregister_connector_by_name$handle() { + public static MethodHandle H5VLregister_connector_by_name$handle() + { return H5VLregister_connector_by_name.HANDLE; } @@ -36047,7 +33128,8 @@ private static class H5VLregister_connector_by_name { * hid_t H5VLregister_connector_by_name(const char *connector_name, hid_t vipl_id) * } */ - public static MemorySegment H5VLregister_connector_by_name$address() { + public static MemorySegment H5VLregister_connector_by_name$address() + { return H5VLregister_connector_by_name.ADDR; } @@ -36056,24 +33138,23 @@ private static class H5VLregister_connector_by_name { * hid_t H5VLregister_connector_by_name(const char *connector_name, hid_t vipl_id) * } */ - public static long H5VLregister_connector_by_name(MemorySegment connector_name, long vipl_id) { + public static long H5VLregister_connector_by_name(MemorySegment connector_name, long vipl_id) + { var mh$ = H5VLregister_connector_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLregister_connector_by_name", connector_name, vipl_id); } return (long)mh$.invokeExact(connector_name, vipl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLregister_connector_by_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLregister_connector_by_value"); @@ -36086,7 +33167,8 @@ private static class H5VLregister_connector_by_value { * hid_t H5VLregister_connector_by_value(H5VL_class_value_t connector_value, hid_t vipl_id) * } */ - public static FunctionDescriptor H5VLregister_connector_by_value$descriptor() { + public static FunctionDescriptor H5VLregister_connector_by_value$descriptor() + { return H5VLregister_connector_by_value.DESC; } @@ -36096,7 +33178,8 @@ private static class H5VLregister_connector_by_value { * hid_t H5VLregister_connector_by_value(H5VL_class_value_t connector_value, hid_t vipl_id) * } */ - public static MethodHandle H5VLregister_connector_by_value$handle() { + public static MethodHandle H5VLregister_connector_by_value$handle() + { return H5VLregister_connector_by_value.HANDLE; } @@ -36106,7 +33189,8 @@ private static class H5VLregister_connector_by_value { * hid_t H5VLregister_connector_by_value(H5VL_class_value_t connector_value, hid_t vipl_id) * } */ - public static MemorySegment H5VLregister_connector_by_value$address() { + public static MemorySegment H5VLregister_connector_by_value$address() + { return H5VLregister_connector_by_value.ADDR; } @@ -36115,23 +33199,22 @@ private static class H5VLregister_connector_by_value { * hid_t H5VLregister_connector_by_value(H5VL_class_value_t connector_value, hid_t vipl_id) * } */ - public static long H5VLregister_connector_by_value(int connector_value, long vipl_id) { + public static long H5VLregister_connector_by_value(int connector_value, long vipl_id) + { var mh$ = H5VLregister_connector_by_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLregister_connector_by_value", connector_value, vipl_id); } return (long)mh$.invokeExact(connector_value, vipl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLis_connector_registered_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLis_connector_registered_by_name"); @@ -36144,7 +33227,8 @@ private static class H5VLis_connector_registered_by_name { * htri_t H5VLis_connector_registered_by_name(const char *name) * } */ - public static FunctionDescriptor H5VLis_connector_registered_by_name$descriptor() { + public static FunctionDescriptor H5VLis_connector_registered_by_name$descriptor() + { return H5VLis_connector_registered_by_name.DESC; } @@ -36154,7 +33238,8 @@ private static class H5VLis_connector_registered_by_name { * htri_t H5VLis_connector_registered_by_name(const char *name) * } */ - public static MethodHandle H5VLis_connector_registered_by_name$handle() { + public static MethodHandle H5VLis_connector_registered_by_name$handle() + { return H5VLis_connector_registered_by_name.HANDLE; } @@ -36164,7 +33249,8 @@ private static class H5VLis_connector_registered_by_name { * htri_t H5VLis_connector_registered_by_name(const char *name) * } */ - public static MemorySegment H5VLis_connector_registered_by_name$address() { + public static MemorySegment H5VLis_connector_registered_by_name$address() + { return H5VLis_connector_registered_by_name.ADDR; } @@ -36173,23 +33259,22 @@ private static class H5VLis_connector_registered_by_name { * htri_t H5VLis_connector_registered_by_name(const char *name) * } */ - public static int H5VLis_connector_registered_by_name(MemorySegment name) { + public static int H5VLis_connector_registered_by_name(MemorySegment name) + { var mh$ = H5VLis_connector_registered_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLis_connector_registered_by_name", name); } return (int)mh$.invokeExact(name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLis_connector_registered_by_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLis_connector_registered_by_value"); @@ -36202,7 +33287,8 @@ private static class H5VLis_connector_registered_by_value { * htri_t H5VLis_connector_registered_by_value(H5VL_class_value_t connector_value) * } */ - public static FunctionDescriptor H5VLis_connector_registered_by_value$descriptor() { + public static FunctionDescriptor H5VLis_connector_registered_by_value$descriptor() + { return H5VLis_connector_registered_by_value.DESC; } @@ -36212,7 +33298,8 @@ private static class H5VLis_connector_registered_by_value { * htri_t H5VLis_connector_registered_by_value(H5VL_class_value_t connector_value) * } */ - public static MethodHandle H5VLis_connector_registered_by_value$handle() { + public static MethodHandle H5VLis_connector_registered_by_value$handle() + { return H5VLis_connector_registered_by_value.HANDLE; } @@ -36222,7 +33309,8 @@ private static class H5VLis_connector_registered_by_value { * htri_t H5VLis_connector_registered_by_value(H5VL_class_value_t connector_value) * } */ - public static MemorySegment H5VLis_connector_registered_by_value$address() { + public static MemorySegment H5VLis_connector_registered_by_value$address() + { return H5VLis_connector_registered_by_value.ADDR; } @@ -36231,23 +33319,22 @@ private static class H5VLis_connector_registered_by_value { * htri_t H5VLis_connector_registered_by_value(H5VL_class_value_t connector_value) * } */ - public static int H5VLis_connector_registered_by_value(int connector_value) { + public static int H5VLis_connector_registered_by_value(int connector_value) + { var mh$ = H5VLis_connector_registered_by_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLis_connector_registered_by_value", connector_value); } return (int)mh$.invokeExact(connector_value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_connector_id { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_connector_id"); @@ -36260,9 +33347,7 @@ private static class H5VLget_connector_id { * hid_t H5VLget_connector_id(hid_t obj_id) * } */ - public static FunctionDescriptor H5VLget_connector_id$descriptor() { - return H5VLget_connector_id.DESC; - } + public static FunctionDescriptor H5VLget_connector_id$descriptor() { return H5VLget_connector_id.DESC; } /** * Downcall method handle for: @@ -36270,9 +33355,7 @@ private static class H5VLget_connector_id { * hid_t H5VLget_connector_id(hid_t obj_id) * } */ - public static MethodHandle H5VLget_connector_id$handle() { - return H5VLget_connector_id.HANDLE; - } + public static MethodHandle H5VLget_connector_id$handle() { return H5VLget_connector_id.HANDLE; } /** * Address for: @@ -36280,32 +33363,29 @@ private static class H5VLget_connector_id { * hid_t H5VLget_connector_id(hid_t obj_id) * } */ - public static MemorySegment H5VLget_connector_id$address() { - return H5VLget_connector_id.ADDR; - } + public static MemorySegment H5VLget_connector_id$address() { return H5VLget_connector_id.ADDR; } /** * {@snippet lang=c : * hid_t H5VLget_connector_id(hid_t obj_id) * } */ - public static long H5VLget_connector_id(long obj_id) { + public static long H5VLget_connector_id(long obj_id) + { var mh$ = H5VLget_connector_id.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_connector_id", obj_id); } return (long)mh$.invokeExact(obj_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_connector_id_by_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_connector_id_by_name"); @@ -36318,7 +33398,8 @@ private static class H5VLget_connector_id_by_name { * hid_t H5VLget_connector_id_by_name(const char *name) * } */ - public static FunctionDescriptor H5VLget_connector_id_by_name$descriptor() { + public static FunctionDescriptor H5VLget_connector_id_by_name$descriptor() + { return H5VLget_connector_id_by_name.DESC; } @@ -36328,7 +33409,8 @@ private static class H5VLget_connector_id_by_name { * hid_t H5VLget_connector_id_by_name(const char *name) * } */ - public static MethodHandle H5VLget_connector_id_by_name$handle() { + public static MethodHandle H5VLget_connector_id_by_name$handle() + { return H5VLget_connector_id_by_name.HANDLE; } @@ -36338,7 +33420,8 @@ private static class H5VLget_connector_id_by_name { * hid_t H5VLget_connector_id_by_name(const char *name) * } */ - public static MemorySegment H5VLget_connector_id_by_name$address() { + public static MemorySegment H5VLget_connector_id_by_name$address() + { return H5VLget_connector_id_by_name.ADDR; } @@ -36347,23 +33430,22 @@ private static class H5VLget_connector_id_by_name { * hid_t H5VLget_connector_id_by_name(const char *name) * } */ - public static long H5VLget_connector_id_by_name(MemorySegment name) { + public static long H5VLget_connector_id_by_name(MemorySegment name) + { var mh$ = H5VLget_connector_id_by_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_connector_id_by_name", name); } return (long)mh$.invokeExact(name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_connector_id_by_value { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_connector_id_by_value"); @@ -36376,7 +33458,8 @@ private static class H5VLget_connector_id_by_value { * hid_t H5VLget_connector_id_by_value(H5VL_class_value_t connector_value) * } */ - public static FunctionDescriptor H5VLget_connector_id_by_value$descriptor() { + public static FunctionDescriptor H5VLget_connector_id_by_value$descriptor() + { return H5VLget_connector_id_by_value.DESC; } @@ -36386,7 +33469,8 @@ private static class H5VLget_connector_id_by_value { * hid_t H5VLget_connector_id_by_value(H5VL_class_value_t connector_value) * } */ - public static MethodHandle H5VLget_connector_id_by_value$handle() { + public static MethodHandle H5VLget_connector_id_by_value$handle() + { return H5VLget_connector_id_by_value.HANDLE; } @@ -36396,7 +33480,8 @@ private static class H5VLget_connector_id_by_value { * hid_t H5VLget_connector_id_by_value(H5VL_class_value_t connector_value) * } */ - public static MemorySegment H5VLget_connector_id_by_value$address() { + public static MemorySegment H5VLget_connector_id_by_value$address() + { return H5VLget_connector_id_by_value.ADDR; } @@ -36405,25 +33490,23 @@ private static class H5VLget_connector_id_by_value { * hid_t H5VLget_connector_id_by_value(H5VL_class_value_t connector_value) * } */ - public static long H5VLget_connector_id_by_value(int connector_value) { + public static long H5VLget_connector_id_by_value(int connector_value) + { var mh$ = H5VLget_connector_id_by_value.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_connector_id_by_value", connector_value); } return (long)mh$.invokeExact(connector_value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_connector_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_connector_name"); @@ -36436,7 +33519,8 @@ private static class H5VLget_connector_name { * ssize_t H5VLget_connector_name(hid_t id, char *name, size_t size) * } */ - public static FunctionDescriptor H5VLget_connector_name$descriptor() { + public static FunctionDescriptor H5VLget_connector_name$descriptor() + { return H5VLget_connector_name.DESC; } @@ -36446,9 +33530,7 @@ private static class H5VLget_connector_name { * ssize_t H5VLget_connector_name(hid_t id, char *name, size_t size) * } */ - public static MethodHandle H5VLget_connector_name$handle() { - return H5VLget_connector_name.HANDLE; - } + public static MethodHandle H5VLget_connector_name$handle() { return H5VLget_connector_name.HANDLE; } /** * Address for: @@ -36456,32 +33538,29 @@ private static class H5VLget_connector_name { * ssize_t H5VLget_connector_name(hid_t id, char *name, size_t size) * } */ - public static MemorySegment H5VLget_connector_name$address() { - return H5VLget_connector_name.ADDR; - } + public static MemorySegment H5VLget_connector_name$address() { return H5VLget_connector_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5VLget_connector_name(hid_t id, char *name, size_t size) * } */ - public static long H5VLget_connector_name(long id, MemorySegment name, long size) { + public static long H5VLget_connector_name(long id, MemorySegment name, long size) + { var mh$ = H5VLget_connector_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_connector_name", id, name, size); } return (long)mh$.invokeExact(id, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLclose"); @@ -36494,9 +33573,7 @@ private static class H5VLclose { * herr_t H5VLclose(hid_t connector_id) * } */ - public static FunctionDescriptor H5VLclose$descriptor() { - return H5VLclose.DESC; - } + public static FunctionDescriptor H5VLclose$descriptor() { return H5VLclose.DESC; } /** * Downcall method handle for: @@ -36504,9 +33581,7 @@ private static class H5VLclose { * herr_t H5VLclose(hid_t connector_id) * } */ - public static MethodHandle H5VLclose$handle() { - return H5VLclose.HANDLE; - } + public static MethodHandle H5VLclose$handle() { return H5VLclose.HANDLE; } /** * Address for: @@ -36514,32 +33589,29 @@ private static class H5VLclose { * herr_t H5VLclose(hid_t connector_id) * } */ - public static MemorySegment H5VLclose$address() { - return H5VLclose.ADDR; - } + public static MemorySegment H5VLclose$address() { return H5VLclose.ADDR; } /** * {@snippet lang=c : * herr_t H5VLclose(hid_t connector_id) * } */ - public static int H5VLclose(long connector_id) { + public static int H5VLclose(long connector_id) + { var mh$ = H5VLclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLclose", connector_id); } return (int)mh$.invokeExact(connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLunregister_connector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLunregister_connector"); @@ -36552,7 +33624,8 @@ private static class H5VLunregister_connector { * herr_t H5VLunregister_connector(hid_t connector_id) * } */ - public static FunctionDescriptor H5VLunregister_connector$descriptor() { + public static FunctionDescriptor H5VLunregister_connector$descriptor() + { return H5VLunregister_connector.DESC; } @@ -36562,9 +33635,7 @@ private static class H5VLunregister_connector { * herr_t H5VLunregister_connector(hid_t connector_id) * } */ - public static MethodHandle H5VLunregister_connector$handle() { - return H5VLunregister_connector.HANDLE; - } + public static MethodHandle H5VLunregister_connector$handle() { return H5VLunregister_connector.HANDLE; } /** * Address for: @@ -36572,35 +33643,30 @@ private static class H5VLunregister_connector { * herr_t H5VLunregister_connector(hid_t connector_id) * } */ - public static MemorySegment H5VLunregister_connector$address() { - return H5VLunregister_connector.ADDR; - } + public static MemorySegment H5VLunregister_connector$address() { return H5VLunregister_connector.ADDR; } /** * {@snippet lang=c : * herr_t H5VLunregister_connector(hid_t connector_id) * } */ - public static int H5VLunregister_connector(long connector_id) { + public static int H5VLunregister_connector(long connector_id) + { var mh$ = H5VLunregister_connector.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLunregister_connector", connector_id); } return (int)mh$.invokeExact(connector_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLquery_optional { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLquery_optional"); @@ -36613,9 +33679,7 @@ private static class H5VLquery_optional { * herr_t H5VLquery_optional(hid_t obj_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) * } */ - public static FunctionDescriptor H5VLquery_optional$descriptor() { - return H5VLquery_optional.DESC; - } + public static FunctionDescriptor H5VLquery_optional$descriptor() { return H5VLquery_optional.DESC; } /** * Downcall method handle for: @@ -36623,9 +33687,7 @@ private static class H5VLquery_optional { * herr_t H5VLquery_optional(hid_t obj_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) * } */ - public static MethodHandle H5VLquery_optional$handle() { - return H5VLquery_optional.HANDLE; - } + public static MethodHandle H5VLquery_optional$handle() { return H5VLquery_optional.HANDLE; } /** * Address for: @@ -36633,33 +33695,30 @@ private static class H5VLquery_optional { * herr_t H5VLquery_optional(hid_t obj_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) * } */ - public static MemorySegment H5VLquery_optional$address() { - return H5VLquery_optional.ADDR; - } + public static MemorySegment H5VLquery_optional$address() { return H5VLquery_optional.ADDR; } /** * {@snippet lang=c : * herr_t H5VLquery_optional(hid_t obj_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags) * } */ - public static int H5VLquery_optional(long obj_id, int subcls, int opt_type, MemorySegment flags) { + public static int H5VLquery_optional(long obj_id, int subcls, int opt_type, MemorySegment flags) + { var mh$ = H5VLquery_optional.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLquery_optional", obj_id, subcls, opt_type, flags); } return (int)mh$.invokeExact(obj_id, subcls, opt_type, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_is_native { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_is_native"); @@ -36672,9 +33731,7 @@ private static class H5VLobject_is_native { * herr_t H5VLobject_is_native(hid_t obj_id, hbool_t *is_native) * } */ - public static FunctionDescriptor H5VLobject_is_native$descriptor() { - return H5VLobject_is_native.DESC; - } + public static FunctionDescriptor H5VLobject_is_native$descriptor() { return H5VLobject_is_native.DESC; } /** * Downcall method handle for: @@ -36682,9 +33739,7 @@ private static class H5VLobject_is_native { * herr_t H5VLobject_is_native(hid_t obj_id, hbool_t *is_native) * } */ - public static MethodHandle H5VLobject_is_native$handle() { - return H5VLobject_is_native.HANDLE; - } + public static MethodHandle H5VLobject_is_native$handle() { return H5VLobject_is_native.HANDLE; } /** * Address for: @@ -36692,24 +33747,24 @@ private static class H5VLobject_is_native { * herr_t H5VLobject_is_native(hid_t obj_id, hbool_t *is_native) * } */ - public static MemorySegment H5VLobject_is_native$address() { - return H5VLobject_is_native.ADDR; - } + public static MemorySegment H5VLobject_is_native$address() { return H5VLobject_is_native.ADDR; } /** * {@snippet lang=c : * herr_t H5VLobject_is_native(hid_t obj_id, hbool_t *is_native) * } */ - public static int H5VLobject_is_native(long obj_id, MemorySegment is_native) { + public static int H5VLobject_is_native(long obj_id, MemorySegment is_native) + { var mh$ = H5VLobject_is_native.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject_is_native", obj_id, is_native); } return (int)mh$.invokeExact(obj_id, is_native); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5R_BADTYPE = (int)-1L; @@ -36718,63 +33773,49 @@ public static int H5VLobject_is_native(long obj_id, MemorySegment is_native) { * enum .H5R_BADTYPE = -1 * } */ - public static int H5R_BADTYPE() { - return H5R_BADTYPE; - } + public static int H5R_BADTYPE() { return H5R_BADTYPE; } private static final int H5R_OBJECT1 = (int)0L; /** * {@snippet lang=c : * enum .H5R_OBJECT1 = 0 * } */ - public static int H5R_OBJECT1() { - return H5R_OBJECT1; - } + public static int H5R_OBJECT1() { return H5R_OBJECT1; } private static final int H5R_DATASET_REGION1 = (int)1L; /** * {@snippet lang=c : * enum .H5R_DATASET_REGION1 = 1 * } */ - public static int H5R_DATASET_REGION1() { - return H5R_DATASET_REGION1; - } + public static int H5R_DATASET_REGION1() { return H5R_DATASET_REGION1; } private static final int H5R_OBJECT2 = (int)2L; /** * {@snippet lang=c : * enum .H5R_OBJECT2 = 2 * } */ - public static int H5R_OBJECT2() { - return H5R_OBJECT2; - } + public static int H5R_OBJECT2() { return H5R_OBJECT2; } private static final int H5R_DATASET_REGION2 = (int)3L; /** * {@snippet lang=c : * enum .H5R_DATASET_REGION2 = 3 * } */ - public static int H5R_DATASET_REGION2() { - return H5R_DATASET_REGION2; - } + public static int H5R_DATASET_REGION2() { return H5R_DATASET_REGION2; } private static final int H5R_ATTR = (int)4L; /** * {@snippet lang=c : * enum .H5R_ATTR = 4 * } */ - public static int H5R_ATTR() { - return H5R_ATTR; - } + public static int H5R_ATTR() { return H5R_ATTR; } private static final int H5R_MAXTYPE = (int)5L; /** * {@snippet lang=c : * enum .H5R_MAXTYPE = 5 * } */ - public static int H5R_MAXTYPE() { - return H5R_MAXTYPE; - } + public static int H5R_MAXTYPE() { return H5R_MAXTYPE; } /** * {@snippet lang=c : * typedef haddr_t hobj_ref_t @@ -36784,12 +33825,7 @@ public static int H5R_MAXTYPE() { private static class H5Rcreate_object { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rcreate_object"); @@ -36802,9 +33838,7 @@ private static class H5Rcreate_object { * herr_t H5Rcreate_object(hid_t loc_id, const char *name, hid_t oapl_id, H5R_ref_t *ref_ptr) * } */ - public static FunctionDescriptor H5Rcreate_object$descriptor() { - return H5Rcreate_object.DESC; - } + public static FunctionDescriptor H5Rcreate_object$descriptor() { return H5Rcreate_object.DESC; } /** * Downcall method handle for: @@ -36812,9 +33846,7 @@ private static class H5Rcreate_object { * herr_t H5Rcreate_object(hid_t loc_id, const char *name, hid_t oapl_id, H5R_ref_t *ref_ptr) * } */ - public static MethodHandle H5Rcreate_object$handle() { - return H5Rcreate_object.HANDLE; - } + public static MethodHandle H5Rcreate_object$handle() { return H5Rcreate_object.HANDLE; } /** * Address for: @@ -36822,36 +33854,30 @@ private static class H5Rcreate_object { * herr_t H5Rcreate_object(hid_t loc_id, const char *name, hid_t oapl_id, H5R_ref_t *ref_ptr) * } */ - public static MemorySegment H5Rcreate_object$address() { - return H5Rcreate_object.ADDR; - } + public static MemorySegment H5Rcreate_object$address() { return H5Rcreate_object.ADDR; } /** * {@snippet lang=c : * herr_t H5Rcreate_object(hid_t loc_id, const char *name, hid_t oapl_id, H5R_ref_t *ref_ptr) * } */ - public static int H5Rcreate_object(long loc_id, MemorySegment name, long oapl_id, MemorySegment ref_ptr) { + public static int H5Rcreate_object(long loc_id, MemorySegment name, long oapl_id, MemorySegment ref_ptr) + { var mh$ = H5Rcreate_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rcreate_object", loc_id, name, oapl_id, ref_ptr); } return (int)mh$.invokeExact(loc_id, name, oapl_id, ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rcreate_region { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rcreate_region"); @@ -36861,59 +33887,54 @@ private static class H5Rcreate_region { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static FunctionDescriptor H5Rcreate_region$descriptor() { - return H5Rcreate_region.DESC; - } + public static FunctionDescriptor H5Rcreate_region$descriptor() { return H5Rcreate_region.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static MethodHandle H5Rcreate_region$handle() { - return H5Rcreate_region.HANDLE; - } + public static MethodHandle H5Rcreate_region$handle() { return H5Rcreate_region.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static MemorySegment H5Rcreate_region$address() { - return H5Rcreate_region.ADDR; - } + public static MemorySegment H5Rcreate_region$address() { return H5Rcreate_region.ADDR; } /** * {@snippet lang=c : - * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_region(hid_t loc_id, const char *name, hid_t space_id, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static int H5Rcreate_region(long loc_id, MemorySegment name, long space_id, long oapl_id, MemorySegment ref_ptr) { + public static int H5Rcreate_region(long loc_id, MemorySegment name, long space_id, long oapl_id, + MemorySegment ref_ptr) + { var mh$ = H5Rcreate_region.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rcreate_region", loc_id, name, space_id, oapl_id, ref_ptr); } return (int)mh$.invokeExact(loc_id, name, space_id, oapl_id, ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rcreate_attr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rcreate_attr"); @@ -36923,55 +33944,53 @@ private static class H5Rcreate_attr { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static FunctionDescriptor H5Rcreate_attr$descriptor() { - return H5Rcreate_attr.DESC; - } + public static FunctionDescriptor H5Rcreate_attr$descriptor() { return H5Rcreate_attr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static MethodHandle H5Rcreate_attr$handle() { - return H5Rcreate_attr.HANDLE; - } + public static MethodHandle H5Rcreate_attr$handle() { return H5Rcreate_attr.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static MemorySegment H5Rcreate_attr$address() { - return H5Rcreate_attr.ADDR; - } + public static MemorySegment H5Rcreate_attr$address() { return H5Rcreate_attr.ADDR; } /** * {@snippet lang=c : - * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t *ref_ptr) + * herr_t H5Rcreate_attr(hid_t loc_id, const char *name, const char *attr_name, hid_t oapl_id, H5R_ref_t + * *ref_ptr) * } */ - public static int H5Rcreate_attr(long loc_id, MemorySegment name, MemorySegment attr_name, long oapl_id, MemorySegment ref_ptr) { + public static int H5Rcreate_attr(long loc_id, MemorySegment name, MemorySegment attr_name, long oapl_id, + MemorySegment ref_ptr) + { var mh$ = H5Rcreate_attr.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rcreate_attr", loc_id, name, attr_name, oapl_id, ref_ptr); } return (int)mh$.invokeExact(loc_id, name, attr_name, oapl_id, ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rdestroy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rdestroy"); @@ -36984,9 +34003,7 @@ private static class H5Rdestroy { * herr_t H5Rdestroy(H5R_ref_t *ref_ptr) * } */ - public static FunctionDescriptor H5Rdestroy$descriptor() { - return H5Rdestroy.DESC; - } + public static FunctionDescriptor H5Rdestroy$descriptor() { return H5Rdestroy.DESC; } /** * Downcall method handle for: @@ -36994,9 +34011,7 @@ private static class H5Rdestroy { * herr_t H5Rdestroy(H5R_ref_t *ref_ptr) * } */ - public static MethodHandle H5Rdestroy$handle() { - return H5Rdestroy.HANDLE; - } + public static MethodHandle H5Rdestroy$handle() { return H5Rdestroy.HANDLE; } /** * Address for: @@ -37004,32 +34019,29 @@ private static class H5Rdestroy { * herr_t H5Rdestroy(H5R_ref_t *ref_ptr) * } */ - public static MemorySegment H5Rdestroy$address() { - return H5Rdestroy.ADDR; - } + public static MemorySegment H5Rdestroy$address() { return H5Rdestroy.ADDR; } /** * {@snippet lang=c : * herr_t H5Rdestroy(H5R_ref_t *ref_ptr) * } */ - public static int H5Rdestroy(MemorySegment ref_ptr) { + public static int H5Rdestroy(MemorySegment ref_ptr) + { var mh$ = H5Rdestroy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rdestroy", ref_ptr); } return (int)mh$.invokeExact(ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_type"); @@ -37042,9 +34054,7 @@ private static class H5Rget_type { * H5R_type_t H5Rget_type(const H5R_ref_t *ref_ptr) * } */ - public static FunctionDescriptor H5Rget_type$descriptor() { - return H5Rget_type.DESC; - } + public static FunctionDescriptor H5Rget_type$descriptor() { return H5Rget_type.DESC; } /** * Downcall method handle for: @@ -37052,9 +34062,7 @@ private static class H5Rget_type { * H5R_type_t H5Rget_type(const H5R_ref_t *ref_ptr) * } */ - public static MethodHandle H5Rget_type$handle() { - return H5Rget_type.HANDLE; - } + public static MethodHandle H5Rget_type$handle() { return H5Rget_type.HANDLE; } /** * Address for: @@ -37062,33 +34070,30 @@ private static class H5Rget_type { * H5R_type_t H5Rget_type(const H5R_ref_t *ref_ptr) * } */ - public static MemorySegment H5Rget_type$address() { - return H5Rget_type.ADDR; - } + public static MemorySegment H5Rget_type$address() { return H5Rget_type.ADDR; } /** * {@snippet lang=c : * H5R_type_t H5Rget_type(const H5R_ref_t *ref_ptr) * } */ - public static int H5Rget_type(MemorySegment ref_ptr) { + public static int H5Rget_type(MemorySegment ref_ptr) + { var mh$ = H5Rget_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_type", ref_ptr); } return (int)mh$.invokeExact(ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Requal { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Requal"); @@ -37101,9 +34106,7 @@ private static class H5Requal { * htri_t H5Requal(const H5R_ref_t *ref1_ptr, const H5R_ref_t *ref2_ptr) * } */ - public static FunctionDescriptor H5Requal$descriptor() { - return H5Requal.DESC; - } + public static FunctionDescriptor H5Requal$descriptor() { return H5Requal.DESC; } /** * Downcall method handle for: @@ -37111,9 +34114,7 @@ private static class H5Requal { * htri_t H5Requal(const H5R_ref_t *ref1_ptr, const H5R_ref_t *ref2_ptr) * } */ - public static MethodHandle H5Requal$handle() { - return H5Requal.HANDLE; - } + public static MethodHandle H5Requal$handle() { return H5Requal.HANDLE; } /** * Address for: @@ -37121,33 +34122,30 @@ private static class H5Requal { * htri_t H5Requal(const H5R_ref_t *ref1_ptr, const H5R_ref_t *ref2_ptr) * } */ - public static MemorySegment H5Requal$address() { - return H5Requal.ADDR; - } + public static MemorySegment H5Requal$address() { return H5Requal.ADDR; } /** * {@snippet lang=c : * htri_t H5Requal(const H5R_ref_t *ref1_ptr, const H5R_ref_t *ref2_ptr) * } */ - public static int H5Requal(MemorySegment ref1_ptr, MemorySegment ref2_ptr) { + public static int H5Requal(MemorySegment ref1_ptr, MemorySegment ref2_ptr) + { var mh$ = H5Requal.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Requal", ref1_ptr, ref2_ptr); } return (int)mh$.invokeExact(ref1_ptr, ref2_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rcopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rcopy"); @@ -37160,9 +34158,7 @@ private static class H5Rcopy { * herr_t H5Rcopy(const H5R_ref_t *src_ref_ptr, H5R_ref_t *dst_ref_ptr) * } */ - public static FunctionDescriptor H5Rcopy$descriptor() { - return H5Rcopy.DESC; - } + public static FunctionDescriptor H5Rcopy$descriptor() { return H5Rcopy.DESC; } /** * Downcall method handle for: @@ -37170,9 +34166,7 @@ private static class H5Rcopy { * herr_t H5Rcopy(const H5R_ref_t *src_ref_ptr, H5R_ref_t *dst_ref_ptr) * } */ - public static MethodHandle H5Rcopy$handle() { - return H5Rcopy.HANDLE; - } + public static MethodHandle H5Rcopy$handle() { return H5Rcopy.HANDLE; } /** * Address for: @@ -37180,34 +34174,30 @@ private static class H5Rcopy { * herr_t H5Rcopy(const H5R_ref_t *src_ref_ptr, H5R_ref_t *dst_ref_ptr) * } */ - public static MemorySegment H5Rcopy$address() { - return H5Rcopy.ADDR; - } + public static MemorySegment H5Rcopy$address() { return H5Rcopy.ADDR; } /** * {@snippet lang=c : * herr_t H5Rcopy(const H5R_ref_t *src_ref_ptr, H5R_ref_t *dst_ref_ptr) * } */ - public static int H5Rcopy(MemorySegment src_ref_ptr, MemorySegment dst_ref_ptr) { + public static int H5Rcopy(MemorySegment src_ref_ptr, MemorySegment dst_ref_ptr) + { var mh$ = H5Rcopy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rcopy", src_ref_ptr, dst_ref_ptr); } return (int)mh$.invokeExact(src_ref_ptr, dst_ref_ptr); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_object { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_object"); @@ -37220,9 +34210,7 @@ private static class H5Ropen_object { * hid_t H5Ropen_object(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static FunctionDescriptor H5Ropen_object$descriptor() { - return H5Ropen_object.DESC; - } + public static FunctionDescriptor H5Ropen_object$descriptor() { return H5Ropen_object.DESC; } /** * Downcall method handle for: @@ -37230,9 +34218,7 @@ private static class H5Ropen_object { * hid_t H5Ropen_object(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static MethodHandle H5Ropen_object$handle() { - return H5Ropen_object.HANDLE; - } + public static MethodHandle H5Ropen_object$handle() { return H5Ropen_object.HANDLE; } /** * Address for: @@ -37240,38 +34226,31 @@ private static class H5Ropen_object { * hid_t H5Ropen_object(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static MemorySegment H5Ropen_object$address() { - return H5Ropen_object.ADDR; - } + public static MemorySegment H5Ropen_object$address() { return H5Ropen_object.ADDR; } /** * {@snippet lang=c : * hid_t H5Ropen_object(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static long H5Ropen_object(MemorySegment ref_ptr, long rapl_id, long oapl_id) { + public static long H5Ropen_object(MemorySegment ref_ptr, long rapl_id, long oapl_id) + { var mh$ = H5Ropen_object.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ropen_object", ref_ptr, rapl_id, oapl_id); } return (long)mh$.invokeExact(ref_ptr, rapl_id, oapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_object_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_object_async"); @@ -37281,57 +34260,55 @@ private static class H5Ropen_object_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Ropen_object_async$descriptor() { - return H5Ropen_object_async.DESC; - } + public static FunctionDescriptor H5Ropen_object_async$descriptor() { return H5Ropen_object_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static MethodHandle H5Ropen_object_async$handle() { - return H5Ropen_object_async.HANDLE; - } + public static MethodHandle H5Ropen_object_async$handle() { return H5Ropen_object_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static MemorySegment H5Ropen_object_async$address() { - return H5Ropen_object_async.ADDR; - } + public static MemorySegment H5Ropen_object_async$address() { return H5Ropen_object_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_object_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static long H5Ropen_object_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment ref_ptr, long rapl_id, long oapl_id, long es_id) { + public static long H5Ropen_object_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment ref_ptr, long rapl_id, long oapl_id, long es_id) + { var mh$ = H5Ropen_object_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Ropen_object_async", app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, es_id); + traceDowncall("H5Ropen_object_async", app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, + es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_region { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_region"); @@ -37344,9 +34321,7 @@ private static class H5Ropen_region { * hid_t H5Ropen_region(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static FunctionDescriptor H5Ropen_region$descriptor() { - return H5Ropen_region.DESC; - } + public static FunctionDescriptor H5Ropen_region$descriptor() { return H5Ropen_region.DESC; } /** * Downcall method handle for: @@ -37354,9 +34329,7 @@ private static class H5Ropen_region { * hid_t H5Ropen_region(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static MethodHandle H5Ropen_region$handle() { - return H5Ropen_region.HANDLE; - } + public static MethodHandle H5Ropen_region$handle() { return H5Ropen_region.HANDLE; } /** * Address for: @@ -37364,38 +34337,31 @@ private static class H5Ropen_region { * hid_t H5Ropen_region(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static MemorySegment H5Ropen_region$address() { - return H5Ropen_region.ADDR; - } + public static MemorySegment H5Ropen_region$address() { return H5Ropen_region.ADDR; } /** * {@snippet lang=c : * hid_t H5Ropen_region(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id) * } */ - public static long H5Ropen_region(MemorySegment ref_ptr, long rapl_id, long oapl_id) { + public static long H5Ropen_region(MemorySegment ref_ptr, long rapl_id, long oapl_id) + { var mh$ = H5Ropen_region.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ropen_region", ref_ptr, rapl_id, oapl_id); } return (long)mh$.invokeExact(ref_ptr, rapl_id, oapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_region_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_region_async"); @@ -37405,57 +34371,55 @@ private static class H5Ropen_region_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Ropen_region_async$descriptor() { - return H5Ropen_region_async.DESC; - } + public static FunctionDescriptor H5Ropen_region_async$descriptor() { return H5Ropen_region_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static MethodHandle H5Ropen_region_async$handle() { - return H5Ropen_region_async.HANDLE; - } + public static MethodHandle H5Ropen_region_async$handle() { return H5Ropen_region_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static MemorySegment H5Ropen_region_async$address() { - return H5Ropen_region_async.ADDR; - } + public static MemorySegment H5Ropen_region_async$address() { return H5Ropen_region_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) + * hid_t H5Ropen_region_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t oapl_id, hid_t es_id) * } */ - public static long H5Ropen_region_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment ref_ptr, long rapl_id, long oapl_id, long es_id) { + public static long H5Ropen_region_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment ref_ptr, long rapl_id, long oapl_id, long es_id) + { var mh$ = H5Ropen_region_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Ropen_region_async", app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, es_id); + traceDowncall("H5Ropen_region_async", app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, + es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, ref_ptr, rapl_id, oapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_attr { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_attr"); @@ -37468,9 +34432,7 @@ private static class H5Ropen_attr { * hid_t H5Ropen_attr(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id) * } */ - public static FunctionDescriptor H5Ropen_attr$descriptor() { - return H5Ropen_attr.DESC; - } + public static FunctionDescriptor H5Ropen_attr$descriptor() { return H5Ropen_attr.DESC; } /** * Downcall method handle for: @@ -37478,9 +34440,7 @@ private static class H5Ropen_attr { * hid_t H5Ropen_attr(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id) * } */ - public static MethodHandle H5Ropen_attr$handle() { - return H5Ropen_attr.HANDLE; - } + public static MethodHandle H5Ropen_attr$handle() { return H5Ropen_attr.HANDLE; } /** * Address for: @@ -37488,38 +34448,31 @@ private static class H5Ropen_attr { * hid_t H5Ropen_attr(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id) * } */ - public static MemorySegment H5Ropen_attr$address() { - return H5Ropen_attr.ADDR; - } + public static MemorySegment H5Ropen_attr$address() { return H5Ropen_attr.ADDR; } /** * {@snippet lang=c : * hid_t H5Ropen_attr(H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id) * } */ - public static long H5Ropen_attr(MemorySegment ref_ptr, long rapl_id, long aapl_id) { + public static long H5Ropen_attr(MemorySegment ref_ptr, long rapl_id, long aapl_id) + { var mh$ = H5Ropen_attr.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ropen_attr", ref_ptr, rapl_id, aapl_id); } return (long)mh$.invokeExact(ref_ptr, rapl_id, aapl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ropen_attr_async { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ropen_attr_async"); @@ -37529,57 +34482,55 @@ private static class H5Ropen_attr_async { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5Ropen_attr_async$descriptor() { - return H5Ropen_attr_async.DESC; - } + public static FunctionDescriptor H5Ropen_attr_async$descriptor() { return H5Ropen_attr_async.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) * } */ - public static MethodHandle H5Ropen_attr_async$handle() { - return H5Ropen_attr_async.HANDLE; - } + public static MethodHandle H5Ropen_attr_async$handle() { return H5Ropen_attr_async.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) * } */ - public static MemorySegment H5Ropen_attr_async$address() { - return H5Ropen_attr_async.ADDR; - } + public static MemorySegment H5Ropen_attr_async$address() { return H5Ropen_attr_async.ADDR; } /** * {@snippet lang=c : - * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) + * hid_t H5Ropen_attr_async(const char *app_file, const char *app_func, unsigned int app_line, H5R_ref_t + * *ref_ptr, hid_t rapl_id, hid_t aapl_id, hid_t es_id) * } */ - public static long H5Ropen_attr_async(MemorySegment app_file, MemorySegment app_func, int app_line, MemorySegment ref_ptr, long rapl_id, long aapl_id, long es_id) { + public static long H5Ropen_attr_async(MemorySegment app_file, MemorySegment app_func, int app_line, + MemorySegment ref_ptr, long rapl_id, long aapl_id, long es_id) + { var mh$ = H5Ropen_attr_async.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Ropen_attr_async", app_file, app_func, app_line, ref_ptr, rapl_id, aapl_id, es_id); + traceDowncall("H5Ropen_attr_async", app_file, app_func, app_line, ref_ptr, rapl_id, aapl_id, + es_id); } return (long)mh$.invokeExact(app_file, app_func, app_line, ref_ptr, rapl_id, aapl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_obj_type3 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_obj_type3"); @@ -37592,9 +34543,7 @@ private static class H5Rget_obj_type3 { * herr_t H5Rget_obj_type3(H5R_ref_t *ref_ptr, hid_t rapl_id, H5O_type_t *obj_type) * } */ - public static FunctionDescriptor H5Rget_obj_type3$descriptor() { - return H5Rget_obj_type3.DESC; - } + public static FunctionDescriptor H5Rget_obj_type3$descriptor() { return H5Rget_obj_type3.DESC; } /** * Downcall method handle for: @@ -37602,9 +34551,7 @@ private static class H5Rget_obj_type3 { * herr_t H5Rget_obj_type3(H5R_ref_t *ref_ptr, hid_t rapl_id, H5O_type_t *obj_type) * } */ - public static MethodHandle H5Rget_obj_type3$handle() { - return H5Rget_obj_type3.HANDLE; - } + public static MethodHandle H5Rget_obj_type3$handle() { return H5Rget_obj_type3.HANDLE; } /** * Address for: @@ -37612,34 +34559,30 @@ private static class H5Rget_obj_type3 { * herr_t H5Rget_obj_type3(H5R_ref_t *ref_ptr, hid_t rapl_id, H5O_type_t *obj_type) * } */ - public static MemorySegment H5Rget_obj_type3$address() { - return H5Rget_obj_type3.ADDR; - } + public static MemorySegment H5Rget_obj_type3$address() { return H5Rget_obj_type3.ADDR; } /** * {@snippet lang=c : * herr_t H5Rget_obj_type3(H5R_ref_t *ref_ptr, hid_t rapl_id, H5O_type_t *obj_type) * } */ - public static int H5Rget_obj_type3(MemorySegment ref_ptr, long rapl_id, MemorySegment obj_type) { + public static int H5Rget_obj_type3(MemorySegment ref_ptr, long rapl_id, MemorySegment obj_type) + { var mh$ = H5Rget_obj_type3.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_obj_type3", ref_ptr, rapl_id, obj_type); } return (int)mh$.invokeExact(ref_ptr, rapl_id, obj_type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_file_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_file_name"); @@ -37652,9 +34595,7 @@ private static class H5Rget_file_name { * ssize_t H5Rget_file_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static FunctionDescriptor H5Rget_file_name$descriptor() { - return H5Rget_file_name.DESC; - } + public static FunctionDescriptor H5Rget_file_name$descriptor() { return H5Rget_file_name.DESC; } /** * Downcall method handle for: @@ -37662,9 +34603,7 @@ private static class H5Rget_file_name { * ssize_t H5Rget_file_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static MethodHandle H5Rget_file_name$handle() { - return H5Rget_file_name.HANDLE; - } + public static MethodHandle H5Rget_file_name$handle() { return H5Rget_file_name.HANDLE; } /** * Address for: @@ -37672,35 +34611,30 @@ private static class H5Rget_file_name { * ssize_t H5Rget_file_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static MemorySegment H5Rget_file_name$address() { - return H5Rget_file_name.ADDR; - } + public static MemorySegment H5Rget_file_name$address() { return H5Rget_file_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Rget_file_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static long H5Rget_file_name(MemorySegment ref_ptr, MemorySegment name, long size) { + public static long H5Rget_file_name(MemorySegment ref_ptr, MemorySegment name, long size) + { var mh$ = H5Rget_file_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_file_name", ref_ptr, name, size); } return (long)mh$.invokeExact(ref_ptr, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_obj_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_obj_name"); @@ -37713,9 +34647,7 @@ private static class H5Rget_obj_name { * ssize_t H5Rget_obj_name(H5R_ref_t *ref_ptr, hid_t rapl_id, char *name, size_t size) * } */ - public static FunctionDescriptor H5Rget_obj_name$descriptor() { - return H5Rget_obj_name.DESC; - } + public static FunctionDescriptor H5Rget_obj_name$descriptor() { return H5Rget_obj_name.DESC; } /** * Downcall method handle for: @@ -37723,9 +34655,7 @@ private static class H5Rget_obj_name { * ssize_t H5Rget_obj_name(H5R_ref_t *ref_ptr, hid_t rapl_id, char *name, size_t size) * } */ - public static MethodHandle H5Rget_obj_name$handle() { - return H5Rget_obj_name.HANDLE; - } + public static MethodHandle H5Rget_obj_name$handle() { return H5Rget_obj_name.HANDLE; } /** * Address for: @@ -37733,34 +34663,30 @@ private static class H5Rget_obj_name { * ssize_t H5Rget_obj_name(H5R_ref_t *ref_ptr, hid_t rapl_id, char *name, size_t size) * } */ - public static MemorySegment H5Rget_obj_name$address() { - return H5Rget_obj_name.ADDR; - } + public static MemorySegment H5Rget_obj_name$address() { return H5Rget_obj_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Rget_obj_name(H5R_ref_t *ref_ptr, hid_t rapl_id, char *name, size_t size) * } */ - public static long H5Rget_obj_name(MemorySegment ref_ptr, long rapl_id, MemorySegment name, long size) { + public static long H5Rget_obj_name(MemorySegment ref_ptr, long rapl_id, MemorySegment name, long size) + { var mh$ = H5Rget_obj_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_obj_name", ref_ptr, rapl_id, name, size); } return (long)mh$.invokeExact(ref_ptr, rapl_id, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_attr_name { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_attr_name"); @@ -37773,9 +34699,7 @@ private static class H5Rget_attr_name { * ssize_t H5Rget_attr_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static FunctionDescriptor H5Rget_attr_name$descriptor() { - return H5Rget_attr_name.DESC; - } + public static FunctionDescriptor H5Rget_attr_name$descriptor() { return H5Rget_attr_name.DESC; } /** * Downcall method handle for: @@ -37783,9 +34707,7 @@ private static class H5Rget_attr_name { * ssize_t H5Rget_attr_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static MethodHandle H5Rget_attr_name$handle() { - return H5Rget_attr_name.HANDLE; - } + public static MethodHandle H5Rget_attr_name$handle() { return H5Rget_attr_name.HANDLE; } /** * Address for: @@ -37793,34 +34715,30 @@ private static class H5Rget_attr_name { * ssize_t H5Rget_attr_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static MemorySegment H5Rget_attr_name$address() { - return H5Rget_attr_name.ADDR; - } + public static MemorySegment H5Rget_attr_name$address() { return H5Rget_attr_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Rget_attr_name(const H5R_ref_t *ref_ptr, char *name, size_t size) * } */ - public static long H5Rget_attr_name(MemorySegment ref_ptr, MemorySegment name, long size) { + public static long H5Rget_attr_name(MemorySegment ref_ptr, MemorySegment name, long size) + { var mh$ = H5Rget_attr_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_attr_name", ref_ptr, name, size); } return (long)mh$.invokeExact(ref_ptr, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_obj_type1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_obj_type1"); @@ -37833,9 +34751,7 @@ private static class H5Rget_obj_type1 { * H5G_obj_t H5Rget_obj_type1(hid_t id, H5R_type_t ref_type, const void *ref) * } */ - public static FunctionDescriptor H5Rget_obj_type1$descriptor() { - return H5Rget_obj_type1.DESC; - } + public static FunctionDescriptor H5Rget_obj_type1$descriptor() { return H5Rget_obj_type1.DESC; } /** * Downcall method handle for: @@ -37843,9 +34759,7 @@ private static class H5Rget_obj_type1 { * H5G_obj_t H5Rget_obj_type1(hid_t id, H5R_type_t ref_type, const void *ref) * } */ - public static MethodHandle H5Rget_obj_type1$handle() { - return H5Rget_obj_type1.HANDLE; - } + public static MethodHandle H5Rget_obj_type1$handle() { return H5Rget_obj_type1.HANDLE; } /** * Address for: @@ -37853,34 +34767,30 @@ private static class H5Rget_obj_type1 { * H5G_obj_t H5Rget_obj_type1(hid_t id, H5R_type_t ref_type, const void *ref) * } */ - public static MemorySegment H5Rget_obj_type1$address() { - return H5Rget_obj_type1.ADDR; - } + public static MemorySegment H5Rget_obj_type1$address() { return H5Rget_obj_type1.ADDR; } /** * {@snippet lang=c : * H5G_obj_t H5Rget_obj_type1(hid_t id, H5R_type_t ref_type, const void *ref) * } */ - public static int H5Rget_obj_type1(long id, int ref_type, MemorySegment ref) { + public static int H5Rget_obj_type1(long id, int ref_type, MemorySegment ref) + { var mh$ = H5Rget_obj_type1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_obj_type1", id, ref_type, ref); } return (int)mh$.invokeExact(id, ref_type, ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rdereference1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rdereference1"); @@ -37893,9 +34803,7 @@ private static class H5Rdereference1 { * hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref) * } */ - public static FunctionDescriptor H5Rdereference1$descriptor() { - return H5Rdereference1.DESC; - } + public static FunctionDescriptor H5Rdereference1$descriptor() { return H5Rdereference1.DESC; } /** * Downcall method handle for: @@ -37903,9 +34811,7 @@ private static class H5Rdereference1 { * hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref) * } */ - public static MethodHandle H5Rdereference1$handle() { - return H5Rdereference1.HANDLE; - } + public static MethodHandle H5Rdereference1$handle() { return H5Rdereference1.HANDLE; } /** * Address for: @@ -37913,36 +34819,30 @@ private static class H5Rdereference1 { * hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref) * } */ - public static MemorySegment H5Rdereference1$address() { - return H5Rdereference1.ADDR; - } + public static MemorySegment H5Rdereference1$address() { return H5Rdereference1.ADDR; } /** * {@snippet lang=c : * hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref) * } */ - public static long H5Rdereference1(long obj_id, int ref_type, MemorySegment ref) { + public static long H5Rdereference1(long obj_id, int ref_type, MemorySegment ref) + { var mh$ = H5Rdereference1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rdereference1", obj_id, ref_type, ref); } return (long)mh$.invokeExact(obj_id, ref_type, ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rcreate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rcreate"); @@ -37955,9 +34855,7 @@ private static class H5Rcreate { * herr_t H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type, hid_t space_id) * } */ - public static FunctionDescriptor H5Rcreate$descriptor() { - return H5Rcreate.DESC; - } + public static FunctionDescriptor H5Rcreate$descriptor() { return H5Rcreate.DESC; } /** * Downcall method handle for: @@ -37965,9 +34863,7 @@ private static class H5Rcreate { * herr_t H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type, hid_t space_id) * } */ - public static MethodHandle H5Rcreate$handle() { - return H5Rcreate.HANDLE; - } + public static MethodHandle H5Rcreate$handle() { return H5Rcreate.HANDLE; } /** * Address for: @@ -37975,35 +34871,31 @@ private static class H5Rcreate { * herr_t H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type, hid_t space_id) * } */ - public static MemorySegment H5Rcreate$address() { - return H5Rcreate.ADDR; - } + public static MemorySegment H5Rcreate$address() { return H5Rcreate.ADDR; } /** * {@snippet lang=c : * herr_t H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type, hid_t space_id) * } */ - public static int H5Rcreate(MemorySegment ref, long loc_id, MemorySegment name, int ref_type, long space_id) { + public static int H5Rcreate(MemorySegment ref, long loc_id, MemorySegment name, int ref_type, + long space_id) + { var mh$ = H5Rcreate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rcreate", ref, loc_id, name, ref_type, space_id); } return (int)mh$.invokeExact(ref, loc_id, name, ref_type, space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_obj_type2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_obj_type2"); @@ -38016,9 +34908,7 @@ private static class H5Rget_obj_type2 { * herr_t H5Rget_obj_type2(hid_t id, H5R_type_t ref_type, const void *ref, H5O_type_t *obj_type) * } */ - public static FunctionDescriptor H5Rget_obj_type2$descriptor() { - return H5Rget_obj_type2.DESC; - } + public static FunctionDescriptor H5Rget_obj_type2$descriptor() { return H5Rget_obj_type2.DESC; } /** * Downcall method handle for: @@ -38026,9 +34916,7 @@ private static class H5Rget_obj_type2 { * herr_t H5Rget_obj_type2(hid_t id, H5R_type_t ref_type, const void *ref, H5O_type_t *obj_type) * } */ - public static MethodHandle H5Rget_obj_type2$handle() { - return H5Rget_obj_type2.HANDLE; - } + public static MethodHandle H5Rget_obj_type2$handle() { return H5Rget_obj_type2.HANDLE; } /** * Address for: @@ -38036,35 +34924,30 @@ private static class H5Rget_obj_type2 { * herr_t H5Rget_obj_type2(hid_t id, H5R_type_t ref_type, const void *ref, H5O_type_t *obj_type) * } */ - public static MemorySegment H5Rget_obj_type2$address() { - return H5Rget_obj_type2.ADDR; - } + public static MemorySegment H5Rget_obj_type2$address() { return H5Rget_obj_type2.ADDR; } /** * {@snippet lang=c : * herr_t H5Rget_obj_type2(hid_t id, H5R_type_t ref_type, const void *ref, H5O_type_t *obj_type) * } */ - public static int H5Rget_obj_type2(long id, int ref_type, MemorySegment ref, MemorySegment obj_type) { + public static int H5Rget_obj_type2(long id, int ref_type, MemorySegment ref, MemorySegment obj_type) + { var mh$ = H5Rget_obj_type2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_obj_type2", id, ref_type, ref, obj_type); } return (int)mh$.invokeExact(id, ref_type, ref, obj_type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rdereference2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rdereference2"); @@ -38077,9 +34960,7 @@ private static class H5Rdereference2 { * hid_t H5Rdereference2(hid_t obj_id, hid_t oapl_id, H5R_type_t ref_type, const void *ref) * } */ - public static FunctionDescriptor H5Rdereference2$descriptor() { - return H5Rdereference2.DESC; - } + public static FunctionDescriptor H5Rdereference2$descriptor() { return H5Rdereference2.DESC; } /** * Downcall method handle for: @@ -38087,9 +34968,7 @@ private static class H5Rdereference2 { * hid_t H5Rdereference2(hid_t obj_id, hid_t oapl_id, H5R_type_t ref_type, const void *ref) * } */ - public static MethodHandle H5Rdereference2$handle() { - return H5Rdereference2.HANDLE; - } + public static MethodHandle H5Rdereference2$handle() { return H5Rdereference2.HANDLE; } /** * Address for: @@ -38097,34 +34976,30 @@ private static class H5Rdereference2 { * hid_t H5Rdereference2(hid_t obj_id, hid_t oapl_id, H5R_type_t ref_type, const void *ref) * } */ - public static MemorySegment H5Rdereference2$address() { - return H5Rdereference2.ADDR; - } + public static MemorySegment H5Rdereference2$address() { return H5Rdereference2.ADDR; } /** * {@snippet lang=c : * hid_t H5Rdereference2(hid_t obj_id, hid_t oapl_id, H5R_type_t ref_type, const void *ref) * } */ - public static long H5Rdereference2(long obj_id, long oapl_id, int ref_type, MemorySegment ref) { + public static long H5Rdereference2(long obj_id, long oapl_id, int ref_type, MemorySegment ref) + { var mh$ = H5Rdereference2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rdereference2", obj_id, oapl_id, ref_type, ref); } return (long)mh$.invokeExact(obj_id, oapl_id, ref_type, ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_region { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_region"); @@ -38137,9 +35012,7 @@ private static class H5Rget_region { * hid_t H5Rget_region(hid_t dataset, H5R_type_t ref_type, const void *ref) * } */ - public static FunctionDescriptor H5Rget_region$descriptor() { - return H5Rget_region.DESC; - } + public static FunctionDescriptor H5Rget_region$descriptor() { return H5Rget_region.DESC; } /** * Downcall method handle for: @@ -38147,9 +35020,7 @@ private static class H5Rget_region { * hid_t H5Rget_region(hid_t dataset, H5R_type_t ref_type, const void *ref) * } */ - public static MethodHandle H5Rget_region$handle() { - return H5Rget_region.HANDLE; - } + public static MethodHandle H5Rget_region$handle() { return H5Rget_region.HANDLE; } /** * Address for: @@ -38157,36 +35028,30 @@ private static class H5Rget_region { * hid_t H5Rget_region(hid_t dataset, H5R_type_t ref_type, const void *ref) * } */ - public static MemorySegment H5Rget_region$address() { - return H5Rget_region.ADDR; - } + public static MemorySegment H5Rget_region$address() { return H5Rget_region.ADDR; } /** * {@snippet lang=c : * hid_t H5Rget_region(hid_t dataset, H5R_type_t ref_type, const void *ref) * } */ - public static long H5Rget_region(long dataset, int ref_type, MemorySegment ref) { + public static long H5Rget_region(long dataset, int ref_type, MemorySegment ref) + { var mh$ = H5Rget_region.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_region", dataset, ref_type, ref); } return (long)mh$.invokeExact(dataset, ref_type, ref); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Rget_name { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Rget_name"); @@ -38199,9 +35064,7 @@ private static class H5Rget_name { * ssize_t H5Rget_name(hid_t loc_id, H5R_type_t ref_type, const void *ref, char *name, size_t size) * } */ - public static FunctionDescriptor H5Rget_name$descriptor() { - return H5Rget_name.DESC; - } + public static FunctionDescriptor H5Rget_name$descriptor() { return H5Rget_name.DESC; } /** * Downcall method handle for: @@ -38209,9 +35072,7 @@ private static class H5Rget_name { * ssize_t H5Rget_name(hid_t loc_id, H5R_type_t ref_type, const void *ref, char *name, size_t size) * } */ - public static MethodHandle H5Rget_name$handle() { - return H5Rget_name.HANDLE; - } + public static MethodHandle H5Rget_name$handle() { return H5Rget_name.HANDLE; } /** * Address for: @@ -38219,24 +35080,25 @@ private static class H5Rget_name { * ssize_t H5Rget_name(hid_t loc_id, H5R_type_t ref_type, const void *ref, char *name, size_t size) * } */ - public static MemorySegment H5Rget_name$address() { - return H5Rget_name.ADDR; - } + public static MemorySegment H5Rget_name$address() { return H5Rget_name.ADDR; } /** * {@snippet lang=c : * ssize_t H5Rget_name(hid_t loc_id, H5R_type_t ref_type, const void *ref, char *name, size_t size) * } */ - public static long H5Rget_name(long loc_id, int ref_type, MemorySegment ref, MemorySegment name, long size) { + public static long H5Rget_name(long loc_id, int ref_type, MemorySegment ref, MemorySegment name, + long size) + { var mh$ = H5Rget_name.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Rget_name", loc_id, ref_type, ref, name, size); } return (long)mh$.invokeExact(loc_id, ref_type, ref, name, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5VL_OBJECT_BY_SELF = (int)0L; @@ -38245,135 +35107,105 @@ public static long H5Rget_name(long loc_id, int ref_type, MemorySegment ref, Mem * enum H5VL_loc_type_t.H5VL_OBJECT_BY_SELF = 0 * } */ - public static int H5VL_OBJECT_BY_SELF() { - return H5VL_OBJECT_BY_SELF; - } + public static int H5VL_OBJECT_BY_SELF() { return H5VL_OBJECT_BY_SELF; } private static final int H5VL_OBJECT_BY_NAME = (int)1L; /** * {@snippet lang=c : * enum H5VL_loc_type_t.H5VL_OBJECT_BY_NAME = 1 * } */ - public static int H5VL_OBJECT_BY_NAME() { - return H5VL_OBJECT_BY_NAME; - } + public static int H5VL_OBJECT_BY_NAME() { return H5VL_OBJECT_BY_NAME; } private static final int H5VL_OBJECT_BY_IDX = (int)2L; /** * {@snippet lang=c : * enum H5VL_loc_type_t.H5VL_OBJECT_BY_IDX = 2 * } */ - public static int H5VL_OBJECT_BY_IDX() { - return H5VL_OBJECT_BY_IDX; - } + public static int H5VL_OBJECT_BY_IDX() { return H5VL_OBJECT_BY_IDX; } private static final int H5VL_OBJECT_BY_TOKEN = (int)3L; /** * {@snippet lang=c : * enum H5VL_loc_type_t.H5VL_OBJECT_BY_TOKEN = 3 * } */ - public static int H5VL_OBJECT_BY_TOKEN() { - return H5VL_OBJECT_BY_TOKEN; - } + public static int H5VL_OBJECT_BY_TOKEN() { return H5VL_OBJECT_BY_TOKEN; } private static final int H5VL_ATTR_GET_ACPL = (int)0L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_ACPL = 0 * } */ - public static int H5VL_ATTR_GET_ACPL() { - return H5VL_ATTR_GET_ACPL; - } + public static int H5VL_ATTR_GET_ACPL() { return H5VL_ATTR_GET_ACPL; } private static final int H5VL_ATTR_GET_INFO = (int)1L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_INFO = 1 * } */ - public static int H5VL_ATTR_GET_INFO() { - return H5VL_ATTR_GET_INFO; - } + public static int H5VL_ATTR_GET_INFO() { return H5VL_ATTR_GET_INFO; } private static final int H5VL_ATTR_GET_NAME = (int)2L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_NAME = 2 * } */ - public static int H5VL_ATTR_GET_NAME() { - return H5VL_ATTR_GET_NAME; - } + public static int H5VL_ATTR_GET_NAME() { return H5VL_ATTR_GET_NAME; } private static final int H5VL_ATTR_GET_SPACE = (int)3L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_SPACE = 3 * } */ - public static int H5VL_ATTR_GET_SPACE() { - return H5VL_ATTR_GET_SPACE; - } + public static int H5VL_ATTR_GET_SPACE() { return H5VL_ATTR_GET_SPACE; } private static final int H5VL_ATTR_GET_STORAGE_SIZE = (int)4L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_STORAGE_SIZE = 4 * } */ - public static int H5VL_ATTR_GET_STORAGE_SIZE() { - return H5VL_ATTR_GET_STORAGE_SIZE; - } + public static int H5VL_ATTR_GET_STORAGE_SIZE() { return H5VL_ATTR_GET_STORAGE_SIZE; } private static final int H5VL_ATTR_GET_TYPE = (int)5L; /** * {@snippet lang=c : * enum H5VL_attr_get_t.H5VL_ATTR_GET_TYPE = 5 * } */ - public static int H5VL_ATTR_GET_TYPE() { - return H5VL_ATTR_GET_TYPE; - } + public static int H5VL_ATTR_GET_TYPE() { return H5VL_ATTR_GET_TYPE; } private static final int H5VL_ATTR_DELETE = (int)0L; /** * {@snippet lang=c : * enum H5VL_attr_specific_t.H5VL_ATTR_DELETE = 0 * } */ - public static int H5VL_ATTR_DELETE() { - return H5VL_ATTR_DELETE; - } + public static int H5VL_ATTR_DELETE() { return H5VL_ATTR_DELETE; } private static final int H5VL_ATTR_DELETE_BY_IDX = (int)1L; /** * {@snippet lang=c : * enum H5VL_attr_specific_t.H5VL_ATTR_DELETE_BY_IDX = 1 * } */ - public static int H5VL_ATTR_DELETE_BY_IDX() { - return H5VL_ATTR_DELETE_BY_IDX; - } + public static int H5VL_ATTR_DELETE_BY_IDX() { return H5VL_ATTR_DELETE_BY_IDX; } private static final int H5VL_ATTR_EXISTS = (int)2L; /** * {@snippet lang=c : * enum H5VL_attr_specific_t.H5VL_ATTR_EXISTS = 2 * } */ - public static int H5VL_ATTR_EXISTS() { - return H5VL_ATTR_EXISTS; - } + public static int H5VL_ATTR_EXISTS() { return H5VL_ATTR_EXISTS; } private static final int H5VL_ATTR_ITER = (int)3L; /** * {@snippet lang=c : * enum H5VL_attr_specific_t.H5VL_ATTR_ITER = 3 * } */ - public static int H5VL_ATTR_ITER() { - return H5VL_ATTR_ITER; - } + public static int H5VL_ATTR_ITER() { return H5VL_ATTR_ITER; } private static final int H5VL_ATTR_RENAME = (int)4L; /** * {@snippet lang=c : * enum H5VL_attr_specific_t.H5VL_ATTR_RENAME = 4 * } */ - public static int H5VL_ATTR_RENAME() { - return H5VL_ATTR_RENAME; - } + public static int H5VL_ATTR_RENAME() { return H5VL_ATTR_RENAME; } /** * {@snippet lang=c : * typedef int H5VL_attr_optional_t @@ -38386,631 +35218,500 @@ public static int H5VL_ATTR_RENAME() { * enum H5VL_dataset_get_t.H5VL_DATASET_GET_DAPL = 0 * } */ - public static int H5VL_DATASET_GET_DAPL() { - return H5VL_DATASET_GET_DAPL; - } + public static int H5VL_DATASET_GET_DAPL() { return H5VL_DATASET_GET_DAPL; } private static final int H5VL_DATASET_GET_DCPL = (int)1L; /** * {@snippet lang=c : * enum H5VL_dataset_get_t.H5VL_DATASET_GET_DCPL = 1 * } */ - public static int H5VL_DATASET_GET_DCPL() { - return H5VL_DATASET_GET_DCPL; - } + public static int H5VL_DATASET_GET_DCPL() { return H5VL_DATASET_GET_DCPL; } private static final int H5VL_DATASET_GET_SPACE = (int)2L; /** * {@snippet lang=c : * enum H5VL_dataset_get_t.H5VL_DATASET_GET_SPACE = 2 * } */ - public static int H5VL_DATASET_GET_SPACE() { - return H5VL_DATASET_GET_SPACE; - } + public static int H5VL_DATASET_GET_SPACE() { return H5VL_DATASET_GET_SPACE; } private static final int H5VL_DATASET_GET_SPACE_STATUS = (int)3L; /** * {@snippet lang=c : * enum H5VL_dataset_get_t.H5VL_DATASET_GET_SPACE_STATUS = 3 * } */ - public static int H5VL_DATASET_GET_SPACE_STATUS() { - return H5VL_DATASET_GET_SPACE_STATUS; - } + public static int H5VL_DATASET_GET_SPACE_STATUS() { return H5VL_DATASET_GET_SPACE_STATUS; } private static final int H5VL_DATASET_GET_STORAGE_SIZE = (int)4L; /** * {@snippet lang=c : * enum H5VL_dataset_get_t.H5VL_DATASET_GET_STORAGE_SIZE = 4 * } */ - public static int H5VL_DATASET_GET_STORAGE_SIZE() { - return H5VL_DATASET_GET_STORAGE_SIZE; - } + public static int H5VL_DATASET_GET_STORAGE_SIZE() { return H5VL_DATASET_GET_STORAGE_SIZE; } private static final int H5VL_DATASET_GET_TYPE = (int)5L; /** * {@snippet lang=c : * enum H5VL_dataset_get_t.H5VL_DATASET_GET_TYPE = 5 * } */ - public static int H5VL_DATASET_GET_TYPE() { - return H5VL_DATASET_GET_TYPE; - } + public static int H5VL_DATASET_GET_TYPE() { return H5VL_DATASET_GET_TYPE; } private static final int H5VL_DATASET_SET_EXTENT = (int)0L; /** * {@snippet lang=c : * enum H5VL_dataset_specific_t.H5VL_DATASET_SET_EXTENT = 0 * } */ - public static int H5VL_DATASET_SET_EXTENT() { - return H5VL_DATASET_SET_EXTENT; - } + public static int H5VL_DATASET_SET_EXTENT() { return H5VL_DATASET_SET_EXTENT; } private static final int H5VL_DATASET_FLUSH = (int)1L; /** * {@snippet lang=c : * enum H5VL_dataset_specific_t.H5VL_DATASET_FLUSH = 1 * } */ - public static int H5VL_DATASET_FLUSH() { - return H5VL_DATASET_FLUSH; - } + public static int H5VL_DATASET_FLUSH() { return H5VL_DATASET_FLUSH; } private static final int H5VL_DATASET_REFRESH = (int)2L; /** * {@snippet lang=c : * enum H5VL_dataset_specific_t.H5VL_DATASET_REFRESH = 2 * } */ - public static int H5VL_DATASET_REFRESH() { - return H5VL_DATASET_REFRESH; - } + public static int H5VL_DATASET_REFRESH() { return H5VL_DATASET_REFRESH; } /** * {@snippet lang=c : * typedef int H5VL_dataset_optional_t * } */ - public static final OfInt H5VL_dataset_optional_t = hdf5_h.C_INT; + public static final OfInt H5VL_dataset_optional_t = hdf5_h.C_INT; private static final int H5VL_DATATYPE_GET_BINARY_SIZE = (int)0L; /** * {@snippet lang=c : * enum H5VL_datatype_get_t.H5VL_DATATYPE_GET_BINARY_SIZE = 0 * } */ - public static int H5VL_DATATYPE_GET_BINARY_SIZE() { - return H5VL_DATATYPE_GET_BINARY_SIZE; - } + public static int H5VL_DATATYPE_GET_BINARY_SIZE() { return H5VL_DATATYPE_GET_BINARY_SIZE; } private static final int H5VL_DATATYPE_GET_BINARY = (int)1L; /** * {@snippet lang=c : * enum H5VL_datatype_get_t.H5VL_DATATYPE_GET_BINARY = 1 * } */ - public static int H5VL_DATATYPE_GET_BINARY() { - return H5VL_DATATYPE_GET_BINARY; - } + public static int H5VL_DATATYPE_GET_BINARY() { return H5VL_DATATYPE_GET_BINARY; } private static final int H5VL_DATATYPE_GET_TCPL = (int)2L; /** * {@snippet lang=c : * enum H5VL_datatype_get_t.H5VL_DATATYPE_GET_TCPL = 2 * } */ - public static int H5VL_DATATYPE_GET_TCPL() { - return H5VL_DATATYPE_GET_TCPL; - } + public static int H5VL_DATATYPE_GET_TCPL() { return H5VL_DATATYPE_GET_TCPL; } private static final int H5VL_DATATYPE_FLUSH = (int)0L; /** * {@snippet lang=c : * enum H5VL_datatype_specific_t.H5VL_DATATYPE_FLUSH = 0 * } */ - public static int H5VL_DATATYPE_FLUSH() { - return H5VL_DATATYPE_FLUSH; - } + public static int H5VL_DATATYPE_FLUSH() { return H5VL_DATATYPE_FLUSH; } private static final int H5VL_DATATYPE_REFRESH = (int)1L; /** * {@snippet lang=c : * enum H5VL_datatype_specific_t.H5VL_DATATYPE_REFRESH = 1 * } */ - public static int H5VL_DATATYPE_REFRESH() { - return H5VL_DATATYPE_REFRESH; - } + public static int H5VL_DATATYPE_REFRESH() { return H5VL_DATATYPE_REFRESH; } /** * {@snippet lang=c : * typedef int H5VL_datatype_optional_t * } */ public static final OfInt H5VL_datatype_optional_t = hdf5_h.C_INT; - private static final int H5VL_FILE_GET_CONT_INFO = (int)0L; + private static final int H5VL_FILE_GET_CONT_INFO = (int)0L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_CONT_INFO = 0 * } */ - public static int H5VL_FILE_GET_CONT_INFO() { - return H5VL_FILE_GET_CONT_INFO; - } + public static int H5VL_FILE_GET_CONT_INFO() { return H5VL_FILE_GET_CONT_INFO; } private static final int H5VL_FILE_GET_FAPL = (int)1L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_FAPL = 1 * } */ - public static int H5VL_FILE_GET_FAPL() { - return H5VL_FILE_GET_FAPL; - } + public static int H5VL_FILE_GET_FAPL() { return H5VL_FILE_GET_FAPL; } private static final int H5VL_FILE_GET_FCPL = (int)2L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_FCPL = 2 * } */ - public static int H5VL_FILE_GET_FCPL() { - return H5VL_FILE_GET_FCPL; - } + public static int H5VL_FILE_GET_FCPL() { return H5VL_FILE_GET_FCPL; } private static final int H5VL_FILE_GET_FILENO = (int)3L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_FILENO = 3 * } */ - public static int H5VL_FILE_GET_FILENO() { - return H5VL_FILE_GET_FILENO; - } + public static int H5VL_FILE_GET_FILENO() { return H5VL_FILE_GET_FILENO; } private static final int H5VL_FILE_GET_INTENT = (int)4L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_INTENT = 4 * } */ - public static int H5VL_FILE_GET_INTENT() { - return H5VL_FILE_GET_INTENT; - } + public static int H5VL_FILE_GET_INTENT() { return H5VL_FILE_GET_INTENT; } private static final int H5VL_FILE_GET_NAME = (int)5L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_NAME = 5 * } */ - public static int H5VL_FILE_GET_NAME() { - return H5VL_FILE_GET_NAME; - } + public static int H5VL_FILE_GET_NAME() { return H5VL_FILE_GET_NAME; } private static final int H5VL_FILE_GET_OBJ_COUNT = (int)6L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_OBJ_COUNT = 6 * } */ - public static int H5VL_FILE_GET_OBJ_COUNT() { - return H5VL_FILE_GET_OBJ_COUNT; - } + public static int H5VL_FILE_GET_OBJ_COUNT() { return H5VL_FILE_GET_OBJ_COUNT; } private static final int H5VL_FILE_GET_OBJ_IDS = (int)7L; /** * {@snippet lang=c : * enum H5VL_file_get_t.H5VL_FILE_GET_OBJ_IDS = 7 * } */ - public static int H5VL_FILE_GET_OBJ_IDS() { - return H5VL_FILE_GET_OBJ_IDS; - } + public static int H5VL_FILE_GET_OBJ_IDS() { return H5VL_FILE_GET_OBJ_IDS; } private static final int H5VL_FILE_FLUSH = (int)0L; /** * {@snippet lang=c : * enum H5VL_file_specific_t.H5VL_FILE_FLUSH = 0 * } */ - public static int H5VL_FILE_FLUSH() { - return H5VL_FILE_FLUSH; - } + public static int H5VL_FILE_FLUSH() { return H5VL_FILE_FLUSH; } private static final int H5VL_FILE_REOPEN = (int)1L; /** * {@snippet lang=c : * enum H5VL_file_specific_t.H5VL_FILE_REOPEN = 1 * } */ - public static int H5VL_FILE_REOPEN() { - return H5VL_FILE_REOPEN; - } + public static int H5VL_FILE_REOPEN() { return H5VL_FILE_REOPEN; } private static final int H5VL_FILE_IS_ACCESSIBLE = (int)2L; /** * {@snippet lang=c : * enum H5VL_file_specific_t.H5VL_FILE_IS_ACCESSIBLE = 2 * } */ - public static int H5VL_FILE_IS_ACCESSIBLE() { - return H5VL_FILE_IS_ACCESSIBLE; - } + public static int H5VL_FILE_IS_ACCESSIBLE() { return H5VL_FILE_IS_ACCESSIBLE; } private static final int H5VL_FILE_DELETE = (int)3L; /** * {@snippet lang=c : * enum H5VL_file_specific_t.H5VL_FILE_DELETE = 3 * } */ - public static int H5VL_FILE_DELETE() { - return H5VL_FILE_DELETE; - } + public static int H5VL_FILE_DELETE() { return H5VL_FILE_DELETE; } private static final int H5VL_FILE_IS_EQUAL = (int)4L; /** * {@snippet lang=c : * enum H5VL_file_specific_t.H5VL_FILE_IS_EQUAL = 4 * } */ - public static int H5VL_FILE_IS_EQUAL() { - return H5VL_FILE_IS_EQUAL; - } + public static int H5VL_FILE_IS_EQUAL() { return H5VL_FILE_IS_EQUAL; } /** * {@snippet lang=c : * typedef int H5VL_file_optional_t * } */ public static final OfInt H5VL_file_optional_t = hdf5_h.C_INT; - private static final int H5VL_GROUP_GET_GCPL = (int)0L; + private static final int H5VL_GROUP_GET_GCPL = (int)0L; /** * {@snippet lang=c : * enum H5VL_group_get_t.H5VL_GROUP_GET_GCPL = 0 * } */ - public static int H5VL_GROUP_GET_GCPL() { - return H5VL_GROUP_GET_GCPL; - } + public static int H5VL_GROUP_GET_GCPL() { return H5VL_GROUP_GET_GCPL; } private static final int H5VL_GROUP_GET_INFO = (int)1L; /** * {@snippet lang=c : * enum H5VL_group_get_t.H5VL_GROUP_GET_INFO = 1 * } */ - public static int H5VL_GROUP_GET_INFO() { - return H5VL_GROUP_GET_INFO; - } + public static int H5VL_GROUP_GET_INFO() { return H5VL_GROUP_GET_INFO; } private static final int H5VL_GROUP_MOUNT = (int)0L; /** * {@snippet lang=c : * enum H5VL_group_specific_t.H5VL_GROUP_MOUNT = 0 * } */ - public static int H5VL_GROUP_MOUNT() { - return H5VL_GROUP_MOUNT; - } + public static int H5VL_GROUP_MOUNT() { return H5VL_GROUP_MOUNT; } private static final int H5VL_GROUP_UNMOUNT = (int)1L; /** * {@snippet lang=c : * enum H5VL_group_specific_t.H5VL_GROUP_UNMOUNT = 1 * } */ - public static int H5VL_GROUP_UNMOUNT() { - return H5VL_GROUP_UNMOUNT; - } + public static int H5VL_GROUP_UNMOUNT() { return H5VL_GROUP_UNMOUNT; } private static final int H5VL_GROUP_FLUSH = (int)2L; /** * {@snippet lang=c : * enum H5VL_group_specific_t.H5VL_GROUP_FLUSH = 2 * } */ - public static int H5VL_GROUP_FLUSH() { - return H5VL_GROUP_FLUSH; - } + public static int H5VL_GROUP_FLUSH() { return H5VL_GROUP_FLUSH; } private static final int H5VL_GROUP_REFRESH = (int)3L; /** * {@snippet lang=c : * enum H5VL_group_specific_t.H5VL_GROUP_REFRESH = 3 * } */ - public static int H5VL_GROUP_REFRESH() { - return H5VL_GROUP_REFRESH; - } + public static int H5VL_GROUP_REFRESH() { return H5VL_GROUP_REFRESH; } /** * {@snippet lang=c : * typedef int H5VL_group_optional_t * } */ public static final OfInt H5VL_group_optional_t = hdf5_h.C_INT; - private static final int H5VL_LINK_CREATE_HARD = (int)0L; + private static final int H5VL_LINK_CREATE_HARD = (int)0L; /** * {@snippet lang=c : * enum H5VL_link_create_t.H5VL_LINK_CREATE_HARD = 0 * } */ - public static int H5VL_LINK_CREATE_HARD() { - return H5VL_LINK_CREATE_HARD; - } + public static int H5VL_LINK_CREATE_HARD() { return H5VL_LINK_CREATE_HARD; } private static final int H5VL_LINK_CREATE_SOFT = (int)1L; /** * {@snippet lang=c : * enum H5VL_link_create_t.H5VL_LINK_CREATE_SOFT = 1 * } */ - public static int H5VL_LINK_CREATE_SOFT() { - return H5VL_LINK_CREATE_SOFT; - } + public static int H5VL_LINK_CREATE_SOFT() { return H5VL_LINK_CREATE_SOFT; } private static final int H5VL_LINK_CREATE_UD = (int)2L; /** * {@snippet lang=c : * enum H5VL_link_create_t.H5VL_LINK_CREATE_UD = 2 * } */ - public static int H5VL_LINK_CREATE_UD() { - return H5VL_LINK_CREATE_UD; - } + public static int H5VL_LINK_CREATE_UD() { return H5VL_LINK_CREATE_UD; } private static final int H5VL_LINK_GET_INFO = (int)0L; /** * {@snippet lang=c : * enum H5VL_link_get_t.H5VL_LINK_GET_INFO = 0 * } */ - public static int H5VL_LINK_GET_INFO() { - return H5VL_LINK_GET_INFO; - } + public static int H5VL_LINK_GET_INFO() { return H5VL_LINK_GET_INFO; } private static final int H5VL_LINK_GET_NAME = (int)1L; /** * {@snippet lang=c : * enum H5VL_link_get_t.H5VL_LINK_GET_NAME = 1 * } */ - public static int H5VL_LINK_GET_NAME() { - return H5VL_LINK_GET_NAME; - } + public static int H5VL_LINK_GET_NAME() { return H5VL_LINK_GET_NAME; } private static final int H5VL_LINK_GET_VAL = (int)2L; /** * {@snippet lang=c : * enum H5VL_link_get_t.H5VL_LINK_GET_VAL = 2 * } */ - public static int H5VL_LINK_GET_VAL() { - return H5VL_LINK_GET_VAL; - } + public static int H5VL_LINK_GET_VAL() { return H5VL_LINK_GET_VAL; } private static final int H5VL_LINK_DELETE = (int)0L; /** * {@snippet lang=c : * enum H5VL_link_specific_t.H5VL_LINK_DELETE = 0 * } */ - public static int H5VL_LINK_DELETE() { - return H5VL_LINK_DELETE; - } + public static int H5VL_LINK_DELETE() { return H5VL_LINK_DELETE; } private static final int H5VL_LINK_EXISTS = (int)1L; /** * {@snippet lang=c : * enum H5VL_link_specific_t.H5VL_LINK_EXISTS = 1 * } */ - public static int H5VL_LINK_EXISTS() { - return H5VL_LINK_EXISTS; - } + public static int H5VL_LINK_EXISTS() { return H5VL_LINK_EXISTS; } private static final int H5VL_LINK_ITER = (int)2L; /** * {@snippet lang=c : * enum H5VL_link_specific_t.H5VL_LINK_ITER = 2 * } */ - public static int H5VL_LINK_ITER() { - return H5VL_LINK_ITER; - } + public static int H5VL_LINK_ITER() { return H5VL_LINK_ITER; } /** * {@snippet lang=c : * typedef int H5VL_link_optional_t * } */ public static final OfInt H5VL_link_optional_t = hdf5_h.C_INT; - private static final int H5VL_OBJECT_GET_FILE = (int)0L; + private static final int H5VL_OBJECT_GET_FILE = (int)0L; /** * {@snippet lang=c : * enum H5VL_object_get_t.H5VL_OBJECT_GET_FILE = 0 * } */ - public static int H5VL_OBJECT_GET_FILE() { - return H5VL_OBJECT_GET_FILE; - } + public static int H5VL_OBJECT_GET_FILE() { return H5VL_OBJECT_GET_FILE; } private static final int H5VL_OBJECT_GET_NAME = (int)1L; /** * {@snippet lang=c : * enum H5VL_object_get_t.H5VL_OBJECT_GET_NAME = 1 * } */ - public static int H5VL_OBJECT_GET_NAME() { - return H5VL_OBJECT_GET_NAME; - } + public static int H5VL_OBJECT_GET_NAME() { return H5VL_OBJECT_GET_NAME; } private static final int H5VL_OBJECT_GET_TYPE = (int)2L; /** * {@snippet lang=c : * enum H5VL_object_get_t.H5VL_OBJECT_GET_TYPE = 2 * } */ - public static int H5VL_OBJECT_GET_TYPE() { - return H5VL_OBJECT_GET_TYPE; - } + public static int H5VL_OBJECT_GET_TYPE() { return H5VL_OBJECT_GET_TYPE; } private static final int H5VL_OBJECT_GET_INFO = (int)3L; /** * {@snippet lang=c : * enum H5VL_object_get_t.H5VL_OBJECT_GET_INFO = 3 * } */ - public static int H5VL_OBJECT_GET_INFO() { - return H5VL_OBJECT_GET_INFO; - } + public static int H5VL_OBJECT_GET_INFO() { return H5VL_OBJECT_GET_INFO; } private static final int H5VL_OBJECT_CHANGE_REF_COUNT = (int)0L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_CHANGE_REF_COUNT = 0 * } */ - public static int H5VL_OBJECT_CHANGE_REF_COUNT() { - return H5VL_OBJECT_CHANGE_REF_COUNT; - } + public static int H5VL_OBJECT_CHANGE_REF_COUNT() { return H5VL_OBJECT_CHANGE_REF_COUNT; } private static final int H5VL_OBJECT_EXISTS = (int)1L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_EXISTS = 1 * } */ - public static int H5VL_OBJECT_EXISTS() { - return H5VL_OBJECT_EXISTS; - } + public static int H5VL_OBJECT_EXISTS() { return H5VL_OBJECT_EXISTS; } private static final int H5VL_OBJECT_LOOKUP = (int)2L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_LOOKUP = 2 * } */ - public static int H5VL_OBJECT_LOOKUP() { - return H5VL_OBJECT_LOOKUP; - } + public static int H5VL_OBJECT_LOOKUP() { return H5VL_OBJECT_LOOKUP; } private static final int H5VL_OBJECT_VISIT = (int)3L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_VISIT = 3 * } */ - public static int H5VL_OBJECT_VISIT() { - return H5VL_OBJECT_VISIT; - } + public static int H5VL_OBJECT_VISIT() { return H5VL_OBJECT_VISIT; } private static final int H5VL_OBJECT_FLUSH = (int)4L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_FLUSH = 4 * } */ - public static int H5VL_OBJECT_FLUSH() { - return H5VL_OBJECT_FLUSH; - } + public static int H5VL_OBJECT_FLUSH() { return H5VL_OBJECT_FLUSH; } private static final int H5VL_OBJECT_REFRESH = (int)5L; /** * {@snippet lang=c : * enum H5VL_object_specific_t.H5VL_OBJECT_REFRESH = 5 * } */ - public static int H5VL_OBJECT_REFRESH() { - return H5VL_OBJECT_REFRESH; - } + public static int H5VL_OBJECT_REFRESH() { return H5VL_OBJECT_REFRESH; } /** * {@snippet lang=c : * typedef int H5VL_object_optional_t * } */ - public static final OfInt H5VL_object_optional_t = hdf5_h.C_INT; + public static final OfInt H5VL_object_optional_t = hdf5_h.C_INT; private static final int H5VL_REQUEST_STATUS_IN_PROGRESS = (int)0L; /** * {@snippet lang=c : * enum H5VL_request_status_t.H5VL_REQUEST_STATUS_IN_PROGRESS = 0 * } */ - public static int H5VL_REQUEST_STATUS_IN_PROGRESS() { - return H5VL_REQUEST_STATUS_IN_PROGRESS; - } + public static int H5VL_REQUEST_STATUS_IN_PROGRESS() { return H5VL_REQUEST_STATUS_IN_PROGRESS; } private static final int H5VL_REQUEST_STATUS_SUCCEED = (int)1L; /** * {@snippet lang=c : * enum H5VL_request_status_t.H5VL_REQUEST_STATUS_SUCCEED = 1 * } */ - public static int H5VL_REQUEST_STATUS_SUCCEED() { - return H5VL_REQUEST_STATUS_SUCCEED; - } + public static int H5VL_REQUEST_STATUS_SUCCEED() { return H5VL_REQUEST_STATUS_SUCCEED; } private static final int H5VL_REQUEST_STATUS_FAIL = (int)2L; /** * {@snippet lang=c : * enum H5VL_request_status_t.H5VL_REQUEST_STATUS_FAIL = 2 * } */ - public static int H5VL_REQUEST_STATUS_FAIL() { - return H5VL_REQUEST_STATUS_FAIL; - } + public static int H5VL_REQUEST_STATUS_FAIL() { return H5VL_REQUEST_STATUS_FAIL; } private static final int H5VL_REQUEST_STATUS_CANT_CANCEL = (int)3L; /** * {@snippet lang=c : * enum H5VL_request_status_t.H5VL_REQUEST_STATUS_CANT_CANCEL = 3 * } */ - public static int H5VL_REQUEST_STATUS_CANT_CANCEL() { - return H5VL_REQUEST_STATUS_CANT_CANCEL; - } + public static int H5VL_REQUEST_STATUS_CANT_CANCEL() { return H5VL_REQUEST_STATUS_CANT_CANCEL; } private static final int H5VL_REQUEST_STATUS_CANCELED = (int)4L; /** * {@snippet lang=c : * enum H5VL_request_status_t.H5VL_REQUEST_STATUS_CANCELED = 4 * } */ - public static int H5VL_REQUEST_STATUS_CANCELED() { - return H5VL_REQUEST_STATUS_CANCELED; - } + public static int H5VL_REQUEST_STATUS_CANCELED() { return H5VL_REQUEST_STATUS_CANCELED; } private static final int H5VL_REQUEST_GET_ERR_STACK = (int)0L; /** * {@snippet lang=c : * enum H5VL_request_specific_t.H5VL_REQUEST_GET_ERR_STACK = 0 * } */ - public static int H5VL_REQUEST_GET_ERR_STACK() { - return H5VL_REQUEST_GET_ERR_STACK; - } + public static int H5VL_REQUEST_GET_ERR_STACK() { return H5VL_REQUEST_GET_ERR_STACK; } private static final int H5VL_REQUEST_GET_EXEC_TIME = (int)1L; /** * {@snippet lang=c : * enum H5VL_request_specific_t.H5VL_REQUEST_GET_EXEC_TIME = 1 * } */ - public static int H5VL_REQUEST_GET_EXEC_TIME() { - return H5VL_REQUEST_GET_EXEC_TIME; - } + public static int H5VL_REQUEST_GET_EXEC_TIME() { return H5VL_REQUEST_GET_EXEC_TIME; } /** * {@snippet lang=c : * typedef int H5VL_request_optional_t * } */ public static final OfInt H5VL_request_optional_t = hdf5_h.C_INT; - private static final int H5VL_BLOB_DELETE = (int)0L; + private static final int H5VL_BLOB_DELETE = (int)0L; /** * {@snippet lang=c : * enum H5VL_blob_specific_t.H5VL_BLOB_DELETE = 0 * } */ - public static int H5VL_BLOB_DELETE() { - return H5VL_BLOB_DELETE; - } + public static int H5VL_BLOB_DELETE() { return H5VL_BLOB_DELETE; } private static final int H5VL_BLOB_ISNULL = (int)1L; /** * {@snippet lang=c : * enum H5VL_blob_specific_t.H5VL_BLOB_ISNULL = 1 * } */ - public static int H5VL_BLOB_ISNULL() { - return H5VL_BLOB_ISNULL; - } + public static int H5VL_BLOB_ISNULL() { return H5VL_BLOB_ISNULL; } private static final int H5VL_BLOB_SETNULL = (int)2L; /** * {@snippet lang=c : * enum H5VL_blob_specific_t.H5VL_BLOB_SETNULL = 2 * } */ - public static int H5VL_BLOB_SETNULL() { - return H5VL_BLOB_SETNULL; - } + public static int H5VL_BLOB_SETNULL() { return H5VL_BLOB_SETNULL; } /** * {@snippet lang=c : * typedef int H5VL_blob_optional_t * } */ - public static final OfInt H5VL_blob_optional_t = hdf5_h.C_INT; + public static final OfInt H5VL_blob_optional_t = hdf5_h.C_INT; private static final int H5VL_GET_CONN_LVL_CURR = (int)0L; /** * {@snippet lang=c : * enum H5VL_get_conn_lvl_t.H5VL_GET_CONN_LVL_CURR = 0 * } */ - public static int H5VL_GET_CONN_LVL_CURR() { - return H5VL_GET_CONN_LVL_CURR; - } + public static int H5VL_GET_CONN_LVL_CURR() { return H5VL_GET_CONN_LVL_CURR; } private static final int H5VL_GET_CONN_LVL_TERM = (int)1L; /** * {@snippet lang=c : * enum H5VL_get_conn_lvl_t.H5VL_GET_CONN_LVL_TERM = 1 * } */ - public static int H5VL_GET_CONN_LVL_TERM() { - return H5VL_GET_CONN_LVL_TERM; - } + public static int H5VL_GET_CONN_LVL_TERM() { return H5VL_GET_CONN_LVL_TERM; } private static class H5VLregister_connector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLregister_connector"); @@ -39023,7 +35724,8 @@ private static class H5VLregister_connector { * hid_t H5VLregister_connector(const H5VL_class_t *cls, hid_t vipl_id) * } */ - public static FunctionDescriptor H5VLregister_connector$descriptor() { + public static FunctionDescriptor H5VLregister_connector$descriptor() + { return H5VLregister_connector.DESC; } @@ -39033,9 +35735,7 @@ private static class H5VLregister_connector { * hid_t H5VLregister_connector(const H5VL_class_t *cls, hid_t vipl_id) * } */ - public static MethodHandle H5VLregister_connector$handle() { - return H5VLregister_connector.HANDLE; - } + public static MethodHandle H5VLregister_connector$handle() { return H5VLregister_connector.HANDLE; } /** * Address for: @@ -39043,32 +35743,29 @@ private static class H5VLregister_connector { * hid_t H5VLregister_connector(const H5VL_class_t *cls, hid_t vipl_id) * } */ - public static MemorySegment H5VLregister_connector$address() { - return H5VLregister_connector.ADDR; - } + public static MemorySegment H5VLregister_connector$address() { return H5VLregister_connector.ADDR; } /** * {@snippet lang=c : * hid_t H5VLregister_connector(const H5VL_class_t *cls, hid_t vipl_id) * } */ - public static long H5VLregister_connector(MemorySegment cls, long vipl_id) { + public static long H5VLregister_connector(MemorySegment cls, long vipl_id) + { var mh$ = H5VLregister_connector.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLregister_connector", cls, vipl_id); } return (long)mh$.invokeExact(cls, vipl_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject"); @@ -39081,9 +35778,7 @@ private static class H5VLobject { * void *H5VLobject(hid_t obj_id) * } */ - public static FunctionDescriptor H5VLobject$descriptor() { - return H5VLobject.DESC; - } + public static FunctionDescriptor H5VLobject$descriptor() { return H5VLobject.DESC; } /** * Downcall method handle for: @@ -39091,9 +35786,7 @@ private static class H5VLobject { * void *H5VLobject(hid_t obj_id) * } */ - public static MethodHandle H5VLobject$handle() { - return H5VLobject.HANDLE; - } + public static MethodHandle H5VLobject$handle() { return H5VLobject.HANDLE; } /** * Address for: @@ -39101,34 +35794,30 @@ private static class H5VLobject { * void *H5VLobject(hid_t obj_id) * } */ - public static MemorySegment H5VLobject$address() { - return H5VLobject.ADDR; - } + public static MemorySegment H5VLobject$address() { return H5VLobject.ADDR; } /** * {@snippet lang=c : * void *H5VLobject(hid_t obj_id) * } */ - public static MemorySegment H5VLobject(long obj_id) { + public static MemorySegment H5VLobject(long obj_id) + { var mh$ = H5VLobject.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLobject", obj_id); } return (MemorySegment)mh$.invokeExact(obj_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLget_file_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLget_file_type"); @@ -39141,9 +35830,7 @@ private static class H5VLget_file_type { * hid_t H5VLget_file_type(void *file_obj, hid_t connector_id, hid_t dtype_id) * } */ - public static FunctionDescriptor H5VLget_file_type$descriptor() { - return H5VLget_file_type.DESC; - } + public static FunctionDescriptor H5VLget_file_type$descriptor() { return H5VLget_file_type.DESC; } /** * Downcall method handle for: @@ -39151,9 +35838,7 @@ private static class H5VLget_file_type { * hid_t H5VLget_file_type(void *file_obj, hid_t connector_id, hid_t dtype_id) * } */ - public static MethodHandle H5VLget_file_type$handle() { - return H5VLget_file_type.HANDLE; - } + public static MethodHandle H5VLget_file_type$handle() { return H5VLget_file_type.HANDLE; } /** * Address for: @@ -39161,34 +35846,30 @@ private static class H5VLget_file_type { * hid_t H5VLget_file_type(void *file_obj, hid_t connector_id, hid_t dtype_id) * } */ - public static MemorySegment H5VLget_file_type$address() { - return H5VLget_file_type.ADDR; - } + public static MemorySegment H5VLget_file_type$address() { return H5VLget_file_type.ADDR; } /** * {@snippet lang=c : * hid_t H5VLget_file_type(void *file_obj, hid_t connector_id, hid_t dtype_id) * } */ - public static long H5VLget_file_type(MemorySegment file_obj, long connector_id, long dtype_id) { + public static long H5VLget_file_type(MemorySegment file_obj, long connector_id, long dtype_id) + { var mh$ = H5VLget_file_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLget_file_type", file_obj, connector_id, dtype_id); } return (long)mh$.invokeExact(file_obj, connector_id, dtype_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLregister_opt_operation { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLregister_opt_operation"); @@ -39201,7 +35882,8 @@ private static class H5VLregister_opt_operation { * herr_t H5VLregister_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static FunctionDescriptor H5VLregister_opt_operation$descriptor() { + public static FunctionDescriptor H5VLregister_opt_operation$descriptor() + { return H5VLregister_opt_operation.DESC; } @@ -39211,7 +35893,8 @@ private static class H5VLregister_opt_operation { * herr_t H5VLregister_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static MethodHandle H5VLregister_opt_operation$handle() { + public static MethodHandle H5VLregister_opt_operation$handle() + { return H5VLregister_opt_operation.HANDLE; } @@ -39221,7 +35904,8 @@ private static class H5VLregister_opt_operation { * herr_t H5VLregister_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static MemorySegment H5VLregister_opt_operation$address() { + public static MemorySegment H5VLregister_opt_operation$address() + { return H5VLregister_opt_operation.ADDR; } @@ -39230,25 +35914,23 @@ private static class H5VLregister_opt_operation { * herr_t H5VLregister_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static int H5VLregister_opt_operation(int subcls, MemorySegment op_name, MemorySegment op_val) { + public static int H5VLregister_opt_operation(int subcls, MemorySegment op_name, MemorySegment op_val) + { var mh$ = H5VLregister_opt_operation.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLregister_opt_operation", subcls, op_name, op_val); } return (int)mh$.invokeExact(subcls, op_name, op_val); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfind_opt_operation { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfind_opt_operation"); @@ -39261,7 +35943,8 @@ private static class H5VLfind_opt_operation { * herr_t H5VLfind_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static FunctionDescriptor H5VLfind_opt_operation$descriptor() { + public static FunctionDescriptor H5VLfind_opt_operation$descriptor() + { return H5VLfind_opt_operation.DESC; } @@ -39271,9 +35954,7 @@ private static class H5VLfind_opt_operation { * herr_t H5VLfind_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static MethodHandle H5VLfind_opt_operation$handle() { - return H5VLfind_opt_operation.HANDLE; - } + public static MethodHandle H5VLfind_opt_operation$handle() { return H5VLfind_opt_operation.HANDLE; } /** * Address for: @@ -39281,33 +35962,30 @@ private static class H5VLfind_opt_operation { * herr_t H5VLfind_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static MemorySegment H5VLfind_opt_operation$address() { - return H5VLfind_opt_operation.ADDR; - } + public static MemorySegment H5VLfind_opt_operation$address() { return H5VLfind_opt_operation.ADDR; } /** * {@snippet lang=c : * herr_t H5VLfind_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val) * } */ - public static int H5VLfind_opt_operation(int subcls, MemorySegment op_name, MemorySegment op_val) { + public static int H5VLfind_opt_operation(int subcls, MemorySegment op_name, MemorySegment op_val) + { var mh$ = H5VLfind_opt_operation.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLfind_opt_operation", subcls, op_name, op_val); } return (int)mh$.invokeExact(subcls, op_name, op_val); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLunregister_opt_operation { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLunregister_opt_operation"); @@ -39320,7 +35998,8 @@ private static class H5VLunregister_opt_operation { * herr_t H5VLunregister_opt_operation(H5VL_subclass_t subcls, const char *op_name) * } */ - public static FunctionDescriptor H5VLunregister_opt_operation$descriptor() { + public static FunctionDescriptor H5VLunregister_opt_operation$descriptor() + { return H5VLunregister_opt_operation.DESC; } @@ -39330,7 +36009,8 @@ private static class H5VLunregister_opt_operation { * herr_t H5VLunregister_opt_operation(H5VL_subclass_t subcls, const char *op_name) * } */ - public static MethodHandle H5VLunregister_opt_operation$handle() { + public static MethodHandle H5VLunregister_opt_operation$handle() + { return H5VLunregister_opt_operation.HANDLE; } @@ -39340,7 +36020,8 @@ private static class H5VLunregister_opt_operation { * herr_t H5VLunregister_opt_operation(H5VL_subclass_t subcls, const char *op_name) * } */ - public static MemorySegment H5VLunregister_opt_operation$address() { + public static MemorySegment H5VLunregister_opt_operation$address() + { return H5VLunregister_opt_operation.ADDR; } @@ -39349,29 +36030,24 @@ private static class H5VLunregister_opt_operation { * herr_t H5VLunregister_opt_operation(H5VL_subclass_t subcls, const char *op_name) * } */ - public static int H5VLunregister_opt_operation(int subcls, MemorySegment op_name) { + public static int H5VLunregister_opt_operation(int subcls, MemorySegment op_name) + { var mh$ = H5VLunregister_opt_operation.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLunregister_opt_operation", subcls, op_name); } return (int)mh$.invokeExact(subcls, op_name); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLattr_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLattr_optional_op"); @@ -39381,61 +36057,56 @@ private static class H5VLattr_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLattr_optional_op$descriptor() { - return H5VLattr_optional_op.DESC; - } + public static FunctionDescriptor H5VLattr_optional_op$descriptor() { return H5VLattr_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLattr_optional_op$handle() { - return H5VLattr_optional_op.HANDLE; - } + public static MethodHandle H5VLattr_optional_op$handle() { return H5VLattr_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLattr_optional_op$address() { - return H5VLattr_optional_op.ADDR; - } + public static MemorySegment H5VLattr_optional_op$address() { return H5VLattr_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLattr_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long attr_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLattr_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long attr_id, MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLattr_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLattr_optional_op", app_file, app_func, app_line, attr_id, args, dxpl_id, es_id); + traceDowncall("H5VLattr_optional_op", app_file, app_func, app_line, attr_id, args, dxpl_id, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, attr_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdataset_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdataset_optional_op"); @@ -39445,61 +36116,59 @@ private static class H5VLdataset_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLdataset_optional_op$descriptor() { + public static FunctionDescriptor H5VLdataset_optional_op$descriptor() + { return H5VLdataset_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLdataset_optional_op$handle() { - return H5VLdataset_optional_op.HANDLE; - } + public static MethodHandle H5VLdataset_optional_op$handle() { return H5VLdataset_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLdataset_optional_op$address() { - return H5VLdataset_optional_op.ADDR; - } + public static MemorySegment H5VLdataset_optional_op$address() { return H5VLdataset_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLdataset_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long dset_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLdataset_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long dset_id, MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLdataset_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdataset_optional_op", app_file, app_func, app_line, dset_id, args, dxpl_id, es_id); + traceDowncall("H5VLdataset_optional_op", app_file, app_func, app_line, dset_id, args, dxpl_id, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, dset_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLdatatype_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLdatatype_optional_op"); @@ -39509,61 +36178,59 @@ private static class H5VLdatatype_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLdatatype_optional_op$descriptor() { + public static FunctionDescriptor H5VLdatatype_optional_op$descriptor() + { return H5VLdatatype_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLdatatype_optional_op$handle() { - return H5VLdatatype_optional_op.HANDLE; - } + public static MethodHandle H5VLdatatype_optional_op$handle() { return H5VLdatatype_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLdatatype_optional_op$address() { - return H5VLdatatype_optional_op.ADDR; - } + public static MemorySegment H5VLdatatype_optional_op$address() { return H5VLdatatype_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned int app_line, + * hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLdatatype_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long type_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLdatatype_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long type_id, MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLdatatype_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLdatatype_optional_op", app_file, app_func, app_line, type_id, args, dxpl_id, es_id); + traceDowncall("H5VLdatatype_optional_op", app_file, app_func, app_line, type_id, args, + dxpl_id, es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, type_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLfile_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLfile_optional_op"); @@ -39573,61 +36240,56 @@ private static class H5VLfile_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLfile_optional_op$descriptor() { - return H5VLfile_optional_op.DESC; - } + public static FunctionDescriptor H5VLfile_optional_op$descriptor() { return H5VLfile_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLfile_optional_op$handle() { - return H5VLfile_optional_op.HANDLE; - } + public static MethodHandle H5VLfile_optional_op$handle() { return H5VLfile_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLfile_optional_op$address() { - return H5VLfile_optional_op.ADDR; - } + public static MemorySegment H5VLfile_optional_op$address() { return H5VLfile_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLfile_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long file_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLfile_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long file_id, MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLfile_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLfile_optional_op", app_file, app_func, app_line, file_id, args, dxpl_id, es_id); + traceDowncall("H5VLfile_optional_op", app_file, app_func, app_line, file_id, args, dxpl_id, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, file_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLgroup_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLgroup_optional_op"); @@ -39637,63 +36299,56 @@ private static class H5VLgroup_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLgroup_optional_op$descriptor() { - return H5VLgroup_optional_op.DESC; - } + public static FunctionDescriptor H5VLgroup_optional_op$descriptor() { return H5VLgroup_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLgroup_optional_op$handle() { - return H5VLgroup_optional_op.HANDLE; - } + public static MethodHandle H5VLgroup_optional_op$handle() { return H5VLgroup_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLgroup_optional_op$address() { - return H5VLgroup_optional_op.ADDR; - } + public static MemorySegment H5VLgroup_optional_op$address() { return H5VLgroup_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLgroup_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long group_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLgroup_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long group_id, MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLgroup_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLgroup_optional_op", app_file, app_func, app_line, group_id, args, dxpl_id, es_id); + traceDowncall("H5VLgroup_optional_op", app_file, app_func, app_line, group_id, args, dxpl_id, + es_id); } return (int)mh$.invokeExact(app_file, app_func, app_line, group_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLlink_optional_op { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLlink_optional_op"); @@ -39703,63 +36358,58 @@ private static class H5VLlink_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLlink_optional_op$descriptor() { - return H5VLlink_optional_op.DESC; - } + public static FunctionDescriptor H5VLlink_optional_op$descriptor() { return H5VLlink_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLlink_optional_op$handle() { - return H5VLlink_optional_op.HANDLE; - } + public static MethodHandle H5VLlink_optional_op$handle() { return H5VLlink_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLlink_optional_op$address() { - return H5VLlink_optional_op.ADDR; - } + public static MemorySegment H5VLlink_optional_op$address() { return H5VLlink_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLlink_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long lapl_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLlink_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long lapl_id, MemorySegment args, + long dxpl_id, long es_id) + { var mh$ = H5VLlink_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLlink_optional_op", app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, es_id); + traceDowncall("H5VLlink_optional_op", app_file, app_func, app_line, loc_id, name, lapl_id, + args, dxpl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, + es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLobject_optional_op { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLobject_optional_op"); @@ -39769,57 +36419,60 @@ private static class H5VLobject_optional_op { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static FunctionDescriptor H5VLobject_optional_op$descriptor() { + public static FunctionDescriptor H5VLobject_optional_op$descriptor() + { return H5VLobject_optional_op.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MethodHandle H5VLobject_optional_op$handle() { - return H5VLobject_optional_op.HANDLE; - } + public static MethodHandle H5VLobject_optional_op$handle() { return H5VLobject_optional_op.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static MemorySegment H5VLobject_optional_op$address() { - return H5VLobject_optional_op.ADDR; - } + public static MemorySegment H5VLobject_optional_op$address() { return H5VLobject_optional_op.ADDR; } /** * {@snippet lang=c : - * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) + * herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned int app_line, hid_t + * loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id) * } */ - public static int H5VLobject_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, long loc_id, MemorySegment name, long lapl_id, MemorySegment args, long dxpl_id, long es_id) { + public static int H5VLobject_optional_op(MemorySegment app_file, MemorySegment app_func, int app_line, + long loc_id, MemorySegment name, long lapl_id, + MemorySegment args, long dxpl_id, long es_id) + { var mh$ = H5VLobject_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5VLobject_optional_op", app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, es_id); + traceDowncall("H5VLobject_optional_op", app_file, app_func, app_line, loc_id, name, lapl_id, + args, dxpl_id, es_id); } - return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, es_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + return (int)mh$.invokeExact(app_file, app_func, app_line, loc_id, name, lapl_id, args, dxpl_id, + es_id); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5VLrequest_optional_op { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5VLrequest_optional_op"); @@ -39832,7 +36485,8 @@ private static class H5VLrequest_optional_op { * herr_t H5VLrequest_optional_op(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static FunctionDescriptor H5VLrequest_optional_op$descriptor() { + public static FunctionDescriptor H5VLrequest_optional_op$descriptor() + { return H5VLrequest_optional_op.DESC; } @@ -39842,9 +36496,7 @@ private static class H5VLrequest_optional_op { * herr_t H5VLrequest_optional_op(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static MethodHandle H5VLrequest_optional_op$handle() { - return H5VLrequest_optional_op.HANDLE; - } + public static MethodHandle H5VLrequest_optional_op$handle() { return H5VLrequest_optional_op.HANDLE; } /** * Address for: @@ -39852,24 +36504,24 @@ private static class H5VLrequest_optional_op { * herr_t H5VLrequest_optional_op(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static MemorySegment H5VLrequest_optional_op$address() { - return H5VLrequest_optional_op.ADDR; - } + public static MemorySegment H5VLrequest_optional_op$address() { return H5VLrequest_optional_op.ADDR; } /** * {@snippet lang=c : * herr_t H5VLrequest_optional_op(void *req, hid_t connector_id, H5VL_optional_args_t *args) * } */ - public static int H5VLrequest_optional_op(MemorySegment req, long connector_id, MemorySegment args) { + public static int H5VLrequest_optional_op(MemorySegment req, long connector_id, MemorySegment args) + { var mh$ = H5VLrequest_optional_op.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5VLrequest_optional_op", req, connector_id, args); } return (int)mh$.invokeExact(req, connector_id, args); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5VL_MAP_GET_MAPL = (int)0L; @@ -39878,249 +36530,192 @@ public static int H5VLrequest_optional_op(MemorySegment req, long connector_id, * enum H5VL_map_get_t.H5VL_MAP_GET_MAPL = 0 * } */ - public static int H5VL_MAP_GET_MAPL() { - return H5VL_MAP_GET_MAPL; - } + public static int H5VL_MAP_GET_MAPL() { return H5VL_MAP_GET_MAPL; } private static final int H5VL_MAP_GET_MCPL = (int)1L; /** * {@snippet lang=c : * enum H5VL_map_get_t.H5VL_MAP_GET_MCPL = 1 * } */ - public static int H5VL_MAP_GET_MCPL() { - return H5VL_MAP_GET_MCPL; - } + public static int H5VL_MAP_GET_MCPL() { return H5VL_MAP_GET_MCPL; } private static final int H5VL_MAP_GET_KEY_TYPE = (int)2L; /** * {@snippet lang=c : * enum H5VL_map_get_t.H5VL_MAP_GET_KEY_TYPE = 2 * } */ - public static int H5VL_MAP_GET_KEY_TYPE() { - return H5VL_MAP_GET_KEY_TYPE; - } + public static int H5VL_MAP_GET_KEY_TYPE() { return H5VL_MAP_GET_KEY_TYPE; } private static final int H5VL_MAP_GET_VAL_TYPE = (int)3L; /** * {@snippet lang=c : * enum H5VL_map_get_t.H5VL_MAP_GET_VAL_TYPE = 3 * } */ - public static int H5VL_MAP_GET_VAL_TYPE() { - return H5VL_MAP_GET_VAL_TYPE; - } + public static int H5VL_MAP_GET_VAL_TYPE() { return H5VL_MAP_GET_VAL_TYPE; } private static final int H5VL_MAP_GET_COUNT = (int)4L; /** * {@snippet lang=c : * enum H5VL_map_get_t.H5VL_MAP_GET_COUNT = 4 * } */ - public static int H5VL_MAP_GET_COUNT() { - return H5VL_MAP_GET_COUNT; - } + public static int H5VL_MAP_GET_COUNT() { return H5VL_MAP_GET_COUNT; } private static final int H5VL_MAP_ITER = (int)0L; /** * {@snippet lang=c : * enum H5VL_map_specific_t.H5VL_MAP_ITER = 0 * } */ - public static int H5VL_MAP_ITER() { - return H5VL_MAP_ITER; - } + public static int H5VL_MAP_ITER() { return H5VL_MAP_ITER; } private static final int H5VL_MAP_DELETE = (int)1L; /** * {@snippet lang=c : * enum H5VL_map_specific_t.H5VL_MAP_DELETE = 1 * } */ - public static int H5VL_MAP_DELETE() { - return H5VL_MAP_DELETE; - } + public static int H5VL_MAP_DELETE() { return H5VL_MAP_DELETE; } private static final int H5S_NO_CLASS = (int)-1L; /** * {@snippet lang=c : * enum H5S_class_t.H5S_NO_CLASS = -1 * } */ - public static int H5S_NO_CLASS() { - return H5S_NO_CLASS; - } + public static int H5S_NO_CLASS() { return H5S_NO_CLASS; } private static final int H5S_SCALAR = (int)0L; /** * {@snippet lang=c : * enum H5S_class_t.H5S_SCALAR = 0 * } */ - public static int H5S_SCALAR() { - return H5S_SCALAR; - } + public static int H5S_SCALAR() { return H5S_SCALAR; } private static final int H5S_SIMPLE = (int)1L; /** * {@snippet lang=c : * enum H5S_class_t.H5S_SIMPLE = 1 * } */ - public static int H5S_SIMPLE() { - return H5S_SIMPLE; - } + public static int H5S_SIMPLE() { return H5S_SIMPLE; } private static final int H5S_NULL = (int)2L; /** * {@snippet lang=c : * enum H5S_class_t.H5S_NULL = 2 * } */ - public static int H5S_NULL() { - return H5S_NULL; - } + public static int H5S_NULL() { return H5S_NULL; } private static final int H5S_SELECT_NOOP = (int)-1L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_NOOP = -1 * } */ - public static int H5S_SELECT_NOOP() { - return H5S_SELECT_NOOP; - } + public static int H5S_SELECT_NOOP() { return H5S_SELECT_NOOP; } private static final int H5S_SELECT_SET = (int)0L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_SET = 0 * } */ - public static int H5S_SELECT_SET() { - return H5S_SELECT_SET; - } + public static int H5S_SELECT_SET() { return H5S_SELECT_SET; } private static final int H5S_SELECT_OR = (int)1L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_OR = 1 * } */ - public static int H5S_SELECT_OR() { - return H5S_SELECT_OR; - } + public static int H5S_SELECT_OR() { return H5S_SELECT_OR; } private static final int H5S_SELECT_AND = (int)2L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_AND = 2 * } */ - public static int H5S_SELECT_AND() { - return H5S_SELECT_AND; - } + public static int H5S_SELECT_AND() { return H5S_SELECT_AND; } private static final int H5S_SELECT_XOR = (int)3L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_XOR = 3 * } */ - public static int H5S_SELECT_XOR() { - return H5S_SELECT_XOR; - } + public static int H5S_SELECT_XOR() { return H5S_SELECT_XOR; } private static final int H5S_SELECT_NOTB = (int)4L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_NOTB = 4 * } */ - public static int H5S_SELECT_NOTB() { - return H5S_SELECT_NOTB; - } + public static int H5S_SELECT_NOTB() { return H5S_SELECT_NOTB; } private static final int H5S_SELECT_NOTA = (int)5L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_NOTA = 5 * } */ - public static int H5S_SELECT_NOTA() { - return H5S_SELECT_NOTA; - } + public static int H5S_SELECT_NOTA() { return H5S_SELECT_NOTA; } private static final int H5S_SELECT_APPEND = (int)6L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_APPEND = 6 * } */ - public static int H5S_SELECT_APPEND() { - return H5S_SELECT_APPEND; - } + public static int H5S_SELECT_APPEND() { return H5S_SELECT_APPEND; } private static final int H5S_SELECT_PREPEND = (int)7L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_PREPEND = 7 * } */ - public static int H5S_SELECT_PREPEND() { - return H5S_SELECT_PREPEND; - } + public static int H5S_SELECT_PREPEND() { return H5S_SELECT_PREPEND; } private static final int H5S_SELECT_INVALID = (int)8L; /** * {@snippet lang=c : * enum H5S_seloper_t.H5S_SELECT_INVALID = 8 * } */ - public static int H5S_SELECT_INVALID() { - return H5S_SELECT_INVALID; - } + public static int H5S_SELECT_INVALID() { return H5S_SELECT_INVALID; } private static final int H5S_SEL_ERROR = (int)-1L; /** * {@snippet lang=c : * enum .H5S_SEL_ERROR = -1 * } */ - public static int H5S_SEL_ERROR() { - return H5S_SEL_ERROR; - } + public static int H5S_SEL_ERROR() { return H5S_SEL_ERROR; } private static final int H5S_SEL_NONE = (int)0L; /** * {@snippet lang=c : * enum .H5S_SEL_NONE = 0 * } */ - public static int H5S_SEL_NONE() { - return H5S_SEL_NONE; - } + public static int H5S_SEL_NONE() { return H5S_SEL_NONE; } private static final int H5S_SEL_POINTS = (int)1L; /** * {@snippet lang=c : * enum .H5S_SEL_POINTS = 1 * } */ - public static int H5S_SEL_POINTS() { - return H5S_SEL_POINTS; - } + public static int H5S_SEL_POINTS() { return H5S_SEL_POINTS; } private static final int H5S_SEL_HYPERSLABS = (int)2L; /** * {@snippet lang=c : * enum .H5S_SEL_HYPERSLABS = 2 * } */ - public static int H5S_SEL_HYPERSLABS() { - return H5S_SEL_HYPERSLABS; - } + public static int H5S_SEL_HYPERSLABS() { return H5S_SEL_HYPERSLABS; } private static final int H5S_SEL_ALL = (int)3L; /** * {@snippet lang=c : * enum .H5S_SEL_ALL = 3 * } */ - public static int H5S_SEL_ALL() { - return H5S_SEL_ALL; - } + public static int H5S_SEL_ALL() { return H5S_SEL_ALL; } private static final int H5S_SEL_N = (int)4L; /** * {@snippet lang=c : * enum .H5S_SEL_N = 4 * } */ - public static int H5S_SEL_N() { - return H5S_SEL_N; - } + public static int H5S_SEL_N() { return H5S_SEL_N; } private static class H5Sclose { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sclose"); @@ -40133,9 +36728,7 @@ private static class H5Sclose { * herr_t H5Sclose(hid_t space_id) * } */ - public static FunctionDescriptor H5Sclose$descriptor() { - return H5Sclose.DESC; - } + public static FunctionDescriptor H5Sclose$descriptor() { return H5Sclose.DESC; } /** * Downcall method handle for: @@ -40143,9 +36736,7 @@ private static class H5Sclose { * herr_t H5Sclose(hid_t space_id) * } */ - public static MethodHandle H5Sclose$handle() { - return H5Sclose.HANDLE; - } + public static MethodHandle H5Sclose$handle() { return H5Sclose.HANDLE; } /** * Address for: @@ -40153,37 +36744,31 @@ private static class H5Sclose { * herr_t H5Sclose(hid_t space_id) * } */ - public static MemorySegment H5Sclose$address() { - return H5Sclose.ADDR; - } + public static MemorySegment H5Sclose$address() { return H5Sclose.ADDR; } /** * {@snippet lang=c : * herr_t H5Sclose(hid_t space_id) * } */ - public static int H5Sclose(long space_id) { + public static int H5Sclose(long space_id) + { var mh$ = H5Sclose.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sclose", space_id); } return (int)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Scombine_hyperslab { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Scombine_hyperslab"); @@ -40193,57 +36778,54 @@ private static class H5Scombine_hyperslab { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static FunctionDescriptor H5Scombine_hyperslab$descriptor() { - return H5Scombine_hyperslab.DESC; - } + public static FunctionDescriptor H5Scombine_hyperslab$descriptor() { return H5Scombine_hyperslab.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MethodHandle H5Scombine_hyperslab$handle() { - return H5Scombine_hyperslab.HANDLE; - } + public static MethodHandle H5Scombine_hyperslab$handle() { return H5Scombine_hyperslab.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MemorySegment H5Scombine_hyperslab$address() { - return H5Scombine_hyperslab.ADDR; - } + public static MemorySegment H5Scombine_hyperslab$address() { return H5Scombine_hyperslab.ADDR; } /** * {@snippet lang=c : - * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * hid_t H5Scombine_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static long H5Scombine_hyperslab(long space_id, int op, MemorySegment start, MemorySegment stride, MemorySegment count, MemorySegment block) { + public static long H5Scombine_hyperslab(long space_id, int op, MemorySegment start, MemorySegment stride, + MemorySegment count, MemorySegment block) + { var mh$ = H5Scombine_hyperslab.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Scombine_hyperslab", space_id, op, start, stride, count, block); } return (long)mh$.invokeExact(space_id, op, start, stride, count, block); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Scombine_select { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Scombine_select"); @@ -40256,9 +36838,7 @@ private static class H5Scombine_select { * hid_t H5Scombine_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static FunctionDescriptor H5Scombine_select$descriptor() { - return H5Scombine_select.DESC; - } + public static FunctionDescriptor H5Scombine_select$descriptor() { return H5Scombine_select.DESC; } /** * Downcall method handle for: @@ -40266,9 +36846,7 @@ private static class H5Scombine_select { * hid_t H5Scombine_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static MethodHandle H5Scombine_select$handle() { - return H5Scombine_select.HANDLE; - } + public static MethodHandle H5Scombine_select$handle() { return H5Scombine_select.HANDLE; } /** * Address for: @@ -40276,32 +36854,29 @@ private static class H5Scombine_select { * hid_t H5Scombine_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static MemorySegment H5Scombine_select$address() { - return H5Scombine_select.ADDR; - } + public static MemorySegment H5Scombine_select$address() { return H5Scombine_select.ADDR; } /** * {@snippet lang=c : * hid_t H5Scombine_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static long H5Scombine_select(long space1_id, int op, long space2_id) { + public static long H5Scombine_select(long space1_id, int op, long space2_id) + { var mh$ = H5Scombine_select.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Scombine_select", space1_id, op, space2_id); } return (long)mh$.invokeExact(space1_id, op, space2_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Scopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Scopy"); @@ -40314,9 +36889,7 @@ private static class H5Scopy { * hid_t H5Scopy(hid_t space_id) * } */ - public static FunctionDescriptor H5Scopy$descriptor() { - return H5Scopy.DESC; - } + public static FunctionDescriptor H5Scopy$descriptor() { return H5Scopy.DESC; } /** * Downcall method handle for: @@ -40324,9 +36897,7 @@ private static class H5Scopy { * hid_t H5Scopy(hid_t space_id) * } */ - public static MethodHandle H5Scopy$handle() { - return H5Scopy.HANDLE; - } + public static MethodHandle H5Scopy$handle() { return H5Scopy.HANDLE; } /** * Address for: @@ -40334,32 +36905,29 @@ private static class H5Scopy { * hid_t H5Scopy(hid_t space_id) * } */ - public static MemorySegment H5Scopy$address() { - return H5Scopy.ADDR; - } + public static MemorySegment H5Scopy$address() { return H5Scopy.ADDR; } /** * {@snippet lang=c : * hid_t H5Scopy(hid_t space_id) * } */ - public static long H5Scopy(long space_id) { + public static long H5Scopy(long space_id) + { var mh$ = H5Scopy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Scopy", space_id); } return (long)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Screate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Screate"); @@ -40372,9 +36940,7 @@ private static class H5Screate { * hid_t H5Screate(H5S_class_t type) * } */ - public static FunctionDescriptor H5Screate$descriptor() { - return H5Screate.DESC; - } + public static FunctionDescriptor H5Screate$descriptor() { return H5Screate.DESC; } /** * Downcall method handle for: @@ -40382,9 +36948,7 @@ private static class H5Screate { * hid_t H5Screate(H5S_class_t type) * } */ - public static MethodHandle H5Screate$handle() { - return H5Screate.HANDLE; - } + public static MethodHandle H5Screate$handle() { return H5Screate.HANDLE; } /** * Address for: @@ -40392,34 +36956,30 @@ private static class H5Screate { * hid_t H5Screate(H5S_class_t type) * } */ - public static MemorySegment H5Screate$address() { - return H5Screate.ADDR; - } + public static MemorySegment H5Screate$address() { return H5Screate.ADDR; } /** * {@snippet lang=c : * hid_t H5Screate(H5S_class_t type) * } */ - public static long H5Screate(int type) { + public static long H5Screate(int type) + { var mh$ = H5Screate.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Screate", type); } return (long)mh$.invokeExact(type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Screate_simple { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Screate_simple"); @@ -40432,9 +36992,7 @@ private static class H5Screate_simple { * hid_t H5Screate_simple(int rank, const hsize_t dims[], const hsize_t maxdims[]) * } */ - public static FunctionDescriptor H5Screate_simple$descriptor() { - return H5Screate_simple.DESC; - } + public static FunctionDescriptor H5Screate_simple$descriptor() { return H5Screate_simple.DESC; } /** * Downcall method handle for: @@ -40442,9 +37000,7 @@ private static class H5Screate_simple { * hid_t H5Screate_simple(int rank, const hsize_t dims[], const hsize_t maxdims[]) * } */ - public static MethodHandle H5Screate_simple$handle() { - return H5Screate_simple.HANDLE; - } + public static MethodHandle H5Screate_simple$handle() { return H5Screate_simple.HANDLE; } /** * Address for: @@ -40452,32 +37008,29 @@ private static class H5Screate_simple { * hid_t H5Screate_simple(int rank, const hsize_t dims[], const hsize_t maxdims[]) * } */ - public static MemorySegment H5Screate_simple$address() { - return H5Screate_simple.ADDR; - } + public static MemorySegment H5Screate_simple$address() { return H5Screate_simple.ADDR; } /** * {@snippet lang=c : * hid_t H5Screate_simple(int rank, const hsize_t dims[], const hsize_t maxdims[]) * } */ - public static long H5Screate_simple(int rank, MemorySegment dims, MemorySegment maxdims) { + public static long H5Screate_simple(int rank, MemorySegment dims, MemorySegment maxdims) + { var mh$ = H5Screate_simple.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Screate_simple", rank, dims, maxdims); } return (long)mh$.invokeExact(rank, dims, maxdims); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sdecode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sdecode"); @@ -40490,9 +37043,7 @@ private static class H5Sdecode { * hid_t H5Sdecode(const void *buf) * } */ - public static FunctionDescriptor H5Sdecode$descriptor() { - return H5Sdecode.DESC; - } + public static FunctionDescriptor H5Sdecode$descriptor() { return H5Sdecode.DESC; } /** * Downcall method handle for: @@ -40500,9 +37051,7 @@ private static class H5Sdecode { * hid_t H5Sdecode(const void *buf) * } */ - public static MethodHandle H5Sdecode$handle() { - return H5Sdecode.HANDLE; - } + public static MethodHandle H5Sdecode$handle() { return H5Sdecode.HANDLE; } /** * Address for: @@ -40510,35 +37059,30 @@ private static class H5Sdecode { * hid_t H5Sdecode(const void *buf) * } */ - public static MemorySegment H5Sdecode$address() { - return H5Sdecode.ADDR; - } + public static MemorySegment H5Sdecode$address() { return H5Sdecode.ADDR; } /** * {@snippet lang=c : * hid_t H5Sdecode(const void *buf) * } */ - public static long H5Sdecode(MemorySegment buf) { + public static long H5Sdecode(MemorySegment buf) + { var mh$ = H5Sdecode.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sdecode", buf); } return (long)mh$.invokeExact(buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sencode2 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_LONG - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sencode2"); @@ -40551,9 +37095,7 @@ private static class H5Sencode2 { * herr_t H5Sencode2(hid_t obj_id, void *buf, size_t *nalloc, hid_t fapl) * } */ - public static FunctionDescriptor H5Sencode2$descriptor() { - return H5Sencode2.DESC; - } + public static FunctionDescriptor H5Sencode2$descriptor() { return H5Sencode2.DESC; } /** * Downcall method handle for: @@ -40561,9 +37103,7 @@ private static class H5Sencode2 { * herr_t H5Sencode2(hid_t obj_id, void *buf, size_t *nalloc, hid_t fapl) * } */ - public static MethodHandle H5Sencode2$handle() { - return H5Sencode2.HANDLE; - } + public static MethodHandle H5Sencode2$handle() { return H5Sencode2.HANDLE; } /** * Address for: @@ -40571,33 +37111,30 @@ private static class H5Sencode2 { * herr_t H5Sencode2(hid_t obj_id, void *buf, size_t *nalloc, hid_t fapl) * } */ - public static MemorySegment H5Sencode2$address() { - return H5Sencode2.ADDR; - } + public static MemorySegment H5Sencode2$address() { return H5Sencode2.ADDR; } /** * {@snippet lang=c : * herr_t H5Sencode2(hid_t obj_id, void *buf, size_t *nalloc, hid_t fapl) * } */ - public static int H5Sencode2(long obj_id, MemorySegment buf, MemorySegment nalloc, long fapl) { + public static int H5Sencode2(long obj_id, MemorySegment buf, MemorySegment nalloc, long fapl) + { var mh$ = H5Sencode2.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sencode2", obj_id, buf, nalloc, fapl); } return (int)mh$.invokeExact(obj_id, buf, nalloc, fapl); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sextent_copy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sextent_copy"); @@ -40610,9 +37147,7 @@ private static class H5Sextent_copy { * herr_t H5Sextent_copy(hid_t dst_id, hid_t src_id) * } */ - public static FunctionDescriptor H5Sextent_copy$descriptor() { - return H5Sextent_copy.DESC; - } + public static FunctionDescriptor H5Sextent_copy$descriptor() { return H5Sextent_copy.DESC; } /** * Downcall method handle for: @@ -40620,9 +37155,7 @@ private static class H5Sextent_copy { * herr_t H5Sextent_copy(hid_t dst_id, hid_t src_id) * } */ - public static MethodHandle H5Sextent_copy$handle() { - return H5Sextent_copy.HANDLE; - } + public static MethodHandle H5Sextent_copy$handle() { return H5Sextent_copy.HANDLE; } /** * Address for: @@ -40630,33 +37163,30 @@ private static class H5Sextent_copy { * herr_t H5Sextent_copy(hid_t dst_id, hid_t src_id) * } */ - public static MemorySegment H5Sextent_copy$address() { - return H5Sextent_copy.ADDR; - } + public static MemorySegment H5Sextent_copy$address() { return H5Sextent_copy.ADDR; } /** * {@snippet lang=c : * herr_t H5Sextent_copy(hid_t dst_id, hid_t src_id) * } */ - public static int H5Sextent_copy(long dst_id, long src_id) { + public static int H5Sextent_copy(long dst_id, long src_id) + { var mh$ = H5Sextent_copy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sextent_copy", dst_id, src_id); } return (int)mh$.invokeExact(dst_id, src_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sextent_equal { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sextent_equal"); @@ -40669,9 +37199,7 @@ private static class H5Sextent_equal { * htri_t H5Sextent_equal(hid_t space1_id, hid_t space2_id) * } */ - public static FunctionDescriptor H5Sextent_equal$descriptor() { - return H5Sextent_equal.DESC; - } + public static FunctionDescriptor H5Sextent_equal$descriptor() { return H5Sextent_equal.DESC; } /** * Downcall method handle for: @@ -40679,9 +37207,7 @@ private static class H5Sextent_equal { * htri_t H5Sextent_equal(hid_t space1_id, hid_t space2_id) * } */ - public static MethodHandle H5Sextent_equal$handle() { - return H5Sextent_equal.HANDLE; - } + public static MethodHandle H5Sextent_equal$handle() { return H5Sextent_equal.HANDLE; } /** * Address for: @@ -40689,36 +37215,31 @@ private static class H5Sextent_equal { * htri_t H5Sextent_equal(hid_t space1_id, hid_t space2_id) * } */ - public static MemorySegment H5Sextent_equal$address() { - return H5Sextent_equal.ADDR; - } + public static MemorySegment H5Sextent_equal$address() { return H5Sextent_equal.ADDR; } /** * {@snippet lang=c : * htri_t H5Sextent_equal(hid_t space1_id, hid_t space2_id) * } */ - public static int H5Sextent_equal(long space1_id, long space2_id) { + public static int H5Sextent_equal(long space1_id, long space2_id) + { var mh$ = H5Sextent_equal.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sextent_equal", space1_id, space2_id); } return (int)mh$.invokeExact(space1_id, space2_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_regular_hyperslab { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_regular_hyperslab"); @@ -40728,57 +37249,57 @@ private static class H5Sget_regular_hyperslab { /** * Function descriptor for: * {@snippet lang=c : - * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], hsize_t block[]) + * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], + * hsize_t block[]) * } */ - public static FunctionDescriptor H5Sget_regular_hyperslab$descriptor() { + public static FunctionDescriptor H5Sget_regular_hyperslab$descriptor() + { return H5Sget_regular_hyperslab.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], hsize_t block[]) + * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], + * hsize_t block[]) * } */ - public static MethodHandle H5Sget_regular_hyperslab$handle() { - return H5Sget_regular_hyperslab.HANDLE; - } + public static MethodHandle H5Sget_regular_hyperslab$handle() { return H5Sget_regular_hyperslab.HANDLE; } /** * Address for: * {@snippet lang=c : - * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], hsize_t block[]) + * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], + * hsize_t block[]) * } */ - public static MemorySegment H5Sget_regular_hyperslab$address() { - return H5Sget_regular_hyperslab.ADDR; - } + public static MemorySegment H5Sget_regular_hyperslab$address() { return H5Sget_regular_hyperslab.ADDR; } /** * {@snippet lang=c : - * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], hsize_t block[]) + * htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[], hsize_t stride[], hsize_t count[], + * hsize_t block[]) * } */ - public static int H5Sget_regular_hyperslab(long spaceid, MemorySegment start, MemorySegment stride, MemorySegment count, MemorySegment block) { + public static int H5Sget_regular_hyperslab(long spaceid, MemorySegment start, MemorySegment stride, + MemorySegment count, MemorySegment block) + { var mh$ = H5Sget_regular_hyperslab.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_regular_hyperslab", spaceid, start, stride, count, block); } return (int)mh$.invokeExact(spaceid, start, stride, count, block); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_bounds { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_bounds"); @@ -40791,9 +37312,7 @@ private static class H5Sget_select_bounds { * herr_t H5Sget_select_bounds(hid_t spaceid, hsize_t start[], hsize_t end[]) * } */ - public static FunctionDescriptor H5Sget_select_bounds$descriptor() { - return H5Sget_select_bounds.DESC; - } + public static FunctionDescriptor H5Sget_select_bounds$descriptor() { return H5Sget_select_bounds.DESC; } /** * Downcall method handle for: @@ -40801,9 +37320,7 @@ private static class H5Sget_select_bounds { * herr_t H5Sget_select_bounds(hid_t spaceid, hsize_t start[], hsize_t end[]) * } */ - public static MethodHandle H5Sget_select_bounds$handle() { - return H5Sget_select_bounds.HANDLE; - } + public static MethodHandle H5Sget_select_bounds$handle() { return H5Sget_select_bounds.HANDLE; } /** * Address for: @@ -40811,32 +37328,29 @@ private static class H5Sget_select_bounds { * herr_t H5Sget_select_bounds(hid_t spaceid, hsize_t start[], hsize_t end[]) * } */ - public static MemorySegment H5Sget_select_bounds$address() { - return H5Sget_select_bounds.ADDR; - } + public static MemorySegment H5Sget_select_bounds$address() { return H5Sget_select_bounds.ADDR; } /** * {@snippet lang=c : * herr_t H5Sget_select_bounds(hid_t spaceid, hsize_t start[], hsize_t end[]) * } */ - public static int H5Sget_select_bounds(long spaceid, MemorySegment start, MemorySegment end) { + public static int H5Sget_select_bounds(long spaceid, MemorySegment start, MemorySegment end) + { var mh$ = H5Sget_select_bounds.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_bounds", spaceid, start, end); } return (int)mh$.invokeExact(spaceid, start, end); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_elem_npoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_elem_npoints"); @@ -40849,7 +37363,8 @@ private static class H5Sget_select_elem_npoints { * hssize_t H5Sget_select_elem_npoints(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sget_select_elem_npoints$descriptor() { + public static FunctionDescriptor H5Sget_select_elem_npoints$descriptor() + { return H5Sget_select_elem_npoints.DESC; } @@ -40859,7 +37374,8 @@ private static class H5Sget_select_elem_npoints { * hssize_t H5Sget_select_elem_npoints(hid_t spaceid) * } */ - public static MethodHandle H5Sget_select_elem_npoints$handle() { + public static MethodHandle H5Sget_select_elem_npoints$handle() + { return H5Sget_select_elem_npoints.HANDLE; } @@ -40869,7 +37385,8 @@ private static class H5Sget_select_elem_npoints { * hssize_t H5Sget_select_elem_npoints(hid_t spaceid) * } */ - public static MemorySegment H5Sget_select_elem_npoints$address() { + public static MemorySegment H5Sget_select_elem_npoints$address() + { return H5Sget_select_elem_npoints.ADDR; } @@ -40878,26 +37395,23 @@ private static class H5Sget_select_elem_npoints { * hssize_t H5Sget_select_elem_npoints(hid_t spaceid) * } */ - public static long H5Sget_select_elem_npoints(long spaceid) { + public static long H5Sget_select_elem_npoints(long spaceid) + { var mh$ = H5Sget_select_elem_npoints.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_elem_npoints", spaceid); } return (long)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_elem_pointlist { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_elem_pointlist"); @@ -40907,58 +37421,63 @@ private static class H5Sget_select_elem_pointlist { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t buf[]) + * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t + * buf[]) * } */ - public static FunctionDescriptor H5Sget_select_elem_pointlist$descriptor() { + public static FunctionDescriptor H5Sget_select_elem_pointlist$descriptor() + { return H5Sget_select_elem_pointlist.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t buf[]) + * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t + * buf[]) * } */ - public static MethodHandle H5Sget_select_elem_pointlist$handle() { + public static MethodHandle H5Sget_select_elem_pointlist$handle() + { return H5Sget_select_elem_pointlist.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t buf[]) + * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t + * buf[]) * } */ - public static MemorySegment H5Sget_select_elem_pointlist$address() { + public static MemorySegment H5Sget_select_elem_pointlist$address() + { return H5Sget_select_elem_pointlist.ADDR; } /** * {@snippet lang=c : - * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t buf[]) + * herr_t H5Sget_select_elem_pointlist(hid_t spaceid, hsize_t startpoint, hsize_t numpoints, hsize_t + * buf[]) * } */ - public static int H5Sget_select_elem_pointlist(long spaceid, long startpoint, long numpoints, MemorySegment buf) { + public static int H5Sget_select_elem_pointlist(long spaceid, long startpoint, long numpoints, + MemorySegment buf) + { var mh$ = H5Sget_select_elem_pointlist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_elem_pointlist", spaceid, startpoint, numpoints, buf); } return (int)mh$.invokeExact(spaceid, startpoint, numpoints, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_hyper_blocklist { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_hyper_blocklist"); @@ -40968,55 +37487,62 @@ private static class H5Sget_select_hyper_blocklist { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t buf[]) + * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t + * buf[]) * } */ - public static FunctionDescriptor H5Sget_select_hyper_blocklist$descriptor() { + public static FunctionDescriptor H5Sget_select_hyper_blocklist$descriptor() + { return H5Sget_select_hyper_blocklist.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t buf[]) + * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t + * buf[]) * } */ - public static MethodHandle H5Sget_select_hyper_blocklist$handle() { + public static MethodHandle H5Sget_select_hyper_blocklist$handle() + { return H5Sget_select_hyper_blocklist.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t buf[]) + * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t + * buf[]) * } */ - public static MemorySegment H5Sget_select_hyper_blocklist$address() { + public static MemorySegment H5Sget_select_hyper_blocklist$address() + { return H5Sget_select_hyper_blocklist.ADDR; } /** * {@snippet lang=c : - * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t buf[]) + * herr_t H5Sget_select_hyper_blocklist(hid_t spaceid, hsize_t startblock, hsize_t numblocks, hsize_t + * buf[]) * } */ - public static int H5Sget_select_hyper_blocklist(long spaceid, long startblock, long numblocks, MemorySegment buf) { + public static int H5Sget_select_hyper_blocklist(long spaceid, long startblock, long numblocks, + MemorySegment buf) + { var mh$ = H5Sget_select_hyper_blocklist.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_hyper_blocklist", spaceid, startblock, numblocks, buf); } return (int)mh$.invokeExact(spaceid, startblock, numblocks, buf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_hyper_nblocks { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_hyper_nblocks"); @@ -41029,7 +37555,8 @@ private static class H5Sget_select_hyper_nblocks { * hssize_t H5Sget_select_hyper_nblocks(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sget_select_hyper_nblocks$descriptor() { + public static FunctionDescriptor H5Sget_select_hyper_nblocks$descriptor() + { return H5Sget_select_hyper_nblocks.DESC; } @@ -41039,7 +37566,8 @@ private static class H5Sget_select_hyper_nblocks { * hssize_t H5Sget_select_hyper_nblocks(hid_t spaceid) * } */ - public static MethodHandle H5Sget_select_hyper_nblocks$handle() { + public static MethodHandle H5Sget_select_hyper_nblocks$handle() + { return H5Sget_select_hyper_nblocks.HANDLE; } @@ -41049,7 +37577,8 @@ private static class H5Sget_select_hyper_nblocks { * hssize_t H5Sget_select_hyper_nblocks(hid_t spaceid) * } */ - public static MemorySegment H5Sget_select_hyper_nblocks$address() { + public static MemorySegment H5Sget_select_hyper_nblocks$address() + { return H5Sget_select_hyper_nblocks.ADDR; } @@ -41058,23 +37587,22 @@ private static class H5Sget_select_hyper_nblocks { * hssize_t H5Sget_select_hyper_nblocks(hid_t spaceid) * } */ - public static long H5Sget_select_hyper_nblocks(long spaceid) { + public static long H5Sget_select_hyper_nblocks(long spaceid) + { var mh$ = H5Sget_select_hyper_nblocks.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_hyper_nblocks", spaceid); } return (long)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_npoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_npoints"); @@ -41087,9 +37615,7 @@ private static class H5Sget_select_npoints { * hssize_t H5Sget_select_npoints(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sget_select_npoints$descriptor() { - return H5Sget_select_npoints.DESC; - } + public static FunctionDescriptor H5Sget_select_npoints$descriptor() { return H5Sget_select_npoints.DESC; } /** * Downcall method handle for: @@ -41097,9 +37623,7 @@ private static class H5Sget_select_npoints { * hssize_t H5Sget_select_npoints(hid_t spaceid) * } */ - public static MethodHandle H5Sget_select_npoints$handle() { - return H5Sget_select_npoints.HANDLE; - } + public static MethodHandle H5Sget_select_npoints$handle() { return H5Sget_select_npoints.HANDLE; } /** * Address for: @@ -41107,32 +37631,29 @@ private static class H5Sget_select_npoints { * hssize_t H5Sget_select_npoints(hid_t spaceid) * } */ - public static MemorySegment H5Sget_select_npoints$address() { - return H5Sget_select_npoints.ADDR; - } + public static MemorySegment H5Sget_select_npoints$address() { return H5Sget_select_npoints.ADDR; } /** * {@snippet lang=c : * hssize_t H5Sget_select_npoints(hid_t spaceid) * } */ - public static long H5Sget_select_npoints(long spaceid) { + public static long H5Sget_select_npoints(long spaceid) + { var mh$ = H5Sget_select_npoints.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_npoints", spaceid); } return (long)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_select_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_select_type"); @@ -41145,9 +37666,7 @@ private static class H5Sget_select_type { * H5S_sel_type H5Sget_select_type(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sget_select_type$descriptor() { - return H5Sget_select_type.DESC; - } + public static FunctionDescriptor H5Sget_select_type$descriptor() { return H5Sget_select_type.DESC; } /** * Downcall method handle for: @@ -41155,9 +37674,7 @@ private static class H5Sget_select_type { * H5S_sel_type H5Sget_select_type(hid_t spaceid) * } */ - public static MethodHandle H5Sget_select_type$handle() { - return H5Sget_select_type.HANDLE; - } + public static MethodHandle H5Sget_select_type$handle() { return H5Sget_select_type.HANDLE; } /** * Address for: @@ -41165,34 +37682,30 @@ private static class H5Sget_select_type { * H5S_sel_type H5Sget_select_type(hid_t spaceid) * } */ - public static MemorySegment H5Sget_select_type$address() { - return H5Sget_select_type.ADDR; - } + public static MemorySegment H5Sget_select_type$address() { return H5Sget_select_type.ADDR; } /** * {@snippet lang=c : * H5S_sel_type H5Sget_select_type(hid_t spaceid) * } */ - public static int H5Sget_select_type(long spaceid) { + public static int H5Sget_select_type(long spaceid) + { var mh$ = H5Sget_select_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_select_type", spaceid); } return (int)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_simple_extent_dims { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_simple_extent_dims"); @@ -41205,7 +37718,8 @@ private static class H5Sget_simple_extent_dims { * int H5Sget_simple_extent_dims(hid_t space_id, hsize_t dims[], hsize_t maxdims[]) * } */ - public static FunctionDescriptor H5Sget_simple_extent_dims$descriptor() { + public static FunctionDescriptor H5Sget_simple_extent_dims$descriptor() + { return H5Sget_simple_extent_dims.DESC; } @@ -41215,9 +37729,7 @@ private static class H5Sget_simple_extent_dims { * int H5Sget_simple_extent_dims(hid_t space_id, hsize_t dims[], hsize_t maxdims[]) * } */ - public static MethodHandle H5Sget_simple_extent_dims$handle() { - return H5Sget_simple_extent_dims.HANDLE; - } + public static MethodHandle H5Sget_simple_extent_dims$handle() { return H5Sget_simple_extent_dims.HANDLE; } /** * Address for: @@ -41225,32 +37737,29 @@ private static class H5Sget_simple_extent_dims { * int H5Sget_simple_extent_dims(hid_t space_id, hsize_t dims[], hsize_t maxdims[]) * } */ - public static MemorySegment H5Sget_simple_extent_dims$address() { - return H5Sget_simple_extent_dims.ADDR; - } + public static MemorySegment H5Sget_simple_extent_dims$address() { return H5Sget_simple_extent_dims.ADDR; } /** * {@snippet lang=c : * int H5Sget_simple_extent_dims(hid_t space_id, hsize_t dims[], hsize_t maxdims[]) * } */ - public static int H5Sget_simple_extent_dims(long space_id, MemorySegment dims, MemorySegment maxdims) { + public static int H5Sget_simple_extent_dims(long space_id, MemorySegment dims, MemorySegment maxdims) + { var mh$ = H5Sget_simple_extent_dims.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_simple_extent_dims", space_id, dims, maxdims); } return (int)mh$.invokeExact(space_id, dims, maxdims); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_simple_extent_ndims { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_simple_extent_ndims"); @@ -41263,7 +37772,8 @@ private static class H5Sget_simple_extent_ndims { * int H5Sget_simple_extent_ndims(hid_t space_id) * } */ - public static FunctionDescriptor H5Sget_simple_extent_ndims$descriptor() { + public static FunctionDescriptor H5Sget_simple_extent_ndims$descriptor() + { return H5Sget_simple_extent_ndims.DESC; } @@ -41273,7 +37783,8 @@ private static class H5Sget_simple_extent_ndims { * int H5Sget_simple_extent_ndims(hid_t space_id) * } */ - public static MethodHandle H5Sget_simple_extent_ndims$handle() { + public static MethodHandle H5Sget_simple_extent_ndims$handle() + { return H5Sget_simple_extent_ndims.HANDLE; } @@ -41283,7 +37794,8 @@ private static class H5Sget_simple_extent_ndims { * int H5Sget_simple_extent_ndims(hid_t space_id) * } */ - public static MemorySegment H5Sget_simple_extent_ndims$address() { + public static MemorySegment H5Sget_simple_extent_ndims$address() + { return H5Sget_simple_extent_ndims.ADDR; } @@ -41292,23 +37804,22 @@ private static class H5Sget_simple_extent_ndims { * int H5Sget_simple_extent_ndims(hid_t space_id) * } */ - public static int H5Sget_simple_extent_ndims(long space_id) { + public static int H5Sget_simple_extent_ndims(long space_id) + { var mh$ = H5Sget_simple_extent_ndims.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_simple_extent_ndims", space_id); } return (int)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_simple_extent_npoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_simple_extent_npoints"); @@ -41321,7 +37832,8 @@ private static class H5Sget_simple_extent_npoints { * hssize_t H5Sget_simple_extent_npoints(hid_t space_id) * } */ - public static FunctionDescriptor H5Sget_simple_extent_npoints$descriptor() { + public static FunctionDescriptor H5Sget_simple_extent_npoints$descriptor() + { return H5Sget_simple_extent_npoints.DESC; } @@ -41331,7 +37843,8 @@ private static class H5Sget_simple_extent_npoints { * hssize_t H5Sget_simple_extent_npoints(hid_t space_id) * } */ - public static MethodHandle H5Sget_simple_extent_npoints$handle() { + public static MethodHandle H5Sget_simple_extent_npoints$handle() + { return H5Sget_simple_extent_npoints.HANDLE; } @@ -41341,7 +37854,8 @@ private static class H5Sget_simple_extent_npoints { * hssize_t H5Sget_simple_extent_npoints(hid_t space_id) * } */ - public static MemorySegment H5Sget_simple_extent_npoints$address() { + public static MemorySegment H5Sget_simple_extent_npoints$address() + { return H5Sget_simple_extent_npoints.ADDR; } @@ -41350,23 +37864,22 @@ private static class H5Sget_simple_extent_npoints { * hssize_t H5Sget_simple_extent_npoints(hid_t space_id) * } */ - public static long H5Sget_simple_extent_npoints(long space_id) { + public static long H5Sget_simple_extent_npoints(long space_id) + { var mh$ = H5Sget_simple_extent_npoints.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_simple_extent_npoints", space_id); } return (long)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sget_simple_extent_type { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sget_simple_extent_type"); @@ -41379,7 +37892,8 @@ private static class H5Sget_simple_extent_type { * H5S_class_t H5Sget_simple_extent_type(hid_t space_id) * } */ - public static FunctionDescriptor H5Sget_simple_extent_type$descriptor() { + public static FunctionDescriptor H5Sget_simple_extent_type$descriptor() + { return H5Sget_simple_extent_type.DESC; } @@ -41389,9 +37903,7 @@ private static class H5Sget_simple_extent_type { * H5S_class_t H5Sget_simple_extent_type(hid_t space_id) * } */ - public static MethodHandle H5Sget_simple_extent_type$handle() { - return H5Sget_simple_extent_type.HANDLE; - } + public static MethodHandle H5Sget_simple_extent_type$handle() { return H5Sget_simple_extent_type.HANDLE; } /** * Address for: @@ -41399,32 +37911,29 @@ private static class H5Sget_simple_extent_type { * H5S_class_t H5Sget_simple_extent_type(hid_t space_id) * } */ - public static MemorySegment H5Sget_simple_extent_type$address() { - return H5Sget_simple_extent_type.ADDR; - } + public static MemorySegment H5Sget_simple_extent_type$address() { return H5Sget_simple_extent_type.ADDR; } /** * {@snippet lang=c : * H5S_class_t H5Sget_simple_extent_type(hid_t space_id) * } */ - public static int H5Sget_simple_extent_type(long space_id) { + public static int H5Sget_simple_extent_type(long space_id) + { var mh$ = H5Sget_simple_extent_type.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sget_simple_extent_type", space_id); } return (int)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sis_regular_hyperslab { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sis_regular_hyperslab"); @@ -41437,7 +37946,8 @@ private static class H5Sis_regular_hyperslab { * htri_t H5Sis_regular_hyperslab(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sis_regular_hyperslab$descriptor() { + public static FunctionDescriptor H5Sis_regular_hyperslab$descriptor() + { return H5Sis_regular_hyperslab.DESC; } @@ -41447,9 +37957,7 @@ private static class H5Sis_regular_hyperslab { * htri_t H5Sis_regular_hyperslab(hid_t spaceid) * } */ - public static MethodHandle H5Sis_regular_hyperslab$handle() { - return H5Sis_regular_hyperslab.HANDLE; - } + public static MethodHandle H5Sis_regular_hyperslab$handle() { return H5Sis_regular_hyperslab.HANDLE; } /** * Address for: @@ -41457,32 +37965,29 @@ private static class H5Sis_regular_hyperslab { * htri_t H5Sis_regular_hyperslab(hid_t spaceid) * } */ - public static MemorySegment H5Sis_regular_hyperslab$address() { - return H5Sis_regular_hyperslab.ADDR; - } + public static MemorySegment H5Sis_regular_hyperslab$address() { return H5Sis_regular_hyperslab.ADDR; } /** * {@snippet lang=c : * htri_t H5Sis_regular_hyperslab(hid_t spaceid) * } */ - public static int H5Sis_regular_hyperslab(long spaceid) { + public static int H5Sis_regular_hyperslab(long spaceid) + { var mh$ = H5Sis_regular_hyperslab.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sis_regular_hyperslab", spaceid); } return (int)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sis_simple { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sis_simple"); @@ -41495,9 +38000,7 @@ private static class H5Sis_simple { * htri_t H5Sis_simple(hid_t space_id) * } */ - public static FunctionDescriptor H5Sis_simple$descriptor() { - return H5Sis_simple.DESC; - } + public static FunctionDescriptor H5Sis_simple$descriptor() { return H5Sis_simple.DESC; } /** * Downcall method handle for: @@ -41505,9 +38008,7 @@ private static class H5Sis_simple { * htri_t H5Sis_simple(hid_t space_id) * } */ - public static MethodHandle H5Sis_simple$handle() { - return H5Sis_simple.HANDLE; - } + public static MethodHandle H5Sis_simple$handle() { return H5Sis_simple.HANDLE; } /** * Address for: @@ -41515,34 +38016,30 @@ private static class H5Sis_simple { * htri_t H5Sis_simple(hid_t space_id) * } */ - public static MemorySegment H5Sis_simple$address() { - return H5Sis_simple.ADDR; - } + public static MemorySegment H5Sis_simple$address() { return H5Sis_simple.ADDR; } /** * {@snippet lang=c : * htri_t H5Sis_simple(hid_t space_id) * } */ - public static int H5Sis_simple(long space_id) { + public static int H5Sis_simple(long space_id) + { var mh$ = H5Sis_simple.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sis_simple", space_id); } return (int)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Smodify_select { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Smodify_select"); @@ -41555,9 +38052,7 @@ private static class H5Smodify_select { * herr_t H5Smodify_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static FunctionDescriptor H5Smodify_select$descriptor() { - return H5Smodify_select.DESC; - } + public static FunctionDescriptor H5Smodify_select$descriptor() { return H5Smodify_select.DESC; } /** * Downcall method handle for: @@ -41565,9 +38060,7 @@ private static class H5Smodify_select { * herr_t H5Smodify_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static MethodHandle H5Smodify_select$handle() { - return H5Smodify_select.HANDLE; - } + public static MethodHandle H5Smodify_select$handle() { return H5Smodify_select.HANDLE; } /** * Address for: @@ -41575,33 +38068,30 @@ private static class H5Smodify_select { * herr_t H5Smodify_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static MemorySegment H5Smodify_select$address() { - return H5Smodify_select.ADDR; - } + public static MemorySegment H5Smodify_select$address() { return H5Smodify_select.ADDR; } /** * {@snippet lang=c : * herr_t H5Smodify_select(hid_t space1_id, H5S_seloper_t op, hid_t space2_id) * } */ - public static int H5Smodify_select(long space1_id, int op, long space2_id) { + public static int H5Smodify_select(long space1_id, int op, long space2_id) + { var mh$ = H5Smodify_select.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Smodify_select", space1_id, op, space2_id); } return (int)mh$.invokeExact(space1_id, op, space2_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Soffset_simple { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Soffset_simple"); @@ -41614,9 +38104,7 @@ private static class H5Soffset_simple { * herr_t H5Soffset_simple(hid_t space_id, const hssize_t *offset) * } */ - public static FunctionDescriptor H5Soffset_simple$descriptor() { - return H5Soffset_simple.DESC; - } + public static FunctionDescriptor H5Soffset_simple$descriptor() { return H5Soffset_simple.DESC; } /** * Downcall method handle for: @@ -41624,9 +38112,7 @@ private static class H5Soffset_simple { * herr_t H5Soffset_simple(hid_t space_id, const hssize_t *offset) * } */ - public static MethodHandle H5Soffset_simple$handle() { - return H5Soffset_simple.HANDLE; - } + public static MethodHandle H5Soffset_simple$handle() { return H5Soffset_simple.HANDLE; } /** * Address for: @@ -41634,32 +38120,29 @@ private static class H5Soffset_simple { * herr_t H5Soffset_simple(hid_t space_id, const hssize_t *offset) * } */ - public static MemorySegment H5Soffset_simple$address() { - return H5Soffset_simple.ADDR; - } + public static MemorySegment H5Soffset_simple$address() { return H5Soffset_simple.ADDR; } /** * {@snippet lang=c : * herr_t H5Soffset_simple(hid_t space_id, const hssize_t *offset) * } */ - public static int H5Soffset_simple(long space_id, MemorySegment offset) { + public static int H5Soffset_simple(long space_id, MemorySegment offset) + { var mh$ = H5Soffset_simple.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Soffset_simple", space_id, offset); } return (int)mh$.invokeExact(space_id, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ssel_iter_close { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ssel_iter_close"); @@ -41672,9 +38155,7 @@ private static class H5Ssel_iter_close { * herr_t H5Ssel_iter_close(hid_t sel_iter_id) * } */ - public static FunctionDescriptor H5Ssel_iter_close$descriptor() { - return H5Ssel_iter_close.DESC; - } + public static FunctionDescriptor H5Ssel_iter_close$descriptor() { return H5Ssel_iter_close.DESC; } /** * Downcall method handle for: @@ -41682,9 +38163,7 @@ private static class H5Ssel_iter_close { * herr_t H5Ssel_iter_close(hid_t sel_iter_id) * } */ - public static MethodHandle H5Ssel_iter_close$handle() { - return H5Ssel_iter_close.HANDLE; - } + public static MethodHandle H5Ssel_iter_close$handle() { return H5Ssel_iter_close.HANDLE; } /** * Address for: @@ -41692,34 +38171,30 @@ private static class H5Ssel_iter_close { * herr_t H5Ssel_iter_close(hid_t sel_iter_id) * } */ - public static MemorySegment H5Ssel_iter_close$address() { - return H5Ssel_iter_close.ADDR; - } + public static MemorySegment H5Ssel_iter_close$address() { return H5Ssel_iter_close.ADDR; } /** * {@snippet lang=c : * herr_t H5Ssel_iter_close(hid_t sel_iter_id) * } */ - public static int H5Ssel_iter_close(long sel_iter_id) { + public static int H5Ssel_iter_close(long sel_iter_id) + { var mh$ = H5Ssel_iter_close.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ssel_iter_close", sel_iter_id); } return (int)mh$.invokeExact(sel_iter_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ssel_iter_create { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ssel_iter_create"); @@ -41732,9 +38207,7 @@ private static class H5Ssel_iter_create { * hid_t H5Ssel_iter_create(hid_t spaceid, size_t elmt_size, unsigned int flags) * } */ - public static FunctionDescriptor H5Ssel_iter_create$descriptor() { - return H5Ssel_iter_create.DESC; - } + public static FunctionDescriptor H5Ssel_iter_create$descriptor() { return H5Ssel_iter_create.DESC; } /** * Downcall method handle for: @@ -41742,9 +38215,7 @@ private static class H5Ssel_iter_create { * hid_t H5Ssel_iter_create(hid_t spaceid, size_t elmt_size, unsigned int flags) * } */ - public static MethodHandle H5Ssel_iter_create$handle() { - return H5Ssel_iter_create.HANDLE; - } + public static MethodHandle H5Ssel_iter_create$handle() { return H5Ssel_iter_create.HANDLE; } /** * Address for: @@ -41752,38 +38223,31 @@ private static class H5Ssel_iter_create { * hid_t H5Ssel_iter_create(hid_t spaceid, size_t elmt_size, unsigned int flags) * } */ - public static MemorySegment H5Ssel_iter_create$address() { - return H5Ssel_iter_create.ADDR; - } + public static MemorySegment H5Ssel_iter_create$address() { return H5Ssel_iter_create.ADDR; } /** * {@snippet lang=c : * hid_t H5Ssel_iter_create(hid_t spaceid, size_t elmt_size, unsigned int flags) * } */ - public static long H5Ssel_iter_create(long spaceid, long elmt_size, int flags) { + public static long H5Ssel_iter_create(long spaceid, long elmt_size, int flags) + { var mh$ = H5Ssel_iter_create.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ssel_iter_create", spaceid, elmt_size, flags); } return (long)mh$.invokeExact(spaceid, elmt_size, flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ssel_iter_get_seq_list { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ssel_iter_get_seq_list"); @@ -41793,56 +38257,59 @@ private static class H5Ssel_iter_get_seq_list { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t *nelmts, hsize_t *off, size_t *len) + * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t + * *nelmts, hsize_t *off, size_t *len) * } */ - public static FunctionDescriptor H5Ssel_iter_get_seq_list$descriptor() { + public static FunctionDescriptor H5Ssel_iter_get_seq_list$descriptor() + { return H5Ssel_iter_get_seq_list.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t *nelmts, hsize_t *off, size_t *len) + * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t + * *nelmts, hsize_t *off, size_t *len) * } */ - public static MethodHandle H5Ssel_iter_get_seq_list$handle() { - return H5Ssel_iter_get_seq_list.HANDLE; - } + public static MethodHandle H5Ssel_iter_get_seq_list$handle() { return H5Ssel_iter_get_seq_list.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t *nelmts, hsize_t *off, size_t *len) + * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t + * *nelmts, hsize_t *off, size_t *len) * } */ - public static MemorySegment H5Ssel_iter_get_seq_list$address() { - return H5Ssel_iter_get_seq_list.ADDR; - } + public static MemorySegment H5Ssel_iter_get_seq_list$address() { return H5Ssel_iter_get_seq_list.ADDR; } /** * {@snippet lang=c : - * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t *nelmts, hsize_t *off, size_t *len) + * herr_t H5Ssel_iter_get_seq_list(hid_t sel_iter_id, size_t maxseq, size_t maxelmts, size_t *nseq, size_t + * *nelmts, hsize_t *off, size_t *len) * } */ - public static int H5Ssel_iter_get_seq_list(long sel_iter_id, long maxseq, long maxelmts, MemorySegment nseq, MemorySegment nelmts, MemorySegment off, MemorySegment len) { + public static int H5Ssel_iter_get_seq_list(long sel_iter_id, long maxseq, long maxelmts, + MemorySegment nseq, MemorySegment nelmts, MemorySegment off, + MemorySegment len) + { var mh$ = H5Ssel_iter_get_seq_list.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Ssel_iter_get_seq_list", sel_iter_id, maxseq, maxelmts, nseq, nelmts, off, len); + traceDowncall("H5Ssel_iter_get_seq_list", sel_iter_id, maxseq, maxelmts, nseq, nelmts, off, + len); } return (int)mh$.invokeExact(sel_iter_id, maxseq, maxelmts, nseq, nelmts, off, len); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Ssel_iter_reset { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Ssel_iter_reset"); @@ -41855,9 +38322,7 @@ private static class H5Ssel_iter_reset { * herr_t H5Ssel_iter_reset(hid_t sel_iter_id, hid_t space_id) * } */ - public static FunctionDescriptor H5Ssel_iter_reset$descriptor() { - return H5Ssel_iter_reset.DESC; - } + public static FunctionDescriptor H5Ssel_iter_reset$descriptor() { return H5Ssel_iter_reset.DESC; } /** * Downcall method handle for: @@ -41865,9 +38330,7 @@ private static class H5Ssel_iter_reset { * herr_t H5Ssel_iter_reset(hid_t sel_iter_id, hid_t space_id) * } */ - public static MethodHandle H5Ssel_iter_reset$handle() { - return H5Ssel_iter_reset.HANDLE; - } + public static MethodHandle H5Ssel_iter_reset$handle() { return H5Ssel_iter_reset.HANDLE; } /** * Address for: @@ -41875,33 +38338,30 @@ private static class H5Ssel_iter_reset { * herr_t H5Ssel_iter_reset(hid_t sel_iter_id, hid_t space_id) * } */ - public static MemorySegment H5Ssel_iter_reset$address() { - return H5Ssel_iter_reset.ADDR; - } + public static MemorySegment H5Ssel_iter_reset$address() { return H5Ssel_iter_reset.ADDR; } /** * {@snippet lang=c : * herr_t H5Ssel_iter_reset(hid_t sel_iter_id, hid_t space_id) * } */ - public static int H5Ssel_iter_reset(long sel_iter_id, long space_id) { + public static int H5Ssel_iter_reset(long sel_iter_id, long space_id) + { var mh$ = H5Ssel_iter_reset.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Ssel_iter_reset", sel_iter_id, space_id); } return (int)mh$.invokeExact(sel_iter_id, space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_adjust { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_adjust"); @@ -41914,9 +38374,7 @@ private static class H5Sselect_adjust { * herr_t H5Sselect_adjust(hid_t spaceid, const hssize_t *offset) * } */ - public static FunctionDescriptor H5Sselect_adjust$descriptor() { - return H5Sselect_adjust.DESC; - } + public static FunctionDescriptor H5Sselect_adjust$descriptor() { return H5Sselect_adjust.DESC; } /** * Downcall method handle for: @@ -41924,9 +38382,7 @@ private static class H5Sselect_adjust { * herr_t H5Sselect_adjust(hid_t spaceid, const hssize_t *offset) * } */ - public static MethodHandle H5Sselect_adjust$handle() { - return H5Sselect_adjust.HANDLE; - } + public static MethodHandle H5Sselect_adjust$handle() { return H5Sselect_adjust.HANDLE; } /** * Address for: @@ -41934,32 +38390,29 @@ private static class H5Sselect_adjust { * herr_t H5Sselect_adjust(hid_t spaceid, const hssize_t *offset) * } */ - public static MemorySegment H5Sselect_adjust$address() { - return H5Sselect_adjust.ADDR; - } + public static MemorySegment H5Sselect_adjust$address() { return H5Sselect_adjust.ADDR; } /** * {@snippet lang=c : * herr_t H5Sselect_adjust(hid_t spaceid, const hssize_t *offset) * } */ - public static int H5Sselect_adjust(long spaceid, MemorySegment offset) { + public static int H5Sselect_adjust(long spaceid, MemorySegment offset) + { var mh$ = H5Sselect_adjust.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_adjust", spaceid, offset); } return (int)mh$.invokeExact(spaceid, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_all { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_all"); @@ -41972,9 +38425,7 @@ private static class H5Sselect_all { * herr_t H5Sselect_all(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sselect_all$descriptor() { - return H5Sselect_all.DESC; - } + public static FunctionDescriptor H5Sselect_all$descriptor() { return H5Sselect_all.DESC; } /** * Downcall method handle for: @@ -41982,9 +38433,7 @@ private static class H5Sselect_all { * herr_t H5Sselect_all(hid_t spaceid) * } */ - public static MethodHandle H5Sselect_all$handle() { - return H5Sselect_all.HANDLE; - } + public static MethodHandle H5Sselect_all$handle() { return H5Sselect_all.HANDLE; } /** * Address for: @@ -41992,33 +38441,30 @@ private static class H5Sselect_all { * herr_t H5Sselect_all(hid_t spaceid) * } */ - public static MemorySegment H5Sselect_all$address() { - return H5Sselect_all.ADDR; - } + public static MemorySegment H5Sselect_all$address() { return H5Sselect_all.ADDR; } /** * {@snippet lang=c : * herr_t H5Sselect_all(hid_t spaceid) * } */ - public static int H5Sselect_all(long spaceid) { + public static int H5Sselect_all(long spaceid) + { var mh$ = H5Sselect_all.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_all", spaceid); } return (int)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_copy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_copy"); @@ -42031,9 +38477,7 @@ private static class H5Sselect_copy { * herr_t H5Sselect_copy(hid_t dst_id, hid_t src_id) * } */ - public static FunctionDescriptor H5Sselect_copy$descriptor() { - return H5Sselect_copy.DESC; - } + public static FunctionDescriptor H5Sselect_copy$descriptor() { return H5Sselect_copy.DESC; } /** * Downcall method handle for: @@ -42041,9 +38485,7 @@ private static class H5Sselect_copy { * herr_t H5Sselect_copy(hid_t dst_id, hid_t src_id) * } */ - public static MethodHandle H5Sselect_copy$handle() { - return H5Sselect_copy.HANDLE; - } + public static MethodHandle H5Sselect_copy$handle() { return H5Sselect_copy.HANDLE; } /** * Address for: @@ -42051,35 +38493,30 @@ private static class H5Sselect_copy { * herr_t H5Sselect_copy(hid_t dst_id, hid_t src_id) * } */ - public static MemorySegment H5Sselect_copy$address() { - return H5Sselect_copy.ADDR; - } + public static MemorySegment H5Sselect_copy$address() { return H5Sselect_copy.ADDR; } /** * {@snippet lang=c : * herr_t H5Sselect_copy(hid_t dst_id, hid_t src_id) * } */ - public static int H5Sselect_copy(long dst_id, long src_id) { + public static int H5Sselect_copy(long dst_id, long src_id) + { var mh$ = H5Sselect_copy.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_copy", dst_id, src_id); } return (int)mh$.invokeExact(dst_id, src_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_elements { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_elements"); @@ -42092,9 +38529,7 @@ private static class H5Sselect_elements { * herr_t H5Sselect_elements(hid_t space_id, H5S_seloper_t op, size_t num_elem, const hsize_t *coord) * } */ - public static FunctionDescriptor H5Sselect_elements$descriptor() { - return H5Sselect_elements.DESC; - } + public static FunctionDescriptor H5Sselect_elements$descriptor() { return H5Sselect_elements.DESC; } /** * Downcall method handle for: @@ -42102,9 +38537,7 @@ private static class H5Sselect_elements { * herr_t H5Sselect_elements(hid_t space_id, H5S_seloper_t op, size_t num_elem, const hsize_t *coord) * } */ - public static MethodHandle H5Sselect_elements$handle() { - return H5Sselect_elements.HANDLE; - } + public static MethodHandle H5Sselect_elements$handle() { return H5Sselect_elements.HANDLE; } /** * Address for: @@ -42112,37 +38545,31 @@ private static class H5Sselect_elements { * herr_t H5Sselect_elements(hid_t space_id, H5S_seloper_t op, size_t num_elem, const hsize_t *coord) * } */ - public static MemorySegment H5Sselect_elements$address() { - return H5Sselect_elements.ADDR; - } + public static MemorySegment H5Sselect_elements$address() { return H5Sselect_elements.ADDR; } /** * {@snippet lang=c : * herr_t H5Sselect_elements(hid_t space_id, H5S_seloper_t op, size_t num_elem, const hsize_t *coord) * } */ - public static int H5Sselect_elements(long space_id, int op, long num_elem, MemorySegment coord) { + public static int H5Sselect_elements(long space_id, int op, long num_elem, MemorySegment coord) + { var mh$ = H5Sselect_elements.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_elements", space_id, op, num_elem, coord); } return (int)mh$.invokeExact(space_id, op, num_elem, coord); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_hyperslab { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, + hdf5_h.C_POINTER, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_hyperslab"); @@ -42152,57 +38579,54 @@ private static class H5Sselect_hyperslab { /** * Function descriptor for: * {@snippet lang=c : - * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static FunctionDescriptor H5Sselect_hyperslab$descriptor() { - return H5Sselect_hyperslab.DESC; - } + public static FunctionDescriptor H5Sselect_hyperslab$descriptor() { return H5Sselect_hyperslab.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MethodHandle H5Sselect_hyperslab$handle() { - return H5Sselect_hyperslab.HANDLE; - } + public static MethodHandle H5Sselect_hyperslab$handle() { return H5Sselect_hyperslab.HANDLE; } /** * Address for: * {@snippet lang=c : - * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static MemorySegment H5Sselect_hyperslab$address() { - return H5Sselect_hyperslab.ADDR; - } + public static MemorySegment H5Sselect_hyperslab$address() { return H5Sselect_hyperslab.ADDR; } /** * {@snippet lang=c : - * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t stride[], const hsize_t count[], const hsize_t block[]) + * herr_t H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hsize_t start[], const hsize_t + * stride[], const hsize_t count[], const hsize_t block[]) * } */ - public static int H5Sselect_hyperslab(long space_id, int op, MemorySegment start, MemorySegment stride, MemorySegment count, MemorySegment block) { + public static int H5Sselect_hyperslab(long space_id, int op, MemorySegment start, MemorySegment stride, + MemorySegment count, MemorySegment block) + { var mh$ = H5Sselect_hyperslab.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_hyperslab", space_id, op, start, stride, count, block); } return (int)mh$.invokeExact(space_id, op, start, stride, count, block); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_intersect_block { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_intersect_block"); @@ -42215,7 +38639,8 @@ private static class H5Sselect_intersect_block { * htri_t H5Sselect_intersect_block(hid_t space_id, const hsize_t *start, const hsize_t *end) * } */ - public static FunctionDescriptor H5Sselect_intersect_block$descriptor() { + public static FunctionDescriptor H5Sselect_intersect_block$descriptor() + { return H5Sselect_intersect_block.DESC; } @@ -42225,9 +38650,7 @@ private static class H5Sselect_intersect_block { * htri_t H5Sselect_intersect_block(hid_t space_id, const hsize_t *start, const hsize_t *end) * } */ - public static MethodHandle H5Sselect_intersect_block$handle() { - return H5Sselect_intersect_block.HANDLE; - } + public static MethodHandle H5Sselect_intersect_block$handle() { return H5Sselect_intersect_block.HANDLE; } /** * Address for: @@ -42235,32 +38658,29 @@ private static class H5Sselect_intersect_block { * htri_t H5Sselect_intersect_block(hid_t space_id, const hsize_t *start, const hsize_t *end) * } */ - public static MemorySegment H5Sselect_intersect_block$address() { - return H5Sselect_intersect_block.ADDR; - } + public static MemorySegment H5Sselect_intersect_block$address() { return H5Sselect_intersect_block.ADDR; } /** * {@snippet lang=c : * htri_t H5Sselect_intersect_block(hid_t space_id, const hsize_t *start, const hsize_t *end) * } */ - public static int H5Sselect_intersect_block(long space_id, MemorySegment start, MemorySegment end) { + public static int H5Sselect_intersect_block(long space_id, MemorySegment start, MemorySegment end) + { var mh$ = H5Sselect_intersect_block.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_intersect_block", space_id, start, end); } return (int)mh$.invokeExact(space_id, start, end); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_none { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_none"); @@ -42273,9 +38693,7 @@ private static class H5Sselect_none { * herr_t H5Sselect_none(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sselect_none$descriptor() { - return H5Sselect_none.DESC; - } + public static FunctionDescriptor H5Sselect_none$descriptor() { return H5Sselect_none.DESC; } /** * Downcall method handle for: @@ -42283,9 +38701,7 @@ private static class H5Sselect_none { * herr_t H5Sselect_none(hid_t spaceid) * } */ - public static MethodHandle H5Sselect_none$handle() { - return H5Sselect_none.HANDLE; - } + public static MethodHandle H5Sselect_none$handle() { return H5Sselect_none.HANDLE; } /** * Address for: @@ -42293,34 +38709,30 @@ private static class H5Sselect_none { * herr_t H5Sselect_none(hid_t spaceid) * } */ - public static MemorySegment H5Sselect_none$address() { - return H5Sselect_none.ADDR; - } + public static MemorySegment H5Sselect_none$address() { return H5Sselect_none.ADDR; } /** * {@snippet lang=c : * herr_t H5Sselect_none(hid_t spaceid) * } */ - public static int H5Sselect_none(long spaceid) { + public static int H5Sselect_none(long spaceid) + { var mh$ = H5Sselect_none.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_none", spaceid); } return (int)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_project_intersection { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_project_intersection"); @@ -42330,56 +38742,64 @@ private static class H5Sselect_project_intersection { /** * Function descriptor for: * {@snippet lang=c : - * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t src_intersect_space_id) + * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t + * src_intersect_space_id) * } */ - public static FunctionDescriptor H5Sselect_project_intersection$descriptor() { + public static FunctionDescriptor H5Sselect_project_intersection$descriptor() + { return H5Sselect_project_intersection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t src_intersect_space_id) + * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t + * src_intersect_space_id) * } */ - public static MethodHandle H5Sselect_project_intersection$handle() { + public static MethodHandle H5Sselect_project_intersection$handle() + { return H5Sselect_project_intersection.HANDLE; } /** * Address for: * {@snippet lang=c : - * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t src_intersect_space_id) + * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t + * src_intersect_space_id) * } */ - public static MemorySegment H5Sselect_project_intersection$address() { + public static MemorySegment H5Sselect_project_intersection$address() + { return H5Sselect_project_intersection.ADDR; } /** * {@snippet lang=c : - * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t src_intersect_space_id) + * hid_t H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t + * src_intersect_space_id) * } */ - public static long H5Sselect_project_intersection(long src_space_id, long dst_space_id, long src_intersect_space_id) { + public static long H5Sselect_project_intersection(long src_space_id, long dst_space_id, + long src_intersect_space_id) + { var mh$ = H5Sselect_project_intersection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("H5Sselect_project_intersection", src_space_id, dst_space_id, src_intersect_space_id); + traceDowncall("H5Sselect_project_intersection", src_space_id, dst_space_id, + src_intersect_space_id); } return (long)mh$.invokeExact(src_space_id, dst_space_id, src_intersect_space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_shape_same { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_shape_same"); @@ -42392,9 +38812,7 @@ private static class H5Sselect_shape_same { * htri_t H5Sselect_shape_same(hid_t space1_id, hid_t space2_id) * } */ - public static FunctionDescriptor H5Sselect_shape_same$descriptor() { - return H5Sselect_shape_same.DESC; - } + public static FunctionDescriptor H5Sselect_shape_same$descriptor() { return H5Sselect_shape_same.DESC; } /** * Downcall method handle for: @@ -42402,9 +38820,7 @@ private static class H5Sselect_shape_same { * htri_t H5Sselect_shape_same(hid_t space1_id, hid_t space2_id) * } */ - public static MethodHandle H5Sselect_shape_same$handle() { - return H5Sselect_shape_same.HANDLE; - } + public static MethodHandle H5Sselect_shape_same$handle() { return H5Sselect_shape_same.HANDLE; } /** * Address for: @@ -42412,32 +38828,29 @@ private static class H5Sselect_shape_same { * htri_t H5Sselect_shape_same(hid_t space1_id, hid_t space2_id) * } */ - public static MemorySegment H5Sselect_shape_same$address() { - return H5Sselect_shape_same.ADDR; - } + public static MemorySegment H5Sselect_shape_same$address() { return H5Sselect_shape_same.ADDR; } /** * {@snippet lang=c : * htri_t H5Sselect_shape_same(hid_t space1_id, hid_t space2_id) * } */ - public static int H5Sselect_shape_same(long space1_id, long space2_id) { + public static int H5Sselect_shape_same(long space1_id, long space2_id) + { var mh$ = H5Sselect_shape_same.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_shape_same", space1_id, space2_id); } return (int)mh$.invokeExact(space1_id, space2_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sselect_valid { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sselect_valid"); @@ -42450,9 +38863,7 @@ private static class H5Sselect_valid { * htri_t H5Sselect_valid(hid_t spaceid) * } */ - public static FunctionDescriptor H5Sselect_valid$descriptor() { - return H5Sselect_valid.DESC; - } + public static FunctionDescriptor H5Sselect_valid$descriptor() { return H5Sselect_valid.DESC; } /** * Downcall method handle for: @@ -42460,9 +38871,7 @@ private static class H5Sselect_valid { * htri_t H5Sselect_valid(hid_t spaceid) * } */ - public static MethodHandle H5Sselect_valid$handle() { - return H5Sselect_valid.HANDLE; - } + public static MethodHandle H5Sselect_valid$handle() { return H5Sselect_valid.HANDLE; } /** * Address for: @@ -42470,32 +38879,29 @@ private static class H5Sselect_valid { * htri_t H5Sselect_valid(hid_t spaceid) * } */ - public static MemorySegment H5Sselect_valid$address() { - return H5Sselect_valid.ADDR; - } + public static MemorySegment H5Sselect_valid$address() { return H5Sselect_valid.ADDR; } /** * {@snippet lang=c : * htri_t H5Sselect_valid(hid_t spaceid) * } */ - public static int H5Sselect_valid(long spaceid) { + public static int H5Sselect_valid(long spaceid) + { var mh$ = H5Sselect_valid.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sselect_valid", spaceid); } return (int)mh$.invokeExact(spaceid); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sset_extent_none { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sset_extent_none"); @@ -42508,9 +38914,7 @@ private static class H5Sset_extent_none { * herr_t H5Sset_extent_none(hid_t space_id) * } */ - public static FunctionDescriptor H5Sset_extent_none$descriptor() { - return H5Sset_extent_none.DESC; - } + public static FunctionDescriptor H5Sset_extent_none$descriptor() { return H5Sset_extent_none.DESC; } /** * Downcall method handle for: @@ -42518,9 +38922,7 @@ private static class H5Sset_extent_none { * herr_t H5Sset_extent_none(hid_t space_id) * } */ - public static MethodHandle H5Sset_extent_none$handle() { - return H5Sset_extent_none.HANDLE; - } + public static MethodHandle H5Sset_extent_none$handle() { return H5Sset_extent_none.HANDLE; } /** * Address for: @@ -42528,35 +38930,30 @@ private static class H5Sset_extent_none { * herr_t H5Sset_extent_none(hid_t space_id) * } */ - public static MemorySegment H5Sset_extent_none$address() { - return H5Sset_extent_none.ADDR; - } + public static MemorySegment H5Sset_extent_none$address() { return H5Sset_extent_none.ADDR; } /** * {@snippet lang=c : * herr_t H5Sset_extent_none(hid_t space_id) * } */ - public static int H5Sset_extent_none(long space_id) { + public static int H5Sset_extent_none(long space_id) + { var mh$ = H5Sset_extent_none.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sset_extent_none", space_id); } return (int)mh$.invokeExact(space_id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sset_extent_simple { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_INT, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_INT, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sset_extent_simple"); @@ -42569,9 +38966,7 @@ private static class H5Sset_extent_simple { * herr_t H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[], const hsize_t max[]) * } */ - public static FunctionDescriptor H5Sset_extent_simple$descriptor() { - return H5Sset_extent_simple.DESC; - } + public static FunctionDescriptor H5Sset_extent_simple$descriptor() { return H5Sset_extent_simple.DESC; } /** * Downcall method handle for: @@ -42579,9 +38974,7 @@ private static class H5Sset_extent_simple { * herr_t H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[], const hsize_t max[]) * } */ - public static MethodHandle H5Sset_extent_simple$handle() { - return H5Sset_extent_simple.HANDLE; - } + public static MethodHandle H5Sset_extent_simple$handle() { return H5Sset_extent_simple.HANDLE; } /** * Address for: @@ -42589,34 +38982,30 @@ private static class H5Sset_extent_simple { * herr_t H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[], const hsize_t max[]) * } */ - public static MemorySegment H5Sset_extent_simple$address() { - return H5Sset_extent_simple.ADDR; - } + public static MemorySegment H5Sset_extent_simple$address() { return H5Sset_extent_simple.ADDR; } /** * {@snippet lang=c : * herr_t H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[], const hsize_t max[]) * } */ - public static int H5Sset_extent_simple(long space_id, int rank, MemorySegment dims, MemorySegment max) { + public static int H5Sset_extent_simple(long space_id, int rank, MemorySegment dims, MemorySegment max) + { var mh$ = H5Sset_extent_simple.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sset_extent_simple", space_id, rank, dims, max); } return (int)mh$.invokeExact(space_id, rank, dims, max); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Sencode1 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_LONG, - hdf5_h.C_POINTER, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_LONG, hdf5_h.C_POINTER, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Sencode1"); @@ -42629,9 +39018,7 @@ private static class H5Sencode1 { * herr_t H5Sencode1(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static FunctionDescriptor H5Sencode1$descriptor() { - return H5Sencode1.DESC; - } + public static FunctionDescriptor H5Sencode1$descriptor() { return H5Sencode1.DESC; } /** * Downcall method handle for: @@ -42639,9 +39026,7 @@ private static class H5Sencode1 { * herr_t H5Sencode1(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static MethodHandle H5Sencode1$handle() { - return H5Sencode1.HANDLE; - } + public static MethodHandle H5Sencode1$handle() { return H5Sencode1.HANDLE; } /** * Address for: @@ -42649,24 +39034,24 @@ private static class H5Sencode1 { * herr_t H5Sencode1(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static MemorySegment H5Sencode1$address() { - return H5Sencode1.ADDR; - } + public static MemorySegment H5Sencode1$address() { return H5Sencode1.ADDR; } /** * {@snippet lang=c : * herr_t H5Sencode1(hid_t obj_id, void *buf, size_t *nalloc) * } */ - public static int H5Sencode1(long obj_id, MemorySegment buf, MemorySegment nalloc) { + public static int H5Sencode1(long obj_id, MemorySegment buf, MemorySegment nalloc) + { var mh$ = H5Sencode1.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Sencode1", obj_id, buf, nalloc); } return (int)mh$.invokeExact(obj_id, buf, nalloc); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } /** @@ -42674,112 +39059,87 @@ public static int H5Sencode1(long obj_id, MemorySegment buf, MemorySegment nallo * typedef int H5Z_filter_t * } */ - public static final OfInt H5Z_filter_t = hdf5_h.C_INT; + public static final OfInt H5Z_filter_t = hdf5_h.C_INT; private static final int H5Z_SO_FLOAT_DSCALE = (int)0L; /** * {@snippet lang=c : * enum H5Z_SO_scale_type_t.H5Z_SO_FLOAT_DSCALE = 0 * } */ - public static int H5Z_SO_FLOAT_DSCALE() { - return H5Z_SO_FLOAT_DSCALE; - } + public static int H5Z_SO_FLOAT_DSCALE() { return H5Z_SO_FLOAT_DSCALE; } private static final int H5Z_SO_FLOAT_ESCALE = (int)1L; /** * {@snippet lang=c : * enum H5Z_SO_scale_type_t.H5Z_SO_FLOAT_ESCALE = 1 * } */ - public static int H5Z_SO_FLOAT_ESCALE() { - return H5Z_SO_FLOAT_ESCALE; - } + public static int H5Z_SO_FLOAT_ESCALE() { return H5Z_SO_FLOAT_ESCALE; } private static final int H5Z_SO_INT = (int)2L; /** * {@snippet lang=c : * enum H5Z_SO_scale_type_t.H5Z_SO_INT = 2 * } */ - public static int H5Z_SO_INT() { - return H5Z_SO_INT; - } + public static int H5Z_SO_INT() { return H5Z_SO_INT; } private static final int H5Z_ERROR_EDC = (int)-1L; /** * {@snippet lang=c : * enum H5Z_EDC_t.H5Z_ERROR_EDC = -1 * } */ - public static int H5Z_ERROR_EDC() { - return H5Z_ERROR_EDC; - } + public static int H5Z_ERROR_EDC() { return H5Z_ERROR_EDC; } private static final int H5Z_DISABLE_EDC = (int)0L; /** * {@snippet lang=c : * enum H5Z_EDC_t.H5Z_DISABLE_EDC = 0 * } */ - public static int H5Z_DISABLE_EDC() { - return H5Z_DISABLE_EDC; - } + public static int H5Z_DISABLE_EDC() { return H5Z_DISABLE_EDC; } private static final int H5Z_ENABLE_EDC = (int)1L; /** * {@snippet lang=c : * enum H5Z_EDC_t.H5Z_ENABLE_EDC = 1 * } */ - public static int H5Z_ENABLE_EDC() { - return H5Z_ENABLE_EDC; - } + public static int H5Z_ENABLE_EDC() { return H5Z_ENABLE_EDC; } private static final int H5Z_NO_EDC = (int)2L; /** * {@snippet lang=c : * enum H5Z_EDC_t.H5Z_NO_EDC = 2 * } */ - public static int H5Z_NO_EDC() { - return H5Z_NO_EDC; - } + public static int H5Z_NO_EDC() { return H5Z_NO_EDC; } private static final int H5Z_CB_ERROR = (int)-1L; /** * {@snippet lang=c : * enum H5Z_cb_return_t.H5Z_CB_ERROR = -1 * } */ - public static int H5Z_CB_ERROR() { - return H5Z_CB_ERROR; - } + public static int H5Z_CB_ERROR() { return H5Z_CB_ERROR; } private static final int H5Z_CB_FAIL = (int)0L; /** * {@snippet lang=c : * enum H5Z_cb_return_t.H5Z_CB_FAIL = 0 * } */ - public static int H5Z_CB_FAIL() { - return H5Z_CB_FAIL; - } + public static int H5Z_CB_FAIL() { return H5Z_CB_FAIL; } private static final int H5Z_CB_CONT = (int)1L; /** * {@snippet lang=c : * enum H5Z_cb_return_t.H5Z_CB_CONT = 1 * } */ - public static int H5Z_CB_CONT() { - return H5Z_CB_CONT; - } + public static int H5Z_CB_CONT() { return H5Z_CB_CONT; } private static final int H5Z_CB_NO = (int)2L; /** * {@snippet lang=c : * enum H5Z_cb_return_t.H5Z_CB_NO = 2 * } */ - public static int H5Z_CB_NO() { - return H5Z_CB_NO; - } + public static int H5Z_CB_NO() { return H5Z_CB_NO; } private static class H5Zfilter_avail { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT - ); + public static final FunctionDescriptor DESC = FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Zfilter_avail"); @@ -42792,9 +39152,7 @@ private static class H5Zfilter_avail { * htri_t H5Zfilter_avail(H5Z_filter_t id) * } */ - public static FunctionDescriptor H5Zfilter_avail$descriptor() { - return H5Zfilter_avail.DESC; - } + public static FunctionDescriptor H5Zfilter_avail$descriptor() { return H5Zfilter_avail.DESC; } /** * Downcall method handle for: @@ -42802,9 +39160,7 @@ private static class H5Zfilter_avail { * htri_t H5Zfilter_avail(H5Z_filter_t id) * } */ - public static MethodHandle H5Zfilter_avail$handle() { - return H5Zfilter_avail.HANDLE; - } + public static MethodHandle H5Zfilter_avail$handle() { return H5Zfilter_avail.HANDLE; } /** * Address for: @@ -42812,33 +39168,30 @@ private static class H5Zfilter_avail { * htri_t H5Zfilter_avail(H5Z_filter_t id) * } */ - public static MemorySegment H5Zfilter_avail$address() { - return H5Zfilter_avail.ADDR; - } + public static MemorySegment H5Zfilter_avail$address() { return H5Zfilter_avail.ADDR; } /** * {@snippet lang=c : * htri_t H5Zfilter_avail(H5Z_filter_t id) * } */ - public static int H5Zfilter_avail(int id) { + public static int H5Zfilter_avail(int id) + { var mh$ = H5Zfilter_avail.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Zfilter_avail", id); } return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static class H5Zget_filter_info { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - hdf5_h.C_INT, - hdf5_h.C_INT, - hdf5_h.C_POINTER - ); + public static final FunctionDescriptor DESC = + FunctionDescriptor.of(hdf5_h.C_INT, hdf5_h.C_INT, hdf5_h.C_POINTER); public static final MemorySegment ADDR = hdf5_h.findOrThrow("H5Zget_filter_info"); @@ -42851,9 +39204,7 @@ private static class H5Zget_filter_info { * herr_t H5Zget_filter_info(H5Z_filter_t filter, unsigned int *filter_config_flags) * } */ - public static FunctionDescriptor H5Zget_filter_info$descriptor() { - return H5Zget_filter_info.DESC; - } + public static FunctionDescriptor H5Zget_filter_info$descriptor() { return H5Zget_filter_info.DESC; } /** * Downcall method handle for: @@ -42861,9 +39212,7 @@ private static class H5Zget_filter_info { * herr_t H5Zget_filter_info(H5Z_filter_t filter, unsigned int *filter_config_flags) * } */ - public static MethodHandle H5Zget_filter_info$handle() { - return H5Zget_filter_info.HANDLE; - } + public static MethodHandle H5Zget_filter_info$handle() { return H5Zget_filter_info.HANDLE; } /** * Address for: @@ -42871,24 +39220,24 @@ private static class H5Zget_filter_info { * herr_t H5Zget_filter_info(H5Z_filter_t filter, unsigned int *filter_config_flags) * } */ - public static MemorySegment H5Zget_filter_info$address() { - return H5Zget_filter_info.ADDR; - } + public static MemorySegment H5Zget_filter_info$address() { return H5Zget_filter_info.ADDR; } /** * {@snippet lang=c : * herr_t H5Zget_filter_info(H5Z_filter_t filter, unsigned int *filter_config_flags) * } */ - public static int H5Zget_filter_info(int filter, MemorySegment filter_config_flags) { + public static int H5Zget_filter_info(int filter, MemorySegment filter_config_flags) + { var mh$ = H5Zget_filter_info.HANDLE; try { if (TRACE_DOWNCALLS) { traceDowncall("H5Zget_filter_info", filter, filter_config_flags); } return (int)mh$.invokeExact(filter, filter_config_flags); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + } + catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } private static final int H5D_MPIO_NO_CHUNK_OPTIMIZATION = (int)0L; @@ -42897,53 +39246,40 @@ public static int H5Zget_filter_info(int filter, MemorySegment filter_config_fla * enum H5D_mpio_actual_chunk_opt_mode_t.H5D_MPIO_NO_CHUNK_OPTIMIZATION = 0 * } */ - public static int H5D_MPIO_NO_CHUNK_OPTIMIZATION() { - return H5D_MPIO_NO_CHUNK_OPTIMIZATION; - } + public static int H5D_MPIO_NO_CHUNK_OPTIMIZATION() { return H5D_MPIO_NO_CHUNK_OPTIMIZATION; } private static final int H5D_MPIO_LINK_CHUNK = (int)1L; /** * {@snippet lang=c : * enum H5D_mpio_actual_chunk_opt_mode_t.H5D_MPIO_LINK_CHUNK = 1 * } */ - public static int H5D_MPIO_LINK_CHUNK() { - return H5D_MPIO_LINK_CHUNK; - } + public static int H5D_MPIO_LINK_CHUNK() { return H5D_MPIO_LINK_CHUNK; } private static final int H5D_MPIO_MULTI_CHUNK = (int)2L; /** * {@snippet lang=c : * enum H5D_mpio_actual_chunk_opt_mode_t.H5D_MPIO_MULTI_CHUNK = 2 * } */ - public static int H5D_MPIO_MULTI_CHUNK() { - return H5D_MPIO_MULTI_CHUNK; - } + public static int H5D_MPIO_MULTI_CHUNK() { return H5D_MPIO_MULTI_CHUNK; } private static final int H5D_MPIO_NO_COLLECTIVE = (int)0L; /** * {@snippet lang=c : * enum H5D_mpio_actual_io_mode_t.H5D_MPIO_NO_COLLECTIVE = 0 * } */ - public static int H5D_MPIO_NO_COLLECTIVE() { - return H5D_MPIO_NO_COLLECTIVE; - } + public static int H5D_MPIO_NO_COLLECTIVE() { return H5D_MPIO_NO_COLLECTIVE; } private static final int H5D_MPIO_CHUNK_INDEPENDENT = (int)1L; /** * {@snippet lang=c : * enum H5D_mpio_actual_io_mode_t.H5D_MPIO_CHUNK_INDEPENDENT = 1 * } */ - public static int H5D_MPIO_CHUNK_INDEPENDENT() { - return H5D_MPIO_CHUNK_INDEPENDENT; - } + public static int H5D_MPIO_CHUNK_INDEPENDENT() { return H5D_MPIO_CHUNK_INDEPENDENT; } private static final int H5D_MPIO_CHUNK_COLLECTIVE = (int)2L; /** * {@snippet lang=c : * enum H5D_mpio_actual_io_mode_t.H5D_MPIO_CHUNK_COLLECTIVE = 2 * } */ - public static int H5D_MPIO_CHUNK_COLLECTIVE() { - return H5D_MPIO_CHUNK_COLLECTIVE; - } + public static int H5D_MPIO_CHUNK_COLLECTIVE() { return H5D_MPIO_CHUNK_COLLECTIVE; } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_2.java b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_2.java index 738a5078a0f..87c3531bca3 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_2.java +++ b/java/jsrc/org/hdfgroup/javahdf5/hdf5_h_2.java @@ -2,55 +2,59 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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.*; - public class hdf5_h_2 { - hdf5_h_2() { + hdf5_h_2() + { // Should not be called directly } - static final Arena LIBRARY_ARENA = Arena.ofAuto(); + static final Arena LIBRARY_ARENA = Arena.ofAuto(); static final boolean TRACE_DOWNCALLS = Boolean.getBoolean("jextract.trace.downcalls"); - static void traceDowncall(String name, Object... args) { - String traceArgs = Arrays.stream(args) - .map(Object::toString) - .collect(Collectors.joining(", ")); - System.out.printf("%s(%s)\n", name, traceArgs); + static void traceDowncall(String name, Object... args) + { + String traceArgs = Arrays.stream(args).map(Object::toString).collect(Collectors.joining(", ")); + System.out.printf("%s(%s)\n", name, traceArgs); } - static MemorySegment findOrThrow(String symbol) { - return SYMBOL_LOOKUP.find(symbol) - .orElseThrow(() -> new UnsatisfiedLinkError("unresolved symbol: " + symbol)); + static MemorySegment findOrThrow(String symbol) + { + return SYMBOL_LOOKUP.find(symbol).orElseThrow( + () -> new UnsatisfiedLinkError("unresolved symbol: " + symbol)); } - static MethodHandle upcallHandle(Class fi, String name, FunctionDescriptor fdesc) { + static MethodHandle upcallHandle(Class fi, String name, FunctionDescriptor fdesc) + { try { return MethodHandles.lookup().findVirtual(fi, name, fdesc.toMethodType()); - } catch (ReflectiveOperationException ex) { + } + catch (ReflectiveOperationException ex) { throw new AssertionError(ex); } } - static MemoryLayout align(MemoryLayout layout, long align) { - return switch (layout) { - case PaddingLayout p -> p; - case ValueLayout v -> v.withByteAlignment(align); - case GroupLayout g -> { - MemoryLayout[] alignedMembers = g.memberLayouts().stream() - .map(m -> align(m, align)).toArray(MemoryLayout[]::new); - yield g instanceof StructLayout ? - MemoryLayout.structLayout(alignedMembers) : MemoryLayout.unionLayout(alignedMembers); - } + static MemoryLayout align(MemoryLayout layout, long align) + { + return switch (layout) + { + case PaddingLayout p -> p; case ValueLayout v -> v.withByteAlignment(align); + case GroupLayout g + -> { MemoryLayout[] alignedMembers = + g.memberLayouts().stream().map(m -> align(m, align)).toArray(MemoryLayout[] ::new); + yield g instanceof StructLayout ? MemoryLayout.structLayout(alignedMembers): + MemoryLayout.unionLayout(alignedMembers); + } case SequenceLayout s -> MemoryLayout.sequenceLayout(s.elementCount(), align(s.elementLayout(), align)); }; } @@ -14800,4 +14804,3 @@ public static void H5T_NATIVE_SHORT_g(long varValue) { H5T_NATIVE_SHORT_g$constants.SEGMENT.set(H5T_NATIVE_SHORT_g$constants.LAYOUT, 0L, varValue); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/hdset_reg_ref_t.java b/java/jsrc/org/hdfgroup/javahdf5/hdset_reg_ref_t.java index a97c8b3d125..b4c4088c2ad 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/hdset_reg_ref_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/hdset_reg_ref_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -21,22 +21,22 @@ */ public class hdset_reg_ref_t { - hdset_reg_ref_t() { + hdset_reg_ref_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - MemoryLayout.sequenceLayout(12, hdf5_h.C_CHAR).withName("__data") - ).withName("$anon$86:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(MemoryLayout.sequenceLayout(12, hdf5_h.C_CHAR).withName("__data")) + .withName("$anon$86:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __data$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__data")); + private static final SequenceLayout __data$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__data")); /** * Layout for field: @@ -44,9 +44,7 @@ public static final GroupLayout layout() { * uint8_t __data[12] * } */ - public static final SequenceLayout __data$layout() { - return __data$LAYOUT; - } + public static final SequenceLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -56,9 +54,7 @@ public static final GroupLayout layout() { * uint8_t __data[12] * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -66,7 +62,8 @@ public static final GroupLayout layout() { * uint8_t __data[12] * } */ - public static MemorySegment __data(MemorySegment struct) { + public static MemorySegment __data(MemorySegment struct) + { return struct.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -76,11 +73,12 @@ public static MemorySegment __data(MemorySegment struct) { * uint8_t __data[12] * } */ - public static void __data(MemorySegment struct, MemorySegment fieldValue) { + public static void __data(MemorySegment struct, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, struct, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static long[] __data$DIMS = { 12 }; + private static long[] __data$DIMS = {12}; /** * Dimensions for array field: @@ -88,9 +86,7 @@ public static void __data(MemorySegment struct, MemorySegment fieldValue) { * uint8_t __data[12] * } */ - public static long[] __data$dimensions() { - return __data$DIMS; - } + public static long[] __data$dimensions() { return __data$DIMS; } private static final VarHandle __data$ELEM_HANDLE = __data$LAYOUT.varHandle(sequenceElement()); /** @@ -99,7 +95,8 @@ public static void __data(MemorySegment struct, MemorySegment fieldValue) { * uint8_t __data[12] * } */ - public static byte __data(MemorySegment struct, long index0) { + public static byte __data(MemorySegment struct, long index0) + { return (byte)__data$ELEM_HANDLE.get(struct, 0L, index0); } @@ -109,7 +106,8 @@ public static byte __data(MemorySegment struct, long index0) { * uint8_t __data[12] * } */ - public static void __data(MemorySegment struct, long index0, byte fieldValue) { + public static void __data(MemorySegment struct, long index0, byte fieldValue) + { __data$ELEM_HANDLE.set(struct, 0L, index0, fieldValue); } @@ -117,7 +115,8 @@ public static void __data(MemorySegment struct, long index0, byte 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -129,15 +128,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -145,7 +143,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -153,8 +152,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/hvl_t.java b/java/jsrc/org/hdfgroup/javahdf5/hvl_t.java index a9eabc3aa90..03897a05e3d 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/hvl_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/hvl_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -22,21 +22,19 @@ */ public class hvl_t { - hvl_t() { + hvl_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("len"), - hdf5_h.C_POINTER.withName("p") - ).withName("$anon$197:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("len"), hdf5_h.C_POINTER.withName("p")) + .withName("$anon$197:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong len$LAYOUT = (OfLong)$LAYOUT.select(groupElement("len")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * size_t len * } */ - public static final OfLong len$layout() { - return len$LAYOUT; - } + public static final OfLong len$layout() { return len$LAYOUT; } private static final long len$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * size_t len * } */ - public static final long len$offset() { - return len$OFFSET; - } + public static final long len$offset() { return len$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * size_t len * } */ - public static long len(MemorySegment struct) { - return struct.get(len$LAYOUT, len$OFFSET); - } + public static long len(MemorySegment struct) { return struct.get(len$LAYOUT, len$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long len(MemorySegment struct) { * size_t len * } */ - public static void len(MemorySegment struct, long fieldValue) { + public static void len(MemorySegment struct, long fieldValue) + { struct.set(len$LAYOUT, len$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void len(MemorySegment struct, long fieldValue) { * void *p * } */ - public static final AddressLayout p$layout() { - return p$LAYOUT; - } + public static final AddressLayout p$layout() { return p$LAYOUT; } private static final long p$OFFSET = 8; @@ -102,9 +93,7 @@ public static void len(MemorySegment struct, long fieldValue) { * void *p * } */ - public static final long p$offset() { - return p$OFFSET; - } + public static final long p$offset() { return p$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void len(MemorySegment struct, long fieldValue) { * void *p * } */ - public static MemorySegment p(MemorySegment struct) { - return struct.get(p$LAYOUT, p$OFFSET); - } + public static MemorySegment p(MemorySegment struct) { return struct.get(p$LAYOUT, p$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static MemorySegment p(MemorySegment struct) { * void *p * } */ - public static void p(MemorySegment struct, MemorySegment fieldValue) { + public static void p(MemorySegment struct, MemorySegment fieldValue) + { struct.set(p$LAYOUT, p$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void p(MemorySegment struct, MemorySegment 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/imaxdiv_t.java b/java/jsrc/org/hdfgroup/javahdf5/imaxdiv_t.java index 7df778ff8b8..fd55e50d3ac 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/imaxdiv_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/imaxdiv_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -22,21 +22,19 @@ */ public class imaxdiv_t { - imaxdiv_t() { + imaxdiv_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("quot"), - hdf5_h.C_LONG.withName("rem") - ).withName("$anon$332:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("quot"), hdf5_h.C_LONG.withName("rem")) + .withName("$anon$332:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong quot$LAYOUT = (OfLong)$LAYOUT.select(groupElement("quot")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * long quot * } */ - public static final OfLong quot$layout() { - return quot$LAYOUT; - } + public static final OfLong quot$layout() { return quot$LAYOUT; } private static final long quot$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * long quot * } */ - public static final long quot$offset() { - return quot$OFFSET; - } + public static final long quot$offset() { return quot$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * long quot * } */ - public static long quot(MemorySegment struct) { - return struct.get(quot$LAYOUT, quot$OFFSET); - } + public static long quot(MemorySegment struct) { return struct.get(quot$LAYOUT, quot$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long quot(MemorySegment struct) { * long quot * } */ - public static void quot(MemorySegment struct, long fieldValue) { + public static void quot(MemorySegment struct, long fieldValue) + { struct.set(quot$LAYOUT, quot$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void quot(MemorySegment struct, long fieldValue) { * long rem * } */ - public static final OfLong rem$layout() { - return rem$LAYOUT; - } + public static final OfLong rem$layout() { return rem$LAYOUT; } private static final long rem$OFFSET = 8; @@ -102,9 +93,7 @@ public static void quot(MemorySegment struct, long fieldValue) { * long rem * } */ - public static final long rem$offset() { - return rem$OFFSET; - } + public static final long rem$offset() { return rem$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void quot(MemorySegment struct, long fieldValue) { * long rem * } */ - public static long rem(MemorySegment struct) { - return struct.get(rem$LAYOUT, rem$OFFSET); - } + public static long rem(MemorySegment struct) { return struct.get(rem$LAYOUT, rem$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static long rem(MemorySegment struct) { * long rem * } */ - public static void rem(MemorySegment struct, long fieldValue) { + public static void rem(MemorySegment struct, long fieldValue) + { struct.set(rem$LAYOUT, rem$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void rem(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/max_align_t.java b/java/jsrc/org/hdfgroup/javahdf5/max_align_t.java index c893b3d52ff..d01aed418e6 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/max_align_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/max_align_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 { @@ -22,23 +22,24 @@ */ public class max_align_t { - max_align_t() { + max_align_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG_LONG.withName("__clang_max_align_nonce1"), - MemoryLayout.paddingLayout(24) - ).withName("$anon$19:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .structLayout(hdf5_h.C_LONG_LONG.withName("__clang_max_align_nonce1"), + MemoryLayout.paddingLayout(24)) + .withName("$anon$19:9"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final OfLong __clang_max_align_nonce1$LAYOUT = (OfLong)$LAYOUT.select(groupElement("__clang_max_align_nonce1")); + private static final OfLong __clang_max_align_nonce1$LAYOUT = + (OfLong)$LAYOUT.select(groupElement("__clang_max_align_nonce1")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * long long __clang_max_align_nonce1 * } */ - public static final OfLong __clang_max_align_nonce1$layout() { - return __clang_max_align_nonce1$LAYOUT; - } + public static final OfLong __clang_max_align_nonce1$layout() { return __clang_max_align_nonce1$LAYOUT; } private static final long __clang_max_align_nonce1$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * long long __clang_max_align_nonce1 * } */ - public static final long __clang_max_align_nonce1$offset() { - return __clang_max_align_nonce1$OFFSET; - } + public static final long __clang_max_align_nonce1$offset() { return __clang_max_align_nonce1$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * long long __clang_max_align_nonce1 * } */ - public static long __clang_max_align_nonce1(MemorySegment struct) { + public static long __clang_max_align_nonce1(MemorySegment struct) + { return struct.get(__clang_max_align_nonce1$LAYOUT, __clang_max_align_nonce1$OFFSET); } @@ -78,7 +76,8 @@ public static long __clang_max_align_nonce1(MemorySegment struct) { * long long __clang_max_align_nonce1 * } */ - public static void __clang_max_align_nonce1(MemorySegment struct, long fieldValue) { + public static void __clang_max_align_nonce1(MemorySegment struct, long fieldValue) + { struct.set(__clang_max_align_nonce1$LAYOUT, __clang_max_align_nonce1$OFFSET, fieldValue); } @@ -86,7 +85,8 @@ public static void __clang_max_align_nonce1(MemorySegment struct, long fieldValu * 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -98,15 +98,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -114,7 +113,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -122,8 +122,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_attr_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_attr_t.java index d23f7997dbd..75bdb0cb8d6 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_attr_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_attr_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union pthread_attr_t { @@ -22,23 +22,24 @@ */ public class pthread_attr_t { - pthread_attr_t() { + pthread_attr_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(56, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG.withName("__align") - ).withName("pthread_attr_t"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(56, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG.withName("__align")) + .withName("pthread_attr_t"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[56] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[56] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[56] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[56] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 56 }; + private static long[] __size$DIMS = {56}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[56] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static long __align(MemorySegment union) { * long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_barrier_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_barrier_t.java index c0ee28f36a7..43f789264a7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_barrier_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_barrier_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -22,23 +22,24 @@ */ public class pthread_barrier_t { - pthread_barrier_t() { + pthread_barrier_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(32, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG.withName("__align") - ).withName("$anon$108:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(32, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG.withName("__align")) + .withName("$anon$108:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[32] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[32] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[32] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[32] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 32 }; + private static long[] __size$DIMS = {32}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[32] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[32] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[32] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static long __align(MemorySegment union) { * long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_barrierattr_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_barrierattr_t.java index 95ca2905aa4..804783c7b70 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_barrierattr_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_barrierattr_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -22,23 +22,24 @@ */ public class pthread_barrierattr_t { - pthread_barrierattr_t() { + pthread_barrierattr_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_INT.withName("__align") - ).withName("$anon$114:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_INT.withName("__align")) + .withName("$anon$114:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[4] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 4 }; + private static long[] __size$DIMS = {4}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[4] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final OfInt __align$layout() { - return __align$LAYOUT; - } + public static final OfInt __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static int __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static int __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static int __align(MemorySegment union) { * int __align * } */ - public static void __align(MemorySegment union, int fieldValue) { + public static void __align(MemorySegment union, int fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_cond_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_cond_t.java index eb5d5501799..1ca4603e390 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_cond_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_cond_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -23,22 +23,22 @@ */ public class pthread_cond_t { - pthread_cond_t() { + pthread_cond_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - __pthread_cond_s.layout().withName("__data"), - MemoryLayout.sequenceLayout(48, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG_LONG.withName("__align") - ).withName("$anon$75:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(__pthread_cond_s.layout().withName("__data"), + MemoryLayout.sequenceLayout(48, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG_LONG.withName("__align")) + .withName("$anon$75:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout __data$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__data")); @@ -48,9 +48,7 @@ public static final GroupLayout layout() { * struct __pthread_cond_s __data * } */ - public static final GroupLayout __data$layout() { - return __data$LAYOUT; - } + public static final GroupLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -60,9 +58,7 @@ public static final GroupLayout layout() { * struct __pthread_cond_s __data * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -70,7 +66,8 @@ public static final GroupLayout layout() { * struct __pthread_cond_s __data * } */ - public static MemorySegment __data(MemorySegment union) { + public static MemorySegment __data(MemorySegment union) + { return union.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -80,11 +77,13 @@ public static MemorySegment __data(MemorySegment union) { * struct __pthread_cond_s __data * } */ - public static void __data(MemorySegment union, MemorySegment fieldValue) { + public static void __data(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -92,9 +91,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[48] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -104,9 +101,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[48] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -114,7 +109,8 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[48] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -124,11 +120,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[48] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 48 }; + private static long[] __size$DIMS = {48}; /** * Dimensions for array field: @@ -136,9 +133,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[48] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -147,7 +142,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[48] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -157,7 +153,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[48] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -169,9 +166,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -181,9 +176,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -191,9 +184,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -201,7 +192,8 @@ public static long __align(MemorySegment union) { * long long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -209,7 +201,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -221,15 +214,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -237,7 +229,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -245,8 +238,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_condattr_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_condattr_t.java index 43f66b597ea..5f1a7903b5e 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_condattr_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_condattr_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -22,23 +22,24 @@ */ public class pthread_condattr_t { - pthread_condattr_t() { + pthread_condattr_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_INT.withName("__align") - ).withName("$anon$41:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_INT.withName("__align")) + .withName("$anon$41:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[4] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 4 }; + private static long[] __size$DIMS = {4}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[4] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final OfInt __align$layout() { - return __align$LAYOUT; - } + public static final OfInt __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static int __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static int __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static int __align(MemorySegment union) { * int __align * } */ - public static void __align(MemorySegment union, int fieldValue) { + public static void __align(MemorySegment union, int fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_mutex_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_mutex_t.java index b1ec8b8227e..2d16646e575 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_mutex_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_mutex_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -23,22 +23,22 @@ */ public class pthread_mutex_t { - pthread_mutex_t() { + pthread_mutex_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - __pthread_mutex_s.layout().withName("__data"), - MemoryLayout.sequenceLayout(40, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG.withName("__align") - ).withName("$anon$67:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(__pthread_mutex_s.layout().withName("__data"), + MemoryLayout.sequenceLayout(40, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG.withName("__align")) + .withName("$anon$67:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout __data$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__data")); @@ -48,9 +48,7 @@ public static final GroupLayout layout() { * struct __pthread_mutex_s __data * } */ - public static final GroupLayout __data$layout() { - return __data$LAYOUT; - } + public static final GroupLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -60,9 +58,7 @@ public static final GroupLayout layout() { * struct __pthread_mutex_s __data * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -70,7 +66,8 @@ public static final GroupLayout layout() { * struct __pthread_mutex_s __data * } */ - public static MemorySegment __data(MemorySegment union) { + public static MemorySegment __data(MemorySegment union) + { return union.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -80,11 +77,13 @@ public static MemorySegment __data(MemorySegment union) { * struct __pthread_mutex_s __data * } */ - public static void __data(MemorySegment union, MemorySegment fieldValue) { + public static void __data(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -92,9 +91,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[40] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -104,9 +101,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[40] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -114,7 +109,8 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[40] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -124,11 +120,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[40] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 40 }; + private static long[] __size$DIMS = {40}; /** * Dimensions for array field: @@ -136,9 +133,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[40] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -147,7 +142,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[40] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -157,7 +153,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[40] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -169,9 +166,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -181,9 +176,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -191,9 +184,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -201,7 +192,8 @@ public static long __align(MemorySegment union) { * long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -209,7 +201,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -221,15 +214,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -237,7 +229,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -245,8 +238,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_mutexattr_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_mutexattr_t.java index 1e020c7f6ce..2e1c06546b2 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_mutexattr_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_mutexattr_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -22,23 +22,24 @@ */ public class pthread_mutexattr_t { - pthread_mutexattr_t() { + pthread_mutexattr_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_INT.withName("__align") - ).withName("$anon$32:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(4, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_INT.withName("__align")) + .withName("$anon$32:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[4] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[4] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 4 }; + private static long[] __size$DIMS = {4}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[4] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[4] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final OfInt __align$layout() { - return __align$LAYOUT; - } + public static final OfInt __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * int __align * } */ - public static int __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static int __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static int __align(MemorySegment union) { * int __align * } */ - public static void __align(MemorySegment union, int fieldValue) { + public static void __align(MemorySegment union, int fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, int 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlock_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlock_t.java index 21caec1dfba..d4542238b0a 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlock_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlock_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -23,22 +23,22 @@ */ public class pthread_rwlock_t { - pthread_rwlock_t() { + pthread_rwlock_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - __pthread_rwlock_arch_t.layout().withName("__data"), - MemoryLayout.sequenceLayout(56, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG.withName("__align") - ).withName("$anon$86:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(__pthread_rwlock_arch_t.layout().withName("__data"), + MemoryLayout.sequenceLayout(56, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG.withName("__align")) + .withName("$anon$86:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final GroupLayout __data$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("__data")); @@ -48,9 +48,7 @@ public static final GroupLayout layout() { * struct __pthread_rwlock_arch_t __data * } */ - public static final GroupLayout __data$layout() { - return __data$LAYOUT; - } + public static final GroupLayout __data$layout() { return __data$LAYOUT; } private static final long __data$OFFSET = 0; @@ -60,9 +58,7 @@ public static final GroupLayout layout() { * struct __pthread_rwlock_arch_t __data * } */ - public static final long __data$offset() { - return __data$OFFSET; - } + public static final long __data$offset() { return __data$OFFSET; } /** * Getter for field: @@ -70,7 +66,8 @@ public static final GroupLayout layout() { * struct __pthread_rwlock_arch_t __data * } */ - public static MemorySegment __data(MemorySegment union) { + public static MemorySegment __data(MemorySegment union) + { return union.asSlice(__data$OFFSET, __data$LAYOUT.byteSize()); } @@ -80,11 +77,13 @@ public static MemorySegment __data(MemorySegment union) { * struct __pthread_rwlock_arch_t __data * } */ - public static void __data(MemorySegment union, MemorySegment fieldValue) { + public static void __data(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __data$OFFSET, __data$LAYOUT.byteSize()); } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -92,9 +91,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -104,9 +101,7 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -114,7 +109,8 @@ public static void __data(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -124,11 +120,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[56] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 56 }; + private static long[] __size$DIMS = {56}; /** * Dimensions for array field: @@ -136,9 +133,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -147,7 +142,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[56] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -157,7 +153,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[56] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -169,9 +166,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -181,9 +176,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -191,9 +184,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -201,7 +192,8 @@ public static long __align(MemorySegment union) { * long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -209,7 +201,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -221,15 +214,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -237,7 +229,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -245,8 +238,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlockattr_t.java b/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlockattr_t.java index 0d435bff25e..cd2eadd40ef 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlockattr_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/pthread_rwlockattr_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * union { @@ -22,23 +22,24 @@ */ public class pthread_rwlockattr_t { - pthread_rwlockattr_t() { + pthread_rwlockattr_t() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.unionLayout( - MemoryLayout.sequenceLayout(8, hdf5_h.C_CHAR).withName("__size"), - hdf5_h.C_LONG.withName("__align") - ).withName("$anon$93:9"); + private static final GroupLayout $LAYOUT = + MemoryLayout + .unionLayout(MemoryLayout.sequenceLayout(8, hdf5_h.C_CHAR).withName("__size"), + hdf5_h.C_LONG.withName("__align")) + .withName("$anon$93:9"); /** * The layout of this union */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } - private static final SequenceLayout __size$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("__size")); + private static final SequenceLayout __size$LAYOUT = + (SequenceLayout)$LAYOUT.select(groupElement("__size")); /** * Layout for field: @@ -46,9 +47,7 @@ public static final GroupLayout layout() { * char __size[8] * } */ - public static final SequenceLayout __size$layout() { - return __size$LAYOUT; - } + public static final SequenceLayout __size$layout() { return __size$LAYOUT; } private static final long __size$OFFSET = 0; @@ -58,9 +57,7 @@ public static final GroupLayout layout() { * char __size[8] * } */ - public static final long __size$offset() { - return __size$OFFSET; - } + public static final long __size$offset() { return __size$OFFSET; } /** * Getter for field: @@ -68,7 +65,8 @@ public static final GroupLayout layout() { * char __size[8] * } */ - public static MemorySegment __size(MemorySegment union) { + public static MemorySegment __size(MemorySegment union) + { return union.asSlice(__size$OFFSET, __size$LAYOUT.byteSize()); } @@ -78,11 +76,12 @@ public static MemorySegment __size(MemorySegment union) { * char __size[8] * } */ - public static void __size(MemorySegment union, MemorySegment fieldValue) { + public static void __size(MemorySegment union, MemorySegment fieldValue) + { MemorySegment.copy(fieldValue, 0L, union, __size$OFFSET, __size$LAYOUT.byteSize()); } - private static long[] __size$DIMS = { 8 }; + private static long[] __size$DIMS = {8}; /** * Dimensions for array field: @@ -90,9 +89,7 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[8] * } */ - public static long[] __size$dimensions() { - return __size$DIMS; - } + public static long[] __size$dimensions() { return __size$DIMS; } private static final VarHandle __size$ELEM_HANDLE = __size$LAYOUT.varHandle(sequenceElement()); /** @@ -101,7 +98,8 @@ public static void __size(MemorySegment union, MemorySegment fieldValue) { * char __size[8] * } */ - public static byte __size(MemorySegment union, long index0) { + public static byte __size(MemorySegment union, long index0) + { return (byte)__size$ELEM_HANDLE.get(union, 0L, index0); } @@ -111,7 +109,8 @@ public static byte __size(MemorySegment union, long index0) { * char __size[8] * } */ - public static void __size(MemorySegment union, long index0, byte fieldValue) { + public static void __size(MemorySegment union, long index0, byte fieldValue) + { __size$ELEM_HANDLE.set(union, 0L, index0, fieldValue); } @@ -123,9 +122,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final OfLong __align$layout() { - return __align$LAYOUT; - } + public static final OfLong __align$layout() { return __align$LAYOUT; } private static final long __align$OFFSET = 0; @@ -135,9 +132,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static final long __align$offset() { - return __align$OFFSET; - } + public static final long __align$offset() { return __align$OFFSET; } /** * Getter for field: @@ -145,9 +140,7 @@ public static void __size(MemorySegment union, long index0, byte fieldValue) { * long __align * } */ - public static long __align(MemorySegment union) { - return union.get(__align$LAYOUT, __align$OFFSET); - } + public static long __align(MemorySegment union) { return union.get(__align$LAYOUT, __align$OFFSET); } /** * Setter for field: @@ -155,7 +148,8 @@ public static long __align(MemorySegment union) { * long __align * } */ - public static void __align(MemorySegment union, long fieldValue) { + public static void __align(MemorySegment union, long fieldValue) + { union.set(__align$LAYOUT, __align$OFFSET, fieldValue); } @@ -163,7 +157,8 @@ public static void __align(MemorySegment union, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -175,15 +170,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -191,7 +185,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -199,8 +194,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/sigset_t.java b/java/jsrc/org/hdfgroup/javahdf5/sigset_t.java index 6c419eef76a..ed48356fbd7 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/sigset_t.java +++ b/java/jsrc/org/hdfgroup/javahdf5/sigset_t.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 : * typedef __sigset_t sigset_t @@ -19,8 +19,8 @@ */ public class sigset_t extends __sigset_t { - sigset_t() { + sigset_t() + { // Should not be called directly } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/timespec.java b/java/jsrc/org/hdfgroup/javahdf5/timespec.java index fa7229de9cf..b802a1ba7cc 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/timespec.java +++ b/java/jsrc/org/hdfgroup/javahdf5/timespec.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 timespec { @@ -22,21 +22,19 @@ */ public class timespec { - timespec() { + timespec() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("tv_sec"), - hdf5_h.C_LONG.withName("tv_nsec") - ).withName("timespec"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("tv_sec"), hdf5_h.C_LONG.withName("tv_nsec")) + .withName("timespec"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong tv_sec$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tv_sec")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static final OfLong tv_sec$layout() { - return tv_sec$LAYOUT; - } + public static final OfLong tv_sec$layout() { return tv_sec$LAYOUT; } private static final long tv_sec$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static final long tv_sec$offset() { - return tv_sec$OFFSET; - } + public static final long tv_sec$offset() { return tv_sec$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static long tv_sec(MemorySegment struct) { - return struct.get(tv_sec$LAYOUT, tv_sec$OFFSET); - } + public static long tv_sec(MemorySegment struct) { return struct.get(tv_sec$LAYOUT, tv_sec$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long tv_sec(MemorySegment struct) { * __time_t tv_sec * } */ - public static void tv_sec(MemorySegment struct, long fieldValue) { + public static void tv_sec(MemorySegment struct, long fieldValue) + { struct.set(tv_sec$LAYOUT, tv_sec$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __syscall_slong_t tv_nsec * } */ - public static final OfLong tv_nsec$layout() { - return tv_nsec$LAYOUT; - } + public static final OfLong tv_nsec$layout() { return tv_nsec$LAYOUT; } private static final long tv_nsec$OFFSET = 8; @@ -102,9 +93,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __syscall_slong_t tv_nsec * } */ - public static final long tv_nsec$offset() { - return tv_nsec$OFFSET; - } + public static final long tv_nsec$offset() { return tv_nsec$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __syscall_slong_t tv_nsec * } */ - public static long tv_nsec(MemorySegment struct) { - return struct.get(tv_nsec$LAYOUT, tv_nsec$OFFSET); - } + public static long tv_nsec(MemorySegment struct) { return struct.get(tv_nsec$LAYOUT, tv_nsec$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static long tv_nsec(MemorySegment struct) { * __syscall_slong_t tv_nsec * } */ - public static void tv_nsec(MemorySegment struct, long fieldValue) { + public static void tv_nsec(MemorySegment struct, long fieldValue) + { struct.set(tv_nsec$LAYOUT, tv_nsec$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void tv_nsec(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jsrc/org/hdfgroup/javahdf5/timeval.java b/java/jsrc/org/hdfgroup/javahdf5/timeval.java index f31d1b29fe9..64bf8a80355 100644 --- a/java/jsrc/org/hdfgroup/javahdf5/timeval.java +++ b/java/jsrc/org/hdfgroup/javahdf5/timeval.java @@ -2,16 +2,16 @@ package org.hdfgroup.javahdf5; -import java.lang.invoke.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; +import static java.lang.foreign.ValueLayout.*; + import java.lang.foreign.*; +import java.lang.invoke.*; 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 timeval { @@ -22,21 +22,19 @@ */ public class timeval { - timeval() { + timeval() + { // Should not be called directly } - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - hdf5_h.C_LONG.withName("tv_sec"), - hdf5_h.C_LONG.withName("tv_usec") - ).withName("timeval"); + private static final GroupLayout $LAYOUT = + MemoryLayout.structLayout(hdf5_h.C_LONG.withName("tv_sec"), hdf5_h.C_LONG.withName("tv_usec")) + .withName("timeval"); /** * The layout of this struct */ - public static final GroupLayout layout() { - return $LAYOUT; - } + public static final GroupLayout layout() { return $LAYOUT; } private static final OfLong tv_sec$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tv_sec")); @@ -46,9 +44,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static final OfLong tv_sec$layout() { - return tv_sec$LAYOUT; - } + public static final OfLong tv_sec$layout() { return tv_sec$LAYOUT; } private static final long tv_sec$OFFSET = 0; @@ -58,9 +54,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static final long tv_sec$offset() { - return tv_sec$OFFSET; - } + public static final long tv_sec$offset() { return tv_sec$OFFSET; } /** * Getter for field: @@ -68,9 +62,7 @@ public static final GroupLayout layout() { * __time_t tv_sec * } */ - public static long tv_sec(MemorySegment struct) { - return struct.get(tv_sec$LAYOUT, tv_sec$OFFSET); - } + public static long tv_sec(MemorySegment struct) { return struct.get(tv_sec$LAYOUT, tv_sec$OFFSET); } /** * Setter for field: @@ -78,7 +70,8 @@ public static long tv_sec(MemorySegment struct) { * __time_t tv_sec * } */ - public static void tv_sec(MemorySegment struct, long fieldValue) { + public static void tv_sec(MemorySegment struct, long fieldValue) + { struct.set(tv_sec$LAYOUT, tv_sec$OFFSET, fieldValue); } @@ -90,9 +83,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __suseconds_t tv_usec * } */ - public static final OfLong tv_usec$layout() { - return tv_usec$LAYOUT; - } + public static final OfLong tv_usec$layout() { return tv_usec$LAYOUT; } private static final long tv_usec$OFFSET = 8; @@ -102,9 +93,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __suseconds_t tv_usec * } */ - public static final long tv_usec$offset() { - return tv_usec$OFFSET; - } + public static final long tv_usec$offset() { return tv_usec$OFFSET; } /** * Getter for field: @@ -112,9 +101,7 @@ public static void tv_sec(MemorySegment struct, long fieldValue) { * __suseconds_t tv_usec * } */ - public static long tv_usec(MemorySegment struct) { - return struct.get(tv_usec$LAYOUT, tv_usec$OFFSET); - } + public static long tv_usec(MemorySegment struct) { return struct.get(tv_usec$LAYOUT, tv_usec$OFFSET); } /** * Setter for field: @@ -122,7 +109,8 @@ public static long tv_usec(MemorySegment struct) { * __suseconds_t tv_usec * } */ - public static void tv_usec(MemorySegment struct, long fieldValue) { + public static void tv_usec(MemorySegment struct, long fieldValue) + { struct.set(tv_usec$LAYOUT, tv_usec$OFFSET, fieldValue); } @@ -130,7 +118,8 @@ public static void tv_usec(MemorySegment struct, long 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) { + public static MemorySegment asSlice(MemorySegment array, long index) + { return array.asSlice(layout().byteSize() * index); } @@ -142,15 +131,14 @@ public static MemorySegment asSlice(MemorySegment array, long index) { /** * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } + 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) { + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) + { return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); } @@ -158,7 +146,8 @@ public static MemorySegment allocateArray(long elementCount, SegmentAllocator al * 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) { + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) + { return reinterpret(addr, 1, arena, cleanup); } @@ -166,8 +155,9 @@ public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consume * 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) { + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, + Consumer cleanup) + { return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); } } - diff --git a/java/jtest/TestAll.java b/java/jtest/TestAll.java index c22fbfe2ca8..5f3b14c3e01 100644 --- a/java/jtest/TestAll.java +++ b/java/jtest/TestAll.java @@ -28,5 +28,4 @@ TestH5Obasic.class, TestH5Ocopy.class, TestH5Ocreate.class, TestH5PL.class, TestH5Z.class}) -public class TestAll { -} +public class TestAll {} diff --git a/java/jtest/TestH5.java b/java/jtest/TestH5.java index d1582b64a6d..7f77f4d71b4 100644 --- a/java/jtest/TestH5.java +++ b/java/jtest/TestH5.java @@ -48,18 +48,18 @@ */ public class TestH5 { @Rule - public TestName testname = new TestName(); - private static final String H5_FILE = "testData.h5"; - private static final int DIM_X = 4; - private static final int DIM_Y = 6; - private static final int DIM_BLKS = 36; - private static final int DIM_PNTS = 10; - private static final int DIM_ATTR = 12; - private static final int RANK = 2; - long H5fid = H5I_INVALID_HID(); - long H5dsid = H5I_INVALID_HID(); - long H5did = H5I_INVALID_HID(); - long[] H5dims = {DIM_X, DIM_Y}; + public TestName testname = new TestName(); + private static final String H5_FILE = "testData.h5"; + private static final int DIM_X = 4; + private static final int DIM_Y = 6; + private static final int DIM_BLKS = 36; + private static final int DIM_PNTS = 10; + private static final int DIM_ATTR = 12; + private static final int RANK = 2; + long H5fid = H5I_INVALID_HID(); + long H5dsid = H5I_INVALID_HID(); + long H5did = H5I_INVALID_HID(); + long[] H5dims = {DIM_X, DIM_Y}; private final void _deleteFile(String filename) { @@ -275,16 +275,16 @@ public void testH5Eget_auto2() { try (Arena arena = Arena.ofConfined()) { // Allocate a MemorySegment to hold the array bytes -// MemorySegment efunc = arena.allocateFrom(ValueLayout.ADDRESS); -// MemorySegment edata = arena.allocateFrom(ValueLayout.ADDRESS); -// try { -// H5Eget_auto2(H5E_DEFAULT(), efunc, edata); -// H5Eset_auto2(H5E_DEFAULT(), null, null); -// H5Eset_auto2(H5E_DEFAULT(), efunc, edata); -// } -// catch (Throwable err) { -// fail("H5Eget_auto2 failed: " + err); -// } + // MemorySegment efunc = arena.allocateFrom(ValueLayout.ADDRESS); + // MemorySegment edata = arena.allocateFrom(ValueLayout.ADDRESS); + // try { + // H5Eget_auto2(H5E_DEFAULT(), efunc, edata); + // H5Eset_auto2(H5E_DEFAULT(), null, null); + // H5Eset_auto2(H5E_DEFAULT(), efunc, edata); + // } + // catch (Throwable err) { + // fail("H5Eget_auto2 failed: " + err); + // } } catch (Throwable err) { err.printStackTrace(); diff --git a/java/jtest/TestH5D.java b/java/jtest/TestH5D.java index 061415c8521..2d1637ad570 100644 --- a/java/jtest/TestH5D.java +++ b/java/jtest/TestH5D.java @@ -926,8 +926,8 @@ public int callback(byte[] elem_buf, long elem_id, int ndim, long[] point, H5D_i public void testH5Dvlen_get_buf_size() { String[] str_data = {"Parting", "is such", "sweet", "sorrow.", "Testing", "one", "two", "three.", - "Dog,", "man's", "best", "friend.", "Diamonds", "are", "a", "girls!", - "S A", "T U R", "D A Y", "night", "That's", "all", "folks", "!!!"}; + "Dog,", "man's", "best", "friend.", "Diamonds", "are", "a", "girls!", + "S A", "T U R", "D A Y", "night", "That's", "all", "folks", "!!!"}; long vl_size = -1; /* Number of bytes used */ long str_data_bytes = 0; for (int idx = 0; idx < str_data.length; idx++) diff --git a/java/jtest/TestH5F.java b/java/jtest/TestH5F.java index 4fc22a25c69..7fc102bf5ab 100644 --- a/java/jtest/TestH5F.java +++ b/java/jtest/TestH5F.java @@ -45,7 +45,7 @@ public class TestH5F { private static final int[] OBJ_COUNTS = {COUNT_OBJ_FILE, COUNT_OBJ_DATASET, COUNT_OBJ_GROUP, COUNT_OBJ_DATATYPE, COUNT_OBJ_ATTR, COUNT_OBJ_ALL}; private static final int[] OBJ_TYPES = {H5F_OBJ_FILE(), H5F_OBJ_DATASET(), H5F_OBJ_GROUP(), - H5F_OBJ_DATATYPE(), H5F_OBJ_ATTR(), H5F_OBJ_ALL()}; + H5F_OBJ_DATATYPE(), H5F_OBJ_ATTR(), H5F_OBJ_ALL()}; long H5fid = H5I_INVALID_HID(); private final void _deleteFile(String filename) diff --git a/java/jtest/TestH5G.java b/java/jtest/TestH5G.java index 5158c5d24d0..6b6787f4980 100644 --- a/java/jtest/TestH5G.java +++ b/java/jtest/TestH5G.java @@ -37,7 +37,7 @@ public class TestH5G { private static final String H5_FILE = "testG.h5"; private static final String H5_FILE2 = "testG2.h5"; private static final String[] GROUPS = {"/G1", "/G1/G11", "/G1/G12", "/G1/G11/G111", - "/G1/G11/G112", "/G1/G11/G113", "/G1/G11/G114"}; + "/G1/G11/G112", "/G1/G11/G113", "/G1/G11/G114"}; private static final String[] GROUPS2 = {"/G1", "/G1/G14", "/G1/G12", "/G1/G13", "/G1/G11"}; long H5fid = H5I_INVALID_HID(); long H5fid2 = H5I_INVALID_HID(); diff --git a/java/jtest/TestH5Plist.java b/java/jtest/TestH5Plist.java index 7944aee829b..47065bfcd71 100644 --- a/java/jtest/TestH5Plist.java +++ b/java/jtest/TestH5Plist.java @@ -73,7 +73,7 @@ public class TestH5Plist { private static final String PROP3_NAME = "Property 3"; private static final char[] prop3_def = {'T', 'e', 'n', ' ', 'c', - 'h', 'a', 'r', 's', ' '}; // Property 3 default value + 'h', 'a', 'r', 's', ' '}; // Property 3 default value private static final int PROP3_SIZE = 10; private static final String PROP4_NAME = "Property 4";