// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Core/TempAllocator.h:168 ///
/// class TempAllocatorImplWithMallocFallback final : public TempAllocator ///
///
/// /// /// Implementation of the TempAllocator that tries to allocate from a large preallocated block, but falls back /// to malloc when it is exhausted /// /// [InteropHandle] public readonly partial struct TempAllocatorImplWithMallocFallback : IDisposable { /// /// /// C++: /// Jolt/Core/TempAllocator.h:174 ///
/// explicit TempAllocatorImplWithMallocFallback(uint inSize) ///
///
/// /// /// Constructs the allocator with an initial fixed block if inSize /// /// public static TempAllocatorImplWithMallocFallback Create(uint size) => Jolt.PInvoke.TempAllocatorImplWithMallocFallback_Create(size); /// /// /// C++: /// Jolt/Core/TempAllocator.h:180 ///
/// virtual void * Allocate(uint inSize) override ///
///
/// /// /// See: TempAllocator /// /// public unsafe Ptr Allocate(uint size) => Jolt.PInvoke.TempAllocatorImplWithMallocFallback_Allocate(this, size); /// /// /// C++: /// Jolt/Core/TempAllocator.h:189 ///
/// virtual void Free(void *inAddress, uint inSize) override ///
///
/// /// /// See: TempAllocator /// /// public unsafe void Free(Ptr address, uint size) => Jolt.PInvoke.TempAllocatorImplWithMallocFallback_Free(this, address, size); public static implicit operator TempAllocator(TempAllocatorImplWithMallocFallback value) => Jolt.PInvoke.TempAllocatorImplWithMallocFallback_AsTempAllocator(value); public void Dispose() => Jolt.PInvoke.TempAllocatorImplWithMallocFallback_Destroy(this); } }