一款简单易用的基础网络通讯组件库。

ValueTLVDataFrame 结构

以1个字节表示Length的TLV

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocketPro (在 TouchSocketPro.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public struct ValueTLVDataFrame : ITLVDataFrame, 
	IRequestInfo
Inheritance
Object    ValueType    ValueTLVDataFrame
Implements
IRequestInfo, ITLVDataFrame

构造函数

ValueTLVDataFrame 初始化一个TLVRequestInfo对象。

属性

LengthValue的有效长度
Tag Tag标识
Value 有效载荷值

方法

AppendValue(Byte) 追加Value。
AppendValue(Byte, Int32, Int32) 追加Value。
Build 构建数据
ClearValue 清除所有Value的值
EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

BuildAsBytes 构建为对应字节组
(由 TLVDataFrameExtensions 定义。)
GetValueString 获取utf-8编码的由Value转义的字符串。
(由 TLVDataFrameExtensions 定义。)
Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见