mirror of https://github.com/ppy/SDL3-CS.git
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. |
||
|---|---|---|
| .. | ||
| SDL3 | ||
| ConstantAttribute.cs | ||
| MacroAttribute.cs | ||
| NativeTypeNameAttribute.cs | ||
| SDL-use-proper-types.patch | ||
| SDL.licenseheader | ||
| SDL3-CS.csproj | ||
| SDL3.cs | ||
| SDLArray.cs | ||
| SDLPointerArray.cs | ||
| TypedefAttribute.cs | ||
| generate_bindings.py | ||