mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
139 lines
6.5 KiB
C#
139 lines
6.5 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#L40">Jolt/Core/TempAllocator.h:40</see>
|
|
/// <br/>
|
|
/// <c>explicit TempAllocatorImpl(size_t inSize)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructs the allocator with a maximum allocatable size of inSize
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Create")]
|
|
public static partial TempAllocatorImpl TempAllocatorImpl_Create(nuint size);
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Destroy")]
|
|
public static partial void TempAllocatorImpl_Destroy(TempAllocatorImpl self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L59">Jolt/Core/TempAllocator.h:59</see>
|
|
/// <br/>
|
|
/// <c>virtual void * Allocate(uint inSize) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: TempAllocator
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Allocate")]
|
|
public static partial void* TempAllocatorImpl_Allocate(TempAllocatorImpl self, uint size);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L80">Jolt/Core/TempAllocator.h:80</see>
|
|
/// <br/>
|
|
/// <c>virtual void Free(void *inAddress, uint inSize) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: TempAllocator
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Free")]
|
|
public static partial void TempAllocatorImpl_Free(TempAllocatorImpl self, void* address, uint size);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L98">Jolt/Core/TempAllocator.h:98</see>
|
|
/// <br/>
|
|
/// <c>bool IsEmpty() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if no allocations have been made
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_IsEmpty")]
|
|
public static partial Brutal.Bool8 TempAllocatorImpl_IsEmpty(TempAllocatorImpl self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L104">Jolt/Core/TempAllocator.h:104</see>
|
|
/// <br/>
|
|
/// <c>size_t GetSize() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the total size of the fixed buffer
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_GetSize")]
|
|
public static partial nuint TempAllocatorImpl_GetSize(TempAllocatorImpl self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L110">Jolt/Core/TempAllocator.h:110</see>
|
|
/// <br/>
|
|
/// <c>size_t GetUsage() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get current usage in bytes of the buffer
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_GetUsage")]
|
|
public static partial nuint TempAllocatorImpl_GetUsage(TempAllocatorImpl self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L116">Jolt/Core/TempAllocator.h:116</see>
|
|
/// <br/>
|
|
/// <c>bool CanAllocate(uint inSize) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if an allocation of inSize can be made in this fixed buffer allocator
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_CanAllocate")]
|
|
public static partial Brutal.Bool8 TempAllocatorImpl_CanAllocate(TempAllocatorImpl self, uint size);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/TempAllocator.h#L122">Jolt/Core/TempAllocator.h:122</see>
|
|
/// <br/>
|
|
/// <c>bool OwnsMemory(const void *inAddress) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if memory block at inAddress is owned by this allocator
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_OwnsMemory")]
|
|
public static partial Brutal.Bool8 TempAllocatorImpl_OwnsMemory(TempAllocatorImpl self, void* address);
|
|
[LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_AsTempAllocator")]
|
|
public static partial TempAllocator TempAllocatorImpl_AsTempAllocator(TempAllocatorImpl self);
|
|
}
|
|
}
|
|
}
|