Add tests for packet decode/encode (and fix some bugs found by the tests!)
This commit is contained in:
@@ -19,7 +19,7 @@ export class ScriptDataRequestMessage implements MessageBase
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.DataBlock, 'Request', 2) + 9) * this.DataBlock.length) + 1;
|
||||
return this.calculateVarVarSize(this.DataBlock, 'Request', 2) + ((9) * this.DataBlock.length) + 1;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
|
||||
Reference in New Issue
Block a user