Closed ChrisDrozdowski closed 5 years ago
Correct. Packet table is a dataset plus some extra code for chunk size buffering of data. Once the chunk/bucket is full it gets dumped to actual dataset. The last remaining part gets flushed when h5::pt_t pt
goes out of scope, and resources get closed according to RAII.
Conversion from packet table to dataset should also work.
Below is an example of how one can add attributes to a pack table-generated dataset. This tripped me up for a bit, so an example may be useful to others.
Please adapt as you see fit to work with packet-table example.
I didn't add to the packet-table example myself because it needs to be tested in Linux which I can't currently do.
The important points are creating
ds_t
, adding attributes to it, then casting topt_t
for data appending.