-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated LZ4 filter #172
Updated LZ4 filter #172
Conversation
H5_DLL herr_t H5free_memory(void *mem); | ||
H5_DLL void *H5allocate_memory(size_t size, hbool_t clear); | ||
// Special case | ||
// 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); | ||
|
||
// Filters should use malloc/free | ||
#define H5free_memory(mem) free(mem) | ||
#define H5allocate_memory(size, clear) malloc(size) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new version of the LZ4 filter use H5allocate_memory/H5free_memory.
From what I understand this should not be used here in filters. No other filter is using this, even filters in https://github.com/HDFGroup/hdf5_plugins/ use malloc/free.
So I defined macros to use malloc/free instead.
OK |
This PR updates the LZ4 compression filter and the lz4 library it uses.
It also adds the license from dectris since the code comes from there.
closes #158