90 lines
1.1 KiB
C
90 lines
1.1 KiB
C
#ifndef __H5U_MODEL_H
|
|
#define __H5U_MODEL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
h5_ssize_t
|
|
h5u_get_num_particles (
|
|
h5_file_t *const f
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_set_num_particles (
|
|
h5_file_t *const f,
|
|
const h5_size_t nparticles,
|
|
const h5_size_t stride
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_has_view (
|
|
const h5_file_t *const f
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_reset_view (
|
|
h5_file_t *const f
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_set_view (
|
|
h5_file_t *const f,
|
|
h5_int64_t start,
|
|
h5_int64_t end
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_set_view_indices (
|
|
h5_file_t *const f,
|
|
const h5_size_t *const indices,
|
|
h5_size_t nelems
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_get_view (
|
|
h5_file_t *const f,
|
|
h5_int64_t *start,
|
|
h5_int64_t *end
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_set_canonical_view (
|
|
h5_file_t *const f
|
|
);
|
|
|
|
h5_ssize_t
|
|
h5u_get_num_datasets (
|
|
h5_file_t *const f
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_get_dataset_info (
|
|
h5_file_t *const f,
|
|
const h5_id_t idx,
|
|
char *dataset_name,
|
|
const h5_size_t len_dataset_name,
|
|
h5_int64_t *type,
|
|
h5_size_t *nelem
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_set_chunk (
|
|
h5_file_t *const f,
|
|
const h5_size_t size
|
|
);
|
|
|
|
h5_err_t
|
|
h5u_get_chunk (
|
|
h5_file_t *const f,
|
|
const char *name,
|
|
h5_size_t *size
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|