forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NativeMemory.ZeroMemory API (dotnet#69500)
* Add NativeMemory.ZeroMemory API * Replace Random.NextBytes with Span<byte>.Fill * Add ZeroMemory unit tests for zeroed region within buffer * Add remarks for ptr and byteCount parameters * Add test for ZeroMemory(null, 0) not throwing * Add unit tests for zeroing memory with a size of 0 * Move test cases with 0 byte count to separate method Co-authored-by: Stephen Toub <stoub@microsoft.com>
- Loading branch information
1 parent
334989f
commit 6a00977
Showing
3 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters