NetMessageBaseCheckReceiveDataComplete 方法 |
当消息头报文的长度定义为-1的时候,则使用动态的长度信息,可以使用本方法来判断一个消息是否处于完整的状态。
If the length of the message header is defined as -1, this method can be used to determine whether a message is in the complete state by using dynamic length information.
命名空间:
HslCommunication.Core.IMessage
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual bool CheckReceiveDataComplete(
byte[] send,
MemoryStream ms
)
Public Overridable Function CheckReceiveDataComplete (
send As Byte(),
ms As MemoryStream
) As Boolean
public:
virtual bool CheckReceiveDataComplete(
array<unsigned char>^ send,
MemoryStream^ ms
)
abstract CheckReceiveDataComplete :
send : byte[] *
ms : MemoryStream -> bool
override CheckReceiveDataComplete :
send : byte[] *
ms : MemoryStream -> bool
参数
- send
- 类型:SystemByte
发送的消息 - ms
- 类型:System.IOMemoryStream
接收到的数据内容
返回值
类型:
Boolean是否是完整的消息
参见