mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 03:28:57 +00:00
Merge 613f4c6c2e into fa2a726cc3
This commit is contained in:
commit
a80d783854
8 changed files with 78 additions and 60 deletions
|
|
@ -2600,6 +2600,26 @@ extern SDL_DECLSPEC void * SDLCALL SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, S
|
|||
*/
|
||||
extern SDL_DECLSPEC void * SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len);
|
||||
|
||||
/**
|
||||
* Initialize all 16-bit words of buffer of memory to a specific value.
|
||||
*
|
||||
* This function will set a buffer of `words` Uint16 values, pointed to by
|
||||
* `dst`, to the value specified in `val`.
|
||||
*
|
||||
* Unlike SDL_memset, this sets 16-bit values, not bytes, so it's not limited
|
||||
* to a range of 0-255.
|
||||
*
|
||||
* \param dst the destination memory region. Must not be NULL.
|
||||
* \param val the Uint16 value to set.
|
||||
* \param words the number of Uint16 values to set in `dst`.
|
||||
* \returns `dst`.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
* \since This function is available since SDL 3.6.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC void * SDLCALL SDL_memset2(void *dst, Uint16 val, size_t words);
|
||||
|
||||
/**
|
||||
* Initialize all 32-bit words of buffer of memory to a specific value.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue