Test
- Removed `repack()` call in `setTestField(string)` Command - `getEncoded()` will now firstly call `repack()` (which updates the `data` array) and then returne said updated `data` array
This commit is contained in:
parent
593fccd38f
commit
1650775133
|
@ -56,6 +56,10 @@ public abstract class Command
|
|||
*/
|
||||
public final byte[] getEncoded()
|
||||
{
|
||||
// Force repack of the object
|
||||
repack();
|
||||
|
||||
// Return the data
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,9 +21,6 @@ public final class NopMessage : Command
|
|||
public void setTestField(string testField)
|
||||
{
|
||||
this.testField = testField;
|
||||
|
||||
// Ensure re-encoded
|
||||
repack();
|
||||
}
|
||||
|
||||
public override string toString()
|
||||
|
|
Loading…
Reference in New Issue