//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Core/StreamIn.h:12
///
/// class StreamIn : public NonCopyable
///
///
///
///
/// Simple binary input stream
///
///
[InteropHandle]
public readonly partial struct StreamIn
{
///
///
/// C++:
/// Jolt/Core/StreamIn.h:19
///
/// virtual void ReadBytes(void *outData, size_t inNumBytes) = 0
///
///
///
///
/// Read a string of bytes from the binary stream
///
///
public unsafe void ReadBytes(Ptr data, ByteSize numBytes) => Jolt.PInvoke.StreamIn_ReadBytes(this, data, (nuint)numBytes);
///
///
/// C++:
/// Jolt/Core/StreamIn.h:23
///
/// virtual bool IsEOF() const = 0
///
///
///
///
/// 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.
///
///
public bool IsEOF() => Jolt.PInvoke.StreamIn_IsEOF(this);
///
///
/// C++:
/// Jolt/Core/StreamIn.h:26
///
/// virtual bool IsFailed() const = 0
///
///
///
///
/// Returns true if there was an IO failure
///
///
public bool IsFailed() => Jolt.PInvoke.StreamIn_IsFailed(this);
///
///
/// C++:
/// Jolt/Core/StreamIn.h:92
///
/// void Read(Vec3 &outVec)
///
///
///
///
/// Read a Vec3 (don't read W)
///
///
public void Read(out float3 vec) => Jolt.PInvoke.StreamIn_Read(this, out vec);
}
}