mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* added Packet::getRawLength() helper
This commit is contained in:
parent
3c7ff8da29
commit
ab8cd85d8e
5 changed files with 16 additions and 7 deletions
|
|
@ -79,6 +79,11 @@ public:
|
|||
|
||||
float getSNR() const { return ((float)_snr) / 4.0f; }
|
||||
|
||||
/**
|
||||
* \returns the encoded/wire format length of this packet
|
||||
*/
|
||||
int getRawLength() const;
|
||||
|
||||
/**
|
||||
* \brief save entire packet as a blob
|
||||
* \param dest (OUT) destination buffer (assumed to be MAX_MTU_SIZE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue