aboutsummaryrefslogtreecommitdiff
path: root/lib/Utils/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-03-28 00:30:25 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-03-28 00:30:25 -0400
commitcf45636b6216d1b2beaec83bb129a1927f24f608 (patch)
tree97553ecbff6189602c24ad0d600005ecc9f5086c /lib/Utils/src
parent0fe1b687531710071d7c5a85cc59577481a06c9b (diff)
Readme and spelling
Diffstat (limited to 'lib/Utils/src')
-rw-r--r--lib/Utils/src/Memory/Diagnostics/HeapStatistics.cs2
-rw-r--r--lib/Utils/src/Memory/NativeHeap.cs12
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/Utils/src/Memory/Diagnostics/HeapStatistics.cs b/lib/Utils/src/Memory/Diagnostics/HeapStatistics.cs
index 5d7d3f1..918f432 100644
--- a/lib/Utils/src/Memory/Diagnostics/HeapStatistics.cs
+++ b/lib/Utils/src/Memory/Diagnostics/HeapStatistics.cs
@@ -25,7 +25,7 @@
namespace VNLib.Utils.Memory.Diagnostics
{
/// <summary>
- /// A structures that represents the current/last captures
+ /// A structure that represents the current/last captured
/// statistics of the monitored heap
/// </summary>
public readonly record struct HeapStatistics
diff --git a/lib/Utils/src/Memory/NativeHeap.cs b/lib/Utils/src/Memory/NativeHeap.cs
index 30a65ae..5fc24b5 100644
--- a/lib/Utils/src/Memory/NativeHeap.cs
+++ b/lib/Utils/src/Memory/NativeHeap.cs
@@ -58,8 +58,8 @@ namespace VNLib.Utils.Memory
public unsafe static NativeHeap LoadHeap(string dllPath, DllImportSearchPath searchPath, HeapCreation creationFlags, ERRNO flags)
{
//Create a flags structure
- UnmanagedHeapFlags hf;
- UnmanagedHeapFlags* hFlags = &hf;
+ UnmanagedHeapDescriptor hf;
+ UnmanagedHeapDescriptor* hFlags = &hf;
//Set defaults
hFlags->Flags = flags;
@@ -70,7 +70,7 @@ namespace VNLib.Utils.Memory
return LoadHeapCore(dllPath, searchPath, hFlags);
}
- private unsafe static NativeHeap LoadHeapCore(string path, DllImportSearchPath searchPath, UnmanagedHeapFlags* flags)
+ private unsafe static NativeHeap LoadHeapCore(string path, DllImportSearchPath searchPath, UnmanagedHeapDescriptor* flags)
{
//Try to load the library
SafeLibraryHandle library = SafeLibraryHandle.LoadLibrary(path, searchPath);
@@ -120,7 +120,7 @@ namespace VNLib.Utils.Memory
private FreeDelegate FreeMethod;
private DestroyHeapDelegate Destroy;
- private unsafe NativeHeap(UnmanagedHeapFlags* flags, HeapMethods methodTable) :base(flags->InternalFlags, true)
+ private unsafe NativeHeap(UnmanagedHeapDescriptor* flags, HeapMethods methodTable) :base(flags->InternalFlags, true)
{
//Store heap pointer
handle = flags->HeapPointer;
@@ -176,7 +176,7 @@ namespace VNLib.Utils.Memory
* Delegate methods match the native header impl for unmanaged heaps
*/
- unsafe delegate ERRNO CreateHeapDelegate(UnmanagedHeapFlags* createFlags);
+ unsafe delegate ERRNO CreateHeapDelegate(UnmanagedHeapDescriptor* createFlags);
delegate IntPtr AllocDelegate(IntPtr handle, nuint elements, nuint alignment, [MarshalAs(UnmanagedType.Bool)] bool zero);
@@ -187,7 +187,7 @@ namespace VNLib.Utils.Memory
delegate ERRNO DestroyHeapDelegate(IntPtr heap);
[StructLayout(LayoutKind.Sequential)]
- record struct UnmanagedHeapFlags
+ record struct UnmanagedHeapDescriptor
{
public IntPtr HeapPointer;