Add comment about the chosen buffer size

This commit is contained in:
Susko3 2025-06-06 18:56:04 +02:00
parent 7f8ddcd477
commit 89fa65f30c
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ namespace SDL
public static string SDL_GetEventDescription(SDL_Event @event) 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; const int bufferSize = 256;
Span<byte> buf = stackalloc byte[bufferSize]; Span<byte> buf = stackalloc byte[bufferSize];