![]() |
LLGL 0.05 Beta
|
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. | |
| void LLGL::Memory::Memset | ( | T * | dst, |
| const T & | value, | ||
| std::size_t | count ) |
Copies the specified value count times into the specified memory location.
| [out] | dst | Specifies the memory location where the input value will be copied to. |
| [in] | value | Specifies the input value that is meant to be copied into all entries. |
| [in] | count | Specifies how many entries will be set to the input value. |
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.