You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
617 B
32 lines
617 B
using DotNetty.Buffers;
|
|
using HybirdFrameworkCore.Utils;
|
|
using Service.Fire.Common;
|
|
|
|
namespace Service.Ups.Msg;
|
|
|
|
public class ASDU:APCI
|
|
{
|
|
public override byte[] GetBytes()
|
|
{
|
|
var list = new List<byte>();
|
|
|
|
list.AddRange(ModelConvert.Encode(this));
|
|
return list.ToArray();
|
|
}
|
|
|
|
public static void ParseHeader(byte[] data, ASDU asdu)
|
|
{
|
|
IByteBuffer byteBuffer = Unpooled.WrappedBuffer(data);
|
|
try
|
|
{
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
throw e;
|
|
}
|
|
finally
|
|
{
|
|
byteBuffer.Release();
|
|
}
|
|
}
|
|
} |