Revert "Revert "Test""

This reverts commit 38b86c43c2.
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-09 21:28:38 +02:00
parent 38b86c43c2
commit 20b36e9746
2 changed files with 4 additions and 3 deletions

View File

@ -54,6 +54,10 @@ public abstract class Command
*/ */
public final byte[] getEncoded() public final byte[] getEncoded()
{ {
// Force repack of the object
repack();
// Return the data
return data; return data;
} }

View File

@ -20,9 +20,6 @@ public final class NopMessage : Command
public void setTestField(string testField) public void setTestField(string testField)
{ {
this.testField = testField; this.testField = testField;
// Ensure re-encoded
repack();
} }
public override string toString() public override string toString()