eclipse-paho / paho.mqtt.embedded-c

Paho MQTT C client library for embedded systems. Paho is an Eclipse IoT project (https://iot.eclipse.org/)
https://eclipse.org/paho
Other
1.37k stars 757 forks source link

Why use `enddata - curdata` instead of `mylen` in `MQTTDeserialize_ack()`? #229

Open zzlin55 opened 3 years ago

zzlin55 commented 3 years ago

Hi, For this block, is there any particular reason to use enddata - curdata rather than mylen? I can't really see the difference except the type will be different.