2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 11:32:59 +00:00

TransmissionTypeIdentifier

This commit is contained in:
ahmed 2025-02-23 18:12:42 +03:00
parent c87ae22238
commit 87c27df7eb
2 changed files with 17 additions and 8 deletions

View File

@ -15,23 +15,23 @@ namespace Esiur.Data
{ {
public enum RepresentationTypeIdentifier public enum RepresentationTypeIdentifier
{ {
Void, Void = 0x0,
Dynamic, Dynamic = 0x1,
Bool, Bool = 0x2,
UInt8, UInt8,
Int8, Int8,
Char, Char,
Int16,
UInt16, UInt16,
Int32, Int16,
UInt32, UInt32,
Int32,
Float32, Float32,
Int64,
UInt64, UInt64,
Int64,
Float64, Float64,
DateTime, DateTime,
Int128,
UInt128, UInt128,
Int128,
Decimal, Decimal,
String, String,
RawData, RawData,

View File

@ -57,7 +57,16 @@ namespace Test
{ {
static async Task Main(string[] args) 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)); var hhhh = Warehouse.GetTemplateByType(typeof(IMyRecord));