mirror of https://github.com/dahall/Vanara.git
Made SafeAllocatedMemoryHandle.GetBytes() public
parent
091352956e
commit
1564c3d702
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue