mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
// <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#L48">Jolt/Core/LockFreeHashMap.h:48</see>
|
||||
/// <br/>
|
||||
/// <c>class LFHMAllocatorContext : public NonCopyable</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Allocator context object for a lock free hash map that allocates a larger memory block at once and hands it out in smaller portions.
|
||||
/// This avoids contention on the atomic LFHMAllocator::mWriteOffset.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct LFHMAllocatorContext : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LockFreeHashMap.h#L52">Jolt/Core/LockFreeHashMap.h:52</see>
|
||||
/// <br/>
|
||||
/// <c>inline LFHMAllocatorContext(LFHMAllocator &inAllocator, uint32 inBlockSize)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Construct a new allocator context
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static LFHMAllocatorContext Create(LFHMAllocator allocator, uint blockSize) => Jolt.PInvoke.LFHMAllocatorContext_Create(allocator, blockSize);
|
||||
public void Dispose() => Jolt.PInvoke.LFHMAllocatorContext_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue