From 1564c3d702d55c4ea39cd8d347393ef94abbf2bf Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 22 Jul 2020 18:23:37 -0600 Subject: [PATCH] Made SafeAllocatedMemoryHandle.GetBytes() public --- Core/InteropServices/SafeMemoryHandle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/InteropServices/SafeMemoryHandle.cs b/Core/InteropServices/SafeMemoryHandle.cs index 84cf2e1e..d07ba356 100644 --- a/Core/InteropServices/SafeMemoryHandle.cs +++ b/Core/InteropServices/SafeMemoryHandle.cs @@ -314,7 +314,7 @@ namespace Vanara.InteropServices /// The start index. /// The number of bytes to retrieve. /// A byte array with the copied bytes. - protected byte[] GetBytes(int startIndex, int count) + public byte[] GetBytes(int startIndex, int count) { if (startIndex < 0 || startIndex + count > Size) throw new ArgumentOutOfRangeException(); var ret = new byte[count];