Add tests for packet decode/encode (and fix some bugs found by the tests!)
This commit is contained in:
@@ -10,7 +10,7 @@ class MultipleObjectUpdateMessage {
|
||||
this.id = Message_1.Message.MultipleObjectUpdate;
|
||||
}
|
||||
getSize() {
|
||||
return ((this.calculateVarVarSize(this.ObjectData, 'Data', 1) + 5) * this.ObjectData.length) + 33;
|
||||
return this.calculateVarVarSize(this.ObjectData, 'Data', 1) + ((5) * this.ObjectData.length) + 33;
|
||||
}
|
||||
calculateVarVarSize(block, paramName, extraPerVar) {
|
||||
let size = 0;
|
||||
|
||||
Reference in New Issue
Block a user