MISR Toolkit  1.5.1
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 #include "H5Ipublic.h"
24 
25 #ifdef H5_HAVE_DIRECT
26 # define H5FD_DIRECT (H5FD_direct_init())
27 #else
28 # define H5FD_DIRECT (-1)
29 #endif /* H5_HAVE_DIRECT */
30 
31 #ifdef H5_HAVE_DIRECT
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /* Default values for memory boundary, file block size, and maximal copy buffer size.
37  * Application can set these values through the function H5Pset_fapl_direct. */
38 #define MBOUNDARY_DEF 4096
39 #define FBSIZE_DEF 4096
40 #define CBSIZE_DEF 16*1024*1024
41 
42 H5_DLL hid_t H5FD_direct_init(void);
43 H5_DLL void H5FD_direct_term(void);
44 H5_DLL herr_t H5Pset_fapl_direct(hid_t fapl_id, size_t alignment, size_t block_size,
45  size_t cbuf_size);
46 H5_DLL herr_t H5Pget_fapl_direct(hid_t fapl_id, size_t *boundary/*out*/,
47  size_t *block_size/*out*/, size_t *cbuf_size/*out*/);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* H5_HAVE_DIRECT */
54 
55 #endif
HDFFCLIBAPI intf * block_size
#define H5_DLL
Definition: H5api_adpt.h:256
int herr_t
Definition: H5public.h:124
int hid_t
Definition: H5Ipublic.h:54

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52