SOURCE DUMP v1

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

View file

@ -0,0 +1,76 @@
// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamIn.h#L19">Jolt/Core/StreamIn.h:19</see>
/// <br/>
/// <c>virtual void ReadBytes(void *outData, size_t inNumBytes) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Read a string of bytes from the binary stream
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StreamIn_ReadBytes")]
public static partial void StreamIn_ReadBytes(StreamIn self, void* data, nuint numBytes);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamIn.h#L23">Jolt/Core/StreamIn.h:23</see>
/// <br/>
/// <c>virtual bool IsEOF() const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Returns true when an attempt has been made to read past the end of the file.
/// Note that this follows the convention of std::basic_ios::eof which only returns true when an attempt is made to read past the end, not when the read pointer is at the end.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StreamIn_IsEOF")]
public static partial Brutal.Bool8 StreamIn_IsEOF(StreamIn self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamIn.h#L26">Jolt/Core/StreamIn.h:26</see>
/// <br/>
/// <c>virtual bool IsFailed() const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if there was an IO failure
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StreamIn_IsFailed")]
public static partial Brutal.Bool8 StreamIn_IsFailed(StreamIn self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamIn.h#L92">Jolt/Core/StreamIn.h:92</see>
/// <br/>
/// <c>void Read(Vec3 &amp;outVec)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Read a Vec3 (don't read W)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "StreamIn_Read")]
public static partial void StreamIn_Read(StreamIn self, out float3 vec);
}
}
}