- Documented `decode(byte[] dataIn, ref Message decoded)`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-01-29 21:59:12 +02:00
parent d0de2c1842
commit 9aacb97156
1 changed files with 11 additions and 1 deletions

View File

@ -81,6 +81,16 @@ public struct Message
return encode(this);
}
/**
* Decoes the given data into the provided
* `Message` variable
*
* Params:
* dataIn = the data to decode
* decoded = the decoded `Message`
* Returns: `true` if the decode succeeded,
* otherwise `false`
*/
public static bool decode(byte[] dataIn, ref Message decoded)
{
try
@ -189,7 +199,7 @@ public struct Data
return this.src;
}
public string getDst()
public string getDst() const
{
return this.dst;
}