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

Unify all size_t arguments to use UIntPtr #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DemoXinMC
Copy link
Contributor

Addresses #212

  • Updated to use a SIZE_T "typedef" where CSFML is expecting size_t

  • using SIZE_T = UIntPtr; is at the beginning of each file that will P/Invoke functions with size_t signatures

  • SIZE_T is currently typedef'd to UIntPtr but this can be changed when nuint becomes available to SFML.NET (.NET 5+)

  • Since all changes are within protected/private code, this should not represent a breaking change for end-users

  • Implemented Font(byte[]) properly using sfFont_createFromMemory() instead of creating a new MemoryStream

Addresses SFML#212
* Updated to use a SIZE_T "macro" where CSFML is expecting `size_t`
* `using SIZE_T = UIntPtr;` is at the beginning of each file that will P/Invoke functions with `size_t` signatures
* SIZE_T is currently typedef'd to `UIntPtr` but this can be changed when `nuint` becomes available to SFML.NET (.NET 5+)
* Since all changes are within protected/private code, this should not represent a breaking change for end-users

* Implemented Font(byte[]) properly using sfFont_createFromMemory() instead of creating a new MemoryStream
@eXpl0it3r eXpl0it3r added the Feature New functionality or extending of an existing one label Jan 3, 2024
@eXpl0it3r eXpl0it3r mentioned this pull request May 23, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality or extending of an existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants