SpecifiedCharacterMessage 类 |
命名空间: HslCommunication.Core.IMessage
SpecifiedCharacterMessage 类型公开以下成员。
名称 | 说明 | |
---|---|---|
SpecifiedCharacterMessage(Byte) |
使用固定的一个字符结尾作为当前的报文接收条件,来实例化一个对象 Instantiate an object using a fixed end of one character as the current message reception condition | |
SpecifiedCharacterMessage(Byte, Byte) |
使用固定的两个个字符结尾作为当前的报文接收条件,来实例化一个对象 Instantiate an object using a fixed two-character end as the current message reception condition |
名称 | 说明 | |
---|---|---|
ContentBytes |
消息内容字节 (继承自 NetMessageBase。)Message content byte | |
EndLength |
获取或设置在结束字符之后剩余的固定字节长度,有些则还包含两个字节的校验码,这时该值就需要设置为2。 Gets or sets the remaining fixed byte length after the end character, and some also contain a two-byte check code. In this case, the value needs to be set to 2. | |
HeadBytes |
消息头字节 (继承自 NetMessageBase。)Message header byte | |
ProtocolHeadBytesLength |
消息头的指令长度,第一次接受数据的长度 Instruction length of the message header, the length of the first received data | |
SendBytes |
发送的字节信息 (继承自 NetMessageBase。)Byte information sent |
名称 | 说明 | |
---|---|---|
CheckHeadBytesLegal |
检查头子节的合法性 (重写 NetMessageBaseCheckHeadBytesLegal(Byte).)Check the legitimacy of the head subsection | |
Equals | (继承自 Object。) | |
Finalize | (继承自 Object。) | |
GetContentLengthByHeadBytes |
从当前的头子节文件中提取出接下来需要接收的数据长度 Extract the length of the data to be received from the current header file | |
GetHashCode | (继承自 Object。) | |
GetHeadBytesIdentity |
获取头子节里的消息标识 (继承自 NetMessageBase。)Get the message ID in the header subsection | |
GetType | (继承自 Object。) | |
MemberwiseClone | (继承自 Object。) | |
PependedUselesByteLength |
在接收头报文的时候,返回前置无效的报文头字节长度,默认为0,不处理 (继承自 NetMessageBase。)When receiving a header message, return the header byte length of the invalid header, the default is 0, and no processing is performed. | |
ToString | (继承自 Object。) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |