/// <summary> /// 检查字节数据是否符合645_07协议 /// </summary> /// <param name="data">字节数组</param> /// <returns></returns> public static Result IsProtocol(byte[] data) { return(Frame645.IsProtocolCommon(data, DataFieldsNamespace)); }
/// <summary> /// 从字节数组中提取出符合645_07协议的部分 /// </summary> /// <param name="data"></param> /// <returns></returns> public static byte[] ExtractFrame(byte[] data) { return(Frame645.ExtractFrameCommon(data, DataFieldsNamespace)); }
/// <summary> /// 检查字节数组是否符合645_07协议 /// </summary> /// <param name="data">字节数组</param> /// <param name="startIndex">开始位置</param> /// <param name="len">长度</param> /// <returns></returns> public static Result IsProtocol(byte[] data, int startIndex, int len) { return(Frame645.IsProtocolCommon(data, startIndex, len, DataFieldsNamespace)); }