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

45 lines
1.8 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
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L27">Jolt/Core/TempAllocator.h:27</see>
/// <br/>
/// <c>virtual void * Allocate(uint inSize) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Allocates inSize bytes of memory, returned memory address must be JPH_RVECTOR_ALIGNMENT byte aligned
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "TempAllocator_Allocate")]
public static partial void* TempAllocator_Allocate(TempAllocator self, uint size);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L30">Jolt/Core/TempAllocator.h:30</see>
/// <br/>
/// <c>virtual void Free(void *inAddress, uint inSize) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Frees inSize bytes of memory located at inAddress
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "TempAllocator_Free")]
public static partial void TempAllocator_Free(TempAllocator self, void* address, uint size);
}
}
}