diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-09-26 18:25:03 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-09-26 18:25:03 (GMT) |
commit | 6aeb73dd44ed126dcb3f77b9ff4ff95c2403ea62 (patch) | |
tree | 2a600b3c00b8f554d0a09f4e29e5e0f831a8b356 /hl/c++/examples | |
parent | fdbdaf656bc91c4802dd4c58ceb622bb51f390a9 (diff) | |
download | hdf5-6aeb73dd44ed126dcb3f77b9ff4ff95c2403ea62.zip hdf5-6aeb73dd44ed126dcb3f77b9ff4ff95c2403ea62.tar.gz hdf5-6aeb73dd44ed126dcb3f77b9ff4ff95c2403ea62.tar.bz2 |
[svn-r12686] Added compression to Packet Tables. Now both C and C++ packet tables
have an extra parameter that sets the deflate filter.
Added tests, made examples use the new APIs.
Cleaned up include files a little and removed some casts that I hope are
superfluous. If anybody encounters strange errors in the packet table
tests where the chunk size is set to some extremely large value, please
let me know, but I was unable to reproduce this error on any system.
Tested on mir, heping, sol, juniper, VS 6.0. Looked for the chunk size
error on several other systems a month or two ago.
Diffstat (limited to 'hl/c++/examples')
-rw-r--r-- | hl/c++/examples/ptExampleFL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/c++/examples/ptExampleFL.cpp b/hl/c++/examples/ptExampleFL.cpp index 4f9c167..93fc58e 100644 --- a/hl/c++/examples/ptExampleFL.cpp +++ b/hl/c++/examples/ptExampleFL.cpp @@ -46,8 +46,8 @@ int main(void) if(fileID <0) fprintf(stderr, "Couldn't create file.\n"); - /* Create a fixed-length packet table. */ - FL_PacketTable ptable(fileID, "/examplePacketTable", H5T_NATIVE_INT, 1); + /* Create a fixed-length packet table with compression level 5. */ + FL_PacketTable ptable(fileID, "/examplePacketTable", H5T_NATIVE_INT, 100, 5); if(! ptable.IsValid()) fprintf(stderr, "Unable to create packet table."); |