brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/StateRecorderImpl.gen.cs
2026-10-15 14:12:02 +13:00

157 lines
6.8 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L12">Jolt/Physics/StateRecorderImpl.h:12</see>
/// <br/>
/// <c>class StateRecorderImpl final : public StateRecorder</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Implementation of the StateRecorder class that uses a stringstream as underlying store and that implements
/// checking if the state doesn't change upon reading
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct StateRecorderImpl : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L16">Jolt/Physics/StateRecorderImpl.h:16</see>
/// <br/>
/// <c>StateRecorderImpl() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static StateRecorderImpl Create() => Jolt.PInvoke.StateRecorderImpl_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L20">Jolt/Physics/StateRecorderImpl.h:20</see>
/// <br/>
/// <c>virtual void WriteBytes(const void *inData, size_t inNumBytes) override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Write a string of bytes to the binary stream
/// </para>
/// </remarks>
public unsafe void WriteBytes(Ptr data, ByteSize numBytes) => Jolt.PInvoke.StateRecorderImpl_WriteBytes(this, data, (nuint)numBytes);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L23">Jolt/Physics/StateRecorderImpl.h:23</see>
/// <br/>
/// <c>void Rewind()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rewind the stream for reading
/// </para>
/// </remarks>
public void Rewind() => Jolt.PInvoke.StateRecorderImpl_Rewind(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L26">Jolt/Physics/StateRecorderImpl.h:26</see>
/// <br/>
/// <c>void Clear()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Clear the stream for reuse
/// </para>
/// </remarks>
public void Clear() => Jolt.PInvoke.StateRecorderImpl_Clear(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L29">Jolt/Physics/StateRecorderImpl.h:29</see>
/// <br/>
/// <c>virtual void ReadBytes(void *outData, size_t inNumBytes) override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Read a string of bytes from the binary stream
/// </para>
/// </remarks>
public unsafe void ReadBytes(Ptr data, ByteSize numBytes) => Jolt.PInvoke.StateRecorderImpl_ReadBytes(this, data, (nuint)numBytes);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L32">Jolt/Physics/StateRecorderImpl.h:32</see>
/// <br/>
/// <c>virtual bool IsEOF() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See StreamIn
/// </para>
/// </remarks>
public bool IsEOF() => Jolt.PInvoke.StateRecorderImpl_IsEOF(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L35">Jolt/Physics/StateRecorderImpl.h:35</see>
/// <br/>
/// <c>virtual bool IsFailed() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See StreamIn / StreamOut
/// </para>
/// </remarks>
public bool IsFailed() => Jolt.PInvoke.StateRecorderImpl_IsFailed(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L38">Jolt/Physics/StateRecorderImpl.h:38</see>
/// <br/>
/// <c>bool IsEqual(StateRecorderImpl &amp;inReference)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Compare this state with a reference state and ensure they are the same
/// </para>
/// </remarks>
public bool IsEqual(StateRecorderImpl reference) => Jolt.PInvoke.StateRecorderImpl_IsEqual(this, reference);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorderImpl.h#L44">Jolt/Physics/StateRecorderImpl.h:44</see>
/// <br/>
/// <c>size_t GetDataSize()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get size of the binary data in bytes
/// </para>
/// </remarks>
public nuint GetDataSize() => Jolt.PInvoke.StateRecorderImpl_GetDataSize(this);
public static implicit operator StateRecorder(StateRecorderImpl value) => Jolt.PInvoke.StateRecorderImpl_AsStateRecorder(value);
public static implicit operator StreamIn(StateRecorderImpl value) => Jolt.PInvoke.StateRecorderImpl_AsStreamIn(value);
public static implicit operator StreamOut(StateRecorderImpl value) => Jolt.PInvoke.StateRecorderImpl_AsStreamOut(value);
public void Dispose() => Jolt.PInvoke.StateRecorderImpl_Destroy(this);
}
}