Jump to ...
Summary
Description
Example
Switch language ...
C
C++
FORTRAN
JAVA
Retrieves the file’s EOA
H5F_GET_EOA (file_id, eoa)
herr_t H5Fget_eoa( hid_t file_id, haddr_t *eoa )
file_id
*eoa
H5F_GET_EOA retrieves the file’s EOA and returns it in the parameter eoa.
eoa
Returns a non-negative value if successful; otherwise returns a negative value.
/* 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) */
--- Last Modified: December 20, 2018 | 01:47 PM