brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/LFHMAllocator.gen.cs
2026-10-15 14:12:02 +13:00

57 lines
2.1 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LockFreeHashMap.h#L13">Jolt/Core/LockFreeHashMap.h:13</see>
/// <br/>
/// <c>class LFHMAllocator : public NonCopyable</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Allocator for a lock free hash map
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct LFHMAllocator : IDisposable
{
public static LFHMAllocator Create() => Jolt.PInvoke.LFHMAllocator_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LockFreeHashMap.h#L21">Jolt/Core/LockFreeHashMap.h:21</see>
/// <br/>
/// <c>inline void Init(uint inObjectStoreSizeBytes)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Initialize the allocator
/// @param inObjectStoreSizeBytes Number of bytes to reserve for all key value pairs
/// </code>
/// </remarks>
public void Init(uint objectStoreSizeBytes) => Jolt.PInvoke.LFHMAllocator_Init(this, objectStoreSizeBytes);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LockFreeHashMap.h#L24">Jolt/Core/LockFreeHashMap.h:24</see>
/// <br/>
/// <c>inline void Clear()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Clear all allocations
/// </para>
/// </remarks>
public void Clear() => Jolt.PInvoke.LFHMAllocator_Clear(this);
public void Dispose() => Jolt.PInvoke.LFHMAllocator_Destroy(this);
}
}