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