sdlMemset function stdinc
Initialize all bytes of buffer of memory to a specific value.
This function will set len
bytes, pointed to by dst
, to the value
specified in c
.
Despite c
being an int
instead of a char
, this only operates on
bytes; c
must be a value between 0 and 255, inclusive.
\param dst the destination memory region. Must not be NULL.
\param c the byte value to set.
\param len the length, in bytes, 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.2.0.
extern SDL_DECLSPEC void * SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len)
Implementation
Pointer<NativeType> sdlMemset(Pointer<NativeType> arg0, int c, int len) {
final sdlMemsetLookupFunction = _libSdl
.lookupFunction<
Pointer<NativeType> Function(
Pointer<NativeType> arg0,
Int32 c,
Uint32 len,
),
Pointer<NativeType> Function(Pointer<NativeType> arg0, int c, int len)
>('SDL_memset');
return sdlMemsetLookupFunction(arg0, c, len);
}