C# bindings for SDL3 (https://github.com/libsdl-org/SDL)
Go to file
Susko3 91cef07624 Add friendly `string?` overloads to C `(const) char *` functions
This is done by adding a `Unsafe_` prefix to `(const) char *` (C# `byte*`) functions.
I am using `string?` instead of `ReadOnlyMemory<byte>?` because the returned pointer can
get invalidated and cause memory-safety issues.

The returned pointer is automatically freed if the return type is `char *`.
I've checked that the documentation for all functions (except in SDL_stdinc.h)
requires calling `SDL_free()` on the pointer.
2024-04-06 14:36:36 +02:00
.config Initial SDL3-CS binding project with ClangSharp 2024-04-06 00:57:07 +02:00
.idea/.idea.SDL3-CS/.idea Initial SDL3-CS binding project with ClangSharp 2024-04-06 00:57:07 +02:00
SDL3-CS Add friendly `string?` overloads to C `(const) char *` functions 2024-04-06 14:36:36 +02:00
SDL3-CS.SourceGeneration Add friendly `string?` overloads to C `(const) char *` functions 2024-04-06 14:36:36 +02:00
.editorconfig Add global/base files 2024-04-05 23:59:34 +02:00
.gitattributes Add global/base files 2024-04-05 23:59:34 +02:00
.gitignore Add simple check for generated functions 2024-04-06 01:17:00 +02:00
.globalconfig Add global/base files 2024-04-05 23:59:34 +02:00
Directory.Build.props Add global/base files 2024-04-05 23:59:34 +02:00
LICENCE Add global/base files 2024-04-05 23:59:34 +02:00
README.md Add README 2024-04-04 03:12:48 +09:00
SDL3-CS.licenseheader Add global/base files 2024-04-05 23:59:34 +02:00
SDL3-CS.sln Add source generator for `ReadOnlySpan<byte>` overloads of C `const char *` functions 2024-04-06 14:24:33 +02:00
global.json Add global/base files 2024-04-05 23:59:34 +02:00

README.md

SDL3-CS