mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
76 lines
3.3 KiB
C#
76 lines
3.3 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
|
|
{
|
|
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 &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);
|
|
}
|
|
}
|
|
}
|