|
@@ -224,7 +224,7 @@ typedef struct SDL_IOStream SDL_IOStream;
|
|
|
* \param file a UTF-8 string representing the filename to open.
|
|
|
* \param mode an ASCII string representing the mode to be used for opening
|
|
|
* the file.
|
|
|
- * \returns a pointer to the SDL_IOStream structure that is created, or NULL
|
|
|
+ * \returns a pointer to the SDL_IOStream structure that is created or NULL
|
|
|
* on failure; call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -258,7 +258,7 @@ extern SDL_DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromFile(const char *file, const
|
|
|
*
|
|
|
* \param mem a pointer to a buffer to feed an SDL_IOStream stream.
|
|
|
* \param size the buffer size, in bytes.
|
|
|
- * \returns a pointer to a new SDL_IOStream structure, or NULL if it fails;
|
|
|
+ * \returns a pointer to a new SDL_IOStream structure or NULL on failure;
|
|
|
* call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -291,7 +291,7 @@ extern SDL_DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromMem(void *mem, size_t size);
|
|
|
*
|
|
|
* \param mem a pointer to a read-only buffer to feed an SDL_IOStream stream.
|
|
|
* \param size the buffer size, in bytes.
|
|
|
- * \returns a pointer to a new SDL_IOStream structure, or NULL if it fails;
|
|
|
+ * \returns a pointer to a new SDL_IOStream structure or NULL on failure;
|
|
|
* call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -319,7 +319,7 @@ extern SDL_DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromConstMem(const void *mem, si
|
|
|
* - `SDL_PROP_IOSTREAM_DYNAMIC_CHUNKSIZE_NUMBER`: memory will be allocated in
|
|
|
* multiples of this size, defaulting to 1024.
|
|
|
*
|
|
|
- * \returns a pointer to a new SDL_IOStream structure, or NULL if it fails;
|
|
|
+ * \returns a pointer to a new SDL_IOStream structure or NULL on failure;
|
|
|
* call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -354,7 +354,7 @@ extern SDL_DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromDynamicMem(void);
|
|
|
* \param iface the function pointers that implement this SDL_IOStream.
|
|
|
* \param userdata the app-controlled pointer that is passed to iface's
|
|
|
* functions when called.
|
|
|
- * \returns a pointer to the allocated memory on success, or NULL on failure;
|
|
|
+ * \returns a pointer to the allocated memory on success or NULL on failure;
|
|
|
* call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -488,7 +488,7 @@ extern SDL_DECLSPEC Sint64 SDLCALL SDL_TellIO(SDL_IOStream *context);
|
|
|
* \param context a pointer to an SDL_IOStream structure.
|
|
|
* \param ptr a pointer to a buffer to read data into.
|
|
|
* \param size the number of bytes to read from the data source.
|
|
|
- * \returns the number of bytes read, or 0 on end of file or other error.
|
|
|
+ * \returns the number of bytes read, or 0 on end of file or other failure; call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
@@ -515,7 +515,7 @@ extern SDL_DECLSPEC size_t SDLCALL SDL_ReadIO(SDL_IOStream *context, void *ptr,
|
|
|
* \param ptr a pointer to a buffer containing data to write.
|
|
|
* \param size the number of bytes to write.
|
|
|
* \returns the number of bytes written, which will be less than `size` on
|
|
|
- * error; call SDL_GetError() for more information.
|
|
|
+ * failure; call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
@@ -535,7 +535,7 @@ extern SDL_DECLSPEC size_t SDLCALL SDL_WriteIO(SDL_IOStream *context, const void
|
|
|
* \param fmt a printf() style format string.
|
|
|
* \param ... additional parameters matching % tokens in the `fmt` string, if
|
|
|
* any.
|
|
|
- * \returns the number of bytes written, or 0 on error; call SDL_GetError()
|
|
|
+ * \returns the number of bytes written or 0 on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -553,7 +553,7 @@ extern SDL_DECLSPEC size_t SDLCALL SDL_IOprintf(SDL_IOStream *context, SDL_PRINT
|
|
|
* \param context a pointer to an SDL_IOStream structure.
|
|
|
* \param fmt a printf() style format string.
|
|
|
* \param ap a variable argument list.
|
|
|
- * \returns the number of bytes written, or 0 on error; call SDL_GetError()
|
|
|
+ * \returns the number of bytes written or 0 on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -576,7 +576,7 @@ extern SDL_DECLSPEC size_t SDLCALL SDL_IOvprintf(SDL_IOStream *context, SDL_PRIN
|
|
|
* \param datasize if not NULL, will store the number of bytes read.
|
|
|
* \param closeio if SDL_TRUE, calls SDL_CloseIO() on `src` before returning,
|
|
|
* even in the case of an error.
|
|
|
- * \returns the data, or NULL if there was an error.
|
|
|
+ * \returns the data or NULL on failure; call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
@@ -595,7 +595,7 @@ extern SDL_DECLSPEC void *SDLCALL SDL_LoadFile_IO(SDL_IOStream *src, size_t *dat
|
|
|
*
|
|
|
* \param file the path to read all available data from.
|
|
|
* \param datasize if not NULL, will store the number of bytes read.
|
|
|
- * \returns the data, or NULL if there was an error.
|
|
|
+ * \returns the data or NULL on failure; call SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
@@ -643,7 +643,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS8(SDL_IOStream *src, Sint8 *value)
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -659,7 +659,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU16LE(SDL_IOStream *src, Uint16 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -675,7 +675,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS16LE(SDL_IOStream *src, Sint16 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -691,7 +691,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU16BE(SDL_IOStream *src, Uint16 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -707,7 +707,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS16BE(SDL_IOStream *src, Sint16 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -723,7 +723,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU32LE(SDL_IOStream *src, Uint32 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -739,7 +739,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS32LE(SDL_IOStream *src, Sint32 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -755,7 +755,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU32BE(SDL_IOStream *src, Uint32 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -771,7 +771,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS32BE(SDL_IOStream *src, Sint32 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -787,7 +787,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU64LE(SDL_IOStream *src, Uint64 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -803,7 +803,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS64LE(SDL_IOStream *src, Sint64 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -819,7 +819,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadU64BE(SDL_IOStream *src, Uint64 *va
|
|
|
*
|
|
|
* \param src the stream from which to read data.
|
|
|
* \param value a pointer filled in with the data read.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -839,7 +839,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadS64BE(SDL_IOStream *src, Sint64 *va
|
|
|
*
|
|
|
* \param dst the SDL_IOStream to write to.
|
|
|
* \param value the byte value to write.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -851,7 +851,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU8(SDL_IOStream *dst, Uint8 value)
|
|
|
*
|
|
|
* \param dst the SDL_IOStream to write to.
|
|
|
* \param value the byte value to write.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -868,7 +868,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS8(SDL_IOStream *dst, Sint8 value)
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -885,7 +885,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU16LE(SDL_IOStream *dst, Uint16 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -901,7 +901,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS16LE(SDL_IOStream *dst, Sint16 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -917,7 +917,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU16BE(SDL_IOStream *dst, Uint16 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -934,7 +934,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS16BE(SDL_IOStream *dst, Sint16 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -951,7 +951,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU32LE(SDL_IOStream *dst, Uint32 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -967,7 +967,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS32LE(SDL_IOStream *dst, Sint32 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -983,7 +983,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU32BE(SDL_IOStream *dst, Uint32 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -1000,7 +1000,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS32BE(SDL_IOStream *dst, Sint32 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -1017,7 +1017,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU64LE(SDL_IOStream *dst, Uint64 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -1033,7 +1033,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteS64LE(SDL_IOStream *dst, Sint64 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -1049,7 +1049,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteU64BE(SDL_IOStream *dst, Uint64 va
|
|
|
*
|
|
|
* \param dst the stream to which data will be written.
|
|
|
* \param value the data to be written, in native format.
|
|
|
- * \returns SDL_TRUE on successful write, SDL_FALSE on failure; call
|
|
|
+ * \returns SDL_TRUE on successful write or SDL_FALSE on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|