16 references to Clear
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (1)
267NativeMemory.Clear(memory.Pointer, sharedDataTotalByteCount);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (3)
586NativeMemory.Clear(_mem + len, (nuint)(value - len)); 650NativeMemory.Clear(_mem + len, (nuint)(pos - len)); 779NativeMemory.Clear(_mem + len, (nuint)(pos - len));
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (2)
319NativeMemory.Clear(pArgStorage, (nuint)_argCount * (nuint)sizeof(IntPtr)); 350NativeMemory.Clear(pStorage, (nuint)(2 * _argCount) * (nuint)sizeof(IntPtr));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.Constructor.cs (1)
28NativeMemory.Clear(pStorage, (nuint)(2 * argCount) * (nuint)sizeof(IntPtr));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (2)
204NativeMemory.Clear(pArgStorage, (nuint)_argCount * (nuint)sizeof(IntPtr) * 2); 239NativeMemory.Clear(pStorage, (nuint)(3 * _argCount) * (nuint)sizeof(IntPtr));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (2)
372NativeMemory.Clear(pArgStorage, (nuint)_argCount * (nuint)sizeof(IntPtr)); 403NativeMemory.Clear(pStorage, (nuint)(2 * _argCount) * (nuint)sizeof(IntPtr));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (5)
1271NativeMemory.Clear((void*)s, SysStringByteLen(s)); 1286NativeMemory.Clear((void*)s, (nuint)string.wcslen((char*)s) * sizeof(char)); 1296NativeMemory.Clear((void*)s, (nuint)string.strlen((byte*)s)); 1306NativeMemory.Clear((void*)s, (nuint)string.strlen((byte*)s)); 1316NativeMemory.Clear((void*)s, (nuint)string.wcslen((char*)s) * sizeof(char));