Add Tests for WriteToBuffer

This commit is contained in:
Peter Butzhammer
2024-02-07 13:47:13 +01:00
parent d4a8ef9cb3
commit 4389e81340
3 changed files with 53 additions and 2 deletions

View File

@@ -7,6 +7,10 @@ namespace Sharp7.Rx;
internal static class S7ValueConverter
{
public static void WriteToBuffer<TValue>(Span<byte> buffer, TValue value, S7VariableAddress address)
{
}
public static TValue ConvertToType<TValue>(byte[] buffer, S7VariableAddress address)
{
if (typeof(TValue) == typeof(bool))