0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 15:49:47 +03:00

добавил tma в просмотр и отрефакторил код

This commit is contained in:
bird_egop
2024-11-26 04:05:25 +03:00
parent b336f44b72
commit e16b219854
28 changed files with 878 additions and 537 deletions

View 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);
}