summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-07-28 15:00:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-07-28 15:00:29 (GMT)
commitc7384f49e030fb296629300ac6b2ce9981a05cfd (patch)
tree72b294fce82845ea3eeeacaee7de710643c5a209 /tools/lib/h5tools.c
parente55a2e7bd1c06ecea8b9f2ff4265dc02ebdc4dc3 (diff)
downloadhdf5-c7384f49e030fb296629300ac6b2ce9981a05cfd.zip
hdf5-c7384f49e030fb296629300ac6b2ce9981a05cfd.tar.gz
hdf5-c7384f49e030fb296629300ac6b2ce9981a05cfd.tar.bz2
[svn-r12513]
new feature h5dump binary output. use little and big endian type conversions
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index f48b335..a3cb2a8 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -1216,6 +1216,10 @@ h5tools_dump_dset(FILE *stream, const h5tool_format_t *info, hid_t dset, hid_t _
if (info->raw || bin_form == 1 )
p_type = H5Tcopy(f_type);
+ else if (bin_form == 2 )
+ p_type = h5tools_get_little_endian_type(f_type);
+ else if (bin_form == 3 )
+ p_type = h5tools_get_big_endian_type(f_type);
else
p_type = h5tools_get_native_type(f_type);