2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 03:32:57 +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
{
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,

View File

@ -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));