Skip to contents

H5Fget_filesize() returns the size in bytes of the HDF5 file specified by h5file.

Usage

H5Fget_filesize(h5file)

Arguments

h5file

H5IdComponent representing an HDF5 file ID. Typically created via H5Fcreate() or H5Fopen().

Examples

h5_file <- withr::local_tempfile(fileext = ".h5")
H5Fcreate(h5_file)

fid <- H5Fopen(h5_file)
H5Fget_filesize(fid)
#> [1] 2048
H5Fclose(fid)