From 89fa65f30ce37ba821ff98d7360ab8cbededf428 Mon Sep 17 00:00:00 2001 From: Susko3 Date: Fri, 6 Jun 2025 18:56:04 +0200 Subject: [PATCH] Add comment about the chosen buffer size --- SDL3-CS/SDL3/SDL_events.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/SDL3-CS/SDL3/SDL_events.cs b/SDL3-CS/SDL3/SDL_events.cs index 359ce30..5054d70 100644 --- a/SDL3-CS/SDL3/SDL_events.cs +++ b/SDL3-CS/SDL3/SDL_events.cs @@ -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 buf = stackalloc byte[bufferSize];