mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
// <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);
|
|
}
|
|
}
|