mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
60 lines
2.3 KiB
C#
60 lines
2.3 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Wrapper around std::istream
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamWrapper.h#L34">Jolt/Core/StreamWrapper.h:34</see>
|
|
/// <br/>
|
|
/// <c>class StreamInWrapper : public StreamIn</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct StreamInWrapper
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write a string of bytes to the binary stream
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/StreamWrapper.h#L41">Jolt/Core/StreamWrapper.h:41</see>
|
|
/// <br/>
|
|
/// <c>virtual void ReadBytes(void *outData, size_t inNumBytes) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void ReadBytes(Ptr data, nuint numBytes) =>
|
|
Jolt.PInvoke.StreamInWrapper_ReadBytes(this, data, numBytes);
|
|
|
|
/// <inheritdoc cref="StreamIn.IsEOF()"/>
|
|
public bool IsEOF() => ((StreamIn)this).IsEOF();
|
|
|
|
/// <inheritdoc cref="StreamIn.IsFailed()"/>
|
|
public bool IsFailed() => ((StreamIn)this).IsFailed();
|
|
|
|
public static implicit operator StreamIn(StreamInWrapper value) =>
|
|
Unsafe.BitCast<StreamInWrapper, StreamIn>(value);
|
|
|
|
/// <inheritdoc cref="StreamIn.ReadBytes(Ptr, ByteSize)"/>
|
|
public unsafe void ReadBytes(Ptr data, ByteSize numBytes) => ((StreamIn)this).ReadBytes(data, numBytes);
|
|
|
|
/// <inheritdoc cref="StreamIn.Read(out float3)"/>
|
|
public void Read(out float3 vec) => ((StreamIn)this).Read(out vec);
|
|
|
|
/// <inheritdoc cref="StreamIn.Read(out double3)"/>
|
|
public void Read(out double3 vec) => ((StreamIn)this).Read(out vec);
|
|
|
|
/// <inheritdoc cref="StreamIn.Read(out double4x4)"/>
|
|
public void Read(out double4x4 vec) => ((StreamIn)this).Read(out vec);
|
|
}
|
|
}
|