2025-01-08 18:46:17 +00:00
|
|
|
using Godot;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System;
|
|
|
|
|
|
2026-05-22 12:25:02 +00:00
|
|
|
using Rokojori.Extensions;
|
2025-01-08 18:46:17 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
public partial class BitView
|
|
|
|
|
{
|
|
|
|
|
public void WriteFloat( float value )
|
|
|
|
|
{
|
|
|
|
|
WriteBytes( BitConverter.GetBytes( value ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public float ReadFloat()
|
|
|
|
|
{
|
|
|
|
|
return BitConverter.ToSingle( ReadByteArray( 4 ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|