LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::Memory Namespace Reference

Functions

template<typename T>
void Memset (T *dst, const T &value, std::size_t count)
 Copies the specified value count times into the specified memory location.

Function Documentation

◆ Memset()

template<typename T>
void LLGL::Memory::Memset ( T * dst,
const T & value,
std::size_t count )

Copies the specified value count times into the specified memory location.

Parameters
[out]dstSpecifies the memory location where the input value will be copied to.
[in]valueSpecifies the input value that is meant to be copied into all entries.
[in]countSpecifies how many entries will be set to the input value.
Remarks
If the template typename T specifies a trivially constructible type, such as int or char, and all bytes in the input value are equal, the standard library function ::memset will be used. Otherwise, a standard for-loop will be used to initialize all entries.