SDL3-CS/SDL3-CS
Susko3 95056ef317 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
..
SDL3 Add friendly `string?` overloads to C `(const) char *` functions 2024-04-06 14:36:36 +02:00
ConstantAttribute.cs Manually define broken constants 2024-04-06 13:33:00 +02:00
MacroAttribute.cs Manually implement macro functions 2024-04-06 14:05:52 +02:00
NativeTypeNameAttribute.cs Initial SDL3-CS binding project with ClangSharp 2024-04-06 00:57:07 +02:00
SDL-use-proper-types.patch Fix invalid `int` -> `SDL_bool` conversion by manually changing SDL headers 2024-04-06 13:33:00 +02:00
SDL.licenseheader Initial SDL3-CS binding project with ClangSharp 2024-04-06 00:57:07 +02:00
SDL3-CS.csproj Add source generator for `ReadOnlySpan<byte>` overloads of C `const char *` functions 2024-04-06 14:24:33 +02:00
SDL3.cs Add `PtrToStringUTF8()` for `byte *` 2024-04-06 14:08:42 +02:00
SDLArray.cs Add memory safe IDisposable overloads to array-returning functions 2024-04-06 14:20:08 +02:00
SDLPointerArray.cs Add memory safe IDisposable overloads to array-returning functions 2024-04-06 14:20:08 +02:00
TypedefAttribute.cs Add C# enum "typedefs" for C typedefs 2024-04-06 13:32:55 +02:00
generate_bindings.py Add friendly `string?` overloads to C `(const) char *` functions 2024-04-06 14:36:36 +02:00