//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Core/StreamOut.h:12
///
/// class StreamOut : public NonCopyable
///
///
///
///
/// Simple binary output stream
///
///
[InteropHandle]
public readonly partial struct StreamOut
{
///
///
/// C++:
/// Jolt/Core/StreamOut.h:19
///
/// virtual void WriteBytes(const void *inData, size_t inNumBytes) = 0
///
///
///
///
/// Write a string of bytes to the binary stream
///
///
public unsafe void WriteBytes(Ptr data, ByteSize numBytes) => Jolt.PInvoke.StreamOut_WriteBytes(this, data, (nuint)numBytes);
///
///
/// C++:
/// Jolt/Core/StreamOut.h:22
///
/// virtual bool IsFailed() const = 0
///
///
///
///
/// Returns true if there was an IO failure
///
///
public bool IsFailed() => Jolt.PInvoke.StreamOut_IsFailed(this);
///
///
/// C++:
/// Jolt/Core/StreamOut.h:75
///
/// void Write(const Vec3 &inVec)
///
///
///
///
/// Write a Vec3 (don't write W)
///
///
public void Write(float3 vec) => Jolt.PInvoke.StreamOut_Write(this, vec);
}
}