mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
60
Brutal.Jolt/Generated/Classes/StreamInWrapper.gen.cs
Normal file
60
Brutal.Jolt/Generated/Classes/StreamInWrapper.gen.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue