mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
91 lines
3.4 KiB
C#
91 lines
3.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 binary output stream
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L12">Jolt/Core/StreamOut.h:12</see>
|
|
/// <br/>
|
|
/// <c>class StreamOut : public NonCopyable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct StreamOut
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write a string of bytes to the binary stream
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L19">Jolt/Core/StreamOut.h:19</see>
|
|
/// <br/>
|
|
/// <c>virtual void WriteBytes(const void *inData, size_t inNumBytes) = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void WriteBytes(Ptr data, ByteSize numBytes) =>
|
|
Jolt.PInvoke.StreamOut_WriteBytes(this, data, (nuint)numBytes);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Returns true if there was an IO failure
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L22">Jolt/Core/StreamOut.h:22</see>
|
|
/// <br/>
|
|
/// <c>virtual bool IsFailed() const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool IsFailed() => Jolt.PInvoke.StreamOut_IsFailed(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write a Vec3 (don't write W)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L75">Jolt/Core/StreamOut.h:75</see>
|
|
/// <br/>
|
|
/// <c>void Write(const Vec3 &inVec)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Write(float3 vec) => Jolt.PInvoke.StreamOut_Write(this, vec);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write a DVec3 (don't write W)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L81">Jolt/Core/StreamOut.h:81</see>
|
|
/// <br/>
|
|
/// <c>void Write(const DVec3 &inVec)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Write(double3 vec) => Jolt.PInvoke.StreamOut_Write_2(this, vec);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write a DMat44 (don't write W component of translation)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamOut.h#L87">Jolt/Core/StreamOut.h:87</see>
|
|
/// <br/>
|
|
/// <c>void Write(const DMat44 &inVec)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Write(in double4x4 vec) => Jolt.PInvoke.StreamOut_Write_3(this, in vec);
|
|
}
|
|
}
|