Parcourir la source

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot il y a 3 mois
Parent
commit
6d20b65a9e
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      include/SDL3/SDL_storage.h

+ 4 - 0
include/SDL3/SDL_storage.h

@@ -264,6 +264,10 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetStorageFileSize(SDL_Storage *storage, co
  * Synchronously read a file from a storage container into a client-provided
  * buffer.
  *
+ * The value of `length` must match the length of the file exactly; call
+ * SDL_GetStorageFileSize() to get this value. This behavior may be relaxed in
+ * a future release.
+ *
  * \param storage a storage container to read from.
  * \param path the relative path of the file to read.
  * \param destination a client-provided buffer to read the file into.