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

Add functions for c|dparams, storage and io defaults #607

Merged

Conversation

milesgranger
Copy link
Contributor

Hello there,

While working on the rust bindings to c-blosc2 I currently zero initialize the C|DParams and Storage structs and works I think mostly by accident. I do this because the suggested use of BLOSC2_STORAGE_DEFAULTS and BLOSC2_C|DPARAMS_DEFAULTS doesn't work due to a different bug in bindgen.

I can understand if you don't want to include this, but it'd help me avoid maintaining a branch for compatibility. :) If you do, I'm happy to add/expand the docs to these functions.

@FrancescAlted
Copy link
Member

Well, while I am somewhat reluctant to add unnecessary API calls, I'd like to support your efforts on the rust front, so let's do it. Also, for completeness, could you add the corresponding API for BLOSC2_IO_DEFAULTS too? This should be useful soon.

@milesgranger milesgranger marked this pull request as ready for review May 13, 2024 11:46
@milesgranger milesgranger changed the title Add functions for c|dparams and storage defaults Add functions for c|dparams, storage and io defaults May 14, 2024
@FrancescAlted FrancescAlted merged commit d2167d3 into Blosc:main May 14, 2024
17 checks passed
@FrancescAlted
Copy link
Member

Thanks @milesgranger !

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.

2 participants