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

69 lines
2.7 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/Core/StreamWrapper.h#L34">Jolt/Core/StreamWrapper.h:34</see>
/// <br/>
/// <c>class StreamInWrapper : public StreamIn</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Wrapper around std::istream
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct StreamInWrapper
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamWrapper.h#L41">Jolt/Core/StreamWrapper.h:41</see>
/// <br/>
/// <c>virtual void ReadBytes(void *outData, size_t inNumBytes) override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Write a string of bytes to the binary stream
/// </para>
/// </remarks>
public unsafe void ReadBytes(Ptr data, nuint numBytes) => Jolt.PInvoke.StreamInWrapper_ReadBytes(this, data, numBytes);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamWrapper.h#L44">Jolt/Core/StreamWrapper.h:44</see>
/// <br/>
/// <c>virtual bool IsEOF() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true when an attempt has been made to read past the end of the file
/// </para>
/// </remarks>
public bool IsEOF() => Jolt.PInvoke.StreamInWrapper_IsEOF(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamWrapper.h#L47">Jolt/Core/StreamWrapper.h:47</see>
/// <br/>
/// <c>virtual bool IsFailed() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if there was an IO failure
/// </para>
/// </remarks>
public bool IsFailed() => Jolt.PInvoke.StreamInWrapper_IsFailed(this);
public static implicit operator StreamIn(StreamInWrapper value) => Jolt.PInvoke.StreamInWrapper_AsStreamIn(value);
}
}