diff --git a/Core/InteropServices/SafeMemoryHandle.cs b/Core/InteropServices/SafeMemoryHandle.cs
index ca7112e8..3f7ea458 100644
--- a/Core/InteropServices/SafeMemoryHandle.cs
+++ b/Core/InteropServices/SafeMemoryHandle.cs
@@ -325,6 +325,10 @@ namespace Vanara.InteropServices
return h;
}
+ /// Gets a copy of bytes from the allocated memory block.
+ /// A byte array with the copied bytes.
+ public byte[] GetBytes() => GetBytes(0, Size);
+
/// Gets a copy of bytes from the allocated memory block.
/// The start index.
/// The number of bytes to retrieve.
@@ -451,6 +455,10 @@ namespace Vanara.InteropServices
/// When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override bool IsInvalid => handle == IntPtr.Zero;
+ /// Gets a value indicating whether this memory supports locking.
+ /// if lockable; otherwise, .
+ public override bool Lockable => mm.Lockable;
+
/// Gets or sets the size in bytes of the allocated memory block.
/// The size in bytes of the allocated memory block.
public override SizeT Size