/* Open an existing HDF5 file */
fid = H5Fopen(filename, H5F_ACC_RDWR, H5P_DEFAULT);
/* Get the EOA stored in the file’s superblock */
H5Fget_eoa(fid, &stored_eoa);
/* Set the EOA */
H5Fincrement_filesize(fid, 512);
/* Close the file */
H5Fclose(fid);
/* Find out the file’s actual size (EOF): S */
/* S should equal to (stored_eoa + 512) */
Comment |
---|
HTML Wrap |
---|
| Bitbucket Server file |
---|
repoSlug | hdf5 |
---|
branchId | refs/heads/1.10/master |
---|
projectKey | HDFFV |
---|
filepath | examples/h5_subset.c |
---|
showLineNumbers | true |
---|
lineStart | 32 |
---|
progLang | cpp |
---|
lineEnd | 42 |
---|
applicationLink | 5ac7b370-7412-3c8c-ad20-807a68261336 |
---|
|
|
HTML Wrap |
---|
class | hdf-togglebox hdf-fortran hdf-togglebox-hidden |
---|
| Bitbucket Server file |
---|
repoSlug | hdf5 |
---|
branchId | refs/heads/1.10/master |
---|
projectKey | HDFFV |
---|
filepath | fortran/examples/compound.f90 |
---|
showLineNumbers | true |
---|
lineStart | 25 |
---|
progLang | plain |
---|
lineEnd | 35 |
---|
applicationLink | 5ac7b370-7412-3c8c-ad20-807a68261336 |
---|
|
|
|
|