diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-02-27 03:33:25 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-02-27 03:33:25 (GMT) |
commit | c16d23010120083bdf8070b1e3920ca77f83ae50 (patch) | |
tree | 6eb8969a4c341225711d014dd3e525852760543f /src/H5public.h | |
parent | 4c2749fb1da5181528e8b48caeda056d331e4e40 (diff) | |
download | hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.zip hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.gz hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.bz2 |
[svn-r26327] Added public API functions that expose the C library's memory allocator
for use in filter functions that need to allocate or resize buffers.
Intended for use with filter plugins, particularly on Windows, where
C runtime (CRT) issues can cause problems.
Fixes: HDFFV-9100
tested on: jam (minor, localized change)
Diffstat (limited to 'src/H5public.h')
-rw-r--r-- | src/H5public.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h index 673aa6f..0e866be 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -332,6 +332,8 @@ H5_DLL herr_t H5get_libversion(unsigned *majnum, unsigned *minnum, H5_DLL herr_t H5check_version(unsigned majnum, unsigned minnum, unsigned relnum); H5_DLL herr_t H5free_memory(void *mem); +H5_DLL void *H5allocate_memory(size_t size, hbool_t clear); +H5_DLL void *H5resize_memory(void *mem, size_t size); #ifdef __cplusplus } |