// // 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 { /// /// /// Wrapper around std::istream /// /// /// C++: /// Jolt/Core/StreamWrapper.h:34 ///
/// class StreamInWrapper : public StreamIn ///
///
[InteropHandle] public readonly partial struct StreamInWrapper { /// /// /// Write a string of bytes to the binary stream /// /// /// C++: /// Jolt/Core/StreamWrapper.h:41 ///
/// virtual void ReadBytes(void *outData, size_t inNumBytes) override ///
///
public unsafe void ReadBytes(Ptr data, nuint numBytes) => Jolt.PInvoke.StreamInWrapper_ReadBytes(this, data, numBytes); /// public bool IsEOF() => ((StreamIn)this).IsEOF(); /// public bool IsFailed() => ((StreamIn)this).IsFailed(); public static implicit operator StreamIn(StreamInWrapper value) => Unsafe.BitCast(value); /// public unsafe void ReadBytes(Ptr data, ByteSize numBytes) => ((StreamIn)this).ReadBytes(data, numBytes); /// public void Read(out float3 vec) => ((StreamIn)this).Read(out vec); /// public void Read(out double3 vec) => ((StreamIn)this).Read(out vec); /// public void Read(out double4x4 vec) => ((StreamIn)this).Read(out vec); } }