// // 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 { /// /// /// C++: /// Jolt/Core/TempAllocator.h:40 ///
/// explicit TempAllocatorImpl(size_t inSize) ///
///
/// /// /// Constructs the allocator with a maximum allocatable size of inSize /// /// [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); /// /// /// C++: /// Jolt/Core/TempAllocator.h:59 ///
/// virtual void * Allocate(uint inSize) override ///
///
/// /// /// See: TempAllocator /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Allocate")] public static partial void* TempAllocatorImpl_Allocate(TempAllocatorImpl self, uint size); /// /// /// C++: /// Jolt/Core/TempAllocator.h:80 ///
/// virtual void Free(void *inAddress, uint inSize) override ///
///
/// /// /// See: TempAllocator /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_Free")] public static partial void TempAllocatorImpl_Free(TempAllocatorImpl self, void* address, uint size); /// /// /// C++: /// Jolt/Core/TempAllocator.h:98 ///
/// bool IsEmpty() const ///
///
/// /// /// Check if no allocations have been made /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_IsEmpty")] public static partial Brutal.Bool8 TempAllocatorImpl_IsEmpty(TempAllocatorImpl self); /// /// /// C++: /// Jolt/Core/TempAllocator.h:104 ///
/// size_t GetSize() const ///
///
/// /// /// Get the total size of the fixed buffer /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_GetSize")] public static partial nuint TempAllocatorImpl_GetSize(TempAllocatorImpl self); /// /// /// C++: /// Jolt/Core/TempAllocator.h:110 ///
/// size_t GetUsage() const ///
///
/// /// /// Get current usage in bytes of the buffer /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_GetUsage")] public static partial nuint TempAllocatorImpl_GetUsage(TempAllocatorImpl self); /// /// /// C++: /// Jolt/Core/TempAllocator.h:116 ///
/// bool CanAllocate(uint inSize) const ///
///
/// /// /// Check if an allocation of inSize can be made in this fixed buffer allocator /// /// [LibraryImport("jolt", EntryPoint = "TempAllocatorImpl_CanAllocate")] public static partial Brutal.Bool8 TempAllocatorImpl_CanAllocate(TempAllocatorImpl self, uint size); /// /// /// C++: /// Jolt/Core/TempAllocator.h:122 ///
/// bool OwnsMemory(const void *inAddress) const ///
///
/// /// /// Check if memory block at inAddress is owned by this allocator /// /// [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); } } }