summaryrefslogtreecommitdiffstats
path: root/java/examples/datasets/H5Ex_D_Compact.java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-01-26 17:59:34 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-01-26 17:59:34 (GMT)
commitfefbcd3cb604f5942768d222124fc100394888d5 (patch)
tree39b5e4ac586d53d13a3047737058f17216266c5f /java/examples/datasets/H5Ex_D_Compact.java
parent768636dbd77ea787a6a04dfc321ff3e862791db7 (diff)
downloadhdf5-fefbcd3cb604f5942768d222124fc100394888d5.zip
hdf5-fefbcd3cb604f5942768d222124fc100394888d5.tar.gz
hdf5-fefbcd3cb604f5942768d222124fc100394888d5.tar.bz2
HDFFV-10120 Tools test fail when zlib is disabled
Diffstat (limited to 'java/examples/datasets/H5Ex_D_Compact.java')
0 files changed, 0 insertions, 0 deletions
Ddirect_H #define H5FDdirect_H #ifdef H5_HAVE_DIRECT #define H5FD_DIRECT (H5FD_direct_init()) #else #define H5FD_DIRECT (H5I_INVALID_HID) #endif /* H5_HAVE_DIRECT */ #ifdef H5_HAVE_DIRECT #ifdef __cplusplus extern "C" { #endif /* Default values for memory boundary, file block size, and maximal copy buffer size. * Application can set these values through the function H5Pset_fapl_direct. */ #define MBOUNDARY_DEF 4096 #define FBSIZE_DEF 4096 #define CBSIZE_DEF 16 * 1024 * 1024 H5_DLL hid_t H5FD_direct_init(void); /** * \ingroup FAPL * * \brief Sets up use of the direct I/O driver * * \fapl_id * \param[in] alignment Required memory alignment boundary * \param[in] block_size File system block size * \param[in] cbuf_size Copy buffer size * \returns \herr_t * * \details H5Pset_fapl_direct() sets the file access property list, \p fapl_id, * to use the direct I/O driver, #H5FD_DIRECT. With this driver, data * is written to or read from the file synchronously without being * cached by the system. * * File systems usually require the data address in memory, the file * address, and the size of the data to be aligned. The HDF5 library’s * direct I/O driver is able to handle unaligned data, though that will * consume some additional memory resources and may slow * performance. To get better performance, use the system function \p * posix_memalign to align the data buffer in memory and the HDF5 * function H5Pset_alignment() to align the data in the file. Be aware, * however, that aligned data I/O may cause the HDF5 file to be bigger * than the actual data size would otherwise require because the * alignment may leave some holes in the file. * * \p alignment specifies the required alignment boundary in memory. * * \p block_size specifies the file system block size. A value of 0 * (zero) means to use HDF5 library’s default value of 4KB. * * \p cbuf_size specifies the copy buffer size. * * \since 1.8.0 * */ H5_DLL herr_t H5Pset_fapl_direct(hid_t fapl_id, size_t alignment, size_t block_size, size_t cbuf_size); /** * \ingroup FAPL * * \brief Retrieves direct I/O driver settings * * \fapl_id * \param[out] boundary Required memory alignment boundary * \param[out] block_size File system block size * \param[out] cbuf_size Copy buffer size * \returns \herr_t * * \details H5Pget_fapl_direct() retrieves the required memory alignment (\p * alignment), file system block size (\p block_size), and copy buffer * size (\p cbuf_size) settings for the direct I/O driver, #H5FD_DIRECT, * from the file access property list \p fapl_id. * * See H5Pset_fapl_direct() for discussion of these values, * requirements, and important considerations. * * \since 1.8.0 * */ H5_DLL herr_t H5Pget_fapl_direct(hid_t fapl_id, size_t *boundary /*out*/, size_t *block_size /*out*/, size_t *cbuf_size /*out*/); #ifdef __cplusplus } #endif #endif /* H5_HAVE_DIRECT */ #endif