HDF5  1.12.0
H5FDdirect.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*
15  * Programmer: Raymond Lu <slu@hdfgroup.uiuc.edu>
16  * Wednesday, 20 September 2006
17  *
18  * Purpose: The public header file for the direct driver.
19  */
20 #ifndef H5FDdirect_H
21 #define H5FDdirect_H
22 
23 #ifdef H5_HAVE_DIRECT
24 # define H5FD_DIRECT (H5FD_direct_init())
25 #else
26 # define H5FD_DIRECT (-1)
27 #endif /* H5_HAVE_DIRECT */
28 
29 #ifdef H5_HAVE_DIRECT
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /* Default values for memory boundary, file block size, and maximal copy buffer size.
35  * Application can set these values through the function H5Pset_fapl_direct. */
36 #define MBOUNDARY_DEF 4096
37 #define FBSIZE_DEF 4096
38 #define CBSIZE_DEF 16*1024*1024
39 
40 H5_DLL hid_t H5FD_direct_init(void);
41 H5_DLL herr_t H5Pset_fapl_direct(hid_t fapl_id, size_t alignment, size_t block_size,
42  size_t cbuf_size);
43 H5_DLL herr_t H5Pget_fapl_direct(hid_t fapl_id, size_t *boundary/*out*/,
44  size_t *block_size/*out*/, size_t *cbuf_size/*out*/);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* H5_HAVE_DIRECT */
51 
52 #endif
53 
hid_t
int64_t hid_t
Definition: H5Ipublic.h:55
H5_DLL
#define H5_DLL
Definition: H5api_adpt.h:234
herr_t
int herr_t
Definition: H5public.h:128