chsvlib
chsv helper source code

◆ SecureFreeStringW()

void Chusov::String::SecureFreeStringW ( volatile wchar_t *  pszString)
noexcept

Performs secure deallocation of a string buffer randomizing its contents. It is designed to be a more secure version of FreeStringW.

Parameters
pszStringis a pointer to a string buffer to be randomized and freed.
Remarks
The function requires additional time overhead for randomizing the memory. Therefore if the string has no sensitive information it may be preferable to use FreeStringW to free the buffer.
See also
SecureFreeStringA;
FreeStringW;
AllocateStringW;
AllocateUniqueStringW.