0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-18 19:31:17 +03:00
ParkanPlayground/MissionTmaLib/IntFloatValue.cs

11 lines
341 B
C#

using System.Diagnostics;
using System.Runtime.InteropServices;
namespace MissionTmaLib;
[DebuggerDisplay("AsInt = {AsInt}, AsFloat = {AsFloat}")]
public class IntFloatValue(Span<byte> span)
{
public int AsInt { get; set; } = MemoryMarshal.Read<int>(span);
public float AsFloat { get; set; } = MemoryMarshal.Read<float>(span);
}