MqttHelperCalculateMqttRemainingLength 方法 |
根据接收到数据的字节列表,计算出MQTT剩余长度信息
Based on the byte list of the received data, calculate the remaining length information of the MQTT
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法public static OperateResult<int> CalculateMqttRemainingLength(
List<byte> buffer
)
Public Shared Function CalculateMqttRemainingLength (
buffer As List(Of Byte)
) As OperateResult(Of Integer)
public:
static OperateResult<int>^ CalculateMqttRemainingLength(
List<unsigned char>^ buffer
)
static member CalculateMqttRemainingLength :
buffer : List<byte> -> OperateResult<int>
参数
- buffer
- 类型:System.Collections.GenericListByte
长度数据缓存
返回值
类型:
OperateResultInt32实际的数据长度
参见