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

Use fixed width integers for underlying enum types #538

Merged
merged 6 commits into from
Oct 24, 2024
Merged

Conversation

walbourn
Copy link
Member

@walbourn walbourn commented Oct 24, 2024

Originally I used DWORD for flags. When I removed Windows-specific types, I changed it to unsigned long to keep the signature the same. The ask is to use uint32_t instead which is more consistent on Windows vs. Linux.

Also removed 'extra-semi' for macro.

Changed use of void* to uint8_t* for "FromMemory" operations which is the recommendation for C++ byte-addressable buffers. This matches how DDSTextureLoader/WICTextureLoader already do it.

Added a GetConstBufferPointer method to Blob utility class for const-correct access.

@walbourn walbourn self-assigned this Oct 24, 2024
@walbourn walbourn linked an issue Oct 24, 2024 that may be closed by this pull request
@walbourn
Copy link
Member Author

@walbourn walbourn merged commit 6e7801e into main Oct 24, 2024
83 checks passed
@walbourn walbourn deleted the typescleanup branch October 24, 2024 18:44
@walbourn walbourn linked an issue Oct 28, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'void*' to 'uint8_t*' Use fixed width integers for underlying enum types
2 participants