using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TouchSocket.Core; namespace JiShe.CollectBus.Protocol.Contracts.Models { public class CustomFixedHeaderRequestInfo : IFixedHeaderRequestInfo { /// /// 报文开始前缀 /// public string StartPrefix { get; set; } = "68"; /// /// 报文结束后缀 /// public string EndPrefix { get; set; } = "16"; /// /// 头部长度 /// public int HeadLength = 5; /// /// 固定长度 /// private const int FixedLength = 17; /// /// 报文长度 /// public int PacketLength { get; set; } /// /// 控制域 C /// public int ControlDomain { get; set; } public bool OnParsingHeader(ReadOnlySpan header) { //throw new NotImplementedException(); return true; } public bool OnParsingBody(ReadOnlySpan body) { //throw new NotImplementedException(); return true; } public int BodyLength { get; } } }