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

None 4-byte unsigned int data types #2

Open
shaomeng opened this issue Mar 17, 2024 · 0 comments
Open

None 4-byte unsigned int data types #2

shaomeng opened this issue Mar 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shaomeng
Copy link
Collaborator

The current metadata packing mechanism relies on that unsigned int being 4 bytes. However, it might not be the case, as Peter puts it:
"I'm also moderately concerned about the use of type punning. Part of this is HDF's fault for using unsigned integers (which are not safe for this purpose; only unsigned char is), which need not be 32 bits wide (e.g., the LP32 and (S)ILP64 data models use 16 or 64 bits)."

@shaomeng shaomeng added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant