public class TLVDataFrame : IFixedHeaderRequestInfo,
IRequestInfo, ITLVDataFrame
Public Class TLVDataFrame
Implements IFixedHeaderRequestInfo, IRequestInfo, ITLVDataFrame
type TLVDataFrame =
class
interface IFixedHeaderRequestInfo
interface IRequestInfo
interface ITLVDataFrame
end
TLVDataFrame | 初始化一个Ushort的TLVRequestInfo对象。 |
TLVDataFrame(UInt16) | 初始化一个TLVRequestInfo对象。 |
TLVDataFrame(UInt16, Byte) | 初始化一个TLVRequestInfo对象。 |
AppendValue(Byte) | 追加Value。 |
AppendValue(Byte, Int32, Int32) | 追加Value。 |
Build | 构建数据 |
ClearValue | 清除所有Value的值 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
BuildAsBytes |
构建为对应字节组
(由 TLVDataFrameExtensions 定义。) |
GetValueString |
获取utf-8编码的由Value转义的字符串。
(由 TLVDataFrameExtensions 定义。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |
IFixedHeaderRequestInfoBodyLength | 数据体长度 |
IFixedHeaderRequestInfoOnParsingBody |
当收到数据,由框架封送有效载荷数据。
如果返回false,意味着放弃本次解析的所有数据,包括已经解析完成的Header |
IFixedHeaderRequestInfoOnParsingHeader |
当收到数据,由框架封送固定协议头。
您需要在此函数中,解析自己的固定包头,并且对BodyLength赋值后续数据的长度,然后返回True。 如果返回false,则意味着放弃本次解析 |