(type, buf)
| 415 | } |
| 416 | |
| 417 | parseVersionMin (type, buf) { |
| 418 | if (buf.length !== 8) |
| 419 | throw new Error('min version OOB'); |
| 420 | |
| 421 | return { |
| 422 | type: type, |
| 423 | version: this.readUInt16(buf, 2) + '.' + buf[1] + '.' + buf[0], |
| 424 | sdk: this.readUInt16(buf, 6) + '.' + buf[5] + '.' + buf[4] |
| 425 | }; |
| 426 | } |
| 427 | |
| 428 | parseLinkEdit (type, buf) { |
| 429 | if (buf.length !== 8) |
no test coverage detected