-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NativeMemory.ZeroMemory API #69500
Add NativeMemory.ZeroMemory API #69500
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsCloses #63547This PR adds the following API: namespace System.Runtime.InteropServices;
public static class NativeMemory
{
public static void ZeroMemory(void* ptr, nuint byteCount);
}
|
...System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NativeMemoryTests.cs
Outdated
Show resolved
Hide resolved
...System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NativeMemoryTests.cs
Outdated
Show resolved
Hide resolved
...System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NativeMemoryTests.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeMemory.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <[email protected]>
10a0e17
to
2c2e157
Compare
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeMemory.cs
Outdated
Show resolved
Hide resolved
0369e43
to
abca408
Compare
...System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NativeMemoryTests.cs
Show resolved
Hide resolved
abca408
to
66ed87d
Compare
...System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/NativeMemoryTests.cs
Outdated
Show resolved
Hide resolved
58e1e1c
to
76904b9
Compare
I miss using Visual Studio, Tanner lied to me
0942023
to
625098a
Compare
Failure is #66625. |
Closes #63547
This PR adds the following API: