[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.
This commit is contained in:
@@ -124,9 +124,9 @@
|
||||
* the packet table, the ID of the datatype of the set, and the size
|
||||
* of a memory chunk used in chunking.
|
||||
*/
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, char* name, hid_t dtypeID, int chunkSize)
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, char* name, hid_t dtypeID, hsize_t chunkSize, int compression)
|
||||
{
|
||||
table_id = H5PTcreate_fl ( fileID, name, dtypeID, chunkSize);
|
||||
table_id = H5PTcreate_fl ( fileID, name, dtypeID, chunkSize, compression);
|
||||
}
|
||||
|
||||
/* "Open" Constructor
|
||||
@@ -220,7 +220,7 @@
|
||||
* Takes the ID of the file the packet table will be created in, the name of
|
||||
* the packet table, and the size of a memory chunk used in chunking.
|
||||
*/
|
||||
VL_PacketTable::VL_PacketTable(hid_t fileID, char* name, int chunkSize)
|
||||
VL_PacketTable::VL_PacketTable(hid_t fileID, char* name, hsize_t chunkSize)
|
||||
{
|
||||
table_id = H5PTcreate_vl ( fileID, name, chunkSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user