-
-
Notifications
You must be signed in to change notification settings - Fork 153
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 compcode
to blosc_cbuffer_versions
#44
Comments
I think this is a reasonable choice. Need to make sure though, that the
Not sure yet about the correct terminology to use to describe the real/internal/implementation codec. |
Hmm, after putting some serious thought on this, I am leaning now to add a new API call:
Where it returns the compressor code for the buffer. That avoids the API change, and although it makes the API a bit larger, I think it is nice to be explicit. Also, when in the future several filters would be allowed, a new API call could be added too:
What do you think? Also, I agree that current variables in |
I think it would fit nicely with the function for setting the complib, some good symetry. Also, the cost of avoiding the API change in this case is not very large so it is preferable. |
Fixed in rev 365f819. I finally decided to go with a |
It would be interesting to add a way to know which compressor was used to compress a buffer. The clear candidate for this is
blosc_cbuffer_versions
whose current signature is:and with the suggested change, the signature would become:
which introduces an API change. However, as
blosc_cbuffer_versions()
should not be widely used, I think this is a reasonable change (although it may require a jump in the minor version).Opinions?
The text was updated successfully, but these errors were encountered: