//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Core/LockFreeHashMap.h:13
///
/// class LFHMAllocator : public NonCopyable
///
///
///
///
/// Allocator for a lock free hash map
///
///
[InteropHandle]
public readonly partial struct LFHMAllocator : IDisposable
{
public static LFHMAllocator Create() => Jolt.PInvoke.LFHMAllocator_Create();
///
///
/// C++:
/// Jolt/Core/LockFreeHashMap.h:21
///
/// inline void Init(uint inObjectStoreSizeBytes)
///
///
///
///
/// Initialize the allocator
/// @param inObjectStoreSizeBytes Number of bytes to reserve for all key value pairs
///
///
public void Init(uint objectStoreSizeBytes) => Jolt.PInvoke.LFHMAllocator_Init(this, objectStoreSizeBytes);
///
///
/// C++:
/// Jolt/Core/LockFreeHashMap.h:24
///
/// inline void Clear()
///
///
///
///
/// Clear all allocations
///
///
public void Clear() => Jolt.PInvoke.LFHMAllocator_Clear(this);
public void Dispose() => Jolt.PInvoke.LFHMAllocator_Destroy(this);
}
}