HDF5  1.12.0
H5MMprivate.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  *
16  * Created: H5MMprivate.h
17  * Jul 10 1997
18  * Robb Matzke <matzke@llnl.gov>
19  *
20  * Purpose: Private header for memory management.
21  *
22  *-------------------------------------------------------------------------
23  */
24 #ifndef _H5MMprivate_H
25 #define _H5MMprivate_H
26 
27 #include "H5MMpublic.h"
28 
29 /* Private headers needed by this file */
30 #include "H5private.h"
31 
32 #if defined H5_MEMORY_ALLOC_SANITY_CHECK
33 /*#define H5MM_PRINT_MEMORY_STATS */
34 #define H5MM_free(Z) H5MM_xfree(Z)
35 #else /* H5_MEMORY_ALLOC_SANITY_CHECK */
36 #define H5MM_free(Z) HDfree(Z)
37 #endif /* H5_MEMORY_ALLOC_SANITY_CHECK */
38 
39 /*
40  * Library prototypes...
41  */
42 H5_DLL void *H5MM_malloc(size_t size);
43 H5_DLL void *H5MM_calloc(size_t size);
44 H5_DLL void *H5MM_realloc(void *mem, size_t size);
45 H5_DLL char *H5MM_xstrdup(const char *s);
46 H5_DLL char *H5MM_strdup(const char *s);
47 H5_DLL void *H5MM_xfree(void *mem);
48 H5_DLL void *H5MM_memcpy(void *dest, const void *src, size_t n);
49 #if defined H5_MEMORY_ALLOC_SANITY_CHECK
50 H5_DLL void H5MM_sanity_check_all(void);
51 H5_DLL void H5MM_final_sanity_check(void);
52 #endif /* H5_MEMORY_ALLOC_SANITY_CHECK */
53 
54 #endif /* _H5MMprivate_H */
55 
size
iblock size
Definition: H5EAcache.c:787
H5MM_xstrdup
H5_DLL char * H5MM_xstrdup(const char *s)
Definition: H5MM.c:458
H5MM_calloc
H5_DLL void * H5MM_calloc(size_t size)
Definition: H5MM.c:354
H5MMpublic.h
H5MM_strdup
H5_DLL char * H5MM_strdup(const char *s)
Definition: H5MM.c:492
H5MM_realloc
H5_DLL void * H5MM_realloc(void *mem, size_t size)
Definition: H5MM.c:399
H5_DLL
#define H5_DLL
Definition: H5api_adpt.h:234
H5MM_memcpy
H5_DLL void * H5MM_memcpy(void *dest, const void *src, size_t n)
Definition: H5MM.c:583
H5MM_malloc
H5_DLL void * H5MM_malloc(size_t size)
Definition: H5MM.c:267
n
*s *s n
Definition: H5HLdbg.c:111
H5MM_xfree
H5_DLL void * H5MM_xfree(void *mem)
Definition: H5MM.c:527
H5private.h