summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2009-05-21 17:40:40 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2009-05-21 17:40:40 (GMT)
commit447d4c4be0ec0626bfe414bacba5ce5af9ed8d35 (patch)
tree51755095b982d8357ceb5f9d816e4569caca53ca
parent6f0b39de55a71e042a3a50b6d169804021174ebf (diff)
downloadhdf5-447d4c4be0ec0626bfe414bacba5ce5af9ed8d35.zip
hdf5-447d4c4be0ec0626bfe414bacba5ce5af9ed8d35.tar.gz
hdf5-447d4c4be0ec0626bfe414bacba5ce5af9ed8d35.tar.bz2
[svn-r16970] Maintenance: Changed the type to be H5T_NATIVE_UCHAR instead of bitfield
to allow h5dump to show packed bits; current h5dump works only with integer types while dsiplaying packed bits. Platforms tested: jam and smirom
-rw-r--r--hl/test/test_bitfield.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/test/test_bitfield.c b/hl/test/test_bitfield.c
index 74ecc85..7488e3a 100644
--- a/hl/test/test_bitfield.c
+++ b/hl/test/test_bitfield.c
@@ -42,12 +42,12 @@ int main(void)
space_id = H5Screate_simple(rank, dims, NULL);
- dset_id = H5Dcreate2(file_id, "Granule 1", H5T_STD_B8BE, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ dset_id = H5Dcreate2(file_id, "Granule 1", H5T_NATIVE_UCHAR, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Write data to the dataset.
*/
- status = H5Dwrite(dset_id, H5T_NATIVE_B8, H5S_ALL , H5S_ALL, H5P_DEFAULT,wdata);
+ status = H5Dwrite(dset_id, H5T_NATIVE_UCHAR, H5S_ALL , H5S_ALL, H5P_DEFAULT,wdata);
status = H5Dclose(dset_id);
status = H5Sclose(space_id);
status = H5Fclose(file_id);
@@ -73,7 +73,7 @@ int main(void)
* store it in a char buffer. This selects all the elements (H5S_ALL)
*/
status = H5LTread_bitfield_value(qf_dset, num_flags, offset, length,
- H5S_ALL, H5T_NATIVE_B8, qf_data);
+ H5S_ALL, H5T_NATIVE_UCHAR, qf_data);
printf("Bit Field:\n");
for (i = 0; i<DIM0; i++) {
printf (" [");