Page tree

The license could not be verified: License Certificate has expired!

 

JAVA

FORTRAN

C++

C

 

Link

H5F_GET_EOA

Retrieves the file’s EOA

Procedure:

H5F_GET_EOA (file_id, eoa)

Signature:

herr_t H5Fget_eoa(             
        hid_t file_id,              
        haddr_t *eoa
)

Parameters:
hid_t file_idIN: Identifier of a currently-open HDF5 file
haddr_t  *eoaOUT: The file’s EOA

Description:

H5F_GET_EOA retrieves the file’s EOA and returns it in the parameter eoa.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

/* 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) */

 

History:
HistoryC
1.10.2Function introduced in this release.

--- Last Modified: April 13, 2018 | 03:15 PM