Skip to content

Allow generic DenseVector{UInt8} as input/output #247

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

Open
eschnett opened this issue May 30, 2025 · 2 comments
Open

Allow generic DenseVector{UInt8} as input/output #247

eschnett opened this issue May 30, 2025 · 2 comments

Comments

@eschnett
Copy link

I want to compress data that is not of the type Vector{UInt8}, but instead has the more complicated type Base.ReinterpretArray{UInt8, 1, Float64, Vector{Float64}, false}. This is still a 1-d array with UInt8 elements, and as such the codecs would not care about the difference.

Julia has the type DenseVector to describe arrays that are stored contiguously. It would be nice if you could update the API to allow DenseVectors instead of just Vectors.

@nhz2
Copy link
Member

nhz2 commented May 30, 2025

The encode function in https://github.com/JuliaIO/ChunkCodecs.jl supports this.

But it would be good to have support for some of the ChunkCodec interface in this package as well.

@eschnett
Copy link
Author

Thanks! I'm using that package now.

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

No branches or pull requests

2 participants