Skip to content
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

Merged

Conversation

Sergio0694
Copy link
Contributor

Closes #63547

This PR adds the following API:

namespace System.Runtime.InteropServices;

public static class NativeMemory
{
    public static void ZeroMemory(void* ptr, nuint byteCount);
}

@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

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.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label May 18, 2022
@ghost
Copy link

ghost commented May 18, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Closes #63547

This PR adds the following API:

namespace System.Runtime.InteropServices;

public static class NativeMemory
{
    public static void ZeroMemory(void* ptr, nuint byteCount);
}
Author: Sergio0694
Assignees: -
Labels:

area-System.Runtime.InteropServices, new-api-needs-documentation

Milestone: -

@Sergio0694 Sergio0694 force-pushed the sergiopedri/nativememory-zeromemory branch from 10a0e17 to 2c2e157 Compare May 18, 2022 19:58
@Sergio0694 Sergio0694 force-pushed the sergiopedri/nativememory-zeromemory branch 2 times, most recently from 0369e43 to abca408 Compare May 19, 2022 00:31
@Sergio0694 Sergio0694 force-pushed the sergiopedri/nativememory-zeromemory branch from abca408 to 66ed87d Compare May 19, 2022 01:09
@Sergio0694 Sergio0694 force-pushed the sergiopedri/nativememory-zeromemory branch from 58e1e1c to 76904b9 Compare May 19, 2022 01:35
@AaronRobinsonMSFT
Copy link
Member

Failure is #66625.

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 6a00977 into dotnet:main May 20, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: Expose Buffer.ZeroMemory(void*, nuint)
5 participants