// // 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 { /// /// /// Simple binary input stream /// /// /// C++: /// Jolt/Core/StreamIn.h:12 ///
/// class StreamIn : public NonCopyable ///
///
[InteropHandle] public readonly partial struct StreamIn { /// /// /// Read a string of bytes from the binary stream /// /// /// C++: /// Jolt/Core/StreamIn.h:19 ///
/// virtual void ReadBytes(void *outData, size_t inNumBytes) = 0 ///
///
public unsafe void ReadBytes(Ptr data, ByteSize numBytes) => Jolt.PInvoke.StreamIn_ReadBytes(this, data, (nuint)numBytes); /// /// /// 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. /// /// /// C++: /// Jolt/Core/StreamIn.h:23 ///
/// virtual bool IsEOF() const = 0 ///
///
public bool IsEOF() => Jolt.PInvoke.StreamIn_IsEOF(this); /// /// /// Returns true if there was an IO failure /// /// /// C++: /// Jolt/Core/StreamIn.h:26 ///
/// virtual bool IsFailed() const = 0 ///
///
public bool IsFailed() => Jolt.PInvoke.StreamIn_IsFailed(this); /// /// /// Read a Vec3 (don't read W) /// /// /// C++: /// Jolt/Core/StreamIn.h:92 ///
/// void Read(Vec3 &outVec) ///
///
public void Read(out float3 vec) => Jolt.PInvoke.StreamIn_Read(this, out vec); /// /// /// Read a DVec3 (don't read W) /// /// /// C++: /// Jolt/Core/StreamIn.h:99 ///
/// void Read(DVec3 &outVec) ///
///
public void Read(out double3 vec) => Jolt.PInvoke.StreamIn_Read_2(this, out vec); /// /// /// Read a DMat44 (don't read W component of translation) /// /// /// C++: /// Jolt/Core/StreamIn.h:106 ///
/// void Read(DMat44 &outVec) ///
///
public void Read(out double4x4 vec) => Jolt.PInvoke.StreamIn_Read_3(this, out vec); } }