mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
42
Brutal.Jolt/Generated/Classes/ByteBuffer.gen.cs
Normal file
42
Brutal.Jolt/Generated/Classes/ByteBuffer.gen.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue