mirror of https://github.com/ppy/SDL3-CS.git
Add comment about the chosen buffer size
This commit is contained in:
parent
7f8ddcd477
commit
89fa65f30c
|
|
@ -69,6 +69,7 @@ namespace SDL
|
|||
|
||||
public static string SDL_GetEventDescription(SDL_Event @event)
|
||||
{
|
||||
// Buffer size taken from https://github.com/libsdl-org/SDL/blob/7dd5e765df239986f78c9b0016e3f3023d885084/src/events/SDL_events.c#L908-L913.
|
||||
const int bufferSize = 256;
|
||||
Span<byte> buf = stackalloc byte[bufferSize];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue