mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
55 lines
2.1 KiB
C#
55 lines
2.1 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#L17">Jolt/Core/StreamWrapper.h:17</see>
|
|
/// <br/>
|
|
/// <c>class StreamOutWrapper : public StreamOut</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Wrapper around std::ostream
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct StreamOutWrapper
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamWrapper.h#L24">Jolt/Core/StreamWrapper.h:24</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, nuint numBytes) => Jolt.PInvoke.StreamOutWrapper_WriteBytes(this, data, numBytes);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/StreamWrapper.h#L27">Jolt/Core/StreamWrapper.h:27</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.StreamOutWrapper_IsFailed(this);
|
|
public static implicit operator StreamOut(StreamOutWrapper value) => Jolt.PInvoke.StreamOutWrapper_AsStreamOut(value);
|
|
}
|
|
}
|