mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-05-18 11:21:18 +03:00
11 lines
341 B
C#
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);
|
|||
|
}
|