mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-18 15:49:47 +03:00
добавил tma в просмотр и отрефакторил код
This commit is contained in:
11
MissionTmaLib/IntFloatValue.cs
Normal file
11
MissionTmaLib/IntFloatValue.cs
Normal file
@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user