CoapPacket

- Documented `fromBytes(ubyte[] data)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-30 16:25:48 +02:00
parent deaed433a7
commit edf989d698
1 changed files with 9 additions and 0 deletions

View File

@ -345,6 +345,15 @@ public class CoapPacket
return this.mid;
}
/**
* Decodes the given bytes into a `CoapPacket`
*
* Params:
* data = the bytes to decode
* Returns: a decoded `CoapPacket`
* Throws:
* CoapException on error decoding
*/
public static CoapPacket fromBytes(ubyte[] data)
{
CoapPacket packet = new CoapPacket();