(messageName, destinationID)
| 12 | const rce_begin = Date.now(); |
| 13 | class Encoder { |
| 14 | constructor(messageName, destinationID) { |
| 15 | this.argList = []; |
| 16 | if (arguments.length) { |
| 17 | this.messageName = messageName; |
| 18 | this.destinationID = destinationID; |
| 19 | this.encode('uint8_t', 0); |
| 20 | this.encode('uint16_t', this.messageName); |
| 21 | this.encode('uint64_t', this.destinationID); |
| 22 | } |
| 23 | } |
| 24 | encode(type, value) { |
| 25 | this.argList.push({ |
| 26 | type, |