diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-07-28 15:00:29 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-07-28 15:00:29 (GMT) |
commit | c7384f49e030fb296629300ac6b2ce9981a05cfd (patch) | |
tree | 72b294fce82845ea3eeeacaee7de710643c5a209 /tools/h5dump | |
parent | e55a2e7bd1c06ecea8b9f2ff4265dc02ebdc4dc3 (diff) | |
download | hdf5-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/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 5 | ||||
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index ca21773..69adb31 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -2725,6 +2725,11 @@ set_binary_form(const char *form) bform = 0; else if (strcmp(form,"DI")==0) /* file type form */ bform = 1; + else if (strcmp(form,"LI")==0) /* convert to little endian */ + bform = 2; + else if (strcmp(form,"BI")==0) /* convert to big endian */ + bform = 3; + return bform; } diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index 1505b9f..81bcab8 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -322,9 +322,8 @@ TOOLTEST tvms.ddl tvms.h5 # test for binary output TOOLTEST tbin.ddl -d integer -b out.bin test1.h5 - -# test for binary output using a file type form -F DI TOOLTEST tbin2.ddl -d integer -b out2.bin -F DI test1.h5 +TOOLTEST tbin3.ddl -d integer -b out3.bin -F LI test1.h5 if test $nerrors -eq 0 ; then echo "All $DUMPER tests passed." |