using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Common;
/// DEBUG ONLY. Одни и те же 4 байта, интерпретированные как int32 и float32.
/// Значение как int32.
/// Значение как float32.
[DebuggerDisplay("AsInt = {AsInt}, AsFloat = {AsFloat}")]
public record class IntFloatValue(int AsInt, float AsFloat)
{
public IntFloatValue(Span span)
: this(MemoryMarshal.Read(span), MemoryMarshal.Read(span))
{
}
}