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

UUID API is confused #316

Open
3 tasks
kortschak opened this issue Jan 1, 2025 · 0 comments
Open
3 tasks

UUID API is confused #316

kortschak opened this issue Jan 1, 2025 · 0 comments
Labels
core Related to the core functionality not specific to any target

Comments

@kortschak
Copy link

The UUID API makes use of (visible) uint32 backing data, this is not currently endian-agnostic and can be interacted with by users directly.

  • bytes representation of the UUID does not roundtrip: https://go.dev/play/p/bccbz_dNHAO: suggest maintaining order.
  • uint32 elements can be interacted with by client code: https://go.dev/play/p/XZ6wRHlti3N: suggest making the type struct { [4]uint32 } if the uint32 approach is retained.
  • endianness of data is mixed machine-endian and little-endian: this is only safe on little-endian architecture,
@deadprogram deadprogram added the core Related to the core functionality not specific to any target label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the core functionality not specific to any target
Projects
None yet
Development

No branches or pull requests

2 participants