summaryrefslogtreecommitdiffstats
path: root/src/H5Tpkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-09-12 04:36:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-09-12 04:36:23 (GMT)
commitf3e445cfcb4573ce87212cf7046a3f67f36d616f (patch)
tree3e75cee494b31453d15f66c02d10922b4c10eea1 /src/H5Tpkg.h
parent75471825fde4e55fb23cda381563372bc91795e1 (diff)
downloadhdf5-f3e445cfcb4573ce87212cf7046a3f67f36d616f.zip
hdf5-f3e445cfcb4573ce87212cf7046a3f67f36d616f.tar.gz
hdf5-f3e445cfcb4573ce87212cf7046a3f67f36d616f.tar.bz2
[svn-r7469] Purpose:
Code cleanup, etc. Description: Generalize Ray's datatype fixes to handle packing compound datatypes which are the base type of an array or variable-length type, etc. Also track "packedness" of a compound datatype from it's creation, instead of only setting the 'packed' flag after the datatype was explicitly packed. Updated docs to reflect that a compound datatype is allowed to grow (but not shrink). Platforms tested: FreeBSD 4.9 (sleipnir) h5committest
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r--src/H5Tpkg.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h
index 3ccbd0f..80a4075 100644
--- a/src/H5Tpkg.h
+++ b/src/H5Tpkg.h
@@ -123,8 +123,9 @@ typedef enum H5T_sort_t {
typedef struct H5T_compnd_t {
int nalloc; /*num entries allocated in MEMB array*/
int nmembs; /*number of members defined in struct*/
- H5T_sort_t sorted; /*how are members sorted? */
- struct H5T_cmemb_t *memb; /*array of struct members */
+ H5T_sort_t sorted; /*how are members sorted? */
+ hbool_t packed; /*are members packed together? */
+ struct H5T_cmemb_t *memb; /*array of struct members */
} H5T_compnd_t;
/* An enumeration data type */
@@ -861,4 +862,8 @@ H5_DLL herr_t H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, void *vl_addr, void *
/* Array functions */
H5_DLL H5T_t * H5T_array_create(H5T_t *base, int ndims,
const hsize_t dim[/* ndims */], const int perm[/* ndims */]);
+
+/* Compound functions */
+H5_DLL htri_t H5T_is_packed(H5T_t *dt);
+
#endif