This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,42 @@
// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// Simple byte buffer, aligned to a cache line
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/ByteBuffer.h#L15">Jolt/Core/ByteBuffer.h:15</see>
/// <br/>
/// <c>class ByteBuffer : public ByteBufferVector</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct ByteBuffer : IDisposable
{
public static ByteBuffer Create() => Jolt.PInvoke.ByteBuffer_Create();
/// <summary>
/// <para>
/// Align the size to a multiple of inSize, returns the length after alignment
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/ByteBuffer.h#L19">Jolt/Core/ByteBuffer.h:19</see>
/// <br/>
/// <c>size_t Align(size_t inSize)</c>
/// </para>
/// </summary>
public nuint Align(ByteSize size) => Jolt.PInvoke.ByteBuffer_Align(this, (nuint)size);
public void Dispose() => Jolt.PInvoke.ByteBuffer_Destroy(this);
}
}