Made SafeAllocatedMemoryHandle.GetBytes() public

pull/161/head
dahall 2020-07-22 18:23:37 -06:00
parent 091352956e
commit 1564c3d702
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ namespace Vanara.InteropServices
/// <param name="startIndex">The start index.</param>
/// <param name="count">The number of bytes to retrieve.</param>
/// <returns>A byte array with the copied bytes.</returns>
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];