H5P_GET_USERBLOCK retrieves the size of a user block in a file creation property list. A user can then read size bytes from the beginning of the HDF5 file from an application that does not use HDF5. For example, for an HDF5 file ublock.h5 with a user block of characters of size 512 containing characters, the user block can be retrieved with the following simplified code segment: unsigned char buffer[512]; FILE *fp = fopen("ublock.h5", "r"); ret = fread(buffer, 1, 512, fp); fclose(fp); |