using JiShe.CollectBus.Protocol.Models;
using TouchSocket.Core;

namespace JiShe.CollectBus.Protocol.Adapters
{
    public class StandardFixedHeaderDataHandlingAdapter : CustomFixedHeaderDataHandlingAdapter<CustomFixedHeaderRequestInfo>
    {
        /// <summary>
        /// 接口实现，指示固定包头长度
        /// </summary>
        public override int HeaderLength => 3;

        /// <summary>
        /// 获取新实例
        /// </summary>
        /// <returns></returns>
        protected override CustomFixedHeaderRequestInfo GetInstance()
        {
            return new CustomFixedHeaderRequestInfo();
        }
    }
}
