Skip to content
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

Merged
merged 5 commits into from
May 18, 2022
Merged

Updated LZ4 filter #172

merged 5 commits into from
May 18, 2022

Conversation

t20100
Copy link
Member

@t20100 t20100 commented May 18, 2022

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

Comment on lines -341 to +349
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)

Copy link
Member Author

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.

@t20100 t20100 marked this pull request as ready for review May 18, 2022 11:53
@t20100 t20100 added this to the Next release milestone May 18, 2022
@t20100 t20100 requested review from kif and vasole May 18, 2022 11:53
@kif
Copy link
Member

kif commented May 18, 2022

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update H5Zlz4.c
3 participants