Skip to content

Commit

Permalink
ZeroBlock is now private again. Using ZeroBlock instead of InitBlock …
Browse files Browse the repository at this point in the history
…in the Zero method.
  • Loading branch information
Konard committed Nov 10, 2019
1 parent d354e5f commit e6c50a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Platform.Unsafe/MemoryBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Zero(void* pointer, long capacity)
var threads = Environment.ProcessorCount / 2;
if (threads <= 1)
{
InitBlock(pointer, 0, (uint)capacity);
ZeroBlock(pointer, 0, capacity);
}
else
{
Expand All @@ -29,7 +29,7 @@ public static void Zero(void* pointer, long capacity)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void ZeroBlock(void* pointer, long from, long to)
private static void ZeroBlock(void* pointer, long from, long to)
{
var offset = (byte*)pointer + from;
var length = to - from;
Expand Down

0 comments on commit e6c50a8

Please sign in to comment.