From 87c27df7eb8ebb7356b0d054b5fec0ef00d30395 Mon Sep 17 00:00:00 2001 From: ahmed Date: Sun, 23 Feb 2025 18:12:42 +0300 Subject: [PATCH] TransmissionTypeIdentifier --- Esiur/Data/RepresentationType.cs | 14 +++++++------- Test/Program.cs | 11 ++++++++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Esiur/Data/RepresentationType.cs b/Esiur/Data/RepresentationType.cs index b1c8759..b283b1d 100644 --- a/Esiur/Data/RepresentationType.cs +++ b/Esiur/Data/RepresentationType.cs @@ -15,23 +15,23 @@ namespace Esiur.Data { public enum RepresentationTypeIdentifier { - Void, - Dynamic, - Bool, + Void = 0x0, + Dynamic = 0x1, + Bool = 0x2, UInt8, Int8, Char, - Int16, UInt16, - Int32, + Int16, UInt32, + Int32, Float32, - Int64, UInt64, + Int64, Float64, DateTime, - Int128, UInt128, + Int128, Decimal, String, RawData, diff --git a/Test/Program.cs b/Test/Program.cs index 4d72c23..a3a67e7 100644 --- a/Test/Program.cs +++ b/Test/Program.cs @@ -57,7 +57,16 @@ namespace Test { static async Task Main(string[] args) { - var rp = RepresentationType.FromType(typeof(IMyRecord)); + + + var x = new uint[] {1,2};// new byte[1024]; + // var rr = DC.ToHex(Codec.Compose(aa, null)); + var y = Codec.Compose(x, null); + var rr = DC.ToHex(y); + + Console.WriteLine(rr); + + var rp = RepresentationType.FromType(x.GetType()); var hhhh = Warehouse.GetTemplateByType(typeof(IMyRecord));